消除单页面模式异常
This commit is contained in:
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
onLaunch() {
|
onLaunch() {
|
||||||
if (!wx.getUpdateManager) return
|
if (uni.getUpdateManager) {
|
||||||
const updateManager = wx.getUpdateManager()
|
const updateManager = uni.getUpdateManager()
|
||||||
|
if (updateManager) {
|
||||||
updateManager.onUpdateReady(() => {
|
updateManager.onUpdateReady(() => {
|
||||||
this.$dialog.alert({
|
this.$dialog.alert({
|
||||||
title: '更新提示',
|
title: '更新提示',
|
||||||
@@ -13,6 +14,8 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -40,7 +40,10 @@ export const user = {
|
|||||||
reject(res);
|
reject(res);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: () => resolve(dispatch("getCode", ++count))
|
fail: err => {
|
||||||
|
console.error(err)
|
||||||
|
resolve(dispatch("getCode", ++count))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -97,23 +100,23 @@ export const user = {
|
|||||||
uni.navigateTo({url: modulePath});
|
uni.navigateTo({url: modulePath});
|
||||||
} else if (checkType == 4) {
|
} else if (checkType == 4) {
|
||||||
if (!token) {
|
if (!token) {
|
||||||
return dispatch('autoLogin', { loginWay: 'qujing' }).then(() => dispatch('authCheck', { checkType, modulePath }));
|
return dispatch('autoLogin', {loginWay: 'qujing'}).then(() => dispatch('authCheck', {checkType, modulePath}));
|
||||||
}
|
}
|
||||||
if (!userInfo.areaId) {
|
if (!userInfo.areaId) {
|
||||||
return uni.showModal({
|
return uni.showModal({
|
||||||
title: '温馨提示',
|
title: '温馨提示',
|
||||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
confirmText: '去认证',
|
confirmText: '去认证',
|
||||||
success: (res)=> {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.reLaunch({ url: `/pages/AppMine/userInfo?isFromTabbar=1&path=/pages/AppHome/AppHome` })
|
uni.reLaunch({url: `/pages/AppMine/userInfo?isFromTabbar=1&path=/pages/AppHome/AppHome`})
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
// 停留
|
// 停留
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
uni.navigateTo({ url: modulePath });
|
uni.navigateTo({url: modulePath});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user