|
@@ -210,7 +210,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- token: uni.getStorageSync("token"),
|
|
|
|
|
shopInfo: {}, // 商铺信息
|
|
shopInfo: {}, // 商铺信息
|
|
|
isShiMing: true, //未实名提示弹窗
|
|
isShiMing: true, //未实名提示弹窗
|
|
|
userinfo: {}, // 获取用户信息
|
|
userinfo: {}, // 获取用户信息
|
|
@@ -227,7 +226,8 @@ export default {
|
|
|
this.closeAuto(); //关闭实名功能
|
|
this.closeAuto(); //关闭实名功能
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- if (!this.token) this.login()
|
|
|
|
|
|
|
+ let token = uni.getStorageSync("token");
|
|
|
|
|
+ if (!token) this.login()
|
|
|
else {
|
|
else {
|
|
|
this.getuserInfo();
|
|
this.getuserInfo();
|
|
|
this.getchayou(); //获取茶友
|
|
this.getchayou(); //获取茶友
|