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