瀏覽代碼

添加扫描倒计时

dev
corala 3 年之前
父節點
當前提交
f4574f93b9
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. +2
    -4
      pages/AR/index.js

+ 2
- 4
pages/AR/index.js 查看文件

@@ -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({


Loading…
取消
儲存