diff --git a/components/user/productList.vue b/components/user/productList.vue index a93bf74..ef5cf13 100644 --- a/components/user/productList.vue +++ b/components/user/productList.vue @@ -1,147 +1,143 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index 193d73f..15246f5 100644 --- a/pages.json +++ b/pages.json @@ -24,29 +24,11 @@ "navigationBarTitleText": "" } }, - { - "path": "pages/index/category", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/index/center", - "style": { - "navigationBarTitleText": "" - } - }, { "path": "pages/index/center2", "style": { "navigationBarTitleText": "" } - }, - { - "path": "pages/index/cart", - "style": { - "navigationBarTitleText": "" - } } ], "preloadRule": { diff --git a/pages/index/cart.vue b/pages/index/cart.vue deleted file mode 100644 index 4c9a7c2..0000000 --- a/pages/index/cart.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/index/category.vue b/pages/index/category.vue deleted file mode 100644 index 17ab40d..0000000 --- a/pages/index/category.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/index/center.vue b/pages/index/center.vue deleted file mode 100644 index bb528c3..0000000 --- a/pages/index/center.vue +++ /dev/null @@ -1,420 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 065d88e..dc5c9af 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -145,6 +145,11 @@ }, onShow(){ this.getImagePhoneOther() + if(!this.$store.state.shop && !this.$store.state.buy){ + uni.reLaunch({ + url: '/pages_order/auth/selectionIdentity?back=no&' + }) + } }, computed: { ...mapGetters(['userShop']), diff --git a/pages/index/tradingPlatform.vue b/pages/index/tradingPlatform.vue index 6ca7fed..8d7ef1e 100644 --- a/pages/index/tradingPlatform.vue +++ b/pages/index/tradingPlatform.vue @@ -1,164 +1,182 @@ \ No newline at end of file diff --git a/pages_order/auth/selectionIdentity.vue b/pages_order/auth/selectionIdentity.vue index 9f170af..6898185 100644 --- a/pages_order/auth/selectionIdentity.vue +++ b/pages_order/auth/selectionIdentity.vue @@ -1,94 +1,93 @@ + .identity-icon { + width: 130rpx; + height: 130rpx; + } + } + } + } + \ No newline at end of file diff --git a/pages_order/center/systemSet.vue b/pages_order/center/systemSet.vue index c2cb7ce..129df9b 100644 --- a/pages_order/center/systemSet.vue +++ b/pages_order/center/systemSet.vue @@ -1,133 +1,167 @@ \ No newline at end of file diff --git a/pages_order/tradingPlatform/nowOrder.vue b/pages_order/tradingPlatform/nowOrder.vue index 0642a66..32015f0 100644 --- a/pages_order/tradingPlatform/nowOrder.vue +++ b/pages_order/tradingPlatform/nowOrder.vue @@ -1,471 +1,478 @@ \ No newline at end of file diff --git a/static/image/tabbar/组 46940_1.png b/static/image/tabbar/组 46940_1.png deleted file mode 100644 index c9f5ab5..0000000 Binary files a/static/image/tabbar/组 46940_1.png and /dev/null differ diff --git a/store/store.js b/store/store.js index b1662fa..d0e74cc 100644 --- a/store/store.js +++ b/store/store.js @@ -11,6 +11,8 @@ const store = new Vuex.Store({ configList: [], //配置列表 shop : true, userInfo : {}, //用户信息 + shopData : {}, + buy : {}, }, getters: { // 角色 true 为供应商 false 为采购商 @@ -50,11 +52,19 @@ const store = new Vuex.Store({ } state.userInfo = res.result.userInfo + state.buy = res.result.buy + state.shop = res.result.shop uni.setStorageSync('token', res.result.token) - uni.reLaunch({ - url: '/pages/index/index' - }) + if(!state.shop && !state.buy){ + uni.reLaunch({ + url: '/pages_order/auth/selectionIdentity?back=no&' + }) + }else{ + uni.reLaunch({ + url: '/pages/index/index' + }) + } }) }, getUserInfo(state){ @@ -64,6 +74,21 @@ const store = new Vuex.Store({ } }) }, + logout(state){ + uni.showModal({ + title: '确认退出登录吗', + success(r) { + if(r.confirm){ + state.userInfo = {} + state.role = false + uni.removeStorageSync('token') + uni.redirectTo({ + url: '/pages/index/index' + }) + } + } + }) + }, }, actions: {}, })