diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index bf1d678a4..e955cff01 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -23,8 +23,8 @@ name="证件类型" right-icon="arrow" placeholder="请选择" - @click="toSelect('2')" /> + - +

被保人信息

+ 证件扫描
+ +

被保人信息

+ + + + + + + + + + + + + + + +

受益人信息

- +

产品信息

- + + + 本人已仔细阅读并了解《投保须知》《投保声明》和《保险条款》等内容,自愿为被保险人投保本保险。
+ 为未成年子女投保的人身保险,在被保险人成年之前,因被保险人身故给付的保险金总和不得超过国务院保险监督管理机构规定的限额,身故给付的保险金额总和的约定也不得超过前述限额。但航空意外死亡保险金额及重大自然灾害意外死亡保险金额不计算在上述规定限额之中。
@@ -173,7 +230,7 @@ >总保费:{{ allPrice }}元 - + @@ -241,6 +298,7 @@ export default { data() { return { now: new Date(), + insuredSex: '男', isScan: false, //是否显示证件扫描组件 allPrice: 0, result: [], @@ -283,16 +341,16 @@ export default { bnfType: '0', // 受益人类型 bnfSelec: '请选择', birthday: '', //投保人出生日期 - relationToInsured: '', + relationToInsured: '1', idType: '1', //证件类型 idNo: '', //证件号码 - homeProvince: '1', //家庭省 - homeCity: '1', //家庭市 - homeArea: '1', //家庭区 - homeAddress: '1', //详细地址 + // homeProvince: '1', //家庭省 + // homeCity: '1', //家庭市 + // homeArea: '1', //家庭区 + // homeAddress: '1', //详细地址 mobile: '', //移动电话 - email: '123@qq.com', //电子邮箱 - effectiveDate: '' //指定生效日期 + // email: '123@qq.com', //电子邮箱 + // effectiveDate: '' //指定生效日期 }, //被保人信息 insuredInfo: { @@ -599,8 +657,10 @@ export default { this.userInfo.name = customerName //用户名 this.userInfo.sex = customerSex ? customerSex.toString() : '0' //性别 this.userInfo.birthday = data.birthday //出生日期 - this.userInfo.idType = data.customerIdType //证件类型 - this.userInfo.idNo = data.customerIdNumber //证件类别 + if( data.customerIdType == 1 ){ + this.userInfo.idType = data.customerIdType //证件类型 + this.userInfo.idNo = data.customerIdNumber //证件类别 + } // this.userInfo.email = data.email //证件类别 this.userInfo.mobile = data.customerPhone //移动电话 @@ -622,9 +682,10 @@ export default { this.insuredInfo.sex = customerSex ? customerSex.toString() : '0' //性别 this.insuredInfo.birthday = data.birthday //出生日期 - this.insuredInfo.idType = data.customerIdType //证件类型 - this.insuredInfo.idNo = data.customerIdNumber //证件类别 - + if( data.customerIdType == 1 ){ + this.insuredInfo.idType = data.customerIdType //证件类型 + this.insuredInfo.idNo = data.customerIdNumber //证件类别 + } // 计算年龄 // let age = utilsAge.getAge(this.userInfo.birthday, new Date()) @@ -641,7 +702,9 @@ export default { // console.log(this.userInfo.otherSalarySource) //表单校验, 成功跳转 - // if() + if(this.userInfo.relationToInsured == 1){ + Object.assign(this.insuredInfo , this.userInfo) + } this.$validator.validate().then(valid => { @@ -719,16 +782,18 @@ export default { return this.$toast('证件有效期不正常,26周岁至45周岁公民身份证有效期应小于等于20年') } } - //证件类型是户口本 - } else if (this.userInfo.idType == '2') { - if (age > 16) { - return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件') - } - } else if (this.userInfo.idType == '3') { - if (age >= 2) { - return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件') - } } + //证件类型是户口本 + // else + // if (this.userInfo.idType == '2') { + // if (age > 16) { + // return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件') + // } + // } else if (this.userInfo.idType == '3') { + // if (age >= 2) { + // return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件') + // } + // } // else if (this.userInfo.idType == '4' && this.userInfo.idNo.length < 3) { // console.log('证件类型是护照') // return this.$toast('护照须大于等于3个字符') @@ -990,14 +1055,14 @@ export default { } } }, - beforeDestroy() { - //清理计时器 - console.log('123') - window.clearInterval(this.timeId) - this.timeId = null - this.countDown = 60 - this.codeDisabled = false - }, + // beforeDestroy() { + // //清理计时器 + // console.log('123') + // window.clearInterval(this.timeId) + // this.timeId = null + // this.countDown = 60 + // this.codeDisabled = false + // }, watch: { 'userInfo.relationToInsured': { handler(newV, oldV) { @@ -1008,7 +1073,7 @@ export default { }, immediate: true, deep: true - } + }, } } @@ -1016,6 +1081,10 @@ export default { .insured-info-container { /deep/.van-checkbox { margin-left: auto; + align-items: normal; + .van-checkbox__icon{ + margin-top: 5px; + } } /deep/.van-radio { margin-left: auto;