12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421 |
- <template>
- <view class="body">
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <uni-group title="" class="carInfo">
- <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind" err-show-type="toast"
- label-width="100">
- <uni-forms-item>
- <view class="title d-flex a-center j-sb font-md">
- <text class="font-weight">车辆信息</text>
- <view class="icon iconfont icon-hangshizhengshibie font-lg main-text-color"
- @tap="chooseImage('carInfo','car')" style="margin-right: 14px;"></view>
- </view>
- </uni-forms-item>
- <uni-forms-item label="车牌号: ">
- <input class="uni-input-input textColor" placeholder="暂未上牌" v-model="carInfo.licenseNo"
- placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
- </uni-forms-item>
- <uni-forms-item name="vinNo" required label="车辆识别码:">
- <view class="d-flex a-center" style="height: 100%;">
- <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码" v-model="carInfo.vinNo"
- maxlength="17" @blur="binddata('vinNo', $event.detail.value,'carForm')"
- placeholder-style="font-size:28upx" @input="upperCaseType('vinNo')" />
- <text class="checkButton d-flex a-center j-center" @tap="toChooseVin">校验</text>
- </view>
- </uni-forms-item>
- <uni-forms-item name="brandName" required label="品牌型号: ">
- <view class="d-flex a-center textColor" style="height: 100%;">
- <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
- v-model="carInfo.brandName" @blur="binddata('brandName', $event.detail.value,'carForm')"
- placeholder-style="font-size:28upx" @input="upperCaseType('brandName')" />
- <text class="checkButton d-flex a-center j-center" @tap="toChooseVehicleType">校验</text>
- </view>
- </uni-forms-item>
- <uni-forms-item name="engineNo" required label="发动机号: ">
- <input class="uni-input-input textColor" placeholder="请输入发动机号" v-model="carInfo.engineNo"
- @blur="binddata('engineNo', $event.detail.value,'carForm')" placeholder-style="font-size:28upx"
- @input="upperCaseType('engineNo')" />
- </uni-forms-item>
- <uni-forms-item label="年款: ">
- <input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item label="座位数: ">
- <input class="uni-input-input textColor" placeholder="请输入座位数" v-model="carInfo.seatCount"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item label="排量: ">
- <input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item label="功率: ">
- <input class="uni-input-input textColor" placeholder="请输入功率" v-model="carInfo.powerScale"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item label="新车购置价: " required name="purchasePrice">
- <input class="uni-input-input textColor" placeholder="请输入新车购置价" v-model="carInfo.purchasePrice"
- placeholder-style="font-size:28upx"
- @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
- @input="upperCaseType('purchasePrice')" />
- </uni-forms-item>
- <uni-forms-item required label="使用性质: ">
- <view class="d-flex a-center" style="width:100%;height: 100%;">
- <picker class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
- range-key="label" :range="carnatureList" :value="carnatureIndex"
- @change="bindPickerChange($event,'carnature')">
- <view class="textColor">{{carnatureList[carnatureIndex]['label']}}</view>
- </picker>
- </view>
- </uni-forms-item>
- <uni-forms-item label="能源种类: ">
- <view class="d-flex a-center" style="width:100%;height: 100%;">
- <picker class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
- range-key="label" :range="fuelTypeCodeList" :value="fuelTypeCodeIndex"
- @change="bindPickerChange($event,'fuelTypeCode')">
- <view class="textColor">{{fuelTypeCodeList[fuelTypeCodeIndex]['label']}}</view>
- </picker>
- </view>
- </uni-forms-item>
- <uni-forms-item required label="注册日期" name="registerDate" style="margin-right: 14px;">
- <u-input type="select" :select-open="registerDateShow" v-model="carInfo.registerDate"
- placeholder="请选择注册日期" @click="registerDateShow = true"
- placeholder-style="color:#808080"></u-input>
- <u-picker v-model="registerDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item required label="发证日期" name="issueDate" style="margin-right: 14px;">
- <u-input type="select" :select-open="issueDateShow" v-model="carInfo.issueDate"
- placeholder="请选择发证日期" @click="issueDateShow = true" placeholder-style="color:#808080"></u-input>
- <u-picker v-model="issueDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate"
- style="margin-right: 14px;">
- <u-input type="select" :select-open="transferDateShow" v-model="carInfo.transferDate"
- placeholder="请选择过户日期" @click="transferDateShow = true"
- placeholder-style="color:#808080"></u-input>
- <u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item required label="是否过户: ">
- <view class="d-flex j-end">
- <switch style="transform: scale(0.6)" @change="isChangeStatus" />
- </view>
- </uni-forms-item>
- </uni-forms>
- </uni-group>
- <uni-group title="" top="10">
- <uni-forms :rules="ownerRules" :value="ownerInfo" ref="ownerForm" validate-trigger="bind"
- err-show-type="toast" label-width="100">
- <uni-forms-item>
- <view class="title d-flex a-center j-sb font-md">
- <text class="font-weight">车主</text>
- <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
- @tap="chooseImage('ownerInfo')" style="margin-right: 14px;"></view>
- </view>
- </uni-forms-item>
- <uni-forms-item name="name" required label="姓名: ">
- <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="ownerInfo.name" maxlength="5"
- @blur="binddata('name', $event.detail.value,'ownerForm')" placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item name="identifyType" required label="证件类型:">
- <view class="d-flex a-center" style="width:100%;height: 100%;">
- <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
- range-key="label" :range="identifyList" v-model="ownerIdentifyIndex"
- @change="bindIdentifyTypeChange($event,'owner')">
- <view class="textColor">{{identifyList[ownerIdentifyIndex]['label']}}</view>
- </picker>
- </view>
- </uni-forms-item>
- <uni-forms-item required name="identifyNumber" label="证件号: ">
- <input class="uni-input-input textColor" placeholder="请输入证件号" v-model="ownerInfo.identifyNumber"
- maxlength="18" @blur="binddata('identifyNumber', $event.detail.value,'ownerForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="mobile" label="手机号: ">
- <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="ownerInfo.mobile"
- maxlength="11" @blur="binddata('mobile', $event.detail.value,'ownerForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="addr" label="地址: " style="margin-right: 14px;">
- <textarea class="textColor" v-model="ownerInfo.addr"
- style="width:100%;line-height: 50upx;margin-top: 15upx;" placeholder-style="font-size:28upx;"
- placeholder="请输入地址" auto-height @blur="binddata('addr', $event.detail.value,'ownerForm')" />
- </uni-forms-item>
- <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
- <u-input type="select" :select-open="ownerDateShow" v-model="ownerInfo.identifyValidDate"
- placeholder="请选择有效期起期" @click="ownerDateShow = true"
- placeholder-style="color:#808080"></u-input>
- <u-picker v-model="ownerDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth" @confirm="e=> Dateconfirm(e,'ownerInfo','identifyValidDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
- <view class="dis j-s a-c">
- <u-input type="select" :select-open="ownerEndDateShow" v-model="ownerInfo.identifyValidEndDate"
- placeholder="请选择有效期止期" @click="ownerEndDateShow = true" placeholder-style="color:#808080"
- style="margin-right: 14px;"></u-input>
- <view class=" dis j-c a-c ">
- <text>长期</text>
- <switch style="transform: scale(0.6)"
- @change="checked=> insureLongterm(checked,'ownerInfo')" />
- </view>
- </view>
- <u-picker v-model="ownerEndDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth"
- @confirm="e=> Dateconfirm(e,'ownerInfo','identifyValidEndDate')"></u-picker>
- </uni-forms-item>
- </uni-forms>
- </uni-group>
- <uni-group title="" top="10">
- <uni-forms :rules="policyHolderRules" :value="policyHolderInfo" ref="policyHolderForm"
- validate-trigger="bind" err-show-type="toast" label-width="100">
- <uni-forms-item>
- <view class="title d-flex a-center j-sb font-md">
- <text class="font-weight">投保人</text>
- <view class="d-flex a-center j-sb">
- <switch style="transform: scale(0.6);" :checked="holderAndOwner"
- @change="e=>syncPersonInfo(e,'holderAndOwner','policyHolder','owner')" />
- <text style="margin-right: 10px;">同车主</text>
- <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
- @tap="chooseImage('policyHolderInfo')" style="margin-right: 14px;"></view>
- </view>
- </view>
- </uni-forms-item>
- <template v-if="!holderAndOwner">
- <uni-forms-item name="name" required label="姓名: ">
- <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="policyHolderInfo.name"
- maxlength="5" @blur="binddata('name', $event.detail.value,'policyHolderForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item name="identifyType" required label="证件类型: ">
- <view class="d-flex a-center" style="width:100%;height: 100%;">
- <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
- range-key="label" :range="identifyList" v-model="policyHolderIdentifyIndex"
- @change="bindIdentifyTypeChange($event,'policyHolder')">
- <view class="textColor">{{identifyList[policyHolderIdentifyIndex]['label']}}</view>
- </picker>
- </view>
- </uni-forms-item>
- <uni-forms-item required name="identifyNumber" label="证件号: ">
- <input class="uni-input-input textColor" placeholder="请输入证件号"
- v-model="policyHolderInfo.identifyNumber" maxlength="18"
- @blur="binddata('identifyNumber', $event.detail.value,'policyHolderForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="mobile" label="手机号: ">
- <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="policyHolderInfo.mobile"
- maxlength="11" @blur="binddata('mobile', $event.detail.value,'policyHolderForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="addr" label="地址: ">
- <textarea class="textColor" v-model="policyHolderInfo.addr"
- style="width:100%;line-height: 50upx;margin-top: 15upx;"
- placeholder-style="font-size:28upx;" placeholder="请输入地址" auto-height
- @blur="binddata('addr', $event.detail.value,'policyHolderForm')" />
- </uni-forms-item>
- <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
- <u-input type="select" :select-open="policyHolderDateShow"
- v-model="policyHolderInfo.identifyValidDate" placeholder="请选择有效期起期"
- @click="policyHolderDateShow = true" placeholder-style="color:#808080"></u-input>
- <u-picker v-model="policyHolderDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth"
- @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
- <view class="dis j-s a-c">
- <u-input type="select" :select-open="policyHolderEndDateShow"
- v-model="policyHolderInfo.identifyValidEndDate" placeholder="请选择有效期止期"
- @click="policyHolderEndDateShow = true" placeholder-style="color:#808080"
- style="margin-right: 14px;"></u-input>
- <view class=" dis j-c a-c ">
- <text>长期</text>
- <switch style="transform: scale(0.6)"
- @change="checked=>insureLongterm(checked,'policyHolderInfo')" />
- </view>
- </view>
- <u-picker v-model="policyHolderEndDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth"
- @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidEndDate')"></u-picker>
- </uni-forms-item>
- </template>
- </uni-forms>
- </uni-group>
- <uni-group title="" top="10">
- <uni-forms :rules="insuredPersonRules" :value="insuredPersonInfo" ref="insuredPersonForm"
- validate-trigger="bind" err-show-type="toast" label-width="100">
- <uni-forms-item>
- <view class="title d-flex a-center j-sb font-md">
- <text class="font-weight">被保人</text>
- <view class="d-flex a-center j-sb">
- <view class="d-flex a-center j-sb" v-if="!insuredAndOwner">
- <switch style="transform: scale(0.6);" :checked="tbrAndOwner"
- @change="e=>syncPersonInfo(e,'tbrAndOwner','insuredPerson','policyHolder')" />
- <text style="margin-right: 10px;">同投保人</text>
- </view>
- <view class="d-flex a-center j-sb" v-if="!tbrAndOwner">
- <switch style="transform: scale(0.6);" :checked="insuredAndOwner"
- @change="e=>syncPersonInfo(e,'insuredAndOwner','insuredPerson','owner')" />
- <text style="margin-right: 10px;">同车主</text>
- </view>
- <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
- @tap="chooseImage('insuredPersonInfo')" style="margin-right: 14px;"></view>
- </view>
- </view>
- </uni-forms-item>
- <template v-if="!insuredAndOwner && !tbrAndOwner">
- <uni-forms-item name="name" required label="姓名: ">
- <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="insuredPersonInfo.name"
- maxlength="5" @blur="binddata('name', $event.detail.value,'insuredPersonForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item name="identifyType" required label="证件类型: ">
- <view class="d-flex a-center" style="width:100%;height: 100%;">
- <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
- range-key="label" :range="identifyList" v-model="insuredPersonIdentifyIndex"
- @change="bindIdentifyTypeChange($event,'insuredPerson')">
- <view class="textColor">{{identifyList[insuredPersonIdentifyIndex]['label']}}</view>
- </picker>
- </view>
- </uni-forms-item>
- <uni-forms-item required name="identifyNumber" label="证件号: ">
- <input class="uni-input-input textColor" placeholder="请输入证件号"
- v-model="insuredPersonInfo.identifyNumber" maxlength="18"
- @blur="binddata('identifyNumber', $event.detail.value,'insuredPersonForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="mobile" label="手机号: ">
- <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="insuredPersonInfo.mobile"
- maxlength="11" @blur="binddata('mobile', $event.detail.value,'insuredPersonForm')"
- placeholder-style="font-size:28upx" />
- </uni-forms-item>
- <uni-forms-item required name="addr" label="地址: ">
- <textarea class="textColor" v-model="insuredPersonInfo.addr"
- style="width:100%;line-height: 50upx;margin-top: 15upx;"
- placeholder-style="font-size:28upx;" placeholder="请输入地址" auto-height
- @blur="binddata('addr', $event.detail.value,'insuredPersonForm')" />
- </uni-forms-item>
- <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
- <u-input type="select" :select-open="insuredPersonDateShow"
- v-model="insuredPersonInfo.identifyValidDate" placeholder="请选择有效期起期"
- @click="insuredPersonDateShow = true" placeholder-style="color:#808080"></u-input>
- <u-picker v-model="insuredPersonDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth"
- @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidDate')"></u-picker>
- </uni-forms-item>
- <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
- <view class="dis j-s a-c">
- <u-input type="select" :select-open="insuredPersonEndDateShow"
- v-model="insuredPersonInfo.identifyValidEndDate" placeholder="请选择有效期止期"
- @click="insuredPersonEndDateShow = true" placeholder-style="color:#808080"
- style="margin-right: 14px;"></u-input>
- <view class=" dis j-c a-c ">
- <text>长期</text>
- <switch style="transform: scale(0.6)"
- @change="checked=>insureLongterm(checked,'insuredPersonInfo')" />
- </view>
- </view>
- <u-picker v-model="insuredPersonEndDateShow" mode="time" :params="params" :end-year="endYear"
- :end-month="endMonth"
- @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidEndDate')"></u-picker>
- </uni-forms-item>
- </template>
- </uni-forms>
- </uni-group>
- <view style="height: 160upx;"></view>
- <view class="infoBottom d-flex a-center j-center j-sb">
- <button type="default" class="d-flex a-center j-center" @tap="toNext">下一步</button>
- </view>
- <view class="mask mask-show" v-if="lodingshow">
- <!-- 加载动画开始 -->
- <view class="preloader">
- <view class="loader"></view>
- </view>
- <!-- 加载动画结束 -->
- <view class="title">加载中...</view>
- </view>
- <checkImageInfo :checkType="checkType" :checkInfo="checkInfo" :show="checkInfoShow" @cancel="cancelCheckInfo"
- @close="closeCheckInfo" :img="checkImage"></checkImageInfo>
- </view>
- </template>
- <script>
- import checkImageInfo from '@/components/modules/carInsure/checkImageInfo/checkImageInfo.vue'; //引用图片信息检查插件
- import {
- pathToBase64,
- base64ToPath
- } from '@/common/image-tools-base64.js';
- import {
- userInfo
- } from 'os';
- import store from '@/store';
- import $http from '../../config/requestConfig';
- import {
- Promise
- } from 'bluebird';
- var dateTime = new Date();
- let Year = dateTime.getFullYear();
- let Month = Number(dateTime.getMonth() + 1);
- export default {
- components: {
- checkImageInfo,
- },
- data() {
- return {
- lodingshow: false,
- endYear: Year,
- endMonth: Month,
- registerDateShow: false,
- issueDateShow: false,
- ownerDateShow: false,
- ownerEndDateShow: false,
- policyHolderDateShow: false,
- policyHolderEndDateShow: false,
- insuredPersonDateShow: false,
- insuredPersonEndDateShow: false,
- transferDateShow: false,
- params: {
- year: true, //年
- month: true, //月
- day: true, //日
- hour: false, //时
- minute: false, //分
- second: false, //秒
- },
- carInfo: {
- licenseNo: "", //车牌号
- brandName: "", //车辆品牌型号
- vinNo: "", //车架号
- engineNo: "", //发动机号
- modelCode: "", //车型编码
- seatCount: "0", //核定载客量 核定载人数
- purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
- carBrand: "", //车型品牌
- ciCarName: "", //行业车型名称
- ciModelCode: "", //行业车型编码
- completeKerbMass: "", //整备质量
- exhaustScale: "", //排量
- factory: "", //工厂名称
- factoryid: "", //工厂编码
- frameNo: "", //车架号
- licenseTypeCode: "02", //号牌种类
- vehicleclass: "", //车辆类型
- familyName: "", //车型
- modelcname: "", //车型名称
- powertypecode: "", //燃料类型编码
- vehicleweight: "", //总质量
- limitLoad: "", //核定载质量
- caryear: "0", //年款
- cimodelclass: "", //车辆种类
- powertype: "汽油", //燃料类型
- enginedesc: "", //排量
- powerScale: "", //功率
- registerDate: "", //注册日期
- issueDate: "", //发证日期
- transferFlag: false, //过户标志
- transferDate: "", //过户日期
- loanStatus: 0, //贷款标志
- firstBeneMan: "", //第一受益人
- noLicenseFlag: false, //是否新车
- cartype: "A0", //客车A0 货车H0
- carnature: "8A", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
- property: "1" //所属性质 1个人 2企业 3个人
- },
- carRules: {
- brandName: {
- rules: [{
- required: true,
- errorMessage: '请输入品牌型号',
- }, ]
- },
- vinNo: {
- rules: [{
- required: true,
- errorMessage: '请输入车辆识别码',
- }, {
- pattern: /^([0-9A-Z]){17}$/,
- errorMessage: '请输入正确的车辆识别码',
- }]
- },
- engineNo: {
- rules: [{
- required: true,
- errorMessage: '请输入发动机号',
- }, ]
- },
- purchasePrice: {
- rules: [{
- required: true,
- errorMessage: '请输入新车购置价',
- }, {
- validateField: function(rule, value, data, callback) {
- if (value == 0) {
- callback('新车购置价不能为零')
- }
- return true
- }
- }]
- },
- registerDate: {
- rules: [{
- required: true,
- errorMessage: '请选择注册日期',
- }, ]
- },
- issueDate: {
- rules: [{
- required: true,
- errorMessage: '请选择发证日期',
- }, ]
- }
- },
- ownerRules: {
- name: {
- rules: [{
- required: true,
- errorMessage: '请输入车主姓名',
- },
- {
- minLength: 2,
- maxLength: 5,
- errorMessage: '车主姓名长度在 {minLength} 到 {maxLength} 个字符',
- },
- {
- pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
- errorMessage: '请输入正确的车主姓名',
- }
- ]
- },
- identifyNumber: {
- rules: [{
- required: true,
- errorMessage: '请输入车主证件号',
- },
- {
- pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
- errorMessage: '请输入正确的车主证件号',
- }
- ]
- },
- mobile: {
- rules: [{
- required: true,
- errorMessage: '请输入车主手机号',
- },
- {
- pattern: /^1[3-9]\d{9}$/,
- errorMessage: '请输入正确的手机号',
- }
- ]
- },
- addr: {
- rules: [{
- required: true,
- errorMessage: '请输入车主地址',
- },
- {
- minLength: 8,
- maxLength: 40,
- errorMessage: '车主地址长度在 {minLength} 到 {maxLength} 个字符',
- },
- ]
- }
- },
- policyHolderRules: {
- name: {
- rules: [{
- required: true,
- errorMessage: '请输入投保人姓名',
- },
- {
- minLength: 2,
- maxLength: 5,
- errorMessage: '投保人姓名长度在 {minLength} 到 {maxLength} 个字符',
- },
- {
- pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
- errorMessage: '请输入正确的投保人姓名',
- }
- ]
- },
- identifyNumber: {
- rules: [{
- required: true,
- errorMessage: '请输入投保人证件号',
- },
- {
- pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
- errorMessage: '请输入正确的投保人证件号',
- }
- ]
- },
- mobile: {
- rules: [{
- required: true,
- errorMessage: '请输入投保人手机号',
- },
- {
- pattern: /^1[3-9]\d{9}$/,
- errorMessage: '请输入正确的手机号',
- }
- ]
- },
- addr: {
- rules: [{
- required: true,
- errorMessage: '请输入投保人地址',
- },
- {
- minLength: 8,
- maxLength: 40,
- errorMessage: '投保人地址长度在 {minLength} 到 {maxLength} 个字符',
- },
- ]
- }
- },
- insuredPersonRules: {
- name: {
- rules: [{
- required: true,
- errorMessage: '请输入被保人姓名',
- },
- {
- minLength: 2,
- maxLength: 5,
- errorMessage: '被保人姓名长度在 {minLength} 到 {maxLength} 个字符',
- },
- {
- pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
- errorMessage: '请输入正确的被保人姓名',
- }
- ]
- },
- identifyNumber: {
- rules: [{
- required: true,
- errorMessage: '请输入被保人证件号',
- },
- {
- pattern: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
- errorMessage: '请输入正确的被保人证件号',
- }
- ]
- },
- mobile: {
- rules: [{
- required: true,
- errorMessage: '请输入被保人手机号',
- },
- {
- pattern: /^1[3-9]\d{9}$/,
- errorMessage: '请输入正确的手机号',
- }
- ]
- },
- addr: {
- rules: [{
- required: true,
- errorMessage: '请输入被保人地址',
- },
- {
- minLength: 8,
- maxLength: 40,
- errorMessage: '被保人地址长度在 {minLength} 到 {maxLength} 个字符',
- },
- ]
- }
- },
- checkInfo: {},
- checkType: 1,
- checkImage: [],
- checkInfoShow: false,
- licenseNo: '', //车牌号
- //使用性质
- carnatureIndex: 0,
- carnatureList: [{
- label: '家庭自用',
- id: "8A"
- }, ],
- //能源种类
- fuelTypeCodeIndex: 0,
- fuelTypeCodeList: [{
- id: "0",
- label: '汽油',
- },
- {
- id: "1",
- label: "纯电动",
- },
- {
- id: "2",
- label: "燃料电池",
- },
- {
- id: "3",
- label: "插电式混合动力",
- },
- {
- id: "4",
- label: "其他混合动力",
- },
- ],
- propertyIndex: 0,
- propertyList: [{
- label: '个人',
- id: "1"
- },
- {
- label: '企业',
- id: "2"
- },
- {
- label: '机关',
- id: "3"
- }
- ],
- identifyList: [{
- label: '身份证',
- id: "01"
- },
- {
- label: '护照',
- id: "02"
- },
- {
- label: '港澳台居民居住证',
- id: "03"
- },
- {
- label: '组织机构代码证',
- id: "04"
- },
- {
- label: '统一社会信用代码证',
- id: "05"
- },
- {
- label: '营业执照',
- id: "06"
- }
- ],
- ownerIdentifyIndex: 0,
- policyHolderIdentifyIndex: 0,
- insuredPersonIdentifyIndex: 0,
- holderAndOwner: true, //投保人同车主
- insuredAndOwner: true, //被保人同车主
- tbrAndOwner: false, //被保人同投保人
- ownerInfo: {
- name: "",
- identifyType: "01",
- identifyNumber: "",
- addr: "",
- email: "",
- mobile: "",
- identifyValidDate: "", //有效期起期
- identifyValidEndDate: "", //有效期止期
- },
- policyHolderInfo: {
- name: "",
- identifyType: "01",
- identifyNumber: "",
- addr: "",
- email: "",
- mobile: "",
- identifyValidDate: "", //有效期起期
- identifyValidEndDate: "", //有效期止期
- },
- insuredPersonInfo: {
- name: "",
- identifyType: "01",
- identifyNumber: "",
- addr: "",
- email: "",
- mobile: "",
- identifyValidDate: "", //有效期起期
- identifyValidEndDate: "", //有效期止期
- },
- riskList: [], //交强险和商业险的选择
- kindList: [], //商业险险种的选择
- //影像上传列表
- carInfoRmation: [], //车辆
- ownerInfoRmation: [], //车主
- policyHolderInfoRmation: [], //投保人
- insuredPersonInfoRmation: [], //被保人
- vehicleRmation: [], //验车照
- carfront: {},
- carback: {},
- userfront: {},
- userback: {},
- }
- },
- async onLoad(options) {
- if (!!options.licenseNo) {
- this.licenseNo = decodeURIComponent(options.licenseNo);
- // this.carInfo.licenseNo = options.licenseNo
- // this.policyHolderInfo = this.ownerInfo;
- // this.policyHolderIdentifyIndex = this.ownerIdentifyIndex;
- // this.insuredPersonInfo = this.ownerInfo;
- // this.insuredPersonIdentifyIndex = this.ownerIdentifyIndex;
- } else {
- const eventChannel = this.getOpenerEventChannel()
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
- eventChannel.on('acceptData', (data) => {
- console.log(data)
- if (!!data) {
- //读取上一个页面传过来数据(车辆信息,人员信息,险种信息)
- this.carInfo = data.carInfo; //车辆信息
- this.ownerInfo = JSON.parse(JSON.stringify(data.ownerInfo));
- this.policyHolderInfo = JSON.parse(JSON.stringify(data.policyHolderInfo));
- this.insuredPersonInfo = JSON.parse(JSON.stringify(data.insuredPersonInfo));
- this.riskList = data.riskList; //险种大类
- this.kindList = data.kindList; //商业险险别
- this.licenseNo = this.carInfo.licenseNo;
- this.holderAndOwner = false; //投保人同车主
- this.insuredAndOwner = false; //被保人同车主
- this.tbrAndOwner = false; //被保人同投保人
- }
- })
- }
- },
- // 监听导航栏的按钮
- onNavigationBarButtonTap(e) {
- if (e.index == 0) {
- this.navigate({
- url: '/pages/index/index'
- }, "switchTab", true);
- }
- },
- computed: {
- startDate() {
- return this.getDate('start');
- },
- endDate() {
- return this.getDate('end');
- },
- },
- methods: {
- /**
- * @param {String} e 时间选择器的值
- * @param {String} obj 储存表单对象
- * @param {String} param 储存表单参数
- */
- Dateconfirm(e, obj, param) {
- this[obj][param] = e.year + '-' + e.month + '-' + e.day;
- },
- //选择驾照图片或拍摄驾照图片
- async chooseImage(type) {
- console.log(type)
- this.checkType = (type == 'carInfo') ? 2 : 1;
- this.checkInfo = {};
- this.checkImage = [];
- switch (type) {
- case "carInfo":
- let filelist = await this.choosepars(type + 'Rmation') //储存影像id
- console.log(filelist)
- uni.uploadFile({
- url: `${this.$base.baseUrl}/order/identify/drivingPermit`,
- filePath: filelist[0],
- name: "image1",
- header: {
- Authorization: store.state.token,
- },
- success: (uploadFileRes) => {
- let data = JSON.parse(uploadFileRes.data).data;
- let rdate = '';
- if (!!data.carInfo.registerDate) {
- rdate = data.carInfo.registerDate.substr(0, 4) + '-' + data.carInfo
- .registerDate.substr(4, 2) + '-' + data.carInfo.registerDate
- .substr(6,
- 2)
- }
- let isdate = '';
- if (!!data.carInfo.issueDate) {
- isdate = data.carInfo.issueDate.substr(0, 4) + '-' + data.carInfo
- .issueDate.substr(4, 2) + '-' + data.carInfo.issueDate.substr(6, 2)
- }
- this.carfront = {
- licenseNo: data.carInfo.plateNo, //车牌号
- engineNo: data.carInfo.engine, //发动机号
- issueDate: isdate, //发证日期
- cartype: data.carInfo.motorTypeCode,
- carnature: data.carInfo.motorUsageTypeCode,
- licenseTypeCode: data.carInfo.plateType, //所属性质
- registerDate: rdate, //注册日期
- vinNo: data.carInfo.vIN, //车架号
- frameNo: data.carInfo.vIN, //车架号
- brandName: data.carInfo.backOcrID, //品牌型号
- }
- uni.uploadFile({
- url: `${this.$base.baseUrl}/order/identify/drivingPermit`,
- filePath: filelist[1],
- name: "image2",
- header: {
- Authorization: store.state.token,
- },
- success: (uploadFileRes) => {
- let data1 = JSON.parse(uploadFileRes.data).data;
- this.carback = {
- vehicleweight: data1.carInfo.grossMass, //总质量
- completeKerbMass: data1.carInfo
- .unladenMass, //整备质量
- seatCount: data1.carInfo
- .approvedPassengersCapacity, //核定载客数
- }
- this.checkInfo = Object.assign(this.carfront, this
- .carback)
- this.lodingshow = false;
- this.checkInfoShow = true;
- }
- });
- }
- });
- break;
- case "ownerInfo":
- case "policyHolderInfo":
- case "insuredPersonInfo":
- let ownerInfolist = await this.choosepars(type + 'Rmation') //储存影像id
- uni.uploadFile({
- url: `${this.$base.baseUrl}/order/identify/idCard`,
- filePath: ownerInfolist[0],
- name: "image1",
- header: {
- Authorization: store.state.token,
- },
- success: (uploadFileRes) => {
- let data = JSON.parse(uploadFileRes.data).data;
- this.userfront = {
- type: type,
- name: data.customerInfo.name,
- identifyNumber: data.customerInfo.identifyNumber,
- addr: data.customerInfo.addr,
- }
- uni.uploadFile({
- url: `${this.$base.baseUrl}/order/identify/idCard`,
- filePath: ownerInfolist[1],
- name: "image2",
- header: {
- Authorization: store.state.token,
- },
- success: (uploadFileRes) => {
- let data1 = JSON.parse(uploadFileRes.data).data;
- let identifyValidDate = '';
- if (!!data1.customerInfo.identifyValidDate) {
- identifyValidDate = data1.customerInfo
- .identifyValidDate.substr(0, 4) +
- '-' + data1.customerInfo
- .identifyValidDate.substr(4, 2) + '-' + data1
- .customerInfo
- .identifyValidDate
- .substr(6,
- 2)
- }
- let identifyValidEndDate = '';
- if (!!data1.customerInfo.identifyValidEndDate) {
- identifyValidEndDate = data1.customerInfo
- .identifyValidEndDate.substr(0,
- 4) + '-' + data1.customerInfo
- .identifyValidEndDate.substr(4, 2) + '-' +
- data1
- .customerInfo
- .identifyValidEndDate.substr(6, 2)
- }
- this.userback = {
- identifyValidDate: identifyValidDate, //起期
- identifyValidEndDate: identifyValidEndDate, //止期
- }
- this.checkInfo = Object.assign(this.userfront, this
- .userback)
- this.lodingshow = false;
- this.checkInfoShow = true;
- }
- });
- }
- });
- break;
- default:
- }
- },
- //自定义影像上传识别
- async choosepars(imageName) {
- let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
- count: 2,
- sizeType: ['compressed']
- });
- this.lodingshow = true;
- // 上传
- this.checkImage = chooseImageRes.tempFilePaths;
- this[imageName] = [];
- chooseImageRes.tempFilePaths.map((ele, index) => {
- uni.uploadFile({
- url: `${this.$base.baseUrl}/ins/taskImage/uploadFile`,
- filePath: ele,
- name: "multipartFile",
- formData: {
- 'type': 'image',
- },
- header: {
- Authorization: store.state.token,
- },
- success: (imgRes) => {
- let id = JSON.parse(imgRes.data).data.id;
- this[imageName].push(id)
- }
- });
- })
- return chooseImageRes.tempFilePaths;
- },
- // 取消验证信息
- cancelCheckInfo() {
- this.checkInfoShow = false;
- },
- // 关闭验证信息
- closeCheckInfo(params) {
- if (params.checkType == 2) {
- if (params.checkInfo.licenseNo != this.licenseNo) {
- uni.showModal({
- content: '识别到的车辆信息与录入车辆信息不一致,是否覆盖之前车辆信息',
- success: (res) => {
- if (res.confirm) {
- for (var key in this.carInfo) {
- this.carInfo[key] = "";
- }
- this.carInfo.seatCount = "0";
- this.carInfo.purchasePrice = "0";
- this.carInfo.licenseTypeCode = "02";
- this.carInfo.caryear = "0"; //年款
- this.carInfo.powertype = "汽油";
- this.carInfo.transferFlag = false;
- this.carInfo.loanStatus = 0;
- this.carInfo.noLicenseFlag = false;
- this.carInfo.cartype = "A0";
- this.carInfo.carnature = "8A";
- this.carInfo.property = "1";
- this.checkInfoShow = false;
- this.carInfo.brandName = '';
- Object.assign(this.carInfo, params.checkInfo);
- this.licenseNo = params.checkInfo.licenseNo;
- }
- }
- });
- } else {
- Object.assign(this.carInfo, params.checkInfo);
- this.licenseNo = params.checkInfo.licenseNo;
- this.checkInfoShow = false;
- }
- for (let i = 0; i < this.carnatureList.length; i++) {
- if (this.carInfo.carnature == this.carnatureList[i].id) {
- this.carnatureIndex = i;
- }
- }
- } else if (params.checkType == 1) {
- if (params.checkInfo.type == 'ownerInfo') {
- this.ownerInfo = {
- name: params.checkInfo.name,
- identifyType: "01",
- identifyNumber: params.checkInfo.identifyNumber,
- addr: params.checkInfo.addr,
- identifyValidDate: params.checkInfo.identifyValidDate, //起期
- identifyValidEndDate: params.checkInfo.identifyValidEndDate, //止期
- email: "",
- mobile: ""
- }
- } else if (params.checkInfo.type == 'policyHolderInfo') {
- this.policyHolderInfo = {
- name: params.checkInfo.name,
- identifyType: "01",
- identifyNumber: params.checkInfo.identifyNumber,
- addr: params.checkInfo.addr,
- identifyValidDate: params.checkInfo.identifyValidDate, //起期
- identifyValidEndDate: params.checkInfo.identifyValidEndDate, //止期
- email: "",
- mobile: ""
- }
- } else {
- this.insuredPersonInfo = {
- name: params.checkInfo.name,
- identifyType: "01",
- identifyNumber: params.checkInfo.identifyNumber,
- addr: params.checkInfo.addr,
- identifyValidDate: params.checkInfo.identifyValidDate, //起期
- identifyValidEndDate: params.checkInfo.identifyValidEndDate, //止期
- email: "",
- mobile: ""
- }
- }
- this.checkInfoShow = false;
- }
- },
- /**
- * 复写 binddata 方法,如果只是为了校验,无复杂自定义操作,可忽略此方法
- * @param {String} name 字段名称
- * @param {String} value 表单域的值
- */
- binddata(name, value, type) {
- // 通过 input 事件设置表单指定 name 的值
- this.$refs[type].setValue(name, value)
- },
- //转变大写(车型/车架号/发动机号)
- upperCaseType(type) {
- this.carInfo[type] = this.carInfo[type].toUpperCase();
- if (type == 'vinNo') {
- this.carInfo.frameNo = this.carInfo.vinNo.trim();
- }
- },
- //下拉改变触发该方法
- bindPickerChange(e, type) {
- this[type + 'Index'] = e.target.value;
- this.carInfo[type] = this[type + 'List'][e.target.value].id;
- },
- // 身份证类型选择
- bindIdentifyTypeChange(e, type) {
- this[type + 'IdentifyIndex'] = e.target.value;
- this[type + 'Info'].identifyType = this.identifyList[e.target.value].id;
- this[type + 'Info'].identifyNumber = '';
- },
- bindDateChange(e, type) { //日期赋值
- if ((type == 'issueDate') && (!this.carInfo.registerDate)) {
- return uni.showToast({
- title: '请先输入注册日期',
- icon: "none"
- });
- }
- this.carInfo[type] = e.detail.value;
- if (new Date(this.carInfo.registerDate) > new Date(this.carInfo.issueDate)) {
- this.carInfo.issueDate = ""
- return uni.showToast({
- title: '注册日期大于发证日期',
- icon: "none"
- });
- }
- },
- // 是否过户
- isChangeStatus(e) {
- if (e.detail.value) {
- this.carInfo.transferFlag = true;
- } else {
- this.carInfo.transferFlag = false;
- }
- },
- //长期
- insureLongterm(checked, e) {
- checked.detail.value == true ? this[e].identifyValidEndDate = "9999-12-31" : this[e].identifyValidEndDate =
- "";
- },
- //日期(可以选择20年以内的时间)
- getDate(type) {
- const date = new Date();
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
- if (type === 'start') {
- year = year - 20;
- } else if (type === 'end') {}
- month = month > 9 ? month : '0' + month;;
- day = day > 9 ? day : '0' + day;
- return `${year}-${month}-${day}`;
- },
- //同车主信息
- syncPersonInfo(e, type, touch1, touch2) {
- this[type] = e.detail.value;
- this[touch1 + 'IdentifyIndex'] = this[touch2 + 'IdentifyIndex'];
- if (this[type]) {
- this[touch1 + 'Info'] = JSON.parse(JSON.stringify(this[touch2 + 'Info']));
- } else {
- for (let key in this[touch1 + "Info"]) {
- this[touch1 + "Info"][key] = '';
- }
- }
- },
- //跳转选择车辆类型页面
- toChooseVehicleType() {
- if (this.carInfo.brandName == '' || this.carInfo.brandName == null) {
- uni.showToast({
- icon: 'none',
- title: '请输入车型名称',
- duration: 1500
- });
- } else {
- this.navigate({
- url: '/pages/carInsure1/carType1?brandName=' + encodeURIComponent(this.carInfo.brandName)
- }, "navigateTo", true);
- }
- },
- // 通过车架号获取车型
- async toChooseVin() {
- if (this.carInfo.vinNo == '' || this.carInfo.vinNo == null) {
- return uni.showToast({
- icon: 'none',
- title: '请输入车架号',
- duration: 1500
- });
- } else {
- if (!this.isFrameno(this.carInfo.vinNo.trim())) {
- return uni.showToast({
- title: '请输入正确的车架号',
- icon: "none"
- });
- }
- this.navigate({
- url: '/pages/carInsure1/carType1?frameNo=' + encodeURIComponent(this.carInfo.vinNo)
- }, "navigateTo", true);
- this.carInfo.vinNo = this.carInfo.vinNo.trim();
- this.carInfo.frameNo = this.carInfo.vinNo.trim();
- }
- },
- //验证车架号
- isFrameno(str) {
- let mPattern = /^([0-9A-Z]){17}$/;
- return mPattern.test(str);
- },
- toNext() {
- if (this.holderAndOwner) { //投保人同车主
- this.policyHolderInfo = this.ownerInfo;
- this.policyHolderInfoRmation = this.ownerInfoRmation;
- }
- if (this.insuredAndOwner) { //被保人同车主
- this.insuredPersonInfo = this.ownerInfo;
- this.insuredPersonInfoRmation = this.ownerInfoRmation;
- }
- if (this.tbrAndOwner) { //被保人同投保人
- this.insuredPersonInfo = this.policyHolderInfo;
- this.insuredPersonInfoRmation = this.policyHolderInfoRmation;
- }
- this.$refs.carForm.submit().then(res => {
- this.$refs.ownerForm.submit().then(res1 => {
- this.$refs.policyHolderForm.submit().then(res2 => {
- this.$refs.insuredPersonForm.submit().then(res3 => {
- this.navigate({
- url: '/pages/carInsure1/insureItems1',
- success: (res) => {
- res.eventChannel.emit("acceptData", {
- carInfo: this.carInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this
- .policyHolderInfo,
- insuredPersonInfo: this
- .insuredPersonInfo,
- riskList: this.riskList,
- kindList: this.kindList,
- carInfoRmation: this
- .carInfoRmation, //车辆
- ownerInfoRmation: this
- .ownerInfoRmation, //车主
- policyHolderInfoRmation: this
- .policyHolderInfoRmation, //投保人
- insuredPersonInfoRmation: this
- .insuredPersonInfoRmation, //被保人
- })
- }
- }, "navigateTo", true);
- })
- })
- })
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '@/style/mixin.scss';
- /deep/ .uni-group__content {
- padding-top: 0;
- }
- /deep/ .uni-forms--top {
- padding: 0;
- }
- /deep/ .uni-forms-item {
- margin-bottom: 0;
- }
- /deep/ .uni-input-input {
- font-size: 26upx;
- }
- /deep/ .uni-switch-input-checked {
- background-color: $themeColor !important;
- border-color: $themeColor !important;
- }
- /deep/ .uni-group__content {
- padding-bottom: 0;
- }
- /deep/ .uni-input-input {
- font-size: 28upx;
- }
- .body {
- width: 100vw;
- /* min-height: 100vh; */
- background: #f5f5f5;
- /* background: #FFFFFF; */
- font-family: "Arial,Helvetica,sans-serif,PingFangSC";
- }
- .title {
- height: 90upx;
- border-bottom: 1px solid #EEEEEE;
- }
- .checkButton {
- margin: 0 20upx;
- width: 100upx;
- height: 50upx;
- flex-shrink: 1;
- background: rgba($themeColor, 0.6);
- color: #FFFFFF;
- border-radius: 5upx;
- }
- .textColor {
- color: #6091f5;
- }
- textarea {
- font-size: 28upx;
- width: 330upx;
- }
- /* 底部的样式Start */
- .infoBottom {
- height: 140upx;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- background: #FFFFFF;
- border-top: 1upx solid #EEEEEE;
- z-index: 99;
- }
- .infoBottom>button {
- // font-size: 30upx;
- background: $themeColor;
- color: #FFFFFF;
- flex: 1;
- margin: 0upx 30upx;
- }
- /* 底部的样式End */
- .mask {
- /* pointer-events: none; */
- position: fixed;
- z-index: 99999;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- height: 100vh;
- width: 100vw;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- }
- .mask.mask-show {
- background: rgba(255, 255, 255, 0.3);
- }
- .title {
- color: #333;
- font-size: 28rpx;
- margin-top: 20rpx;
- }
- .loader {
- display: block;
- width: 120rpx;
- height: 120rpx;
- border-radius: 50%;
- border: 3rpx solid transparent;
- border-top-color: #9370db;
- -webkit-animation: spin 2s linear infinite;
- animation: spin 2s linear infinite;
- }
- .loader::before {
- content: "";
- position: absolute;
- top: 5rpx;
- left: 5rpx;
- right: 5rpx;
- bottom: 5rpx;
- border-radius: 50%;
- border: 3rpx solid transparent;
- border-top-color: #ba55d3;
- -webkit-animation: spin 3s linear infinite;
- animation: spin 3s linear infinite;
- }
- .loader::after {
- content: "";
- position: absolute;
- top: 15rpx;
- left: 15rpx;
- right: 15rpx;
- bottom: 15rpx;
- border-radius: 50%;
- border: 3rpx solid transparent;
- border-top-color: #ff00ff;
- -webkit-animation: spin 1.5s linear infinite;
- animation: spin 1.5s linear infinite;
- }
- @-webkit-keyframes spin {
- 0% {
- -webkit-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes spin {
- 0% {
- -webkit-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- </style>
|