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

'1.6问题修复'

parent fd107659
This diff is collapsed.
...@@ -167,13 +167,17 @@ ...@@ -167,13 +167,17 @@
</tab-button> </tab-button>
<tab-button class="approve" @click.native="isConfirm">确定</tab-button> <tab-button class="approve" @click.native="isConfirm">确定</tab-button>
</bottom-tab> </bottom-tab>
<!--活体检测-->
<body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id"/>
</h-view> </h-view>
</template> </template>
<script> <script>
import Tab from '@/pages/carConfirm/tab' import Tab from '@/pages/carConfirm/tab'
import bodyCheck from './body-check'
export default { export default {
components: { components: {
Tab, Tab,
bodyCheck,
}, },
filters: { filters: {
lengthCheck: function (value) { lengthCheck: function (value) {
...@@ -371,13 +375,14 @@ export default { ...@@ -371,13 +375,14 @@ export default {
}) })
}, },
goBodyCheck (confirm_id) { // 活体检测 goBodyCheck (confirm_id) { // 活体检测
this.$router.push({ this.$refs.body.show()
/*this.$router.push({
name: 'BodyCheck', name: 'BodyCheck',
params: { params: {
check_id: this.$route.params.check_id, check_id: this.$route.params.check_id,
confirm_id: confirm_id, confirm_id: confirm_id,
}, },
}) })*/
}, },
// 图片保存 // 图片保存
save_picture (list) { save_picture (list) {
......
...@@ -199,6 +199,18 @@ export default { ...@@ -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 { } else {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
......
...@@ -199,6 +199,18 @@ export default { ...@@ -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 { } else {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
......
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
}, },
}) })
} else { } else {
this.hlsPopup.showLongCenter('请先保存') this.hlsPopup.showLongCenter('电子签认证出错')
} }
}, },
async getNpCertificationUrl () { async getNpCertificationUrl () {
...@@ -251,9 +251,12 @@ export default { ...@@ -251,9 +251,12 @@ export default {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.info.code === 0) { if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl vm.authUrl = res.info.data.authUrl
return vm.authUrl return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else { } else {
hlsPopup.showError(res.info.msg) hlsPopup.showError(res.info.msg)
return '' return ''
......
...@@ -312,6 +312,9 @@ export default { ...@@ -312,6 +312,9 @@ export default {
}, },
}) })
} }
else {
this.hlsPopup.showLongCenter('电子签认证出错')
}
}, },
// 获取个人认证url // 获取个人认证url
async getNpCertificationUrl () { async getNpCertificationUrl () {
...@@ -323,9 +326,12 @@ export default { ...@@ -323,9 +326,12 @@ export default {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.info.code === 0) { if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl vm.authUrl = res.info.data.authUrl
return vm.authUrl return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else { } else {
hlsPopup.showError(res.info.msg) hlsPopup.showError(res.info.msg)
//vm.errorMsg = res.info.msg //vm.errorMsg = res.info.msg
...@@ -342,9 +348,12 @@ export default { ...@@ -342,9 +348,12 @@ export default {
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param) let res = await vm.$post(url, param)
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.info.code === 0) { if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm.authUrl = res.info.data.authUrl vm.authUrl = res.info.data.authUrl
return vm.authUrl return vm.authUrl
} else if((res.info.code === 0) && (res.info.data.openId)){
vm.authUrl = res.info.data.openId
return vm.authUrl
} else { } else {
hlsPopup.showError(res.info.msg) hlsPopup.showError(res.info.msg)
return '' 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