Compare commits
2 Commits
1255ce8aa5
...
9e0a5d2512
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e0a5d2512 | ||
|
|
589092ec62 |
42
App.vue
42
App.vue
@ -79,27 +79,27 @@
|
||||
}
|
||||
})
|
||||
|
||||
setTimeout(function(){
|
||||
console.log("执行 setTimeout")
|
||||
if(!checkTokenCallBackFlag){
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
showCancel: false,
|
||||
content: '您已退出登录',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.sendNativeEvent('goTabbarPage', {
|
||||
msg: 'home'
|
||||
}, ret => {
|
||||
console.log(ret);
|
||||
})
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 1000)
|
||||
// setTimeout(function(){
|
||||
// console.log("执行 setTimeout")
|
||||
// if(!checkTokenCallBackFlag){
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
// showCancel: false,
|
||||
// content: '您已退出登录',
|
||||
// success: function (res) {
|
||||
// if (res.confirm) {
|
||||
// uni.sendNativeEvent('goTabbarPage', {
|
||||
// msg: 'home'
|
||||
// }, ret => {
|
||||
// console.log(ret);
|
||||
// })
|
||||
// } else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }, 1000)
|
||||
|
||||
uni.onNativeEventReceive((event, data) => {
|
||||
console.log("event", event);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user