反馈修改完成

master
Lee-1203 2022-03-10 17:35:29 +08:00
parent 5566d8b197
commit 79e959984f
2 changed files with 27 additions and 14 deletions

View File

@ -1,19 +1,33 @@
Page({ Page({
data: { data: {
timeNumber: 3 timeNumber: 3,
isInFirst: false
}, },
onShow(){ onShow(){
setTimeout(() => { let inFirst = dd.$toolAll.getCache('isInFirst');
this.setData({ if(!inFirst){
timeNumber:2 setTimeout(() => {
}) this.setData({
}, 1000); timeNumber:2
setTimeout(() => { })
this.setData({ }, 1000);
timeNumber:1 setTimeout(() => {
}) this.setData({
}, 2000); timeNumber:1
setTimeout(() => { })
}, 2000);
setTimeout(() => {
dd.$toolAll.setCache('isInFirst',60000000000000);
if(dd.$toolAll.getCache('userData')){
// 前往首页
dd.redirectTo({url:'/pages/home/home'});
}else{
// 前往登录页
dd.redirectTo({url:'/pages/login/login'});
}
}, 3000);
}else{
if(dd.$toolAll.getCache('userData')){ if(dd.$toolAll.getCache('userData')){
// 前往首页 // 前往首页
dd.redirectTo({url:'/pages/home/home'}); dd.redirectTo({url:'/pages/home/home'});
@ -21,8 +35,7 @@ Page({
// 前往登录页 // 前往登录页
dd.redirectTo({url:'/pages/login/login'}); dd.redirectTo({url:'/pages/login/login'});
} }
}
}, 3000);
}, },
onLoad() { onLoad() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 454 KiB