Merge pull request 'gdpaoup' (#157) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/157
This commit was merged in pull request #157.
This commit is contained in:
@@ -47,24 +47,30 @@ const install = (Vue, vm) => {
|
||||
// 假设201为token失效,这里跳转登录
|
||||
// vm.$u.toast('您还没有登录哦,请先去登录!');
|
||||
if (res.data.data.action != "memberinfo") {
|
||||
uni.showModal({
|
||||
title: "温馨提示",
|
||||
content: "您还未登录,请立即登录",
|
||||
cancelText: "以后再说",
|
||||
confirmText: "立即登录",
|
||||
confirmColor: "#FF780F",
|
||||
success(res) {
|
||||
// console.log(res);
|
||||
if (res.confirm) {
|
||||
setTimeout(() => {
|
||||
// 此为uView的方法,详见路由相关文档
|
||||
vm.$u.route('/pageA/login/login')
|
||||
}, 500)
|
||||
}
|
||||
if (res.cancel) {
|
||||
}
|
||||
}
|
||||
})
|
||||
setTimeout(() => {
|
||||
// 此为uView的方法,详见路由相关文档
|
||||
uni.navigateTo({
|
||||
url: "/pageA/login/login",
|
||||
})
|
||||
}, 1000)
|
||||
// uni.showModal({
|
||||
// title: "温馨提示",
|
||||
// content: "您还未登录,请立即登录",
|
||||
// cancelText: "以后再说",
|
||||
// confirmText: "立即登录",
|
||||
// confirmColor: "#FF780F",
|
||||
// success(res) {
|
||||
// // console.log(res);
|
||||
// if (res.confirm) {
|
||||
// setTimeout(() => {
|
||||
// // 此为uView的方法,详见路由相关文档
|
||||
// vm.$u.route('/pageA/login/login')
|
||||
// }, 500)
|
||||
// }
|
||||
// if (res.cancel) {
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
}
|
||||
return false;
|
||||
} else if (res.errCode == 1) {
|
||||
|
||||
Reference in New Issue
Block a user