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 @@