|
@@ -117,8 +117,23 @@ export default {
|
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
|
if (e.detail.errMsg === "getPhoneNumber:ok") {
|
|
if (e.detail.errMsg === "getPhoneNumber:ok") {
|
|
|
wxMobileLogin({ iv: e.detail.iv, encryptedData: e.detail.encryptedData,miniOpenId:currentMiniOpenId }).then(subRes => {
|
|
wxMobileLogin({ iv: e.detail.iv, encryptedData: e.detail.encryptedData,miniOpenId:currentMiniOpenId }).then(subRes => {
|
|
|
- let token = subRes.data.token || ''
|
|
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
|
|
+ if(subRes.data && subRes.data.hasNoOpenId && subRes.data.hasNoOpenId ==1){
|
|
|
|
|
+ that.$util.confirmModal({content:'网络异常,请重新操作'},() => {
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
|
|
+ uni.clearStorage()
|
|
|
|
|
+ that.$store.commit("setLoginInfo", {})
|
|
|
|
|
+ that.$util.pageTo({url: "/admin/home/workbench",type: 3})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ uni.clearStorage()
|
|
|
|
|
+ that.$store.commit("setLoginInfo", {})
|
|
|
|
|
+ plus.runtime.restart()
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ let token = subRes.data.token || ''
|
|
|
if (that.$util.isEmpty(token)) {
|
|
if (that.$util.isEmpty(token)) {
|
|
|
that.$msg('请先注册')
|
|
that.$msg('请先注册')
|
|
|
return false
|
|
return false
|