放开OCR

This commit is contained in:
邓晓坤
2019-10-11 16:47:20 +08:00
parent 2251be31e1
commit 64a363d024
5 changed files with 62 additions and 152 deletions

View File

@@ -22,7 +22,9 @@
v-validate="'required|bankCard'" v-validate="'required|bankCard'"
data-vv-name="银行卡号" data-vv-name="银行卡号"
/> />
<van-button type="danger" size="small" class="bankCard mr10 w110 h20" @click="cardScanning('0')" v-no-more-click="1000">银行卡扫描</van-button>
</van-cell-group> </van-cell-group>
<van-cell-group class="flex align-items-c"> <van-cell-group class="flex align-items-c">
<van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" /> <van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" />
<van-icon <van-icon
@@ -31,7 +33,7 @@
@click=" @click="
$toast({ $toast({
message: message:
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。', '保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
duration: 10000 duration: 10000
}) })
" "
@@ -59,6 +61,7 @@
clearable clearable
data-vv-name="银行卡号" data-vv-name="银行卡号"
/> />
<van-button type="danger" size="small" class="bankCard mr10 w110 h20" @click="cardScanning('1')" v-no-more-click="1000">银行卡扫描</van-button>
</van-cell-group> </van-cell-group>
<van-cell-group class="flex align-items-c"> <van-cell-group class="flex align-items-c">
<van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" /> <van-switch-cell v-model="checked" title="是否自动垫交" active-color="#E9332E" inactive-color="#fff" class="ml15 pr30" />
@@ -68,7 +71,7 @@
@click=" @click="
$toast({ $toast({
message: message:
'保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。', '保费自动垫交是当投保人没有按时交纳续期保险费,而保单当时已经具有足够的现金价值时,保险公司以现金价值自动垫交保险费,从而使保单继续有效。相当于投保人向保险公司贷款交纳保费是保险公司提供给客户的一项选择权益,其目的是为了尽可能地减少客户因非故意的失误导致保单失效,使其利益受损。',
duration: 10000 duration: 10000
}) })
" "
@@ -134,7 +137,6 @@ export default {
methods: { methods: {
//获取身份证扫描信息 //获取身份证扫描信息
getBankCardInfo(data) { getBankCardInfo(data) {
// console.log(data)
this.bankId = data.name this.bankId = data.name
this.$jump({ this.$jump({
@@ -152,7 +154,6 @@ export default {
operateType: 'bank_type' operateType: 'bank_type'
} }
getBankList(data).then(res => { getBankList(data).then(res => {
console.log(res)
if (res.result == '0') { if (res.result == '0') {
this.bankList = res.content this.bankList = res.content
} else { } else {
@@ -228,7 +229,7 @@ export default {
that.$validator.validate().then(valid => { that.$validator.validate().then(valid => {
if (valid === true) { if (valid === true) {
let data = {} let data = {}
// console.log(that.checked)
if (that.checked == true) { if (that.checked == true) {
data = { data = {
orderType: 'ACCOUNT_ORDER', orderType: 'ACCOUNT_ORDER',
@@ -271,10 +272,8 @@ export default {
saveInformation(data).then(res => { saveInformation(data).then(res => {
if (res.result == '0') { if (res.result == '0') {
// window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.setItem('accountInformationRadio', that.radio) window.localStorage.setItem('accountInformationRadio', that.radio)
// window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
// marked by pang on 2019-09-22 影像上传暂不可用,跳过
that.$jump({ that.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
@@ -289,7 +288,6 @@ export default {
} }
}) })
} else { } else {
// Toast.fail(that.errors.all()[0])
that.$toast(that.errors.all()[0]) that.$toast(that.errors.all()[0])
} }
}) })
@@ -304,10 +302,6 @@ export default {
//投被保人关系 //投被保人关系
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res) this.$utils.intLocalStorage(res)
//投保人信息
// localStorage.saleInsuredInfo = JSON.stringify(res.orderDTO.appntDTO)
//被保人信息
// localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0])
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }
@@ -328,7 +322,6 @@ export default {
// //
}, },
mounted() { mounted() {
// let that = this
document.body.style.backgroundColor = '#F5F5F5' document.body.style.backgroundColor = '#F5F5F5'
// 筛选按钮的点击事件 // 筛选按钮的点击事件
window.appCallBack = this.appCallBack window.appCallBack = this.appCallBack

View File

@@ -33,8 +33,7 @@
placeholder="请选择" placeholder="请选择"
@click="toSelect('2')" @click="toSelect('2')"
/> />
<!-- <van-field v-model="userInfo.idNo" v-validate="'required|idNo'" label="证件号码" name="证件号码" placeholder="请输入" maxlength="18" clearable>
</van-field> -->
<van-field <van-field
v-model="userInfo.idNo" v-model="userInfo.idNo"
label="证件号码" label="证件号码"
@@ -47,12 +46,25 @@
@blur="getRelatedData(userInfo.idNo)" @blur="getRelatedData(userInfo.idNo)"
> >
</van-field> </van-field>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:maxDate="currentTime"
:readonly="isInsured"
></FieldDatePicter>
<FieldDatePicter <FieldDatePicter
v-validate="'required'" v-validate="'required'"
label="证件起始日期" label="证件起始日期"
name="证件起始日期" name="证件起始日期"
:value.sync="userInfo.certificateValidate" :value.sync="userInfo.certificateValidate"
type="date" type="date"
:defaultDate="new Date()"
@confirm="onDateConfirm($event, '0')" @confirm="onDateConfirm($event, '0')"
ref="certificateValidate" ref="certificateValidate"
:flag="true" :flag="true"
@@ -62,6 +74,7 @@
:v-validate="{ required: certiexpiredateRequired }" :v-validate="{ required: certiexpiredateRequired }"
label="证件截止日期" label="证件截止日期"
name="证件截止日期" name="证件截止日期"
:defaultDate="new Date()"
:value.sync="userInfo.certiexpiredate" :value.sync="userInfo.certiexpiredate"
type="date" type="date"
@confirm="onDateConfirm($event, '1')" @confirm="onDateConfirm($event, '1')"
@@ -84,17 +97,6 @@
placeholder="请选择" placeholder="请选择"
@click="toSelect('1')" @click="toSelect('1')"
/> />
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isInsured"
></FieldDatePicter>
<van-field <van-field
v-model="userInfo.mobile" v-model="userInfo.mobile"
clearable clearable
@@ -172,6 +174,7 @@
</van-popup> </van-popup>
</div> </div>
</template> </template>
<script> <script>
import { Field, CellGroup, Checkbox, Popup, Picker, Area } from 'vant' import { Field, CellGroup, Checkbox, Popup, Picker, Area } from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio' import SelectRadio from '@/components/ebiz/SelectRadio'

View File

@@ -33,7 +33,7 @@
clearable clearable
@blur="getRelatedData(userInfo.idNo)" @blur="getRelatedData(userInfo.idNo)"
> >
<!-- <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>--> <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')">证件扫描</van-button>
</van-field> </van-field>
<FieldDatePicter <FieldDatePicter
v-validate="'required'" v-validate="'required'"
@@ -418,6 +418,7 @@
<van-popup v-model="isScan" position="bottom"> <van-popup v-model="isScan" position="bottom">
<IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan> <IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan>
</van-popup> </van-popup>
</div> </div>
</template> </template>
<script> <script>

View File

@@ -46,14 +46,27 @@
v-validate="'required'" v-validate="'required'"
@blur="getRelatedData(userInfo.idNo)" @blur="getRelatedData(userInfo.idNo)"
> >
<!-- <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')" v-no-more-click="1000"--> <van-button v-if="userInfo.idType == 1" slot="button" size="small" type="danger" round @click="selectClick('3')" v-no-more-click="1000"
<!-- >证件扫描</van-button--> >证件扫描</van-button
<!-- >--> >
</van-field> </van-field>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isAppnt"
:maxDate="currentTime"
></FieldDatePicter>
<FieldDatePicter <FieldDatePicter
v-validate="'required'" v-validate="'required'"
label="证件起始日期" label="证件起始日期"
name="证件起始日期" name="证件起始日期"
:defaultDate="new Date()"
:value.sync="userInfo.certificateValidate" :value.sync="userInfo.certificateValidate"
type="date" type="date"
:flag="true" :flag="true"
@@ -65,6 +78,7 @@
:v-validate="{ required: certiexpiredateRequired }" :v-validate="{ required: certiexpiredateRequired }"
label="证件截止日期" label="证件截止日期"
name="证件截止日期" name="证件截止日期"
:defaultDate="new Date()"
:value.sync="userInfo.certiexpiredate" :value.sync="userInfo.certiexpiredate"
type="date" type="date"
@confirm="onDateConfirm($event, '1')" @confirm="onDateConfirm($event, '1')"
@@ -73,12 +87,7 @@
:readonly="isAppnt || idLimit" :readonly="isAppnt || idLimit"
></FieldDatePicter> ></FieldDatePicter>
<div class="border-bt relative fs14 p10 flex align-center"> <div class="border-bt relative fs14 p10 flex align-center">
<van-checkbox <van-checkbox v-model="userInfo.effectiveDateType" class="fr" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
v-model="userInfo.effectiveDateType"
class="fr"
:disabled="effectiveDateTypeAble"
@change="effectiveDataTypeChange"
>长期</van-checkbox>
</div> </div>
<select-radio <select-radio
:radios="sexRadio" :radios="sexRadio"
@@ -99,28 +108,7 @@
placeholder="请选择" placeholder="请选择"
@click="toSelect('1')" @click="toSelect('1')"
/> />
<van-field <van-field :value="census" readonly label="户籍" name="户籍" v-validate="'required'" right-icon="arrow" placeholder="请选择" @click="areaChoose('1')" />
:value="census"
readonly
label="户籍"
name="户籍"
v-validate="'required'"
right-icon="arrow"
placeholder="请选择"
@click="areaChoose('1')"
/>
<FieldDatePicter
v-validate="'required'"
label="出生日期"
name="出生日期"
:value.sync="userInfo.birthday"
type="date"
:flag="true"
@confirm="onDateConfirm($event, '2')"
ref="birthday"
:readonly="isAppnt"
:maxDate="currentTime"
></FieldDatePicter>
<van-field <van-field
v-model="userInfo.mobile" v-model="userInfo.mobile"
@@ -137,34 +125,17 @@
v-model="userInfo.authCode" v-model="userInfo.authCode"
center center
clearable clearable
label label=""
name="短信验证码" name="短信验证码"
placeholder="请输入短信验证码" placeholder="请输入短信验证码"
v-validate="'required'" v-validate="'required'"
maxlength="6" maxlength="6"
> >
<van-button <van-button slot="button" size="small" type="danger" :disabled="codeDisabled" @click="getCode" v-no-more-click="1000">{{
slot="button"
size="small"
type="danger"
:disabled="codeDisabled"
@click="getCode"
v-no-more-click="1000"
>
{{
codeDisabled ? `${countDown}s后重新获取` : '发送验证码' codeDisabled ? `${countDown}s后重新获取` : '发送验证码'
}} }}</van-button>
</van-button>
</van-field> </van-field>
<van-field <van-field v-model="userInfo.email" label="电子邮箱" name="电子邮箱" placeholder="请输入" v-validate="'required|email'" clearable :readonly="isAppnt" />
v-model="userInfo.email"
label="电子邮箱"
name="电子邮箱"
placeholder="请输入"
v-validate="'required|email'"
clearable
:readonly="isAppnt"
/>
<van-field <van-field
v-model="userInfo.stature" v-model="userInfo.stature"
label="身高(cm)" label="身高(cm)"
@@ -234,25 +205,6 @@
@on-click="selectClick('2')" @on-click="selectClick('2')"
@on-choose="chooseOccupation" @on-choose="chooseOccupation"
/> />
<van-field
:value="userInfo.salarySource | idToText('salarySource')"
readonly
label="收入来源"
name="收入来源"
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@click="toSelect('9')"
/>
<van-field
v-show="isShowOthenSalarySource"
v-model="userInfo.otherSalarySource"
label
name="其他来源"
placeholder="请输入其它收入来源"
clearable
maxlength="30"
/>
<van-field <van-field
v-model="userInfo.averageAnnualIncome" v-model="userInfo.averageAnnualIncome"
label="平均年收入(万元)" label="平均年收入(万元)"
@@ -272,10 +224,7 @@
maxlength="5" maxlength="5"
:readonly="isAppnt" :readonly="isAppnt"
> >
<div slot="label" class="flex flex-wrap"> <div slot="label" class="flex flex-wrap"><span>负债金额</span><span>万元</span></div>
<span>负债金额</span>
<span>(万元)</span>
</div>
</van-field> </van-field>
<van-field <van-field
:value="userInfo.jobStatus | idToText('workCondition')" :value="userInfo.jobStatus | idToText('workCondition')"
@@ -309,7 +258,7 @@
/> />
<van-field <van-field
v-model="userInfo.companyAddress" v-model="userInfo.companyAddress"
label label=""
name="详细地址" name="详细地址"
placeholder="请输入详细地址" placeholder="请输入详细地址"
v-validate="'required'" v-validate="'required'"
@@ -327,15 +276,7 @@
clearable clearable
:readonly="isAppnt" :readonly="isAppnt"
/> />
<van-field <van-field v-model="userInfo.companyPhone" label="单位电话" name="单位电话" placeholder="非必填" maxlength="13" clearable :readonly="isAppnt" />
v-model="userInfo.companyPhone"
label="单位电话"
name="单位电话"
placeholder="非必填"
maxlength="13"
clearable
:readonly="isAppnt"
/>
</van-cell-group> </van-cell-group>
<!-- 家庭信息 --> <!-- 家庭信息 -->
<van-cell-group class="mt5" v-if="!isScan"> <van-cell-group class="mt5" v-if="!isScan">
@@ -372,7 +313,7 @@
/> />
<van-field <van-field
v-model="userInfo.homeAddress" v-model="userInfo.homeAddress"
label label=""
name="详细地址" name="详细地址"
placeholder="请输入详细地址" placeholder="请输入详细地址"
v-validate="'required'" v-validate="'required'"
@@ -390,23 +331,9 @@
clearable clearable
:readonly="isAppnt" :readonly="isAppnt"
/> />
<van-field <van-field v-model="userInfo.homePhone" label="家庭电话" name="家庭电话" placeholder="非必填" maxlength="13" clearable :readonly="isAppnt" />
v-model="userInfo.homePhone"
label="家庭电话"
name="家庭电话"
placeholder="非必填"
maxlength="13"
clearable
:readonly="isAppnt"
/>
</van-cell-group> </van-cell-group>
<van-button <van-button type="danger" class="bottom-btn" @click="nextStep" v-if="!isScan" v-no-more-click="1000">下一步</van-button>
type="danger"
class="bottom-btn"
@click="nextStep"
v-if="!isScan"
v-no-more-click="1000"
>下一步</van-button>
<!-- 字段选择 --> <!-- 字段选择 -->
<van-popup v-model="popupShow" position="bottom"> <van-popup v-model="popupShow" position="bottom">
@@ -414,31 +341,15 @@
</van-popup> </van-popup>
<!-- 地区选择 --> <!-- 地区选择 -->
<van-popup v-model="areaShow" position="bottom"> <van-popup v-model="areaShow" position="bottom">
<van-area <van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '1')" @cancel="areaShow = false" />
:area-list="areaList"
value="110101"
@confirm="sureArea($event, '1')"
@cancel="areaShow = false"
/>
</van-popup> </van-popup>
<!-- 家庭地址选择 --> <!-- 家庭地址选择 -->
<van-popup v-model="homeShow" position="bottom"> <van-popup v-model="homeShow" position="bottom">
<van-area <van-area :area-list="areaList" value="110101" @confirm="sureArea($event, '2')" @cancel="homeShow = false" />
:area-list="areaList"
value="110101"
@confirm="sureArea($event, '2')"
@cancel="homeShow = false"
/>
</van-popup> </van-popup>
<!-- 户籍选择 --> <!-- 户籍选择 -->
<van-popup v-model="censusShow" position="bottom"> <van-popup v-model="censusShow" position="bottom">
<van-area <van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="censusShow = false" />
:area-list="areaList"
value="110101"
:columns-num="2"
@confirm="sureArea($event, '3')"
@cancel="censusShow = false"
/>
</van-popup> </van-popup>
<!-- 银行卡扫描 --> <!-- 银行卡扫描 -->
<!-- 银行卡扫描 --> <!-- 银行卡扫描 -->
@@ -448,6 +359,7 @@
<!-- <IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan> --> <!-- <IdentityCardScan @getScanInfo="getIdentityInfo"></IdentityCardScan> -->
</div> </div>
</template> </template>
<script> <script>
import { Field, CellGroup, Checkbox, Popup, Picker, Area, Dialog } from 'vant' import { Field, CellGroup, Checkbox, Popup, Picker, Area, Dialog } from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio' import SelectRadio from '@/components/ebiz/SelectRadio'

View File

@@ -40,6 +40,7 @@ export default {
}, 200) }, 200)
}, },
tokens() { tokens() {
// 507e5ff426364e95b22cd4c1e22f427f
window.localStorage.setItem('token', this.$route.query.token) window.localStorage.setItem('token', this.$route.query.token)
// localStorage.setItem('token',this.$router.query.token) // localStorage.setItem('token',this.$router.query.token)
this.$router.back(-1) this.$router.back(-1)