Commit a4657e29 authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/policy_fix' into 'master'

fix: 华贵relation修改;#MANGO-31;#MANGO-26;#MANGO-40;#MANGO-35

See merge request !50
parents 2367455e 536740ed
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 华贵大麦2020定期寿险 * @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-19 11:20:24 * @LastEditTime: 2020-08-19 14:07:08
*/ */
import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png";
...@@ -81,8 +81,8 @@ export default { ...@@ -81,8 +81,8 @@ export default {
], ],
insuredOptions: [ insuredOptions: [
{ label: "本人", value: "1" }, { label: "本人", value: "1" },
{ label: "配偶", value: "2" }, { label: "父母", value: "2" },
{ label: "父母", value: "3" }, { label: "配偶", value: "3" },
{ label: "子女", value: "4" } { label: "子女", value: "4" }
], ],
medicalOptions: [ medicalOptions: [
......
<template> <template>
<div class="picker-wrap"> <div class="picker-wrap">
<div <div class="picker-wrap-txt" @click="show = true">
class="picker-wrap-txt" <input type="text" disabled :value="pickerValShow" :placeholder="placeholder" />
:class="{ placeholder: !String(pickerValShow) }" <!-- <span>{{ pickerValShow || placeholder }}</span> -->
@click="show = true"
>
<span>{{ pickerValShow || placeholder }}</span>
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" position="bottom" get-container="body"> <cr-popup v-model="show" position="bottom" get-container="body">
...@@ -85,8 +82,11 @@ export default { ...@@ -85,8 +82,11 @@ export default {
height: 16px; height: 16px;
width: 16px; width: 16px;
} }
.placeholder { input {
color: #ccc; width: 90%;
&:disabled {
background-color: transparent;
}
} }
} }
</style> </style>
<template> <template>
<div class="jobs-wrap"> <div class="jobs-wrap">
<div class="jobs-wrap-txt" :class="{ placeholder: !selectedTexts[2] }" @click="show = true"> <div class="jobs-wrap-txt" @click="show = true">
<span>{{ selectedTexts[2] || placeholder }}</span> <input type="text" disabled :value="selectedTexts[2]" :placeholder="placeholder" />
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" get-container="body" round closeable position="bottom" class="jobs"> <cr-popup v-model="show" get-container="body" round closeable position="bottom" class="jobs">
...@@ -285,6 +285,12 @@ export default { ...@@ -285,6 +285,12 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
input {
width: 90%;
&:disabled {
background-color: transparent;
}
}
} }
} }
&-head { &-head {
...@@ -353,7 +359,4 @@ export default { ...@@ -353,7 +359,4 @@ export default {
} }
} }
} }
.placeholder {
color: #ccc;
}
</style> </style>
<template> <template>
<div class="picker-wrap"> <div class="picker-wrap">
<div <div class="picker-wrap-txt" @click="show = true">
class="picker-wrap-txt" <input type="text" disabled :value="pickerValShow" :placeholder="placeholder" />
:class="{ placeholder: !String(pickerValShow) }"
@click="show = true"
>
<span>{{ pickerValShow || placeholder }}</span>
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" position="bottom" class="aaaa"> <cr-popup v-model="show" position="bottom" get-container="body">
<cr-date-picker <cr-date-picker
ref="datepicker" ref="datepicker"
:before="before" :before="before"
...@@ -90,12 +86,15 @@ export default { ...@@ -90,12 +86,15 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
input {
width: 90%;
&:disabled {
background-color: transparent;
}
}
.svg-icon { .svg-icon {
height: 16px; height: 16px;
width: 16px; width: 16px;
} }
.placeholder {
color: #ccc;
}
} }
</style> </style>
<template> <template>
<div class="picker-wrap"> <div class="picker-wrap">
<div <div class="picker-wrap-txt" @click="show = true">
class="picker-wrap-txt" <input type="text" disabled :value="pickerValShow" :placeholder="placeholder" />
:class="{ placeholder: !String(pickerValShow) }"
@click="show = true"
>
<span>{{ pickerValShow || placeholder }}</span>
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" position="bottom" get-container="body"> <cr-popup v-model="show" position="bottom" get-container="body">
...@@ -52,12 +48,15 @@ export default { ...@@ -52,12 +48,15 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
input {
width: 90%;
&:disabled {
background-color: transparent;
}
}
.svg-icon { .svg-icon {
height: 16px; height: 16px;
width: 16px; width: 16px;
} }
.placeholder {
color: #ccc;
}
} }
</style> </style>
...@@ -228,9 +228,20 @@ export default { ...@@ -228,9 +228,20 @@ export default {
}, },
onFailed(errorInfo) { onFailed(errorInfo) {
const { errors } = errorInfo; const { errors } = errorInfo;
const noMsgArr = [
"selfName",
"selfIdNo",
"selfPhone",
"selfCode",
"relativeName",
"relativeIdNo"
];
setTimeout(() => { setTimeout(() => {
this.$refs.navTab.showNavBar = false; this.$refs.navTab.showNavBar = false;
}, 0); }, 0);
if (!noMsgArr.includes(errors[0].name)) {
this.$notify({ type: "warning", message: errors[0].message });
}
this.$notify({ type: "warning", message: errors[0].message }); this.$notify({ type: "warning", message: errors[0].message });
}, },
nextStep() { nextStep() {
......
...@@ -234,9 +234,20 @@ export default { ...@@ -234,9 +234,20 @@ export default {
}, },
onFailed(errorInfo) { onFailed(errorInfo) {
const { errors } = errorInfo; const { errors } = errorInfo;
const noMsgArr = [
"selfName",
"selfIdNo",
"selfPhone",
"selfCode",
"relativeName",
"relativeIdNo"
];
setTimeout(() => { setTimeout(() => {
this.$refs.navTab.showNavBar = false; this.$refs.navTab.showNavBar = false;
}, 0); }, 0);
if (!noMsgArr.includes(errors[0].name)) {
this.$notify({ type: "warning", message: errors[0].message });
}
this.$notify({ type: "warning", message: errors[0].message }); this.$notify({ type: "warning", message: errors[0].message });
}, },
nextStep() { nextStep() {
......
...@@ -216,16 +216,27 @@ export default { ...@@ -216,16 +216,27 @@ export default {
}, },
onFailed(errorInfo) { onFailed(errorInfo) {
const { errors } = errorInfo; const { errors } = errorInfo;
const noMsgArr = [
"selfName",
"selfIdNo",
"selfPhone",
"selfCode",
"relativeName",
"relativeIdNo"
];
setTimeout(() => { setTimeout(() => {
this.$refs.navTab.showNavBar = false; this.$refs.navTab.showNavBar = false;
}, 0); }, 0);
this.$notify({ type: "warning", message: errors[0].message }); if (!noMsgArr.includes(errors[0].name)) {
this.$notify({ type: "warning", message: errors[0].message });
}
}, },
nextStep() { nextStep() {
this.generateFormData(); this.generateFormData();
this.generateOrder(); this.generateOrder();
}, },
generateFormData() { generateFormData() {
const subFromData = JSON.parse(JSON.stringify(this.formData));
const { const {
userInfoSecId, userInfoSecId,
name, name,
...@@ -239,7 +250,7 @@ export default { ...@@ -239,7 +250,7 @@ export default {
selfSecId, selfSecId,
payType, payType,
autoRenewPolicy autoRenewPolicy
} = this.formData; } = subFromData;
this.subFromData = { this.subFromData = {
productNo: this.goodId, productNo: this.goodId,
holderUserInfo: { holderUserInfo: {
......
...@@ -70,28 +70,43 @@ ...@@ -70,28 +70,43 @@
label="身份证号" label="身份证号"
:rules="[{ required: true, message: '请输入身份证号' }]" :rules="[{ required: true, message: '请输入身份证号' }]"
/> />
<cr-cell class="insure-form-item_nobg" v-if="radioOptions.medicalOptions"> <cr-field
<template slot="title"> class="insure-form-item_nobg"
<span>有无医保</span> v-if="radioOptions.medicalOptions"
v-model="formData.socialSecurity"
name="socialSecurity"
label="有无医保"
:rules="[{ required: true, message: '请选择医保状态' }]"
>
<template #input>
<svg-icon <svg-icon
icon-class="doubt" icon-class="doubt"
@click.native="question = true" @click.native="question = true"
class-name="Ffr-title-svg" class-name="Ffr-title-svg"
/> />
<cr-radio-btn
name="socialSecurity"
v-model="formData.socialSecurity"
:radio-data="radioOptions.medicalOptions"
/>
</template> </template>
<cr-radio-btn </cr-field>
name="socialSecurity" <cr-field
v-model="formData.socialSecurity" class="insure-form-item_nobg"
:radio-data="radioOptions.medicalOptions" v-if="radioOptions.paywayOptions"
/> v-model="formData.payType"
</cr-cell> name="payType"
<cr-cell title="缴费方式" class="insure-form-item_nobg" v-if="radioOptions.paywayOptions"> label="缴费方式"
<cr-radio-btn :rules="[{ required: true, message: '请选择缴费方式' }]"
name="type" >
v-model="formData.payType" <template #input>
:radio-data="radioOptions.paywayOptions" <cr-radio-btn
/> name="payType"
</cr-cell> v-model="formData.payType"
:radio-data="radioOptions.paywayOptions"
/>
</template>
</cr-field>
</cr-cell-group> </cr-cell-group>
</card> </card>
<Modal <Modal
...@@ -170,6 +185,7 @@ export default { ...@@ -170,6 +185,7 @@ export default {
handler(val) { handler(val) {
this.formData.selfPhone = this.formData.selfPhone =
val.phoneNoMask && val.phoneNoMask !== "点击登录" ? val.phoneNoMask : ""; val.phoneNoMask && val.phoneNoMask !== "点击登录" ? val.phoneNoMask : "";
this.$forceUpdate();
} }
}, },
formData: { formData: {
...@@ -351,7 +367,7 @@ export default { ...@@ -351,7 +367,7 @@ export default {
} }
} }
&-item_nobg { &-item_nobg {
background-color: @white !important; background-color: transparent !important;
padding: 10px 0; padding: 10px 0;
overflow: initial; overflow: initial;
align-items: baseline !important; align-items: baseline !important;
...@@ -370,6 +386,10 @@ export default { ...@@ -370,6 +386,10 @@ export default {
overflow: initial; overflow: initial;
} }
} }
@{deep} .cr-field--control {
display: block;
position: relative;
}
} }
} }
.insured { .insured {
...@@ -384,6 +404,8 @@ export default { ...@@ -384,6 +404,8 @@ export default {
} }
} }
.Ffr-title-svg { .Ffr-title-svg {
margin-left: 5px; position: absolute;
top: 10px;
left: -35px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment