|
|
@@ -29,8 +29,15 @@ export default {
|
|
|
}
|
|
|
uni.setStorageSync('currentQuery', JSON.stringify(option))
|
|
|
|
|
|
- wxLoginFn(true)
|
|
|
- .then(res => {
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ if (isLogin()) {
|
|
|
+ if (this.init) {
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ wxLoginFn(true).then(res => {
|
|
|
//客户可以访问的地址
|
|
|
var urlArr = ['admin/shopAdmin/bind', 'pagesClient/official', 'pagesClient/member/bind', 'pagesShare/pay','pagesPurchase/ghsProduct'];
|
|
|
var redirectPage = res.redirectPage;
|
|
|
@@ -59,6 +66,7 @@ export default {
|
|
|
this.init()
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll'])
|