|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="face">
|
|
|
|
|
<view v-if="needPersonSecret" class="face">
|
|
|
|
|
<view class="faceTitle">人脸识别</view>
|
|
|
|
|
<view class="recognition" @click="camera" v-if="!video">
|
|
|
|
|
<view style="color: #fff;margin-right:10rpx">前往认证</view>
|
|
|
|
@ -90,9 +90,11 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import http from "@/http/api";
|
|
|
|
|
import {configFun} from "../../http/login";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
needPersonSecret:false,
|
|
|
|
|
name: "",
|
|
|
|
|
num: "",
|
|
|
|
|
checked: [],
|
|
|
|
@ -104,14 +106,13 @@ export default {
|
|
|
|
|
// show:false
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
// onLoad(options) {
|
|
|
|
|
// console.log(this.isFddSuccess)
|
|
|
|
|
// if (this.isFddSuccess) {
|
|
|
|
|
// this.nextTick(() => {
|
|
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
async onLoad() {
|
|
|
|
|
const res= await configFun()
|
|
|
|
|
if (res.code===200){
|
|
|
|
|
this.needPersonSecret=res.data.needPersonSecret
|
|
|
|
|
}
|
|
|
|
|
console.log(res.data.needPersonSecret,'res.data.needPersonSecret')
|
|
|
|
|
},
|
|
|
|
|
async onShow() {
|
|
|
|
|
this.checkFdd()
|
|
|
|
|
if (uni.getStorageSync('tempVideoPath')) {
|
|
|
|
@ -163,16 +164,14 @@ export default {
|
|
|
|
|
realIDImgA: this.fileList[0]?.url,
|
|
|
|
|
realIDImgB: this.fileList2[0]?.url
|
|
|
|
|
})
|
|
|
|
|
this.checkFdd().then((res) => {
|
|
|
|
|
if (!res) return this.$common.msgToast("法大大验证未通过")
|
|
|
|
|
})
|
|
|
|
|
const res1=await this.checkFdd()
|
|
|
|
|
if (!res1) return this.$common.msgToast("法大大验证未通过")
|
|
|
|
|
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
|
|
|
|
if (!this.name) return this.$common.msgToast("请输入姓名");
|
|
|
|
|
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
|
|
|
|
if (!this.fileList.length) return this.$common.msgToast("请上传身份证人面像");
|
|
|
|
|
if (!this.fileList2.length) return this.$common.msgToast("请上传身份国徽面");
|
|
|
|
|
if (!this.video) return this.$common.msgToast("请上传人脸识别视频");
|
|
|
|
|
|
|
|
|
|
if (this.needPersonSecret&&!this.video) return this.$common.msgToast("请上传人脸识别视频");
|
|
|
|
|
const res = await this.$api.login.register({
|
|
|
|
|
user: {
|
|
|
|
|
telNum: uni.getStorageSync("telNum"),
|
|
|
|
@ -461,4 +460,4 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|