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