Explorar el Código

添加扫描倒计时

dev
corala hace 3 años
padre
commit
f4574f93b9
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. +2
    -4
      pages/AR/index.js

+ 2
- 4
pages/AR/index.js Ver fichero

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


Cargando…
Cancelar
Guardar