Commit 44a5b608 by zeyang

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

parent 006f480e
......@@ -127,6 +127,7 @@
// uni.navigateTo({
// url:'/pages/orderConfirm/orderConfirm?userId=' + this.userId
// })
uni.$emit('loginUpdate');
this.closebootpage()
}else{
uni.showToast({
......
......@@ -177,8 +177,12 @@
this.init();
},
onLoad() {
if (uni.getStorageSync('isLogin')) {
//如果用户在其他的地方快捷登录,没有返回到首页,执行此监听方法
uni.$on('loginUpdate',()=>{
this.queryAreaCenterInfo();
})
if (uni.getStorageSync('isLogin')) {
this.announcementQuery();
this.courseList();
}
......@@ -192,6 +196,7 @@
}else{
this.loginornot = true;
}
this.queryAreaCenterInfo();
} else {
api.loginVerification({
"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