[IMP] 修复保全的 代码格式

This commit is contained in:
tian.guangyuan
2020-04-15 13:14:15 +08:00
parent 36cf165351
commit d73de89000
5 changed files with 47 additions and 81 deletions

View File

@@ -57,7 +57,7 @@
</van-button> </van-button>
</van-cell-group> </van-cell-group>
</van-dialog> </van-dialog>
<van-button type="danger" class="bottom-btn" @click="nextStep">提交申请</van-button> <van-button type="danger" class="bottom-btn" @click="nextStep">提交申请</van-button>
</div> </div>
</template> </template>
@@ -86,22 +86,22 @@ export default {
}, },
data() { data() {
let feachData = { let feachData = {
surrenderDTOList: [ surrenderDTOList: [
{ {
surrenderId: '', surrenderId: '',
edorapplyNo: '', edorapplyNo: '',
surrenderType: '2', surrenderType: '2',
bnfDTOs: [] bnfDTOs: []
} }
] ]
} }
return { return {
show: false, // 获取短信验证码 show: false, // 获取短信验证码
codeDisabled: false, // 获取验证码按钮是否禁用 codeDisabled: false, // 获取验证码按钮是否禁用
timeId: null, // 计时器ID timeId: null, // 计时器ID
countDown: 60, // 倒计时 countDown: 60, // 倒计时
authCode: '', // 验证码 authCode: '', // 验证码
feachData:feachData, feachData: feachData,
type: '', type: '',
isDisType: false, isDisType: false,
policy: null, policy: null,
@@ -123,7 +123,7 @@ export default {
nextStep() { nextStep() {
this.showAuth() this.showAuth()
}, },
detail(index){ detail(index) {
// edit=0 // edit=0
let path = '/preserve/BeneficiaryInfoDetail?edit=' + index let path = '/preserve/BeneficiaryInfoDetail?edit=' + index
this.$jump({ this.$jump({

View File

@@ -61,17 +61,17 @@ export default {
}, },
data() { data() {
let feachData = { let feachData = {
surrenderDTOList: [ surrenderDTOList: [
{ {
surrenderId: '', surrenderId: '',
edorapplyNo: '', edorapplyNo: '',
surrenderType: '2', surrenderType: '2',
bnfDTOs: [] bnfDTOs: []
} }
] ]
} }
return { return {
feachData:feachData, feachData: feachData,
type: '', type: '',
isDisType: false, isDisType: false,
policy: null, policy: null,

View File

@@ -131,24 +131,8 @@
v-validate="'required'" v-validate="'required'"
@click="chooseArea" @click="chooseArea"
/> />
<van-field <van-field v-model="userInfo.village" label="" name="详细地址" placeholder="请输入详细地址" v-validate="'required'" clearable maxlength="30" />
v-model="userInfo.village" <van-field v-model="userInfo.email" required label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
label=""
name="详细地址"
placeholder="请输入详细地址"
v-validate="'required'"
clearable
maxlength="30"
/>
<van-field
v-model="userInfo.email"
required
label="电子邮箱"
name="电子邮箱"
placeholder="请输入"
v-validate="'required|email'"
clearable
/>
<occupation-picker <occupation-picker
:value.sync="userInfo.occupationCode" :value.sync="userInfo.occupationCode"
:chooseName.sync="userInfo.occupationName" :chooseName.sync="userInfo.occupationName"
@@ -526,10 +510,10 @@ export default {
if (ratio > 100) { if (ratio > 100) {
return this.$toast('受益份额有误,请重新输入~') return this.$toast('受益份额有误,请重新输入~')
} }
if(!this.$route.query.edit){ if (!this.$route.query.edit) {
this.bnfDTOs.push(this.userInfo) this.bnfDTOs.push(this.userInfo)
}else{ } else {
this.bnfDTOs[this.editIndex] = this.userInfo this.bnfDTOs[this.editIndex] = this.userInfo
} }
this.policy.bnfDTOs = this.bnfDTOs this.policy.bnfDTOs = this.bnfDTOs

View File

@@ -69,7 +69,7 @@
readonly readonly
></FieldDatePicter> ></FieldDatePicter>
<div class="border-bt relative fs14 p10 flex align-center"> <div class="border-bt relative fs14 p10 flex align-center">
<van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="true">长期</van-checkbox> <van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="true">长期</van-checkbox>
</div> </div>
<select-radio :radios="sexRadio" disabled required label="性别" :value.sync="userInfo.sex"></select-radio> <select-radio :radios="sexRadio" disabled required label="性别" :value.sync="userInfo.sex"></select-radio>
<van-field <van-field
@@ -127,26 +127,8 @@
v-validate="'required'" v-validate="'required'"
@click="chooseArea" @click="chooseArea"
/> />
<van-field <van-field v-model="userInfo.village" label="" readonly name="详细地址" placeholder="请输入详细地址" v-validate="'required'" clearable maxlength="30" />
v-model="userInfo.village" <van-field v-model="userInfo.email" required readonly label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
label=""
readonly
name="详细地址"
placeholder="请输入详细地址"
v-validate="'required'"
clearable
maxlength="30"
/>
<van-field
v-model="userInfo.email"
required
readonly
label="电子邮箱"
name="电子邮箱"
placeholder="请输入"
v-validate="'required|email'"
clearable
/>
<occupation-picker <occupation-picker
:value.sync="userInfo.occupationCode" :value.sync="userInfo.occupationCode"
:chooseName.sync="userInfo.occupationName" :chooseName.sync="userInfo.occupationName"
@@ -292,7 +274,7 @@ export default {
let day = date.getDate() let day = date.getDate()
day = day.toString().padStart(2, '0') day = day.toString().padStart(2, '0')
return `${year}-${month}-${day}` return `${year}-${month}-${day}`
}, }
} }
} }
</script> </script>

View File

@@ -56,9 +56,9 @@ export default {
if (this.entry != 'beneficiary') { if (this.entry != 'beneficiary') {
// 如果 保全项不是 受益人变更、则 在证件类型为身份证时 直接接入人脸识别 // 如果 保全项不是 受益人变更、则 在证件类型为身份证时 直接接入人脸识别
// if (this.customerInfo.idType != '1') { // if (this.customerInfo.idType != '1') {
// 如果证件类型不是身份证 // 如果证件类型不是身份证
// 直接跳过人脸识别 // 直接跳过人脸识别
this.jumpNextPage(this.path) this.jumpNextPage(this.path)
// } else { // } else {
// this.toFace({ // this.toFace({
// number: this.customerInfo.idNo, //身份证号码 // number: this.customerInfo.idNo, //身份证号码
@@ -70,13 +70,13 @@ export default {
// 若被保险人≥18周岁人脸识别录入被保人本人 // 若被保险人≥18周岁人脸识别录入被保人本人
// 若被保险人18周岁被保险人与投保人为子女关系人脸识别录入未成年人父亲或母亲 // 若被保险人18周岁被保险人与投保人为子女关系人脸识别录入未成年人父亲或母亲
// toDo // toDo
// //
// if (this.customerInfo.idType != '1' ) { // if (this.customerInfo.idType != '1' ) {
// // 如果证件类型不是身份证 // // 如果证件类型不是身份证
// // 直接跳过人脸识别 // // 直接跳过人脸识别
// this.jumpNextPage(this.path) // this.jumpNextPage(this.path)
// } // }
// //
this.jumpNextPage(this.path) this.jumpNextPage(this.path)
} }
}, },
@@ -93,8 +93,8 @@ export default {
}, },
toFace(config) { toFace(config) {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('face_auth', config ) EWebBridge.webCallAppInJs('face_auth', config)
// { // {
// number: this.customerInfo.idNo, //身份证号码 // number: this.customerInfo.idNo, //身份证号码
// name: this.customerInfo.name //姓名 // name: this.customerInfo.name //姓名
// }) // })
@@ -102,15 +102,15 @@ export default {
// new Promise(resolve => { // new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功') // console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' })) // resolve(JSON.stringify({ state: '1' }))
// }) // })
.then(data => { .then(data => {
if (JSON.parse(data).state == '1') { if (JSON.parse(data).state == '1') {
this.jumpNextPage(this.path) this.jumpNextPage(this.path)
} else { } else {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败') EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
} }
}) })
} }
} }
// beforeRouteLeave(to, from, next) { // beforeRouteLeave(to, from, next) {