|
|
|
|
@@ -2,57 +2,57 @@
|
|
|
|
|
<div class="insured-info-container pb50">
|
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
|
<van-cell-group class="mt10">
|
|
|
|
|
<p class="fs15 fwb pl10 pv12" style="border-bottom: 1px solid #ebedf0">推荐人信息</p>
|
|
|
|
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">推荐人信息</p>
|
|
|
|
|
<van-field v-model="recommender.name" label="推荐人姓名" name="推荐人姓名" readonly />
|
|
|
|
|
<van-field :value="getAgentGrade(recommender.agentGrade)" label="推荐人职级" name="推荐人职级" readonly />
|
|
|
|
|
<!-- <van-field v-model="recommender.applyNo" label="推荐人工号" name="推荐人工号" readonly /> -->
|
|
|
|
|
<van-field v-model="recommender.unitName" label="销售机构" name="销售机构" readonly />
|
|
|
|
|
<p class="fs15 fwb pl10 pv12" style="border-bottom: 1px solid #ebedf0">个人信息</p>
|
|
|
|
|
<van-field v-model="userInfo.name" v-validate="'required|name'" clearable label="姓名" name="姓名" placeholder="请输入" />
|
|
|
|
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">个人信息</p>
|
|
|
|
|
<van-field v-model="userInfo.name" label="姓名" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable />
|
|
|
|
|
<van-field
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
:value="userInfo.applGrade | idToText('applGrade')"
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
readonly
|
|
|
|
|
label="职级"
|
|
|
|
|
name="职级"
|
|
|
|
|
placeholder="请选择职级"
|
|
|
|
|
readonly
|
|
|
|
|
right-icon="arrow"
|
|
|
|
|
placeholder="请选择职级"
|
|
|
|
|
@click="toSelect('13')"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<van-field
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
:value="userInfo.idType | idToText('idType')"
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
readonly
|
|
|
|
|
label="证件类型"
|
|
|
|
|
name="证件类型"
|
|
|
|
|
placeholder="请选择证件类型"
|
|
|
|
|
readonly
|
|
|
|
|
right-icon="arrow"
|
|
|
|
|
placeholder="请选择证件类型"
|
|
|
|
|
@click="toSelect('1')"
|
|
|
|
|
/>
|
|
|
|
|
<van-field
|
|
|
|
|
v-model="userInfo.idNo"
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
clearable
|
|
|
|
|
label="证件号码"
|
|
|
|
|
maxlength="18"
|
|
|
|
|
name="证件号码"
|
|
|
|
|
placeholder="请输入证件号码"
|
|
|
|
|
label="证件号码"
|
|
|
|
|
name="证件号码"
|
|
|
|
|
v-validate="'required'"
|
|
|
|
|
maxlength="18"
|
|
|
|
|
clearable
|
|
|
|
|
@blur="getRelatedData(userInfo.idNo)"
|
|
|
|
|
/>
|
|
|
|
|
<select-radio v-validate="'required'" :radios="sexRadio" :required="false" :value.sync="userInfo.sex" label="性别" name="性别"></select-radio>
|
|
|
|
|
<van-field v-model="userInfo.mobile" v-validate="'required|mobile'" clearable label="手机号" maxlength="11" name="手机号" placeholder="请输入手机号" />
|
|
|
|
|
<van-field v-model="userInfo.authCode" v-validate="'required'" center clearable label maxlength="6" name="短信验证码" placeholder="请输入短信验证码">
|
|
|
|
|
<van-button slot="button" v-no-more-click="1000" :disabled="codeDisabled" size="small" type="danger" @click="getCode">
|
|
|
|
|
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :required="false" :value.sync="userInfo.sex"></select-radio>
|
|
|
|
|
<van-field v-model="userInfo.mobile" label="手机号" name="手机号" placeholder="请输入手机号" v-validate="'required|mobile'" maxlength="11" clearable />
|
|
|
|
|
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" v-validate="'required'" maxlength="6">
|
|
|
|
|
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
|
|
|
|
{{ codeDisabled ? `${countDown}s后重新获取` : '获取验证码' }}
|
|
|
|
|
</van-button>
|
|
|
|
|
</van-field>
|
|
|
|
|
</van-cell-group>
|
|
|
|
|
<van-button v-no-more-click="1000" class="bottom-btn" type="danger" @click="nextStep">提交信息</van-button>
|
|
|
|
|
<van-button type="danger" class="bottom-btn" @click="nextStep" v-no-more-click="1000">提交信息</van-button>
|
|
|
|
|
|
|
|
|
|
<!-- 字段选择 -->
|
|
|
|
|
<van-popup v-model="popupShow" position="bottom">
|
|
|
|
|
<van-picker :columns="columns" show-toolbar @cancel="popupShow = false" @confirm="onConfirm" />
|
|
|
|
|
<van-picker show-toolbar :columns="columns" @confirm="onConfirm" @cancel="popupShow = false" />
|
|
|
|
|
</van-popup>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@@ -156,7 +156,7 @@ export default {
|
|
|
|
|
this.getData()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData: function() {
|
|
|
|
|
getData: function () {
|
|
|
|
|
let self = this
|
|
|
|
|
self.$toast.loading({
|
|
|
|
|
duration: 0, // 持续展示 toast
|
|
|
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
|
|
getTokenForUserModel({
|
|
|
|
|
token: this.$CacheUtils.getLocItem('token')
|
|
|
|
|
})
|
|
|
|
|
.then(function(response) {
|
|
|
|
|
.then(function (response) {
|
|
|
|
|
self.$toast.clear()
|
|
|
|
|
console.log('response', response)
|
|
|
|
|
if (response.result == '0') {
|
|
|
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
|
|
this.$toast.fail(response.resultMessage)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function(error) {
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
// this.$toast.fail(error)
|
|
|
|
|
})
|
|
|
|
|
// var self = this
|
|
|
|
|
@@ -217,7 +217,7 @@ export default {
|
|
|
|
|
loadingType: 'spinner',
|
|
|
|
|
message: '加载中……'
|
|
|
|
|
})
|
|
|
|
|
this.$validator.validate().then(valid => {
|
|
|
|
|
this.$validator.validate().then((valid) => {
|
|
|
|
|
if (true === valid) {
|
|
|
|
|
self.$toast.clear()
|
|
|
|
|
if (this.userInfo.idType == '1') {
|
|
|
|
|
@@ -270,28 +270,27 @@ export default {
|
|
|
|
|
message: '加载中……'
|
|
|
|
|
})
|
|
|
|
|
agentInfowxSubmit(data)
|
|
|
|
|
.then(res => {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
// console.log(res)
|
|
|
|
|
// todo 排除 2025-11-20 上午出现的阻断情况
|
|
|
|
|
// if (res.result == '0' || res.result === 'F') {
|
|
|
|
|
this.$store.commit('updateAgentEnterApplyMsg', this.userInfo)
|
|
|
|
|
that.$toast.clear()
|
|
|
|
|
this.$jump({
|
|
|
|
|
flag: 'h5',
|
|
|
|
|
extra: {
|
|
|
|
|
url: location.origin + `/#/agentEenter/ShareInfoSuccess`,
|
|
|
|
|
forbidSwipeBack: '1',
|
|
|
|
|
backToFirst: '1'
|
|
|
|
|
},
|
|
|
|
|
routerInfo: {
|
|
|
|
|
path: `/agentEenter/ShareInfoSuccess`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$toast(res.resultMessage)
|
|
|
|
|
// }
|
|
|
|
|
if (res.result == '0') {
|
|
|
|
|
this.$store.commit('updateAgentEnterApplyMsg', this.userInfo)
|
|
|
|
|
that.$toast.clear()
|
|
|
|
|
this.$jump({
|
|
|
|
|
flag: 'h5',
|
|
|
|
|
extra: {
|
|
|
|
|
url: location.origin + `/#/agentEenter/ShareInfoSuccess`,
|
|
|
|
|
forbidSwipeBack: '1',
|
|
|
|
|
backToFirst: '1'
|
|
|
|
|
},
|
|
|
|
|
routerInfo: {
|
|
|
|
|
path: `/agentEenter/ShareInfoSuccess`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$toast(res.resultMessage)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.then(function(err) {
|
|
|
|
|
.then(function (err) {
|
|
|
|
|
console.log(err)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
@@ -349,7 +348,7 @@ export default {
|
|
|
|
|
operateCodeType: '0'
|
|
|
|
|
}
|
|
|
|
|
//获取验证码
|
|
|
|
|
getAuthCode(data).then(res => {
|
|
|
|
|
getAuthCode(data).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.result == 0) {
|
|
|
|
|
this.sessionId = res.sessionId
|
|
|
|
|
@@ -361,7 +360,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
|
|
.insured-info-container {
|
|
|
|
|
.referrerW {
|
|
|
|
|
/deep/ .van-cell__title {
|
|
|
|
|
|