From 5b6787aa4969ebe28e7932e9782ca4a0bf65e44a Mon Sep 17 00:00:00 2001 From: sszdot Date: Wed, 18 Dec 2024 17:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Adocs=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E5=92=8Cmain=E7=9B=AE=E5=BD=95=E4=B8=8B=20=E7=9A=84or?= =?UTF-8?q?der=E7=BB=84=E4=BB=B6=E9=87=8D=E5=90=8D=20=E3=80=90=E8=BF=87=20?= =?UTF-8?q?=20=E7=A8=8B=E3=80=91=EF=BC=9Ashop=E7=9B=AE=E5=BD=95=E4=B8=8Bor?= =?UTF-8?q?der=E7=BB=84=E4=BB=B6=E6=9B=B4=E5=90=8D=E4=B8=BAconfirm=20?= =?UTF-8?q?=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- App.vue | 4 +- pages.json | 2 +- pages/shop/list.vue | 2 +- pages/shop/order.vue | 249 ------------------------------------------- 4 files changed, 4 insertions(+), 253 deletions(-) delete mode 100644 pages/shop/order.vue diff --git a/App.vue b/App.vue index 369f5f1..232fa8a 100644 --- a/App.vue +++ b/App.vue @@ -3,8 +3,8 @@ // 数据初始化 onLaunch: function(options) { //从二维码获取站点id 商铺id - this.$store.commit('setShopId', String(options.query.s)); - this.$store.commit('setSiteId', String(options.query.z)); + this.$store.commit('setShopId', String(options.query.s)) + this.$store.commit('setSiteId', String(options.query.z)) //异步加载商铺信息 this.$store.dispatch('fetchShopCon') //异步加载站点列表 diff --git a/pages.json b/pages.json index 4990f47..f2ecf47 100644 --- a/pages.json +++ b/pages.json @@ -34,7 +34,7 @@ } }, { - "path": "pages/shop/order", + "path": "pages/shop/confirm", "style": { "navigationStyle": "custom" } diff --git a/pages/shop/list.vue b/pages/shop/list.vue index 6b27788..a230a9e 100644 --- a/pages/shop/list.vue +++ b/pages/shop/list.vue @@ -283,7 +283,7 @@ const regex = /^(\+?\d{1,4}[\s-]?)?\d{3}\*{4}\d{4}$/ if (regex.test(this.$store.state.userInfo.tel)) { //手机号合法 uni.navigateTo({ //跳转到订单页面 - url: '/pages/shop/order' + url: '/pages/shop/confirm' }) } else { //手机号不合法 获取为空 uni.navigateTo({ //跳转到获取手机号页面 diff --git a/pages/shop/order.vue b/pages/shop/order.vue deleted file mode 100644 index 41be0b2..0000000 --- a/pages/shop/order.vue +++ /dev/null @@ -1,249 +0,0 @@ - - - - - \ No newline at end of file