|
@ -144,9 +144,20 @@ export default { |
|
|
...mapGetters(['userShop']), |
|
|
...mapGetters(['userShop']), |
|
|
}, |
|
|
}, |
|
|
onShow(){ |
|
|
onShow(){ |
|
|
console.log(this.userShop,"this.userShop") |
|
|
|
|
|
|
|
|
this.checkLogin() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
checkLogin(){ |
|
|
|
|
|
if(!uni.getStorageSync('token')){ |
|
|
|
|
|
console.log("先登录") |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:'/pages_order/auth/loginAndRegisterAndForgetPassword' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// this.$store.commit('login') |
|
|
|
|
|
// this.$refs.popup.open(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
goToPage(titleIndex) { |
|
|
goToPage(titleIndex) { |
|
|
uni.navigateTo({url:'/pages_order/order/offerOrBillLading?titleIndex='+titleIndex}) |
|
|
uni.navigateTo({url:'/pages_order/order/offerOrBillLading?titleIndex='+titleIndex}) |
|
|
}, |
|
|
}, |
|
|