mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 08:06:44 +08:00
[fix] 卡单开发, 临时保存
This commit is contained in:
@@ -183,6 +183,16 @@ export default {
|
||||
payStatus: '' // 接口返回的支付状态
|
||||
}
|
||||
},
|
||||
created() {
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||
})
|
||||
}, 100)
|
||||
window.appCallBack = this.appCallBack
|
||||
},
|
||||
mounted() {
|
||||
// console.log('trialList', this.trialList[0].prem)
|
||||
// this.underWrite.orderAmount = this.trialList[0].prem
|
||||
@@ -204,6 +214,35 @@ export default {
|
||||
// console.log('--自核结果--支付信息:', JSON.stringify(this.underWriteData))
|
||||
},
|
||||
methods: {
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'left_button_click') {
|
||||
return this.$dialog
|
||||
.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '是否确认退出?',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF'
|
||||
})
|
||||
.then(() => {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
title: '产品列表',
|
||||
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||
url: location.origin + `/#/cardList/CardTotreasure`
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/cardList/CardTotreasure`,
|
||||
type: '1'
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
}
|
||||
},
|
||||
//获取银行卡扫描信息
|
||||
getBankCardInfo(data) {
|
||||
this.underWriteData.bankCode = data.name
|
||||
|
||||
@@ -14,20 +14,6 @@
|
||||
@nameChange="nameChange"
|
||||
@on-click="selectClick('1', '0')"
|
||||
></customer-picker>
|
||||
<select-radio required :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :value.sync="userInfo.sex"></select-radio>
|
||||
<FieldDatePicter
|
||||
v-validate="'required'"
|
||||
label="出生日期"
|
||||
name="出生日期"
|
||||
required
|
||||
:value.sync="userInfo.birthday"
|
||||
type="date"
|
||||
:flag="true"
|
||||
@confirm="onDateConfirm($event, '2')"
|
||||
ref="birthday"
|
||||
:maxDate="maxDate"
|
||||
>
|
||||
</FieldDatePicter>
|
||||
<van-field
|
||||
:value="userInfo.idType | idToText('insuredIdType')"
|
||||
v-validate="'required'"
|
||||
@@ -53,6 +39,20 @@
|
||||
>
|
||||
<van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>
|
||||
</van-field>
|
||||
<select-radio required :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :value.sync="userInfo.sex"></select-radio>
|
||||
<FieldDatePicter
|
||||
v-validate="'required'"
|
||||
label="出生日期"
|
||||
name="出生日期"
|
||||
required
|
||||
:value.sync="userInfo.birthday"
|
||||
type="date"
|
||||
:flag="true"
|
||||
@confirm="onDateConfirm($event, '2')"
|
||||
ref="birthday"
|
||||
:maxDate="maxDate"
|
||||
>
|
||||
</FieldDatePicter>
|
||||
<van-field
|
||||
required
|
||||
v-model="userInfo.mobile"
|
||||
@@ -63,8 +63,9 @@
|
||||
v-validate="'required|mobile'"
|
||||
maxlength="11"
|
||||
/>
|
||||
<van-field v-model="userInfo.email" required label="邮箱" name="邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
|
||||
<!-- <van-field v-model="userInfo.workcompany" required label="工作单位" name="工作单位" placeholder="请输入" v-validate="'required'" maxlength="50" clearable /> -->
|
||||
<!-- <template v-if="false">
|
||||
<van-field v-model="userInfo.email" required label="邮箱" name="邮箱" placeholder="请输入" v-validate="'required|email'" clearable />
|
||||
<van-field
|
||||
v-model="homeName"
|
||||
readonly
|
||||
@@ -77,6 +78,7 @@
|
||||
@click="homeShow = true"
|
||||
/>
|
||||
<van-field v-model="userInfo.homeAddress" label name="详细地址" placeholder="请输入详细地址" v-validate="'required'" clearable maxlength="30" />
|
||||
</template> -->
|
||||
<van-field
|
||||
:value="userInfo.relationToInsured | idToText('relationToAppnt')"
|
||||
readonly
|
||||
@@ -214,7 +216,7 @@ import { idToData } from './js/verification'
|
||||
import { selectComp } from './js/methods'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0,4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
Vue.use(GoodsAction)
|
||||
.use(GoodsActionIcon)
|
||||
@@ -284,12 +286,12 @@ export default {
|
||||
relationToInsured: '',
|
||||
idType: '1', //证件类型
|
||||
idNo: '', //证件号码
|
||||
homeProvince: '', //家庭省
|
||||
homeCity: '', //家庭市
|
||||
homeArea: '', //家庭区
|
||||
homeAddress: '', //详细地址
|
||||
homeProvince: '1', //家庭省
|
||||
homeCity: '1', //家庭市
|
||||
homeArea: '1', //家庭区
|
||||
homeAddress: '1', //详细地址
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
email: '123@qq.com', //电子邮箱
|
||||
effectiveDate: '' //指定生效日期
|
||||
},
|
||||
//被保人信息
|
||||
@@ -462,10 +464,6 @@ export default {
|
||||
this.userInfo.salarySource = value.id
|
||||
} else if (this.pickerType == '9') {
|
||||
this.userInfo.relationToInsured = value.id
|
||||
// 如果关系为本人,将投保人信息带入到被保人信息上
|
||||
if(this.userInfo.relationToInsured == 1){
|
||||
Object.assign(this.insuredInfo , this.userInfo)
|
||||
}
|
||||
} else if (this.pickerType == '11') {
|
||||
this.insuredInfo.idType = value.id
|
||||
}
|
||||
@@ -603,16 +601,16 @@ export default {
|
||||
this.userInfo.birthday = data.birthday //出生日期
|
||||
this.userInfo.idType = data.customerIdType //证件类型
|
||||
this.userInfo.idNo = data.customerIdNumber //证件类别
|
||||
this.userInfo.email = data.email //证件类别
|
||||
// this.userInfo.email = data.email //证件类别
|
||||
|
||||
this.userInfo.mobile = data.customerPhone //移动电话
|
||||
this.userInfo.homeProvince = data.homeProvince //家庭省
|
||||
this.userInfo.homeCity = data.homeCity //家庭市
|
||||
this.userInfo.homeArea = data.homeArea //家庭区
|
||||
if (data.homeProvince && data.homeCity && data.homeArea) {
|
||||
this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址
|
||||
}
|
||||
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
|
||||
// this.userInfo.homeProvince = data.homeProvince //家庭省
|
||||
// this.userInfo.homeCity = data.homeCity //家庭市
|
||||
// this.userInfo.homeArea = data.homeArea //家庭区
|
||||
// if (data.homeProvince && data.homeCity && data.homeArea) {
|
||||
// this.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址
|
||||
// }
|
||||
// this.userInfo.homeAddress = data.homeAddress //家庭详细地址
|
||||
|
||||
// 计算年龄
|
||||
// let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
@@ -999,19 +997,19 @@ export default {
|
||||
this.timeId = null
|
||||
this.countDown = 60
|
||||
this.codeDisabled = false
|
||||
},
|
||||
watch: {
|
||||
'userInfo.relationToInsured': {
|
||||
handler(newV, oldV) {
|
||||
// 如果关系为本人,将投保人信息带入到被保人信息上
|
||||
if(newV == 1){
|
||||
Object.assign(this.insuredInfo , this.userInfo)
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
// watch: {
|
||||
// 'userInfo.idNo': {
|
||||
// handler(newName, oldName) {
|
||||
// // console.log('obj.a changed');
|
||||
// if(newName != oldName) {
|
||||
// this.getRelatedData(this.userInfo.idNo)
|
||||
// }
|
||||
// },
|
||||
// immediate: true,
|
||||
// deep: true
|
||||
// }
|
||||
// }
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user