Commit 44a5b608 by zeyang

1.CFFP BUG 解决从非登录页登录,造成的userInfo对象未刷新从而导致的申请加盟中手机号码未默认填入的问题

parent 006f480e
...@@ -127,6 +127,7 @@ ...@@ -127,6 +127,7 @@
// uni.navigateTo({ // uni.navigateTo({
// url:'/pages/orderConfirm/orderConfirm?userId=' + this.userId // url:'/pages/orderConfirm/orderConfirm?userId=' + this.userId
// }) // })
uni.$emit('loginUpdate');
this.closebootpage() this.closebootpage()
}else{ }else{
uni.showToast({ uni.showToast({
......
...@@ -177,8 +177,12 @@ ...@@ -177,8 +177,12 @@
this.init(); this.init();
}, },
onLoad() { onLoad() {
if (uni.getStorageSync('isLogin')) { //如果用户在其他的地方快捷登录,没有返回到首页,执行此监听方法
uni.$on('loginUpdate',()=>{
this.queryAreaCenterInfo(); this.queryAreaCenterInfo();
})
if (uni.getStorageSync('isLogin')) {
this.announcementQuery(); this.announcementQuery();
this.courseList(); this.courseList();
} }
...@@ -192,6 +196,7 @@ ...@@ -192,6 +196,7 @@
}else{ }else{
this.loginornot = true; this.loginornot = true;
} }
this.queryAreaCenterInfo();
} else { } else {
api.loginVerification({ api.loginVerification({
"loginType": 1 "loginType": 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment