调整创建订单,实名认证,签约
This commit is contained in:
@@ -99,8 +99,14 @@
|
||||
mask : true
|
||||
})
|
||||
identityOcr().then(res => {
|
||||
this.frontCard.showpath = res.front_card
|
||||
this.backCard.showpath = res.back_card
|
||||
this.frontCard = {
|
||||
showpath: res.front_card,
|
||||
path : res.front_card_path
|
||||
}
|
||||
this.backCard = {
|
||||
showpath: res.back_card,
|
||||
path : res.back_card_path
|
||||
}
|
||||
this.realData = res;
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
@@ -116,24 +122,26 @@
|
||||
uni.showLoading({
|
||||
title: '提交中信息...',
|
||||
mask : true
|
||||
})
|
||||
})
|
||||
certification({
|
||||
front_card: this.frontCard.path,
|
||||
back_card : this.backCard.path,
|
||||
redirect_url: 'http://web.douhuofalv.com/app/e-sign?sign_type=personal',
|
||||
app_scheme: 'doufire://'
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
let certificationData = res;
|
||||
this.isPathChange = false
|
||||
this.realData = certificationData.certification
|
||||
this.signUrl = certificationData.sign.authShortUrl
|
||||
wx.showModal({
|
||||
title : '提示',
|
||||
content : '您的身份信息已上传,请完成人脸识别以确认您是本人',
|
||||
showCancel : false,
|
||||
success : () => {
|
||||
this.isPathChange = false
|
||||
this.realData = certificationData.certification
|
||||
this.signUrl = certificationData.sign.authShortUrl
|
||||
this.getSignUrl()
|
||||
content : '您的身份信息已上传,请尽快完成人脸识别以确认您是本人',
|
||||
cancelText : '稍后认证',
|
||||
confirmText : '立即认证',
|
||||
success : ModalRes => {
|
||||
if(ModalRes.confirm){
|
||||
this.getSignUrl()
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(err => {
|
||||
@@ -148,7 +156,13 @@
|
||||
getSignUrl(){
|
||||
if(this.signUrl != ''){
|
||||
this.isRefresh = true
|
||||
plus.runtime.openURL(this.signUrl)
|
||||
this.$Router.push({
|
||||
name: 'ESign',
|
||||
params: {
|
||||
url: this.signUrl
|
||||
}
|
||||
})
|
||||
// plus.runtime.openURL(this.signUrl)
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
@@ -160,7 +174,13 @@
|
||||
app_scheme: 'doufire://'
|
||||
}).then(res => {
|
||||
this.isRefresh = true
|
||||
plus.runtime.openURL(res.authShortUrl)
|
||||
this.$Router.push({
|
||||
name: 'ESign',
|
||||
params: {
|
||||
url: res.authShortUrl
|
||||
}
|
||||
})
|
||||
// plus.runtime.openURL(res.authShortUrl)
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
@@ -191,7 +211,7 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user