|
@@ -196,7 +196,7 @@ export default {
|
|
|
...mapActions(['setUserShopAll']),
|
|
...mapActions(['setUserShopAll']),
|
|
|
|
|
|
|
|
loginFun(mobile,password){
|
|
loginFun(mobile,password){
|
|
|
-
|
|
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
//有几个地方涉及登陆,需要统一方法,请搜索关键词 uni_login
|
|
//有几个地方涉及登陆,需要统一方法,请搜索关键词 uni_login
|
|
|
appLogin({mobile,password}).then(subRes=>{
|
|
appLogin({mobile,password}).then(subRes=>{
|
|
|
|
|
|
|
@@ -228,6 +228,7 @@ export default {
|
|
|
// #endif
|
|
// #endif
|
|
|
this.setUserShopAll()
|
|
this.setUserShopAll()
|
|
|
this.init()
|
|
this.init()
|
|
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -236,9 +237,16 @@ export default {
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({title:"确定关闭?",content:'关闭后可以在底部菜单【我的】,找到【使用手册】重新打开'},() => {
|
|
that.$util.confirmModal({title:"确定关闭?",content:'关闭后可以在底部菜单【我的】,找到【使用手册】重新打开'},() => {
|
|
|
closeBook().then((res) => {
|
|
closeBook().then((res) => {
|
|
|
- //这个切换得更彻底
|
|
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
that.$store.commit("setLoginInfo", {})
|
|
that.$store.commit("setLoginInfo", {})
|
|
|
that.$util.pageTo({url: "/admin/home/workbench",type: 3})
|
|
that.$util.pageTo({url: "/admin/home/workbench",type: 3})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ this.$store.commit("setLoginInfo", {})
|
|
|
|
|
+ this.$store.commit("setDictionariesInfo", {})
|
|
|
|
|
+ this.$store.commit("setMyShopInfo", {})
|
|
|
|
|
+ plus.runtime.restart()
|
|
|
|
|
+ // #endif
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|