Commit ba6c7788 by yuzhenWang

修复未登录有消息bug

parent 3d2022e7
...@@ -115,7 +115,6 @@ ...@@ -115,7 +115,6 @@
} }
this.loginType='visitor' this.loginType='visitor'
this.initForm() this.initForm()
uni.removeTabBarBadge({ index: 3 });
// 获取跳转来源(通过路由参数) // 获取跳转来源(通过路由参数)
const pages = getCurrentPages(); const pages = getCurrentPages();
const currentPage = pages[pages.length - 1]; const currentPage = pages[pages.length - 1];
......
...@@ -228,6 +228,8 @@ ...@@ -228,6 +228,8 @@
} }
if(loginType == 'codelogin'){ if(loginType == 'codelogin'){
this.querySystemMessage() this.querySystemMessage()
}else {
uni.removeTabBarBadge({ index: 3 });
} }
this.queryAreaCenterInfo(); this.queryAreaCenterInfo();
} else { } else {
......
...@@ -246,6 +246,8 @@ ...@@ -246,6 +246,8 @@
if(this.loginType == 'codelogin'){ if(this.loginType == 'codelogin'){
this.querySystemMessage() this.querySystemMessage()
this.queryInfo(); this.queryInfo();
}else {
this.msgTotal = 0
} }
uni.$on("handClick", res => { uni.$on("handClick", res => {
this.customerBasicInfo = res.data this.customerBasicInfo = res.data
......
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