From bfdb7488d810946182764f77845c927c40efd90b Mon Sep 17 00:00:00 2001 From: yangtao Date: Tue, 26 Mar 2024 20:06:34 +0800 Subject: [PATCH] 1 --- api/admin.js | 6 + pages.json | 6 + pages/admin/business/index.vue | 2 +- pages/admin/shopInfo/index.vue | 408 +++++++++++++++++++++++++++++++++ pages/shop/index.vue | 3 +- 5 files changed, 422 insertions(+), 3 deletions(-) create mode 100644 pages/admin/shopInfo/index.vue diff --git a/api/admin.js b/api/admin.js index 0908c65..a86ab71 100644 --- a/api/admin.js +++ b/api/admin.js @@ -234,4 +234,10 @@ export function computeRefundPrice(merId,data) { */ export function scanUpload(field,token,data) { return request.post(`scan_upload/image/${field}/${token}`,data, { login: true }); +} +/** + * 查询商户信息 + */ +export function getAdminInfo(merId) { + return request.get(`server/${merId}/store/info`, {}, { login: true }); } \ No newline at end of file diff --git a/pages.json b/pages.json index 1de6754..5d5982c 100644 --- a/pages.json +++ b/pages.json @@ -673,6 +673,12 @@ "navigationBarTitleText": "商家管理" } }, + { + "path": "shopInfo/index", + "style": { + "navigationBarTitleText": "商家信息" + } + }, { "path": "orderDetail/index", "style": { diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index 0181ee5..560ef46 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -74,7 +74,7 @@ if(this.service.is_goods){ list.push({ title: '基本信息', - url: '/pages/product/list/index?mer_id=' + merId, + url: '/pages/admin/shopInfo/index?mer_id=' + merId, icon: 'haiyuefont haiyue-info' }); } diff --git a/pages/admin/shopInfo/index.vue b/pages/admin/shopInfo/index.vue new file mode 100644 index 0000000..3f72053 --- /dev/null +++ b/pages/admin/shopInfo/index.vue @@ -0,0 +1,408 @@ + + + + + + + diff --git a/pages/shop/index.vue b/pages/shop/index.vue index b1684d9..f2eed5a 100644 --- a/pages/shop/index.vue +++ b/pages/shop/index.vue @@ -17,7 +17,7 @@ - + {{item.category_name}} @@ -39,7 +39,6 @@ - {{item.service_score}}分 营业时间:{{item.config.mer_take_time.join('-')}}