From f8edfd84920bc4a7a38fc0708121245c35810e3d Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Wed, 31 Jan 2024 15:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/category/index.js | 4 +- api/shop/navCategory/index.js | 17 + .../page/diyComponents/navBar/index.vue | 251 +- components/page/index.vue | 3 +- components/shortcut/index.vue | 2 +- pages.json | 7 + pages/checkout/index.vue | 21 +- pages/goods/detail.vue | 1089 +++--- pages/goods/list.vue | 26 +- pages/index/index.vue | 1815 ++++----- pages/order/detail.vue | 1647 ++++---- pages/order/extract/check.vue | 1131 +++--- pages/shop/list.vue | 244 ++ pages/user/index.vue | 8 +- pages/user/shop/addgoods.vue | 24 +- pages/user/shop/goodsdetail.vue | 3440 ++++++++--------- 16 files changed, 5084 insertions(+), 4645 deletions(-) create mode 100644 api/shop/navCategory/index.js create mode 100644 pages/shop/list.vue diff --git a/api/category/index.js b/api/category/index.js index 526ac93..33574a1 100644 --- a/api/category/index.js +++ b/api/category/index.js @@ -12,6 +12,6 @@ export function list(param) { } -export function shoplist() { - return request.get(api.shoplist) +export function shoplist(param) { + return request.get(api.shoplist, param) } \ No newline at end of file diff --git a/api/shop/navCategory/index.js b/api/shop/navCategory/index.js new file mode 100644 index 0000000..35395a9 --- /dev/null +++ b/api/shop/navCategory/index.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +// api地址 +const api = { + list: 'shop.navCategory/list', + detail: 'shop.navCategory/detail', +} + +// 页面数据 +export function list() { + return request.get(api.list) +} + +// 页面数据 +export function detail(categoryId) { + return request.get(api.detail, {categoryId}) +} diff --git a/components/page/diyComponents/navBar/index.vue b/components/page/diyComponents/navBar/index.vue index fc17f41..f797b65 100644 --- a/components/page/diyComponents/navBar/index.vue +++ b/components/page/diyComponents/navBar/index.vue @@ -1,55 +1,64 @@ \ No newline at end of file diff --git a/components/page/index.vue b/components/page/index.vue index fbcf0f6..df84e81 100644 --- a/components/page/index.vue +++ b/components/page/index.vue @@ -31,7 +31,8 @@ - + diff --git a/components/shortcut/index.vue b/components/shortcut/index.vue index a707070..f1a8269 100644 --- a/components/shortcut/index.vue +++ b/components/shortcut/index.vue @@ -24,7 +24,7 @@ default: 20 }, bottom: { - type: Number, + type: Number | String, default: 100 } }, diff --git a/pages.json b/pages.json index 88cc35e..d52fb53 100644 --- a/pages.json +++ b/pages.json @@ -343,6 +343,13 @@ "navigationStyle": "custom" } }, + { + "path": "pages/shop/list", + "style": { + "navigationBarTitleText": "门店列表", + "navigationStyle": "custom" + } + }, { "path": "pages/dealer/index", "style": { diff --git a/pages/checkout/index.vue b/pages/checkout/index.vue index 764c942..c0e435e 100644 --- a/pages/checkout/index.vue +++ b/pages/checkout/index.vue @@ -107,9 +107,11 @@