实名认证0.6
This commit is contained in:
parent
af9d199509
commit
328757fa42
|
|
@ -8,10 +8,7 @@ export function putRealName(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/realName/realName',
|
url: '/app/realName/realName',
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
data: {
|
data,
|
||||||
userName: data.realName,
|
|
||||||
idCard: data.idCard,
|
|
||||||
},
|
|
||||||
|
|
||||||
header: {
|
header: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,13 @@ export default {
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.https = decodeURIComponent(option.https)
|
this.https = decodeURIComponent(option.https)
|
||||||
console.log(option)
|
console.log('http:' + option.https)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleGetMessage: function (e) {
|
handleGetMessage: function (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
if (e.detail.data[0].result == 'success') {
|
console.log('正在人脸识别中')
|
||||||
|
if (e.detail.data[0].result === 'success') {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<custom-nav-bar :fill="false" :show-back="true" background-color="transparent" title="" />
|
<custom-nav-bar :fill="false" :show-back="true" background-color="transparent" title="" />
|
||||||
<image class="bj" mode="" src="https://api.ccttiot.com/image-1757389708427.png"></image>
|
<image class="bj" mode="" src="https://api.ccttiot.com/image-1757389708427.png"></image>
|
||||||
<view v-if="isReal === false" class="sfxx">
|
<view v-if="isReal !== true" class="sfxx">
|
||||||
<view class="tit"> 请输入您的有效身份信息</view>
|
<view class="tit"> 请输入您的有效身份信息</view>
|
||||||
<view class="name"> 姓名 <input v-model="name" placeholder="请填写姓名" type="text" /></view>
|
<view class="name"> 姓名 <input v-model="name" placeholder="请填写姓名" type="text" /></view>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
您当前已完成实名认证
|
您当前已完成实名认证
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="isReal === false" class="anniu" @click="btnshiming">
|
<view v-if="isReal !== true" class="anniu" @click="btnshiming">
|
||||||
<!-- <text>进入人脸识别</text> -->
|
<!-- <text>进入人脸识别</text> -->
|
||||||
<text>提交</text>
|
<text>提交</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -101,10 +101,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 自定义返回
|
|
||||||
btnfh() {
|
|
||||||
uni.navigateBack()
|
|
||||||
},
|
|
||||||
// 点击进行实名认证
|
// 点击进行实名认证
|
||||||
btnshiming() {
|
btnshiming() {
|
||||||
if (this.smflag === true) {
|
if (this.smflag === true) {
|
||||||
|
|
@ -113,13 +110,13 @@ export default {
|
||||||
userName: this.name,
|
userName: this.name,
|
||||||
idCard: this.zfzh,
|
idCard: this.zfzh,
|
||||||
}
|
}
|
||||||
|
console.log('<UNK>', data)
|
||||||
putRealName(data).then(res => {
|
putRealName(data).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// page_user/facialRecognition/facialRecognition
|
|
||||||
let https = encodeURIComponent(res.data.jumpUrl)
|
let https = encodeURIComponent(res.data.jumpUrl)
|
||||||
this.backData = true
|
this.backData = true
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: ' page_user/facialRecognition/facialRecognition?https=' + https,
|
url: '/page_user/facialRecognition/facialRecognition?https=' + https,
|
||||||
})
|
})
|
||||||
} else if (res.code === 500 && res.msg === null) {
|
} else if (res.code === 500 && res.msg === null) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user