更新cover图

This commit is contained in:
yaooo 2023-09-09 18:26:34 +08:00
parent 737d18702f
commit 136f52b048
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ class MerchantCategoryRepository extends BaseRepository
Elm::input('category_name', '分类名称')->required(),
Elm::number('commission_rate', '手续费(%)', 0)->required()->max(100)->precision(2),
Elm::frameImage('background', '背景图', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=background&type=1')->width('896px')->height('480px')->props(['footer' => false])->modal(['modal' => false, 'custom-class' => 'suibian-modal']),
Elm::frameImage('cover', '主图', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=background&type=1')->width('896px')->height('480px')->props(['footer' => false])->modal(['modal' => false, 'custom-class' => 'suibian-modal']),
Elm::textarea('description', '简介')->required(),
]);

View File

@ -501,7 +501,7 @@ class Common extends BaseController
->where('m.status',1)
->where('m.street_id',$street_code)
->join('merchant_category c','m.category_id=c.merchant_category_id')
->field('m.mer_id,category_id,category_name,c.background,c.description')->select();
->field('m.mer_id,category_id,category_name,c.background,c.cover,c.description')->select();
return app('json')->success($find??[]);
}
}