This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
corala
/
biguiyuan
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
添加扫描倒计时
dev
corala
3 years ago
parent
224d1ac04a
commit
f4574f93b9
1 changed files
with
2 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-4
pages/AR/index.js
+ 2
- 4
pages/AR/index.js
View File
@@ -70,10 +70,10 @@ Page({
var t = 10;
var timer = setInterval(function(){
t--;
if(t
==3
){
if(t
<4
){
wx.showToast({
icon: 'none',
title: '扫描
次数过多
',
title: '扫描
时间过长,请退出后重新扫描!
',
})
}
if(t<0){
@@ -82,9 +82,7 @@ Page({
delta: 1,
})
}
console.log(t)
}, 1000)
},
showLoading(text) {
this.setData({
Write
Preview
Loading…
Cancel
Save