From a9832d38af502a21ce3d8ba2503eb3e9e19baa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Tue, 7 May 2024 17:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 9 + components/navseat.vue | 2 +- pages.json | 6 + pages/index/components/todaylist.vue | 7 +- pages/index/hotlist.vue | 241 +++++++++++++---------- pages/index/index.vue | 53 +++-- pages/index/jtoday.vue | 186 +++++++++++++----- pages/index/tothestore.vue | 14 +- pages/order/order.vue | 52 +++++ pages/product/generalstore.vue | 137 +++++++++++++ pages/product/index.vue | 284 +++++++++++++++++---------- pages/user/user.vue | 2 +- 12 files changed, 707 insertions(+), 286 deletions(-) create mode 100644 pages/product/generalstore.vue diff --git a/common/js/api.js b/common/js/api.js index fcc8d04..e066182 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -92,4 +92,13 @@ export default { orderfindWiningUser(data) { //获取免单订单 return uni.api.get("/order/findWiningUser", data); }, + indexlist(data) { //商品列表(今日上新/热榜/咖啡饮品) + return uni.api.get("/distirict/productCate", data); + }, + productproductInfo(data) { //商品详情 + return uni.api.get("/product/productInfo", data); + }, + distirictcomShopList(data) { //通用门店列表 + return uni.api.get("/distirict/comShopList", data); + }, } \ No newline at end of file diff --git a/components/navseat.vue b/components/navseat.vue index cd0a55d..846bd7d 100644 --- a/components/navseat.vue +++ b/components/navseat.vue @@ -70,7 +70,7 @@ position: -webkit-sticky; position: sticky; top: 0; - z-index: 999999; + z-index: 9999; .active { background: rgba(249, 249, 249, 1); diff --git a/pages.json b/pages.json index 034c8d0..04ee92a 100644 --- a/pages.json +++ b/pages.json @@ -60,6 +60,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/product/generalstore", + "style": { + "navigationBarTitleText": "通用门店" + } + }, { "path": "pages/login/login", "style": { diff --git a/pages/index/components/todaylist.vue b/pages/index/components/todaylist.vue index 8d79afe..321634f 100644 --- a/pages/index/components/todaylist.vue +++ b/pages/index/components/todaylist.vue @@ -14,7 +14,7 @@ + :key="index" @click="clickproduct(item)"> @@ -50,7 +50,7 @@ + :key="index" @click="clickproduct(item)"> @@ -101,6 +101,9 @@ } }, methods:{ + clickproduct(item){ + uni.pro.navigateTo('product/index',item) + }, jrtoday(e){ if(e == 0){ uni.pro.navigateTo('index/jtoday') diff --git a/pages/index/hotlist.vue b/pages/index/hotlist.vue index 98fbcf6..ae8f41c 100644 --- a/pages/index/hotlist.vue +++ b/pages/index/hotlist.vue @@ -1,9 +1,9 @@