bug修改zzy1
This commit is contained in:
parent
d91c04af2b
commit
b18e7ae687
|
|
@ -719,7 +719,11 @@ export default {
|
|||
godataView(item) {
|
||||
console.log(item)
|
||||
if (item.data_title == '在建工程') {
|
||||
uni.navigateTo({ url: '/pages/realName/index/pages/project' })
|
||||
let name = '在建';let currentIndex = 1;
|
||||
const survey = {
|
||||
name,currentIndex
|
||||
}
|
||||
uni.navigateTo({ url: `/pages/realName/index/pages/project?survey=${JSON.stringify(survey)}` })
|
||||
}
|
||||
if (item.data_title == '在用分包单位') {
|
||||
uni.navigateTo({ url: '/pages/realName/index/pages/subList' })
|
||||
|
|
|
|||
|
|
@ -22,6 +22,18 @@
|
|||
<view>人脸识别</view>
|
||||
<view style="margin-left: 40rpx;" class="btn" @click="distinguish">点击人脸识别</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.name">
|
||||
<view>姓名</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.name}}</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.idNumber">
|
||||
<view>身份证</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.idNumber}}</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.age">
|
||||
<view>年龄</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.age}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="img-view" style="margin-bottom: 40rpx;">
|
||||
|
|
@ -239,6 +251,11 @@ export default {
|
|||
this.entryContractBean.idNumber = this.faceData.idNumber;
|
||||
this.entryContractBean.proId = this.faceData.proId;
|
||||
this.proName = this.faceData.proName;
|
||||
let birthday = new Date(this.faceData.birthday).getTime();
|
||||
let now = new Date().getTime();
|
||||
let hours = (now-birthday)/3600000;
|
||||
let year = Math.floor(hours / (24 * 30 * 12));
|
||||
this.faceData.age = year
|
||||
uni.$u.toast('人脸认证成功!');
|
||||
}else{
|
||||
uni.$u.toast('识别失败');
|
||||
|
|
|
|||
|
|
@ -22,6 +22,18 @@
|
|||
<view>人脸识别</view>
|
||||
<view style="margin-left: 40rpx;" class="btn" @click="distinguish">点击人脸识别</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.name">
|
||||
<view>姓名</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.name}}</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.idNumber">
|
||||
<view>身份证</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.idNumber}}</view>
|
||||
</view>
|
||||
<view class="view-item" v-if="faceData.age">
|
||||
<view>年龄</view>
|
||||
<view style="margin-left: 40rpx;width: 70%;">{{faceData.age}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="img-view" style="margin-bottom: 60rpx;">
|
||||
|
|
@ -130,6 +142,11 @@ export default {
|
|||
this.entryBankBean.idNumber = this.faceData.idNumber;
|
||||
this.entryBankBean.proId = this.faceData.proId;
|
||||
this.proName = this.faceData.proName;
|
||||
let birthday = new Date(this.faceData.birthday).getTime();
|
||||
let now = new Date().getTime();
|
||||
let hours = (now-birthday)/3600000;
|
||||
let year = Math.floor(hours / (24 * 30 * 12));
|
||||
this.faceData.age = year
|
||||
uni.$u.toast('人脸认证成功!');
|
||||
}else{
|
||||
uni.$u.toast('识别失败');
|
||||
|
|
|
|||
Loading…
Reference in New Issue