反馈修改完成

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,8 +1,11 @@
Page({
data: {
timeNumber: 3
timeNumber: 3,
isInFirst: false
},
onShow(){
let inFirst = dd.$toolAll.getCache('isInFirst');
if(!inFirst){
setTimeout(() => {
this.setData({
timeNumber:2
@ -14,6 +17,7 @@ Page({
})
}, 2000);
setTimeout(() => {
dd.$toolAll.setCache('isInFirst',60000000000000);
if(dd.$toolAll.getCache('userData')){
// 前往首页
dd.redirectTo({url:'/pages/home/home'});
@ -23,6 +27,15 @@ Page({
}
}, 3000);
}else{
if(dd.$toolAll.getCache('userData')){
// 前往首页
dd.redirectTo({url:'/pages/home/home'});
}else{
// 前往登录页
dd.redirectTo({url:'/pages/login/login'});
}
}
},
onLoad() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 454 KiB