详情获取并反显动态手机号

This commit is contained in:
liyuetong
2021-10-29 15:14:42 +08:00
parent 9236f5e75c
commit 535debe847
2 changed files with 8 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ export function acceptInsurance(data) {
// 签约确认
export function signConfirm(data) {
return request({
url: getUrl('/epay/epay/signConfirm', 1),
url: getUrl('/sale/insure/getSignConfirm', 1),
method: 'post',
data
})

View File

@@ -85,10 +85,10 @@
</div>
<!-- 分享到微信的页面loading -->
<Loading :isLoading="isLoading"></Loading>
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm(authCode)">
<p class="p10 fs14">为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码完成后续投保操作</p>
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm(verfyCode)">
<p class="p10 fs14">您的银行卡账户未进行续期签约为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码完成签约流程~</p>
<van-cell-group class="flex align-items-c pr5 mb15">
<van-field maxlength="6" placeholder="请输入短信验证码" v-model="authCode" clearable label-width="0" />
<van-field maxlength="6" placeholder="请输入短信验证码" v-model="verfyCode" clearable label-width="0" />
</van-cell-group>
</van-dialog>
</div>
@@ -102,6 +102,7 @@ export default {
data() {
let isWeixin = this.$utils.device().isWeixin //判断环境
return {
encyCustomerMobile:'',//投保人手机号
show:false, //验证码弹框
rdSeq:'',
verfyCode:'', //验证码
@@ -293,7 +294,6 @@ export default {
},
// 再次支付
twounderWrite() {
let _this = this
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
console.log(res)
if (res.result == '0') {
@@ -322,6 +322,8 @@ export default {
}else{
this.$CacheUtils.setLocItem('isLongInsuranceFlag', "N");
}
let mobile = res.orderDTO.appntDTO.mobile
this.encyCustomerMobile = mobile.slice(0, 3) + '****' + mobile.slice(-4)
} else {
let underWriteData = {
accountName: '',
@@ -472,7 +474,7 @@ export default {
this.rdSeq = checkRes.rdSeq
}else if (checkRes.signConfirmType == '3'){
Dialog.alert({
message: '亲,银行已发送短信至手机号188*****56884,按照短信提示完成短信回复签约,再次通过金掌桂完成后续流程。',
message: '亲,银行已发送短信至手机号'+ this.encyCustomerMobile +',按照短信提示完成短信回复签约,再次通过金掌桂完成后续流程。',
confirmButtonColor: '#ff5e50',
}).then(() => {})
}else{