submit
This commit is contained in:
parent
b9538f5b28
commit
7dcfc919e2
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export default {
|
||||
config: {
|
||||
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
||||
baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
||||
header: {
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||
|
@ -8,6 +8,13 @@ export const login = (data) => {
|
||||
data,
|
||||
});
|
||||
};
|
||||
export const configFun = (data) => {
|
||||
return http.request({
|
||||
url: "/api/config",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
};
|
||||
// 获取手机号
|
||||
export const getTel = (data) => {
|
||||
return http.request({
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user