|
@@ -10,9 +10,9 @@
|
|
|
<cover-image v-show="faceImgData" :src="faceImgData" class="image" ></cover-image>
|
|
<cover-image v-show="faceImgData" :src="faceImgData" class="image" ></cover-image>
|
|
|
</cover-view>
|
|
</cover-view>
|
|
|
|
|
|
|
|
- <view class="reload">
|
|
|
|
|
|
|
+ <view class="reload" @click="refresh">
|
|
|
<text>{{type == 1 ? '识别中' : type == 2 ? this.nameTwo : '重新识别'}}
|
|
<text>{{type == 1 ? '识别中' : type == 2 ? this.nameTwo : '重新识别'}}
|
|
|
- <u-icon class="ic" name="reload" color="#8C8C8C" size="40rpx" @click="refresh"></u-icon>
|
|
|
|
|
|
|
+ <u-icon class="ic" name="reload" color="#8C8C8C" size="40rpx"></u-icon>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -182,9 +182,13 @@
|
|
|
if (!this.faceData && !this.image) {
|
|
if (!this.faceData && !this.image) {
|
|
|
_this.closeCamera()
|
|
_this.closeCamera()
|
|
|
_this.show = false
|
|
_this.show = false
|
|
|
- clearInterval(_this.intervalTakeImg)
|
|
|
|
|
- _this.intervalTakeImg = null
|
|
|
|
|
- _this.$emit('timeOutLogin')
|
|
|
|
|
|
|
+ _this.type = 3
|
|
|
|
|
+ if(this.intervalTakeImg) {
|
|
|
|
|
+ clearInterval(_this.intervalTakeImg)
|
|
|
|
|
+ _this.intervalTakeImg = null
|
|
|
|
|
+ _this.$emit('timeOutLogin')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
// this.noLogin()
|
|
// this.noLogin()
|
|
|
}, 15000)
|
|
}, 15000)
|
|
@@ -309,11 +313,20 @@
|
|
|
this.type = 2
|
|
this.type = 2
|
|
|
this.name = res.data[0].name
|
|
this.name = res.data[0].name
|
|
|
this.getBasics()
|
|
this.getBasics()
|
|
|
|
|
+ this.closeCamera()
|
|
|
|
|
+ if(this.intervalTakeImg){
|
|
|
|
|
+ this.show = false
|
|
|
|
|
+ clearInterval(this.intervalTakeImg)
|
|
|
|
|
+ this.intervalTakeImg = null
|
|
|
|
|
+ }
|
|
|
|
|
+ // clearInterval(this.intervalTakeImg)
|
|
|
return
|
|
return
|
|
|
}else{
|
|
}else{
|
|
|
// this.toAdd(res.data[0].name)
|
|
// this.toAdd(res.data[0].name)
|
|
|
console.log('w')
|
|
console.log('w')
|
|
|
this.type = 3
|
|
this.type = 3
|
|
|
|
|
+ this.closeCamera()
|
|
|
|
|
+
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -356,6 +369,10 @@
|
|
|
|
|
|
|
|
// 刷新人脸
|
|
// 刷新人脸
|
|
|
refresh() {
|
|
refresh() {
|
|
|
|
|
+ if(this.type == 1){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.faceImgData = null
|
|
this.faceImgData = null
|
|
|
this.type = 1
|
|
this.type = 1
|
|
|
this.callCamera()
|
|
this.callCamera()
|