This commit is contained in:
Gdpao
2020-08-11 22:15:58 +08:00
parent 20259ddf00
commit ef79718190
11 changed files with 376 additions and 134 deletions

View File

@@ -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) {