Commit 5573c9cc authored by renjie's avatar renjie

扫脸倒计时

parent 0e66b8d5
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<text class="tip">获取照片需先在拍摄点摄影</text> <text class="tip">获取照片需先在拍摄点摄影</text>
<u-mask :show="maskShow" @click="maskShow = false"> <u-mask :show="maskShow" @click="maskShow = false">
<view class="mask"> <view class="mask">
<text class="countdown" v-if="maskCount">{{maskCount}}s</text> <text class="countdown" v-if="maskCount >= 0">{{maskCount}}s</text>
<view class="tip"> <view class="tip">
<view>未找到您的照片</view> <view>未找到您的照片</view>
<view class="small">请在拍摄点拍摄后重试</view> <view class="small">请在拍摄点拍摄后重试</view>
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
this.maskShow = true this.maskShow = true
var loop = setInterval(() => { var loop = setInterval(() => {
this.maskCount -= 1 this.maskCount -= 1
if(this.maskCount <= -1) { if(this.maskCount <= 0) {
// this.maskShow = false // this.maskShow = false
this.src = '' this.src = ''
clearInterval(loop) clearInterval(loop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment