Compare commits

..

No commits in common. "9e0a5d251205a67095806e4ee671a23faf1c0fb6" and "1255ce8aa54a956cb3dca6d14d07778f8b2b60bc" have entirely different histories.

42
App.vue
View File

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