保全白名单

This commit is contained in:
mengxiaolong
2020-12-17 16:39:23 +08:00
parent 679cefd1ae
commit 8152841e4b

View File

@@ -12,6 +12,9 @@
<!-- 短信验证弹窗 -->
<van-dialog v-model="isCaptchaModalShow" title="提示" show-cancel-button :before-close="onCaptchaConfirm" @cancel="onCaptchaCancel">
<van-cell>
<p class="fs14">为确保是您本人操作短信验证码将发送至您手机号{{ encryptMobile }}请您输入验证码以完成后续操作</p>
</van-cell>
<van-field v-model="code" type="number" :maxlength="6" center clearable label="短信验证码" placeholder="请输入短信验证码">
<template #button>
<van-button size="small" type="danger" :disabled="countDownNum !== 0" @click="getCaptcha">{{
@@ -24,12 +27,16 @@
</template>
<script>
import { Field } from 'vant'
import utilsAge from '@/assets/js/utils/age'
import { getAuthCode, autchCodeCheck } from '@/api/ebiz/sale/sale'
import { getWhitelist } from '@/api/ebiz/whitelist'
export default {
name: 'HandleResult',
components: {
[Field.name]: Field
},
data() {
return {
// 人脸验证次数
@@ -48,6 +55,14 @@ export default {
policy: {}
}
},
computed: {
encryptMobile() {
if (this.customerInfo && this.customerInfo.preferredPhoneNum) {
return this.customerInfo.preferredPhoneNum.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
}
return ''
}
},
created() {
this.entry = this.$route.query.entry
if (localStorage['preserve-customerInfo']) {
@@ -124,7 +139,7 @@ export default {
let data = {
operateType: 'appntInfoEntry',
type: 'H5',
operateCode: this.agentInfo.mobile,
operateCode: this.customerInfo.preferredPhoneNum,
system: 'agentApp',
operateCodeType: '0'
}
@@ -226,8 +241,9 @@ export default {
EWebBridge.webCallAppInJs('face_auth', config)
// 跳过人脸识别
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '0' }))
// })
.then(data => {
if (JSON.parse(data).state == '1') {
this.jumpNextPage(this.path)
@@ -241,6 +257,15 @@ export default {
this.isCaptchaModalShow = true
}
}
},
filters: {
countDownText(val) {
if (isNaN(parseFloat(val))) {
return val
} else {
return `${val} s`
}
}
}
}
</script>