反馈修改完成
parent
5566d8b197
commit
79e959984f
|
@ -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() {
|
||||
|
||||
|
|
BIN
static/start.jpg
BIN
static/start.jpg
Binary file not shown.
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 454 KiB |
Loading…
Reference in New Issue