From 42eb67f47a66ea547b8b34d63d95ecd21ee01100 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Thu, 9 Apr 2020 15:53:15 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90=20?= =?UTF-8?q?=E4=BF=9D=E5=85=A8-=E8=81=94=E7=B3=BB=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=20=E7=9A=84=20=E9=99=A4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BC=A0=E8=BE=93=20=E7=9A=84=E5=85=A8=E9=83=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E3=80=90=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=EF=BC=9A=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3=E6=9C=AA=E7=A1=AE?= =?UTF-8?q?=E5=AE=9A=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/preserve.js | 10 + src/views/ebiz/preserve/ContacAgreement.vue | 86 +++-- .../ebiz/preserve/ContactConfirmation.vue | 327 ++++++------------ src/views/ebiz/preserve/ContactInfo.vue | 52 +-- src/views/ebiz/preserve/HandleResult.vue | 165 +++------ 5 files changed, 248 insertions(+), 392 deletions(-) diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 904e25f3b..35babc828 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -7,6 +7,7 @@ const policyList = () => import('@/views/ebiz/preserve/PolicyList') const renewalInfo = () => import('@/views/ebiz/preserve/RenewalInfo') const renewalConfirmation = () => import('@/views/ebiz/preserve/RenewalConfirmation') const contactInfo = () => import('@/views/ebiz/preserve/ContactInfo') +const contacAgreement = () => import('@/views/ebiz/preserve/ContacAgreement') const contactConfirmation = () => import('@/views/ebiz/preserve/ContactConfirmation') const beneficiaryInfo = () => import('@/views/ebiz/preserve/BeneficiaryInfo') const beneficiaryConfirmation = () => import('@/views/ebiz/preserve/BeneficiaryConfirmation') @@ -41,6 +42,15 @@ export default [ index: 3 } }, + { + path: '/preserve/contacAgreement', + name: 'contacAgreement', + component: contacAgreement, + meta: { + title: '联系方式变更协议', + index: 100 + } + }, { path: '/preserve/renewalInfo', name: 'renewalInfo', diff --git a/src/views/ebiz/preserve/ContacAgreement.vue b/src/views/ebiz/preserve/ContacAgreement.vue index dcb606bbf..175b9d3e9 100644 --- a/src/views/ebiz/preserve/ContacAgreement.vue +++ b/src/views/ebiz/preserve/ContacAgreement.vue @@ -1,16 +1,16 @@ @@ -20,12 +20,6 @@ import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant' export default { data() { return { - // 投保人还是被保险人信息 - signVal: '', - // 被保险人签名信息 - insuredSign: {}, - // 投保人签名信息 - appntSign: {}, radio: '', // 倒计时时间 number: '', @@ -38,19 +32,8 @@ export default { Time: true, // 按钮是否可以点击 isDisable: true, - // sign加密码 - base64: '', - // 是否可以点击 - isDisabledComplite: true, - // local带来的被保险人信息 - saleInsuredPersonInfo: {}, - // local带来的投保人信息 - saleInsuredInfo: {}, - // 是否从详情跳过来 如果为1 是 - detailJump: '', pdfUrl: '', - src: location.origin + '/pdfjs/web/viewer.html?file=', - tipsPolicyUrl: '' + src: location.origin + '/pdfjs/web/viewer.html?file=' } }, components: { @@ -60,11 +43,25 @@ export default { [NoticeBar.name]: NoticeBar }, mounted() {}, - async created() {}, + created() { + this.timeOut() + }, methods: { - timeOut() {}, - // 获取签名状态 - getOrderDetail() {}, + timeOut() { + let time = this.time + this.Time = false + this.number = `${time}` + let timer = setInterval(() => { + time-- + if (time <= 0) { + time = 0 + clearInterval(timer) + this.Time = true + this.isOver = true + } + this.number = `${time}` + }, 1000) + }, // 点击阅读时 click() { if (this.isOver == false) { @@ -77,21 +74,38 @@ export default { }) } }, - // 点击签名 - sign() {}, - toAirSign() {}, // 下一步 - goNext() {} + goNext() { + let path = '/preserve/ContactConfirmation?read=true' + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#' + path + }, + routerInfo: { + path: path + } + }) + } }, - computed: {}, - watch: {} + computed: { + listenChange() { + const { isOver, radio } = this + return { isOver, radio } + } + }, + watch: { + listenChange(val) { + if (val.isOver == true && val.radio !== '') { + this.isDisable = false + } else { + this.isDisable = true + } + } + } } diff --git a/src/views/ebiz/preserve/ContactConfirmation.vue b/src/views/ebiz/preserve/ContactConfirmation.vue index ead844eec..317b16107 100644 --- a/src/views/ebiz/preserve/ContactConfirmation.vue +++ b/src/views/ebiz/preserve/ContactConfirmation.vue @@ -1,10 +1,10 @@ @@ -87,8 +81,8 @@ diff --git a/src/views/ebiz/preserve/ContactInfo.vue b/src/views/ebiz/preserve/ContactInfo.vue index 5ad58da15..7ee2a58ae 100644 --- a/src/views/ebiz/preserve/ContactInfo.vue +++ b/src/views/ebiz/preserve/ContactInfo.vue @@ -80,14 +80,14 @@ export default { customerName: '客户姓名', idType: '证件类型', idNo: '证件号码', - customerMobile: '客户手机号', - customerEmail: '客户邮箱', - province: '', - city: '', - area: '', + customerMobile: '13702012402', + customerEmail: '', + province: '110000', + city: '110100', + area: '110101', address: '详细地址', - homeZip: '邮编', - homePhone: '固定电话', + homeZip: '489456', + homePhone: '', isNewInfo: '是否变更后信息' } feachData.surrenderDTOList[0].customerInfoDTOList.push(customerInfo) @@ -109,8 +109,8 @@ export default { confirmButtonColor: '#FFFFFF' }) .then(() => { - if (localStorage.customerInfo) { - this.customerInfo = JSON.parse(localStorage.customerInfo) + if (localStorage['preserve-customerInfo']) { + this.customerInfo = JSON.parse(localStorage['preserve-customerInfo']) } //地址 if (this.customerInfo.province && this.customerInfo.city && this.customerInfo.area) { @@ -131,22 +131,24 @@ export default { this.$validator.validate().then(valid => { if (true == valid) { edorChange(this.feachData) - .then( res => { - if (res.result == 0) { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/preserve/HandleResult' - }, - routerInfo: '/preserve/HandleResult' - }) - } else { - this.$toast(res.resultMessage) - } - }) - .catch( err => { - console.log(err); - }) + .then(res => { + if (res.result == 0) { + localStorage['preserve-customerInfo-old'] = localStorage['preserve-customerInfo'] + localStorage['preserve-customerInfo'] = JSON.stringify(this.customerInfo) + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/preserve/HandleResult' + }, + routerInfo: '/preserve/HandleResult' + }) + } else { + this.$toast(res.resultMessage) + } + }) + .catch(err => { + console.log(err) + }) } else { this.$toast(this.$validator.errors.all()[0]) return diff --git a/src/views/ebiz/preserve/HandleResult.vue b/src/views/ebiz/preserve/HandleResult.vue index fc1faeb81..08380a17b 100644 --- a/src/views/ebiz/preserve/HandleResult.vue +++ b/src/views/ebiz/preserve/HandleResult.vue @@ -1,28 +1,18 @@