@@ -47,9 +47,12 @@ Page({
showCancel: false,
success (scanres) {
if (scanres.confirm) {
- that.setData({
- scanFlag: true
- })
+ var stimer = setTimeout(() => {
+ that.setData({
+ scanFlag: true
+ })
+ clearTimeout(stimer)
+ }, 400);
}
})
@@ -104,10 +107,11 @@ Page({
confirmText: '重新扫描',
success (res) {
if (res.confirm) {
- setTimeout(() => {
+ var timer = setTimeout(() => {
that.setData({
scanFlag: true
+ clearTimeout(timer)
}, 400);
@@ -148,10 +148,11 @@ Page({