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

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) { export function signConfirm(data) {
return request({ return request({
url: getUrl('/epay/epay/signConfirm', 1), url: getUrl('/sale/insure/getSignConfirm', 1),
method: 'post', method: 'post',
data data
}) })

View File

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