From 73dfd21fceb12cfaf6b8d3399ba65d06d444c3ab Mon Sep 17 00:00:00 2001 From: pangxingyue <120277894@qq.com> Date: Fri, 5 Mar 2021 18:04:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E6=8A=95=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/AccountInformation.vue | 14 +++-- src/views/ebiz/sale/InsuredInfo.vue | 62 +++------------------- 2 files changed, 16 insertions(+), 60 deletions(-) diff --git a/src/views/ebiz/sale/AccountInformation.vue b/src/views/ebiz/sale/AccountInformation.vue index ab714a1f1..33726c95d 100644 --- a/src/views/ebiz/sale/AccountInformation.vue +++ b/src/views/ebiz/sale/AccountInformation.vue @@ -41,15 +41,17 @@ + maxlength="11" readonly /> - {{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }} + 已获取验证码 +
@@ -196,7 +198,8 @@ export default { isAreaListShow: false, accBankProvince: '', accBankCity: '', - areaStr: '' + areaStr: '', + orderInfoDTO: '' } }, methods: { @@ -572,6 +575,9 @@ export default { } } } + if (this.orderInfoDTO.validateCustomerFlag !== '0') { + data.orderDTO.smsCodeDTO = { smsId: this.sessionId, code: this.authCode } + } saveInformation(data).then(res => { if (res.result == '0') { window.localStorage.setItem('accountInformationRadio', this.radio) @@ -639,7 +645,7 @@ export default { if (res.result == 0) { this.appntDTO = res.orderDTO.appntDTO - + this.orderInfoDTO = res.orderDTO.orderInfoDTO //如果是从编辑进来的 if (this.$route.query.edit) { //投被保险人关系 diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index e94dfe551..2d1350f82 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -122,12 +122,7 @@ placeholder="请输入" v-validate="'required|mobileLength11|mobileStartWith1|mobile'" maxlength="11" - /> - - - {{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }} - - + /> = 60) { @@ -1341,37 +1327,7 @@ export default { // this.userInfo.addressStatus = 0 // } // }, - //获取验证码 - getCode() { - if (this.userInfo.mobile == '') { - return this.$toast('请填写移动电话') - } - this.codeDisabled = true - //倒计时 - this.timeId = setInterval(() => { - this.countDown-- - if (this.countDown <= 0) { - window.clearInterval(this.timeId) - this.codeDisabled = false - this.countDown = 60 - } - }, 1000) - let data = { - operateType: 'appntInfoEntry', - type: 'H5', - operateCode: this.userInfo.mobile, - system: 'agentApp', - operateCodeType: '0' - } - //获取验证码 - getAuthCode(data).then(res => { - if (res.result == 0) { - this.sessionId = res.sessionId - } else { - this.$toast(res.resultMessage) - } - }) - }, + //长期状态改变时 effectiveDataTypeChange(val) { //勾选长期状态时,证件截止日期置空 @@ -1463,13 +1419,7 @@ export default { } } }, - beforeDestroy() { - //清理计时器 - window.clearInterval(this.timeId) - this.timeId = null - this.countDown = 60 - this.codeDisabled = false - } + }