计时器

This commit is contained in:
dong_bo0602 2020-07-03 11:02:04 +08:00
parent d7e913f90d
commit 3a1c600550
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
{ {
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/center/center",
"pages/friendCircle/friendCircle", "pages/friendCircle/friendCircle",
"pages/venue/venue", "pages/venue/venue",
"pages/broadcastList/broadcastList", "pages/broadcastList/broadcastList",
@ -10,7 +11,6 @@
"pages/broadcast/broadcast", "pages/broadcast/broadcast",
"pages/activityDialog/activityDialog", "pages/activityDialog/activityDialog",
"pages/teamDetail/teamDetail", "pages/teamDetail/teamDetail",
"pages/center/center",
"pages/volunteerRegister/volunteerRegister", "pages/volunteerRegister/volunteerRegister",
"pages/volunteer/volunteer", "pages/volunteer/volunteer",
"pages/heritage/heritage", "pages/heritage/heritage",

View File

@ -7,7 +7,7 @@ Page({
randomName: '', randomName: '',
showPhone: true, showPhone: true,
gotCode: false, gotCode: false,
restTime: 120, restTime: 10,
timer: '', timer: '',
indicatorDots: true, indicatorDots: true,
autoplay: true, autoplay: true,
@ -219,10 +219,11 @@ Page({
restTime: 120, restTime: 120,
gotCode: false gotCode: false
}) })
} else {
self.setData({
restTime: cur
})
} }
self.setData({
restTime: cur
})
}, 1000) }, 1000)
} }
}, },