|
@ -94,23 +94,24 @@ const store = new Vuex.Store({ |
|
|
state.pic = res.result.pic |
|
|
state.pic = res.result.pic |
|
|
|
|
|
|
|
|
// 如果什么身份都没有,就去注册
|
|
|
// 如果什么身份都没有,就去注册
|
|
|
if(!state.shopData && !state.buy && |
|
|
|
|
|
![ |
|
|
|
|
|
'/pages_order/auth/selectionIdentity', |
|
|
|
|
|
'/pages_order/auth/registerShop', |
|
|
|
|
|
].includes(this.$route.path)){ |
|
|
|
|
|
uni.reLaunch({ |
|
|
|
|
|
url: '/pages_order/auth/selectionIdentity?back=no&' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if(!state.shopData && !state.buy &&
|
|
|
|
|
|
// ![
|
|
|
|
|
|
// '/pages_order/auth/selectionIdentity',
|
|
|
|
|
|
// '/pages_order/auth/registerShop',
|
|
|
|
|
|
// ].includes(this.$route.path)){
|
|
|
|
|
|
// uni.reLaunch({
|
|
|
|
|
|
// url: '/pages_order/auth/selectionIdentity?back=no&'
|
|
|
|
|
|
// })
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
// 没有供应商身份
|
|
|
// 没有供应商身份
|
|
|
if(!state.shopData){ |
|
|
if(!state.shopData){ |
|
|
state.shop = false |
|
|
state.shop = false |
|
|
// 没有采购商身份
|
|
|
// 没有采购商身份
|
|
|
}else if(!state.buy){ |
|
|
|
|
|
state.shop = true |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
// else if(!state.buy){
|
|
|
|
|
|
// state.shop = true
|
|
|
|
|
|
// }
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|