Commit 2bd354e2 authored by 李晓兵's avatar 李晓兵

'1.6问题修复'

parent fd107659
This diff is collapsed.
......@@ -167,13 +167,17 @@
</tab-button>
<tab-button class="approve" @click.native="isConfirm">确定</tab-button>
</bottom-tab>
<!--活体检测-->
<body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"/>
</h-view>
</template>
<script>
import Tab from '@/pages/carConfirm/tab'
import bodyCheck from './body-check'
export default {
components: {
Tab,
bodyCheck,
},
filters: {
lengthCheck: function (value) {
......@@ -280,7 +284,7 @@ export default {
content: '请自拍一张',
onConfirm: function (index) {
if (index === 1) {
vm.takePhontoOpenCamera()
vm.takePhontoOpenCamera()
} else {
}
......@@ -371,13 +375,14 @@ export default {
})
},
goBodyCheck (confirm_id) { // 活体检测
this.$router.push({
this.$refs.body.show()
/*this.$router.push({
name: 'BodyCheck',
params: {
check_id: this.$route.params.check_id,
confirm_id: confirm_id,
},
})
})*/
},
// 图片保存
save_picture (list) {
......
......@@ -199,6 +199,18 @@ export default {
}
},
})
} else if (res.result.result.code.create !== res.result.result.code.identify) {
hlsPopup.showConfirm({
title: '提示',
content: `检测失败,您可能朗读的语音码有误,是否重新重新尝试?`,
onConfirm: data => {
if (data) {
// 重新尝试
vm.getCode()
} else {
}
},
})
} else {
hlsPopup.showPopup({
title: '提示',
......
......@@ -199,6 +199,18 @@ export default {
}
},
})
} else if (res.result.result.code.create !== res.result.result.code.identify) {
hlsPopup.showConfirm({
title: '提示',
content: `检测失败,您可能朗读的语音码有误,是否重新重新尝试?`,
onConfirm: data => {
if (data) {
// 重新尝试
vm.getCode()
} else {
}
},
})
} else {
hlsPopup.showPopup({
title: '提示',
......
......@@ -239,7 +239,7 @@ export default {
},
})
} else {
this.hlsPopup.showLongCenter('请先保存')
this.hlsPopup.showLongCenter('电子签认证出错')
}
},
async getNpCertificationUrl () {
......@@ -251,9 +251,12 @@ export default {
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
hlsPopup.hideLoading()
if (res.info.code === 0) {
if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl
return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else {
hlsPopup.showError(res.info.msg)
return ''
......
......@@ -312,6 +312,9 @@ export default {
},
})
}
else {
this.hlsPopup.showLongCenter('电子签认证出错')
}
},
// 获取个人认证url
async getNpCertificationUrl () {
......@@ -323,9 +326,12 @@ export default {
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
hlsPopup.hideLoading()
if (res.info.code === 0) {
if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl
return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else {
hlsPopup.showError(res.info.msg)
//vm.errorMsg = res.info.msg
......@@ -342,9 +348,12 @@ export default {
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
hlsPopup.hideLoading()
if (res.info.code === 0) {
if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl
return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else {
hlsPopup.showError(res.info.msg)
return ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment