carInfo1.vue 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825
  1. <template>
  2. <view class="body">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <uni-group title="" class="carInfo">
  6. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind" err-show-type="toast"
  7. label-width="100">
  8. <uni-forms-item>
  9. <view class="title d-flex a-center j-sb font-md">
  10. <text class="font-weight">车辆信息</text>
  11. <view class="icon iconfont icon-hangshizhengshibie font-lg main-text-color"
  12. @tap="chooseImage('carInfo',1)" style="margin-right: 14px;"></view>
  13. </view>
  14. </uni-forms-item>
  15. <uni-forms-item label="车牌号: ">
  16. <input class="uni-input-input textColor" placeholder="暂未上牌" v-model="carInfo.licenseNo"
  17. placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
  18. </uni-forms-item>
  19. <uni-forms-item name="frameNo" required label="车辆识别码:">
  20. <view class="d-flex a-center" style="height: 100%;">
  21. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码" v-model="carInfo.frameNo"
  22. maxlength="17" @blur="binddata('frameNo', $event.detail.value,'carForm')"
  23. placeholder-style="font-size:28upx" @input="upperCaseType('frameNo')" />
  24. <text class="checkButton d-flex a-center j-center" @tap="toChooseVin(carInfo.frameNo)">校验</text>
  25. </view>
  26. </uni-forms-item>
  27. <uni-forms-item name="modelcname" required label="品牌型号: ">
  28. <view class="d-flex a-center textColor" style="height: 100%;">
  29. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  30. v-model="carInfo.modelcname" @blur="binddata('modelcname', $event.detail.value,'carForm')"
  31. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  32. <text class="checkButton d-flex a-center j-center"
  33. @tap="toChooseVehicleType(carInfo.modelcname)">校验</text>
  34. </view>
  35. </uni-forms-item>
  36. <uni-forms-item name="engineNo" required label="发动机号: ">
  37. <input class="uni-input-input textColor" placeholder="请输入发动机号" v-model="carInfo.engineNo"
  38. @blur="binddata('engineNo', $event.detail.value,'carForm')" placeholder-style="font-size:28upx"
  39. @input="upperCaseType('engineNo')" />
  40. </uni-forms-item>
  41. <uni-forms-item label="年款: ">
  42. <input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
  43. placeholder-style="font-size:28upx" />
  44. </uni-forms-item>
  45. <uni-forms-item label="座位数: ">
  46. <input class="uni-input-input textColor" placeholder="请输入座位数" v-model="carInfo.seatCount"
  47. placeholder-style="font-size:28upx" />
  48. </uni-forms-item>
  49. <uni-forms-item label="排量: ">
  50. <input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
  51. placeholder-style="font-size:28upx" />
  52. </uni-forms-item>
  53. <uni-forms-item label="功率: ">
  54. <input class="uni-input-input textColor" placeholder="请输入功率" v-model="carInfo.powerScale"
  55. placeholder-style="font-size:28upx" />
  56. </uni-forms-item>
  57. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  58. <input class="uni-input-input textColor" placeholder="请输入新车购置价" v-model="carInfo.purchasePrice"
  59. placeholder-style="font-size:28upx"
  60. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  61. @input="upperCaseType('purchasePrice')" />
  62. </uni-forms-item>
  63. <uni-forms-item required label="使用性质: " required>
  64. <view class="d-flex a-center" style="width:100%;height: 100%;" @click="carnatureshow=true">
  65. <u-select v-model="carnatureshow" mode="single-column" :list="natureOfVehicleUseoptions"
  66. @confirm="dictionaryConfirm($event,'carnature')" label-name="dictTag"
  67. value-name="dictValue"></u-select>
  68. <view class="textColor">{{carInfo1.carnature}}</view>
  69. </view>
  70. </uni-forms-item>
  71. <uni-forms-item label="车辆用途: ">
  72. <view class="d-flex a-center" style="width:100%;height: 100%;" @click="vehicleUseshow=true">
  73. <u-select v-if="carInfo.carnature=='01'" v-model="vehicleUseshow" mode="single-column"
  74. :list="businessVehicleUseoptions" @confirm="dictionaryConfirm($event,'vehicleUse')"
  75. label-name="dictTag" value-name="dictValue"></u-select>
  76. <u-select v-if="carInfo.carnature=='02'" v-model="vehicleUseshow" mode="single-column"
  77. :list="outOfBusinessVehicleUseoptions" @confirm="dictionaryConfirm($event,'vehicleUse')"
  78. label-name="dictTag" value-name="dictValue"></u-select>
  79. <view class="textColor">{{carInfo1.vehicleUse}}</view>
  80. </view>
  81. </uni-forms-item>
  82. <uni-forms-item label="车辆类型: " required>
  83. <view class="d-flex a-center" style="width:100%;height: 100%;" @click="cartypeshow=true">
  84. <u-select v-model="cartypeshow" mode="single-column" :list="trafficManagementVehicleTypeoptions"
  85. @confirm="dictionaryConfirm($event,'cartype')" label-name="dictTag"
  86. value-name="dictValue"></u-select>
  87. <view class="textColor">{{carInfo1.cartype}}</view>
  88. </view>
  89. </uni-forms-item>
  90. <uni-forms-item label="车辆种类:" required>
  91. <view class="d-flex a-center" style="width:100%;height: 100%;" @click="cimodelclassshow=true">
  92. <u-select v-model="cimodelclassshow" mode="single-column" :list="vehicleTypeoptions"
  93. @confirm="dictionaryConfirm($event,'cimodelclass')" label-name="dictTag"
  94. value-name="dictValue"></u-select>
  95. <view class="textColor">{{carInfo1.cimodelclass}}</view>
  96. </view>
  97. </uni-forms-item>
  98. <uni-forms-item label="能源种类: " required name="energyType">
  99. <view class="d-flex a-center" style="width:100%;height: 100%;" @click="energyTypeshow=true">
  100. <u-select v-model="energyTypeshow" mode="single-column" :list="energyTypeoptions"
  101. @confirm="dictionaryConfirm($event,'energyType')" label-name="dictTag"
  102. value-name="dictValue"></u-select>
  103. <view class="textColor">{{carInfo1.energyType}}</view>
  104. </view>
  105. </uni-forms-item>
  106. <uni-forms-item required label="注册日期" name="registerDate" style="margin-right: 14px;">
  107. <u-input type="select" :select-open="registerDateShow" v-model="carInfo.registerDate"
  108. placeholder="请选择注册日期" @click="registerDateShow = true"
  109. placeholder-style="color:#808080"></u-input>
  110. <u-picker v-model="registerDateShow" mode="time" :params="params" :end-year="endYear"
  111. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  112. </uni-forms-item>
  113. <uni-forms-item required label="发证日期" name="issueDate" style="margin-right: 14px;">
  114. <u-input type="select" :select-open="issueDateShow" v-model="carInfo.issueDate"
  115. placeholder="请选择发证日期" @click="issueDateShow = true" placeholder-style="color:#808080"></u-input>
  116. <u-picker v-model="issueDateShow" mode="time" :params="params"
  117. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  118. </uni-forms-item>
  119. <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate"
  120. style="margin-right: 14px;">
  121. <u-input type="select" :select-open="transferDateShow" v-model="carInfo.transferDate"
  122. placeholder="请选择过户日期" @click="transferDateShow = true"
  123. placeholder-style="color:#808080"></u-input>
  124. <u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
  125. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  126. </uni-forms-item>
  127. <uni-forms-item required label="是否过户: ">
  128. <view class="d-flex j-end a-c" style="height:100%">
  129. <u-switch v-model="carInfo.transferFlag" active-color="#ea552d " size="30"
  130. style="margin-right: 15px;" @change="transferFlagchange"></u-switch>
  131. </view>
  132. </uni-forms-item>
  133. <uni-forms-item required label="是否脱保: ">
  134. <view class="d-flex j-end a-c" style="height:100%">
  135. <u-switch v-model="carInfo.outOfInsurance" active-color="#ea552d " size="30"
  136. style="margin-right: 15px;"></u-switch>
  137. </view>
  138. </uni-forms-item>
  139. <uni-forms-item required label="是否二手车: ">
  140. <view class="d-flex j-end a-c" style="height:100%">
  141. <u-switch v-model="carInfo.secondhandcarflag" active-color="#ea552d " size="30"
  142. style="margin-right: 15px;"></u-switch>
  143. </view>
  144. </uni-forms-item>
  145. </uni-forms>
  146. </uni-group>
  147. <uni-group title="" top="10">
  148. <uni-forms :rules="ownerRules" :value="ownerInfo" ref="ownerForm" validate-trigger="bind"
  149. err-show-type="toast" label-width="100">
  150. <uni-forms-item>
  151. <view class="title d-flex a-center j-sb font-md">
  152. <text class="font-weight">车主</text>
  153. <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
  154. @tap="chooseImage('ownerInfo',2)" style="margin-right: 14px;"></view>
  155. </view>
  156. </uni-forms-item>
  157. <uni-forms-item name="name" required label="姓名: ">
  158. <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="ownerInfo.name" maxlength="5"
  159. placeholder-style="font-size:28upx" />
  160. </uni-forms-item>
  161. <uni-forms-item name="identifyType" required label="证件类型:">
  162. <view class="d-flex a-center" style="width:100%;height: 100%;">
  163. <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
  164. range-key="label" :range="identifyList" v-model="ownerIdentifyIndex"
  165. @change="bindIdentifyTypeChange($event,'owner')">
  166. <view class="textColor">{{identifyList[ownerIdentifyIndex]['label']}}</view>
  167. </picker>
  168. </view>
  169. </uni-forms-item>
  170. <uni-forms-item required name="identifyNumber" label="证件号: ">
  171. <input class="uni-input-input textColor" placeholder="请输入证件号" v-model="ownerInfo.identifyNumber"
  172. maxlength="18" @blur="binddata('identifyNumber', $event.detail.value,'ownerInfo')"
  173. placeholder-style="font-size:28upx" />
  174. </uni-forms-item>
  175. <uni-forms-item required name="age" label="年龄: ">
  176. <input class="uni-input-input textColor" disabled placeholder="请输入年龄" v-model="ownerInfo.age"
  177. maxlength="18" placeholder-style="font-size:28upx" />
  178. </uni-forms-item>
  179. <uni-forms-item required name="mobile" label="手机号: ">
  180. <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="ownerInfo.mobile"
  181. maxlength="11" placeholder-style="font-size:28upx" />
  182. </uni-forms-item>
  183. <uni-forms-item required name="addr" label="地址: " style="margin-right: 14px;">
  184. <textarea class="textColor" v-model="ownerInfo.addr"
  185. style="width:100%;line-height: 50upx;margin-top: 15upx;" placeholder-style="font-size:28upx;"
  186. placeholder="请输入地址" auto-height />
  187. </uni-forms-item>
  188. <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
  189. <u-input type="select" :select-open="ownerDateShow" v-model="ownerInfo.identifyValidDate"
  190. placeholder="请选择有效期起期" @click="ownerDateShow = true"
  191. placeholder-style="color:#808080"></u-input>
  192. <u-picker v-model="ownerDateShow" mode="time" :params="params"
  193. @confirm="e=> Dateconfirm(e,'ownerInfo','identifyValidDate')"></u-picker>
  194. </uni-forms-item>
  195. <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
  196. <view class="dis j-s a-c">
  197. <u-input type="select" :select-open="ownerEndDateShow" v-model="ownerInfo.identifyValidEndDate"
  198. placeholder="请选择有效期止期" @click="ownerEndDateShow = true" placeholder-style="color:#808080"
  199. style="margin-right: 14px;"></u-input>
  200. <view class=" dis j-c a-c ">
  201. <text>长期</text>
  202. <switch style="transform: scale(0.6)"
  203. @change="checked=> insureLongterm(checked,'ownerInfo')" />
  204. </view>
  205. </view>
  206. <u-picker v-model="ownerEndDateShow" mode="time" :params="params"
  207. @confirm="e=> Dateconfirm(e,'ownerInfo','identifyValidEndDate')"></u-picker>
  208. </uni-forms-item>
  209. </uni-forms>
  210. </uni-group>
  211. <uni-group title="" top="10">
  212. <uni-forms :rules="policyHolderRules" :value="policyHolderInfo" ref="policyHolderForm"
  213. validate-trigger="bind" err-show-type="toast" label-width="100">
  214. <uni-forms-item>
  215. <view class="title d-flex a-center j-sb font-md">
  216. <text class="font-weight">投保人</text>
  217. <view class="d-flex a-center j-sb">
  218. <switch style="transform: scale(0.6);" :checked="holderAndOwner"
  219. @change="e=>syncPersonInfo(e,'holderAndOwner','policyHolder','owner')" />
  220. <text style="margin-right: 10px;">同车主</text>
  221. <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
  222. @tap="chooseImage('policyHolderInfo',3)" style="margin-right: 14px;"></view>
  223. </view>
  224. </view>
  225. </uni-forms-item>
  226. <template v-if="!holderAndOwner">
  227. <uni-forms-item name="name" required label="姓名: ">
  228. <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="policyHolderInfo.name"
  229. maxlength="5" @blur="binddata('name', $event.detail.value,'policyHolderForm')"
  230. placeholder-style="font-size:28upx" />
  231. </uni-forms-item>
  232. <uni-forms-item name="identifyType" required label="证件类型: ">
  233. <view class="d-flex a-center" style="width:100%;height: 100%;">
  234. <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
  235. range-key="label" :range="identifyList" v-model="policyHolderIdentifyIndex"
  236. @change="bindIdentifyTypeChange($event,'policyHolder')">
  237. <view class="textColor">{{identifyList[policyHolderIdentifyIndex]['label']}}</view>
  238. </picker>
  239. </view>
  240. </uni-forms-item>
  241. <uni-forms-item required name="identifyNumber" label="证件号: ">
  242. <input class="uni-input-input textColor" placeholder="请输入证件号"
  243. v-model="policyHolderInfo.identifyNumber" maxlength="18"
  244. @blur="binddata('identifyNumber', $event.detail.value,'policyHolderForm')"
  245. placeholder-style="font-size:28upx" />
  246. </uni-forms-item>
  247. <uni-forms-item required name="mobile" label="手机号: ">
  248. <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="policyHolderInfo.mobile"
  249. maxlength="11" @blur="binddata('mobile', $event.detail.value,'policyHolderForm')"
  250. placeholder-style="font-size:28upx" />
  251. </uni-forms-item>
  252. <uni-forms-item required name="addr" label="地址: ">
  253. <textarea class="textColor" v-model="policyHolderInfo.addr"
  254. style="width:100%;line-height: 50upx;margin-top: 15upx;"
  255. placeholder-style="font-size:28upx;" placeholder="请输入地址" auto-height
  256. @blur="binddata('addr', $event.detail.value,'policyHolderForm')" />
  257. </uni-forms-item>
  258. <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
  259. <u-input type="select" :select-open="policyHolderDateShow"
  260. v-model="policyHolderInfo.identifyValidDate" placeholder="请选择有效期起期"
  261. @click="policyHolderDateShow = true" placeholder-style="color:#808080"></u-input>
  262. <u-picker v-model="policyHolderDateShow" mode="time" :params="params"
  263. @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidDate')"></u-picker>
  264. </uni-forms-item>
  265. <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
  266. <view class="dis j-s a-c">
  267. <u-input type="select" :select-open="policyHolderEndDateShow"
  268. v-model="policyHolderInfo.identifyValidEndDate" placeholder="请选择有效期止期"
  269. @click="policyHolderEndDateShow = true" placeholder-style="color:#808080"
  270. style="margin-right: 14px;"></u-input>
  271. <view class=" dis j-c a-c ">
  272. <text>长期</text>
  273. <switch style="transform: scale(0.6)"
  274. @change="checked=>insureLongterm(checked,'policyHolderInfo')" />
  275. </view>
  276. </view>
  277. <u-picker v-model="policyHolderEndDateShow" mode="time" :params="params"
  278. @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidEndDate')"></u-picker>
  279. </uni-forms-item>
  280. </template>
  281. </uni-forms>
  282. </uni-group>
  283. <uni-group title="" top="10">
  284. <uni-forms :rules="insuredPersonRules" :value="insuredPersonInfo" ref="insuredPersonForm"
  285. validate-trigger="bind" err-show-type="toast" label-width="100">
  286. <uni-forms-item>
  287. <view class="title d-flex a-center j-sb font-md">
  288. <text class="font-weight">被保人</text>
  289. <view class="d-flex a-center j-sb">
  290. <view class="d-flex a-center j-sb">
  291. <switch style="transform: scale(0.6);" :checked="tbrAndOwner"
  292. @change="e=>syncPersonInfo(e,'tbrAndOwner','insuredPerson','policyHolder','insuredAndOwner')" />
  293. <text style="margin-right: 10px;">同投保人</text>
  294. </view>
  295. <view class="d-flex a-center j-sb" v>
  296. <switch style="transform: scale(0.6);" :checked="insuredAndOwner"
  297. @change="e=>syncPersonInfo(e,'insuredAndOwner','insuredPerson','owner','tbrAndOwner')" />
  298. <text style="margin-right: 10px;">同车主</text>
  299. </view>
  300. <view class="icon iconfont icon-shenfenzhengshibie font-lg main-text-color"
  301. @tap="chooseImage('insuredPersonInfo',4)" style="margin-right: 14px;"></view>
  302. </view>
  303. </view>
  304. </uni-forms-item>
  305. <template v-if="!insuredAndOwner && !tbrAndOwner">
  306. <uni-forms-item name="name" required label="姓名: ">
  307. <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="insuredPersonInfo.name"
  308. maxlength="5" @blur="binddata('name', $event.detail.value,'insuredPersonForm')"
  309. placeholder-style="font-size:28upx" />
  310. </uni-forms-item>
  311. <uni-forms-item name="identifyType" required label="证件类型: ">
  312. <view class="d-flex a-center" style="width:100%;height: 100%;">
  313. <picker disabled class="d-flex a-center" style="width:100%;height: 100%;" mode="selector"
  314. range-key="label" :range="identifyList" v-model="insuredPersonIdentifyIndex"
  315. @change="bindIdentifyTypeChange($event,'insuredPerson')">
  316. <view class="textColor">{{identifyList[insuredPersonIdentifyIndex]['label']}}</view>
  317. </picker>
  318. </view>
  319. </uni-forms-item>
  320. <uni-forms-item required name="identifyNumber" label="证件号: ">
  321. <input class="uni-input-input textColor" placeholder="请输入证件号"
  322. v-model="insuredPersonInfo.identifyNumber" maxlength="18"
  323. @blur="binddata('identifyNumber', $event.detail.value,'insuredPersonForm')"
  324. placeholder-style="font-size:28upx" />
  325. </uni-forms-item>
  326. <uni-forms-item required name="mobile" label="手机号: ">
  327. <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="insuredPersonInfo.mobile"
  328. maxlength="11" @blur="binddata('mobile', $event.detail.value,'insuredPersonForm')"
  329. placeholder-style="font-size:28upx" />
  330. </uni-forms-item>
  331. <uni-forms-item required name="addr" label="地址: ">
  332. <textarea class="textColor" v-model="insuredPersonInfo.addr"
  333. style="width:100%;line-height: 50upx;margin-top: 15upx;"
  334. placeholder-style="font-size:28upx;" placeholder="请输入地址" auto-height
  335. @blur="binddata('addr', $event.detail.value,'insuredPersonForm')" />
  336. </uni-forms-item>
  337. <uni-forms-item required label="有效期起期" name="identifyValidDate" style="margin-right: 14px;">
  338. <u-input type="select" :select-open="insuredPersonDateShow"
  339. v-model="insuredPersonInfo.identifyValidDate" placeholder="请选择有效期起期"
  340. @click="insuredPersonDateShow = true" placeholder-style="color:#808080"></u-input>
  341. <u-picker v-model="insuredPersonDateShow" mode="time" :params="params"
  342. @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidDate')"></u-picker>
  343. </uni-forms-item>
  344. <uni-forms-item required label="有效期止期" name="identifyValidEndDate">
  345. <view class="dis j-s a-c">
  346. <u-input type="select" :select-open="insuredPersonEndDateShow"
  347. v-model="insuredPersonInfo.identifyValidEndDate" placeholder="请选择有效期止期"
  348. @click="insuredPersonEndDateShow = true" placeholder-style="color:#808080"
  349. style="margin-right: 14px;"></u-input>
  350. <view class=" dis j-c a-c ">
  351. <text>长期</text>
  352. <switch style="transform: scale(0.6)"
  353. @change="checked=>insureLongterm(checked,'insuredPersonInfo')" />
  354. </view>
  355. </view>
  356. <u-picker v-model="insuredPersonEndDateShow" mode="time" :params="params"
  357. @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidEndDate')"></u-picker>
  358. </uni-forms-item>
  359. </template>
  360. </uni-forms>
  361. </uni-group>
  362. <view style="height: 160upx;"></view>
  363. <view class="infoBottom d-flex a-center j-center j-sb">
  364. <button type="default" class="d-flex a-center j-center" @tap="toNext">下一步</button>
  365. </view>
  366. <view class="mask mask-show" v-if="lodingshow">
  367. <!-- 加载动画开始 -->
  368. <view class="preloader">
  369. <view class="loader"></view>
  370. </view>
  371. <!-- 加载动画结束 -->
  372. <view class="title">加载中...</view>
  373. </view>
  374. <u-popup v-model="ImageOcrShow" mode="center" width="90%" border-radius="10" @close="ImagePopClose">
  375. <view class="popContent dis f-c a-c j-s">
  376. <view class="popHeader ">信息校验</view>
  377. <view v-if="checkType=='carInfo'" class="" style="padding: 4px 10px;width: 100%;">
  378. <view class="imgOcr dis j-s a-c">
  379. <view class="imgOcr-border">
  380. <u-icon v-if="carfrontImg" class="del_btn" name="close-circle-fill" style="font-size: 20px;"
  381. color="rgb(247, 247, 247)" @click="del_btn('carfrontImg')"></u-icon>
  382. <image class="obverseimg" :src="carfrontImg?carfrontImg:'/static/carfront.png'"
  383. @click="carfrontChange" mode="">
  384. </view>
  385. <view class="imgOcr-border">
  386. <u-icon v-if="carbackImg" class="del_btn" name="close-circle-fill" style="font-size: 20px;"
  387. color="rgb(247, 247, 247)" @click="del_btn('carbackImg')"></u-icon>
  388. <image class="obverseimg" :src="carbackImg?carbackImg:'/static/carback.png'"
  389. @click="carbackChange" mode="">
  390. </view>
  391. </view>
  392. <view class="line dis j-s a-c" style="margin-top: 10px;">
  393. <text>车主</text>
  394. <u-input v-model="carfront.carOwner" placeholder="请输入车主" />
  395. </view>
  396. <view class="line dis j-s a-c">
  397. <text>车牌号</text>
  398. <u-input v-model="carfront.licenseNo" placeholder="请输入车牌号" />
  399. </view>
  400. <view class="line dis j-s a-c">
  401. <text>发动机号</text>
  402. <u-input v-model="carfront.engineNo" placeholder="请输入发动机号" />
  403. </view>
  404. <view class="line dis j-s a-c">
  405. <text>车架号</text>
  406. <u-input v-model="carfront.vinNo" placeholder="请输入车架号" />
  407. </view>
  408. <view class="line dis j-s a-c">
  409. <text>注册日期</text>
  410. <u-input v-model="carfront.registerDate" placeholder="请输入注册日期" />
  411. </view>
  412. <view class="line dis j-s a-c">
  413. <text>发证日期</text>
  414. <u-input v-model="carfront.issueDate" placeholder="请输入发证日期" />
  415. </view>
  416. </view>
  417. <view v-else class="" style="padding: 4px 10px;width: 100%;">
  418. <view class="imgOcr dis j-s a-c">
  419. <view class="imgOcr-border">
  420. <u-icon v-if="userfrontImg" class="del_btn" name="close-circle-fill"
  421. style="font-size: 20px;" color="rgb(247, 247, 247)"
  422. @click="del_btn('userfrontImg')"></u-icon>
  423. <image class="obverseimg" :src="userfrontImg?userfrontImg:'/static/userfront.png'"
  424. @click="userfrontChange" mode="">
  425. </view>
  426. <view class="imgOcr-border">
  427. <u-icon v-if="userbackImg" class="del_btn" name="close-circle-fill" style="font-size: 20px;"
  428. color="rgb(247, 247, 247)" @click="del_btn('userbackImg')"></u-icon>
  429. <image class="obverseimg" :src="userbackImg?userbackImg:'/static/userback.png'"
  430. @click="userbackChange" mode="">
  431. </view>
  432. </view>
  433. <view class="line dis j-s a-c" style="margin-top: 10px;">
  434. <text>姓名</text>
  435. <u-input v-model="userfront.name" placeholder="请输入姓名" />
  436. </view>
  437. <view class="line dis j-s a-c">
  438. <text>证件号</text>
  439. <u-input v-model="userfront.identifyNumber" placeholder="请输入证件号" />
  440. </view>
  441. <view class="line dis j-s a-c">
  442. <text>地址</text>
  443. <u-input v-model="userfront.addr" placeholder="请输入地址" />
  444. </view>
  445. <view class="line dis j-s a-c">
  446. <text>有效期起期</text>
  447. <u-input v-model="userback.identifyValidDate" placeholder="请输入有效期起期" />
  448. </view>
  449. <view class="line dis j-s a-c">
  450. <text>有效期止期</text>
  451. <u-input v-model="userback.identifyValidEndDate" placeholder="请输入有效期止期" />
  452. </view>
  453. </view>
  454. <view class="popFooter dis">
  455. <view class="popFooter-btn" @click="ImageOcrShow=false">取消</view>
  456. <view class="popFooter-btn" @click="CarOCRconfirm">确认</view>
  457. </view>
  458. </view>
  459. </u-popup>
  460. <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
  461. </view>
  462. </template>
  463. <script>
  464. import checkImageInfo from '@/components/modules/carInsure/checkImageInfo/checkImageInfo.vue'; //引用图片信息检查插件
  465. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  466. import {
  467. pathToBase64,
  468. base64ToPath
  469. } from '@/common/image-tools-base64.js';
  470. import {
  471. userInfo
  472. } from 'os';
  473. import store from '@/store';
  474. import $http from '../../config/requestConfig';
  475. import {
  476. getAgeByIdCard,
  477. addressCode
  478. } from '@/plugins/utils';
  479. import {
  480. Promise
  481. } from 'bluebird';
  482. var dateTime = new Date();
  483. let Year = dateTime.getFullYear();
  484. let Month = Number(dateTime.getMonth() + 1);
  485. export default {
  486. components: {
  487. checkImageInfo,
  488. previewImage
  489. },
  490. watch: {
  491. "carInfo.frameNo": {
  492. handler(val) {
  493. if (val) {
  494. this.carInfo.vinNo = val;
  495. }
  496. },
  497. deep: true
  498. },
  499. },
  500. data() {
  501. return {
  502. form: {
  503. name: "",
  504. },
  505. //影像id上传列表
  506. checkType: "",
  507. checkIndex: 1,
  508. carInfoPositiveList: [], //车辆
  509. ownerInfoPositiveList: [], //车主
  510. policyHolderInfoPositiveList: [], //投保人
  511. insuredPersonInfoPositiveList: [], //被保人
  512. carfront: {},
  513. carback: {},
  514. userfront: {},
  515. userback: {},
  516. carfrontImg: '', //车辆正面
  517. carbackImg: '', //车辆背面
  518. userfrontImg: '', //车主正面
  519. userbackImg: '', //车主背面
  520. carFile: [], //车辆识别list
  521. userFile: [], //车主识别list
  522. ImageOcrShow: false, //影像识别框
  523. vehicleUseshow: false,
  524. carnatureshow: false,
  525. cartypeshow: false,
  526. cimodelclassshow: false,
  527. energyTypeshow: false,
  528. lodingshow: false,
  529. endYear: Year,
  530. endMonth: Month,
  531. registerDateShow: false,
  532. issueDateShow: false,
  533. ownerDateShow: false,
  534. ownerEndDateShow: false,
  535. policyHolderDateShow: false,
  536. policyHolderEndDateShow: false,
  537. insuredPersonDateShow: false,
  538. insuredPersonEndDateShow: false,
  539. transferDateShow: false,
  540. params: {
  541. year: true, //年
  542. month: true, //月
  543. day: true, //日
  544. hour: false, //时
  545. minute: false, //分
  546. second: false, //秒
  547. },
  548. carInfo: {
  549. licenseNo: "", //车牌号
  550. brandName: "", //车辆品牌型号
  551. vinNo: "", //车架号
  552. engineNo: "", //发动机号
  553. modelCode: "", //车型编码
  554. seatCount: "0", //核定载客量 核定载人数
  555. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  556. carBrand: "", //车型品牌
  557. ciCarName: "", //行业车型名称
  558. ciModelCode: "", //行业车型编码
  559. completeKerbMass: "", //整备质量
  560. exhaustScale: "", //排量
  561. factory: "", //工厂名称
  562. factoryid: "", //工厂编码
  563. frameNo: "", //车架号
  564. licenseTypeCode: "02", //号牌种类
  565. vehicleclass: "", //车辆类型
  566. familyName: "", //车型
  567. modelcname: "", //车型名称
  568. powertypecode: "", //燃料类型编码
  569. vehicleweight: "", //总质量
  570. limitLoad: "", //核定载质量
  571. caryear: "0", //年款
  572. cimodelclass: "A0", //车辆种类
  573. powertype: "汽油", //燃料类型
  574. energyType: "0", //能源种类
  575. enginedesc: "", //排量
  576. powerScale: "", //功率
  577. registerDate: "", //注册日期
  578. issueDate: "", //发证日期
  579. transferFlag: false, //过户标志
  580. transferDate: "", //过户日期
  581. loanStatus: 0, //贷款标志
  582. firstBeneMan: "", //第一受益人
  583. noLicenseFlag: false, //是否新车
  584. cartype: "K33", //客车A0 货车H0          
  585. carnature: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  586. property: "1", //所属性质 1个人 2企业 3个人
  587. outOfInsurance: false, //脱保
  588. secondhandcarflag: false, //二手车
  589. vehicleUse: "05" //车辆用途
  590. },
  591. carInfo1: {
  592. energyType: "汽油",
  593. cimodelclass: "客车", //车辆种类
  594. carnature: "非营业",
  595. cartype: "k33轿车",
  596. vehicleUse: "",
  597. },
  598. carRules: {
  599. modelcname: {
  600. rules: [{
  601. required: true,
  602. errorMessage: '请输入品牌型号',
  603. }, ]
  604. },
  605. frameNo: {
  606. rules: [{
  607. required: true,
  608. errorMessage: '请输入车辆识别码',
  609. }, {
  610. pattern: /^([0-9A-Z]){17}$/,
  611. errorMessage: '请输入正确的车辆识别码',
  612. }]
  613. },
  614. engineNo: {
  615. rules: [{
  616. required: true,
  617. errorMessage: '请输入发动机号',
  618. }, ]
  619. },
  620. purchasePrice: {
  621. rules: [{
  622. required: true,
  623. errorMessage: '请输入新车购置价',
  624. }, {
  625. validateField: function(rule, value, data, callback) {
  626. if (value == 0) {
  627. callback('新车购置价不能为零')
  628. }
  629. return true
  630. }
  631. }]
  632. },
  633. registerDate: {
  634. rules: [{
  635. required: true,
  636. errorMessage: '请选择注册日期',
  637. }, ]
  638. },
  639. issueDate: {
  640. rules: [{
  641. required: true,
  642. errorMessage: '请选择发证日期',
  643. }, ]
  644. }
  645. },
  646. ownerRules: {
  647. name: {
  648. rules: [{
  649. required: true,
  650. errorMessage: '请输入车主姓名',
  651. },
  652. {
  653. minLength: 2,
  654. maxLength: 5,
  655. errorMessage: '车主姓名长度在 {minLength} 到 {maxLength} 个字符',
  656. },
  657. {
  658. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  659. errorMessage: '请输入正确的车主姓名',
  660. }
  661. ]
  662. },
  663. identifyNumber: {
  664. rules: [{
  665. required: true,
  666. errorMessage: '请输入车主证件号',
  667. },
  668. {
  669. 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]$/,
  670. errorMessage: '请输入正确的车主证件号',
  671. }
  672. ]
  673. },
  674. mobile: {
  675. rules: [{
  676. required: true,
  677. errorMessage: '请输入车主手机号',
  678. },
  679. {
  680. pattern: /^1[3-9]\d{9}$/,
  681. errorMessage: '请输入正确的手机号',
  682. }
  683. ]
  684. },
  685. addr: {
  686. rules: [{
  687. required: true,
  688. errorMessage: '请输入车主地址',
  689. },
  690. {
  691. minLength: 8,
  692. maxLength: 40,
  693. errorMessage: '车主地址长度在 {minLength} 到 {maxLength} 个字符',
  694. },
  695. ]
  696. }
  697. },
  698. policyHolderRules: {
  699. name: {
  700. rules: [{
  701. required: true,
  702. errorMessage: '请输入投保人姓名',
  703. },
  704. {
  705. minLength: 2,
  706. maxLength: 5,
  707. errorMessage: '投保人姓名长度在 {minLength} 到 {maxLength} 个字符',
  708. },
  709. {
  710. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  711. errorMessage: '请输入正确的投保人姓名',
  712. }
  713. ]
  714. },
  715. identifyNumber: {
  716. rules: [{
  717. required: true,
  718. errorMessage: '请输入投保人证件号',
  719. },
  720. {
  721. 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]$/,
  722. errorMessage: '请输入正确的投保人证件号',
  723. }
  724. ]
  725. },
  726. mobile: {
  727. rules: [{
  728. required: true,
  729. errorMessage: '请输入投保人手机号',
  730. },
  731. {
  732. pattern: /^1[3-9]\d{9}$/,
  733. errorMessage: '请输入正确的手机号',
  734. }
  735. ]
  736. },
  737. addr: {
  738. rules: [{
  739. required: true,
  740. errorMessage: '请输入投保人地址',
  741. },
  742. {
  743. minLength: 8,
  744. maxLength: 40,
  745. errorMessage: '投保人地址长度在 {minLength} 到 {maxLength} 个字符',
  746. },
  747. ]
  748. }
  749. },
  750. insuredPersonRules: {
  751. name: {
  752. rules: [{
  753. required: true,
  754. errorMessage: '请输入被保人姓名',
  755. },
  756. {
  757. minLength: 2,
  758. maxLength: 5,
  759. errorMessage: '被保人姓名长度在 {minLength} 到 {maxLength} 个字符',
  760. },
  761. {
  762. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  763. errorMessage: '请输入正确的被保人姓名',
  764. }
  765. ]
  766. },
  767. identifyNumber: {
  768. rules: [{
  769. required: true,
  770. errorMessage: '请输入被保人证件号',
  771. },
  772. {
  773. 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]$/,
  774. errorMessage: '请输入正确的被保人证件号',
  775. }
  776. ]
  777. },
  778. mobile: {
  779. rules: [{
  780. required: true,
  781. errorMessage: '请输入被保人手机号',
  782. },
  783. {
  784. pattern: /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/,
  785. errorMessage: '请输入正确的手机号',
  786. }
  787. ]
  788. },
  789. addr: {
  790. rules: [{
  791. required: true,
  792. errorMessage: '请输入被保人地址',
  793. },
  794. {
  795. minLength: 8,
  796. maxLength: 40,
  797. errorMessage: '被保人地址长度在 {minLength} 到 {maxLength} 个字符',
  798. },
  799. ]
  800. }
  801. },
  802. checkInfo: {},
  803. checkImage: [],
  804. licenseNo: '', //车牌号
  805. //使用性质
  806. carnatureIndex: 0,
  807. cartypeIndex: 0,
  808. cimodelclassIndex: 0,
  809. fuelTypeCodeIndex: 0,
  810. propertyIndex: 0,
  811. identifyList: [{
  812. label: '身份证',
  813. id: "01"
  814. },
  815. {
  816. label: '护照',
  817. id: "02"
  818. },
  819. {
  820. label: '港澳台居民居住证',
  821. id: "03"
  822. },
  823. {
  824. label: '组织机构代码证',
  825. id: "04"
  826. },
  827. {
  828. label: '统一社会信用代码证',
  829. id: "05"
  830. },
  831. {
  832. label: '营业执照',
  833. id: "06"
  834. }
  835. ],
  836. ownerIdentifyIndex: 0,
  837. policyHolderIdentifyIndex: 0,
  838. insuredPersonIdentifyIndex: 0,
  839. holderAndOwner: true, //投保人同车主
  840. insuredAndOwner: false, //被保人同车主
  841. tbrAndOwner: true, //被保人同投保人
  842. ownerInfo: {
  843. name: "",
  844. identifyType: "01",
  845. identifyNumber: "",
  846. addr: "",
  847. email: "",
  848. mobile: "",
  849. identifyValidDate: "", //有效期起期
  850. identifyValidEndDate: "", //有效期止期
  851. age: "", //年龄
  852. },
  853. policyHolderInfo: {
  854. name: "",
  855. identifyType: "01",
  856. identifyNumber: "",
  857. addr: "",
  858. email: "",
  859. mobile: "",
  860. identifyValidDate: "", //有效期起期
  861. identifyValidEndDate: "", //有效期止期
  862. age: "", //年龄
  863. },
  864. insuredPersonInfo: {
  865. name: "",
  866. identifyType: "01",
  867. identifyNumber: "",
  868. addr: "",
  869. email: "",
  870. mobile: "",
  871. identifyValidDate: "", //有效期起期
  872. identifyValidEndDate: "", //有效期止期
  873. age: "", //年龄
  874. },
  875. riskList: [], //交强险和商业险的选择
  876. kindList: [], //商业险险种的选择
  877. token: "",
  878. /* 数据字典 */
  879. natureOfVehicleUseoptions: [],
  880. vehicleTypeoptions: [],
  881. trafficManagementVehicleTypeoptions: [],
  882. energyTypeoptions: [],
  883. businessVehicleUseoptions: [],
  884. outOfBusinessVehicleUseoptions: [],
  885. /* 数据字典 */
  886. model: {
  887. ownerInforegion: '',
  888. policyHolderInforegion: '',
  889. insuredPersonInforegion: '',
  890. },
  891. previewImgs: [],
  892. }
  893. },
  894. onShow() {
  895. this.getDicType("businessVehicleUse"); //车辆用途(营业)
  896. this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  897. this.getDicType("natureOfVehicleUse"); //车辆性质
  898. this.getDicType("vehicleType"); //车辆种类
  899. this.getDicType("trafficManagementVehicleType"); //车辆类型
  900. this.getDicType("energyType"); //能源种类
  901. },
  902. onLoad(options) {
  903. var a = 1;
  904. function test() {
  905. console.log(a)
  906. var a = 2;
  907. console.log(a)
  908. }
  909. test();
  910. //--数据字典 begin --
  911. if (!!options.licenseNo) {
  912. // this.licenseNo = decodeURIComponent(options.licenseNo);
  913. } else {
  914. const eventChannel = this.getOpenerEventChannel()
  915. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  916. eventChannel.on('acceptData', (data) => {
  917. console.log(data)
  918. if (!!data) {
  919. //读取上一个页面传过来数据(车辆信息,人员信息,险种信息)
  920. this.carInfo = data.carInfo; //车辆信息
  921. this.ownerInfo = JSON.parse(JSON.stringify(data.ownerInfo));
  922. this.policyHolderInfo = JSON.parse(JSON.stringify(data.policyHolderInfo));
  923. this.insuredPersonInfo = JSON.parse(JSON.stringify(data.insuredPersonInfo));
  924. this.carInfoPositiveList = data.carInfoPositiveList; //车辆
  925. this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
  926. this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
  927. this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
  928. this.riskList = data.riskList; //险种大类
  929. this.kindList = data.kindList; //商业险险别
  930. this.licenseNo = this.carInfo.licenseNo;
  931. this.holderAndOwner = false; //投保人同车主
  932. this.insuredAndOwner = false; //被保人同车主
  933. this.tbrAndOwner = false; //被保人同投保人
  934. }
  935. })
  936. };
  937. this.token = store.state.token
  938. },
  939. // 监听导航栏的按钮
  940. onNavigationBarButtonTap(e) {
  941. if (e.index == 0) {
  942. this.navigate({
  943. url: '/pages/index/index'
  944. }, "switchTab", true);
  945. }
  946. },
  947. computed: {
  948. startDate() {
  949. return this.getDate('start');
  950. },
  951. endDate() {
  952. return this.getDate('end');
  953. },
  954. },
  955. methods: {
  956. transferFlagchange(status) {
  957. if (status) {
  958. this.carInfo.transferDate = this.carInfo.issueDate;
  959. } else {
  960. this.carInfo.transferDate = ""
  961. }
  962. },
  963. async getDicType(type) {
  964. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  965. if (res.code == 200) {
  966. this[type + 'options'] = res.data.ddList;
  967. }
  968. },
  969. dictionaryConfirm(e, name) {
  970. console.log(e, name)
  971. this.carInfo[name] = e[0].value;
  972. this.carInfo1[name] = e[0].label;
  973. },
  974. /**
  975. * @param {String} e 时间选择器的值
  976. * @param {String} obj 储存表单对象
  977. * @param {String} param 储存表单参数
  978. */
  979. Dateconfirm(e, obj, param) {
  980. this[obj][param] = e.year + '-' + e.month + '-' + e.day;
  981. },
  982. //选择驾照图片或拍摄驾照图片
  983. chooseImage(type, index) {
  984. this.checkType = type;
  985. this.checkIndex = index;
  986. this.ImageOcrShow = true;
  987. },
  988. //行驶证正面
  989. async carfrontChange() {
  990. if (this.carfrontImg) {
  991. this.previewImgs = [{
  992. url: this.carfrontImg
  993. }];
  994. this.$refs.previewImage.open(0); // 传入当前选中的图片地址或序号
  995. } else {
  996. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  997. count: 1,
  998. sizeType: ['compressed']
  999. });
  1000. if (chooseImageRes) {
  1001. this.lodingshow = true;
  1002. this.carfrontImg = chooseImageRes.tempFilePaths[0];
  1003. uni.uploadFile({
  1004. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  1005. filePath: this.carfrontImg,
  1006. name: "multipartFile",
  1007. formData: {
  1008. 'type': 'image',
  1009. },
  1010. header: {
  1011. Authorization: this.token,
  1012. },
  1013. success: (imgRes) => {
  1014. let data = JSON.parse(imgRes.data);
  1015. if (data.code == '200') {
  1016. if (this.carInfoPositiveList.some(v => v.imageType == 'C01')) {
  1017. this.carInfoPositiveList.map(val => {
  1018. if (val.imageType == 'C01') {
  1019. val.imageId = data.data.id;
  1020. }
  1021. })
  1022. } else {
  1023. this.carInfoPositiveList.push({
  1024. imageId: data.data.id,
  1025. imageType: "C01",
  1026. })
  1027. }
  1028. uni.uploadFile({
  1029. url: this.$base.baseUrl + '/order/identify/drivingPermit',
  1030. filePath: this.carfrontImg,
  1031. name: "image1",
  1032. header: {
  1033. Authorization: this.token,
  1034. },
  1035. success: (uploadFileRes) => {
  1036. let data = JSON.parse(uploadFileRes.data).data;
  1037. let rdate = '';
  1038. if (!!data.carInfo.registerDate) {
  1039. rdate = data.carInfo.registerDate.substr(0,
  1040. 4) +
  1041. '-' + data.carInfo
  1042. .registerDate.substr(4, 2) + '-' + data
  1043. .carInfo
  1044. .registerDate
  1045. .substr(6,
  1046. 2)
  1047. }
  1048. let isdate = '';
  1049. if (!!data.carInfo.issueDate) {
  1050. isdate = data.carInfo.issueDate.substr(0, 4) +
  1051. '-' + data.carInfo
  1052. .issueDate.substr(4, 2) + '-' + data
  1053. .carInfo
  1054. .issueDate.substr(6, 2)
  1055. }
  1056. this.ownerInfo.name = data.carInfo.carOwner; //车主
  1057. this.carfront = {
  1058. carOwner: data.carInfo.carOwner, //车主
  1059. licenseNo: data.carInfo.plateNo, //车牌号
  1060. modelcname: data.carInfo.backOcrID, //品牌型号
  1061. frameNo: data.carInfo.vin, //车架号
  1062. engineNo: data.carInfo.engine, //发动机号
  1063. vinNo: data.carInfo.vin, //车架号
  1064. issueDate: isdate, //发证日期
  1065. registerDate: rdate, //注册日期
  1066. cimodelclass: data.carInfo.motorTypeCode,
  1067. carnature: data.carInfo.motorUsageTypeCode,
  1068. }
  1069. this.lodingshow = false;
  1070. }
  1071. });
  1072. }
  1073. }
  1074. });
  1075. } else {
  1076. this.lodingshow = false;
  1077. }
  1078. }
  1079. },
  1080. //行驶证反面
  1081. async carbackChange() {
  1082. if (this.carbackImg) {
  1083. this.previewImgs = [{
  1084. url: this.carbackImg
  1085. }];
  1086. this.$refs.previewImage.open(0); // 传入当前选中的图片地址或序号
  1087. } else {
  1088. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  1089. count: 1,
  1090. sizeType: ['compressed']
  1091. });
  1092. if (chooseImageRes) {
  1093. this.lodingshow = true;
  1094. this.carbackImg = chooseImageRes.tempFilePaths[0];
  1095. uni.uploadFile({
  1096. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  1097. filePath: this.carbackImg,
  1098. name: "multipartFile",
  1099. formData: {
  1100. 'type': 'image',
  1101. },
  1102. header: {
  1103. Authorization: this.token,
  1104. },
  1105. success: (imgRes) => {
  1106. let data = JSON.parse(imgRes.data);
  1107. if (data.code == '200') {
  1108. if (this.carInfoPositiveList.some(v => v.imageType == 'D01')) {
  1109. this.carInfoPositiveList.map(val => {
  1110. if (val.imageType == 'D01') {
  1111. val.imageId = data.data.id;
  1112. }
  1113. })
  1114. } else {
  1115. this.carInfoPositiveList.push({
  1116. imageId: data.data.id,
  1117. imageType: "D01",
  1118. })
  1119. }
  1120. uni.uploadFile({
  1121. url: this.$base.baseUrl + '/order/identify/drivingPermit',
  1122. filePath: this.carbackImg,
  1123. name: "image2",
  1124. header: {
  1125. Authorization: this.token,
  1126. },
  1127. success: (uploadFileRes) => {
  1128. let data1 = JSON.parse(uploadFileRes.data).data;
  1129. this.carback = {
  1130. vehicleweight: data1.carInfo
  1131. .grossMass, //总质量
  1132. completeKerbMass: data1.carInfo
  1133. .unladenMass, //整备质量
  1134. seatCount: data1.carInfo
  1135. .approvedPassengersCapacity, //核定载客数
  1136. }
  1137. this.lodingshow = false;
  1138. }
  1139. });
  1140. }
  1141. }
  1142. });
  1143. } else {
  1144. this.lodingshow = false;
  1145. }
  1146. }
  1147. },
  1148. //身份证正面
  1149. async userfrontChange() {
  1150. if (this.userfrontImg) {
  1151. this.previewImgs = [{
  1152. url: this.userfrontImg
  1153. }];
  1154. this.$refs.previewImage.open(0); // 传入当前选中的图片地址或序号
  1155. } else {
  1156. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  1157. count: 1,
  1158. sizeType: ['compressed']
  1159. });
  1160. if (chooseImageRes) {
  1161. this.lodingshow = true;
  1162. this.userfrontImg = chooseImageRes.tempFilePaths[0];
  1163. uni.uploadFile({
  1164. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  1165. filePath: this.userfrontImg,
  1166. name: "multipartFile",
  1167. formData: {
  1168. 'type': 'image',
  1169. },
  1170. header: {
  1171. Authorization: this.token,
  1172. },
  1173. success: (imgRes) => {
  1174. let data = JSON.parse(imgRes.data);
  1175. if (data.code == '200') {
  1176. let type = 'C0' + this.checkIndex;
  1177. if (this[this.checkType + 'PositiveList'].some(v => v.imageType ==
  1178. type)) {
  1179. this[this.checkType + 'PositiveList'].map(val => {
  1180. if (val.imageType == type) {
  1181. val.imageId = data.data.id;
  1182. }
  1183. })
  1184. } else {
  1185. this[this.checkType + 'PositiveList'].push({
  1186. imageId: data.data.id,
  1187. imageType: type,
  1188. })
  1189. }
  1190. uni.uploadFile({
  1191. url: this.$base.baseUrl + '/order/identify/idCard',
  1192. filePath: this.userfrontImg,
  1193. name: "image1",
  1194. header: {
  1195. Authorization: this.token,
  1196. },
  1197. success: (uploadFileRes) => {
  1198. let data = JSON.parse(uploadFileRes.data).data;
  1199. this.userfront = {
  1200. age: getAgeByIdCard(data.customerInfo
  1201. .identifyNumber),
  1202. name: data.customerInfo.name,
  1203. identifyNumber: data.customerInfo
  1204. .identifyNumber,
  1205. addr: data.customerInfo.addr,
  1206. }
  1207. this.lodingshow = false;
  1208. }
  1209. });
  1210. }
  1211. }
  1212. });
  1213. } else {
  1214. this.lodingshow = false;
  1215. }
  1216. }
  1217. },
  1218. //身份证反面
  1219. async userbackChange() {
  1220. if (this.userbackImg) {
  1221. this.previewImgs = [{
  1222. url: this.userbackImg
  1223. }];
  1224. this.$refs.previewImage.open(0); // 传入当前选中的图片地址或序号
  1225. } else {
  1226. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  1227. count: 1,
  1228. sizeType: ['compressed']
  1229. });
  1230. if (chooseImageRes) {
  1231. this.lodingshow = true;
  1232. this.userbackImg = chooseImageRes.tempFilePaths[0];
  1233. uni.uploadFile({
  1234. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  1235. filePath: this.userbackImg,
  1236. name: "multipartFile",
  1237. formData: {
  1238. 'type': 'image',
  1239. },
  1240. header: {
  1241. Authorization: this.token,
  1242. },
  1243. success: (imgRes) => {
  1244. let data = JSON.parse(imgRes.data);
  1245. if (data.code == '200') {
  1246. let type = 'D0' + this.checkIndex;
  1247. if (this[this.checkType + 'PositiveList'].some(v => v.imageType ==
  1248. type)) {
  1249. this[this.checkType + 'PositiveList'].map(val => {
  1250. if (val.imageType == type) {
  1251. val.imageId = data.data.id;
  1252. }
  1253. })
  1254. } else {
  1255. this[this.checkType + 'PositiveList'].push({
  1256. imageId: data.data.id,
  1257. imageType: type,
  1258. })
  1259. }
  1260. uni.uploadFile({
  1261. url: this.$base.baseUrl +
  1262. '/order/identify/idCard',
  1263. filePath: this.userbackImg,
  1264. name: "image2",
  1265. header: {
  1266. Authorization: this.token,
  1267. },
  1268. success: (uploadFileRes) => {
  1269. let data1 = JSON.parse(uploadFileRes.data).data;
  1270. let identifyValidDate = '';
  1271. if (!!data1.customerInfo
  1272. .identifyValidDate) {
  1273. identifyValidDate = data1
  1274. .customerInfo
  1275. .identifyValidDate
  1276. .substr(0, 4) +
  1277. '-' + data1
  1278. .customerInfo
  1279. .identifyValidDate
  1280. .substr(4, 2) + '-' +
  1281. data1
  1282. .customerInfo
  1283. .identifyValidDate
  1284. .substr(6,
  1285. 2)
  1286. }
  1287. let identifyValidEndDate = '';
  1288. if (!!data1.customerInfo
  1289. .identifyValidEndDate) {
  1290. identifyValidEndDate =
  1291. data1.customerInfo
  1292. .identifyValidEndDate
  1293. .substr(0,
  1294. 4) + '-' + data1
  1295. .customerInfo
  1296. .identifyValidEndDate
  1297. .substr(4, 2) + '-' +
  1298. data1
  1299. .customerInfo
  1300. .identifyValidEndDate
  1301. .substr(6, 2)
  1302. }
  1303. this.userback = {
  1304. identifyValidDate: identifyValidDate, //起期
  1305. identifyValidEndDate: identifyValidEndDate, //止期
  1306. }
  1307. this.lodingshow = false;
  1308. }
  1309. });
  1310. }
  1311. }
  1312. });
  1313. } else {
  1314. this.lodingshow = false;
  1315. }
  1316. }
  1317. },
  1318. CarOCRconfirm() {
  1319. switch (this.checkType) {
  1320. case 'carInfo':
  1321. Object.assign(this.carInfo, this.carfront, this
  1322. .carback);
  1323. this.ImageOcrShow = false;
  1324. break;
  1325. case 'ownerInfo':
  1326. case "policyHolderInfo":
  1327. case "insuredPersonInfo":
  1328. Object.assign(this[this.checkType], this.userfront, this
  1329. .userback);
  1330. this.ImageOcrShow = false;
  1331. break;
  1332. default:
  1333. break;
  1334. }
  1335. },
  1336. //图片删除
  1337. del_btn(val) {
  1338. this[val] = "";
  1339. },
  1340. //弹框关闭事件
  1341. ImagePopClose() {
  1342. this.carfrontImg = "";
  1343. this.carbackImg = "";
  1344. this.userfrontImg = "";
  1345. this.userbackImg = "";
  1346. this.carfront = {};
  1347. this.carback = {};
  1348. this.userfront = {};
  1349. this.userback = {};
  1350. },
  1351. /**
  1352. * 复写 binddata 方法,如果只是为了校验,无复杂自定义操作,可忽略此方法
  1353. * @param {String} name 字段名称
  1354. * @param {String} value 表单域的值
  1355. */
  1356. binddata(name, value, type) {
  1357. if (name == 'identifyNumber') {
  1358. this[type].age = getAgeByIdCard(value)
  1359. }
  1360. },
  1361. //转变大写(车型/车架号/发动机号)
  1362. upperCaseType(type) {
  1363. this.carInfo[type] = this.carInfo[type].toUpperCase();
  1364. if (type == 'vinNo') {
  1365. this.carInfo.frameNo = this.carInfo.vinNo.trim();
  1366. }
  1367. },
  1368. //下拉改变触发该方法
  1369. bindPickerChange(e, type, list) {
  1370. this[type + 'Index'] = e.target.value;
  1371. this.carInfo[type] = this[list][e.target.value].dictValue;
  1372. },
  1373. // 身份证类型选择
  1374. bindIdentifyTypeChange(e, type) {
  1375. this[type + 'IdentifyIndex'] = e.target.value;
  1376. this[type + 'Info'].identifyType = this.identifyList[e.target.value].id;
  1377. this[type + 'Info'].identifyNumber = '';
  1378. },
  1379. bindDateChange(e, type) { //日期赋值
  1380. if ((type == 'issueDate') && (!this.carInfo.registerDate)) {
  1381. return uni.showToast({
  1382. title: '请先输入注册日期',
  1383. icon: "none"
  1384. });
  1385. }
  1386. this.carInfo[type] = e.detail.value;
  1387. if (new Date(this.carInfo.registerDate) > new Date(this.carInfo.issueDate)) {
  1388. this.carInfo.issueDate = ""
  1389. return uni.showToast({
  1390. title: '注册日期大于发证日期',
  1391. icon: "none"
  1392. });
  1393. }
  1394. },
  1395. //长期
  1396. insureLongterm(checked, e) {
  1397. checked.detail.value == true ? this[e].identifyValidEndDate = "9999-12-31" : this[e]
  1398. .identifyValidEndDate =
  1399. "";
  1400. },
  1401. //日期(可以选择20年以内的时间)
  1402. getDate(type) {
  1403. const date = new Date();
  1404. let year = date.getFullYear();
  1405. let month = date.getMonth() + 1;
  1406. let day = date.getDate();
  1407. if (type === 'start') {
  1408. year = year - 20;
  1409. } else if (type === 'end') {}
  1410. month = month > 9 ? month : '0' + month;;
  1411. day = day > 9 ? day : '0' + day;
  1412. return `${year}-${month}-${day}`;
  1413. },
  1414. //同车主信息
  1415. syncPersonInfo(e, type, touch1, touch2, touch3) {
  1416. this[type] = e.detail.value;
  1417. this[touch1 + 'IdentifyIndex'] = this[touch2 + 'IdentifyIndex'];
  1418. if (this[type]) {
  1419. this[touch1 + 'Info'] = JSON.parse(JSON.stringify(this[touch2 + 'Info']));
  1420. this[touch3] = false;
  1421. } else {
  1422. for (let key in this[touch1 + "Info"]) {
  1423. this[touch1 + "Info"][key] = '';
  1424. }
  1425. }
  1426. },
  1427. //跳转选择车辆类型页面
  1428. toChooseVehicleType(cctype) {
  1429. if (cctype == '' || cctype == null) {
  1430. uni.showToast({
  1431. icon: 'none',
  1432. title: '请输入车型名称',
  1433. duration: 1500
  1434. });
  1435. } else {
  1436. let cctypeName = cctype.replace(/[^u4e00-u9fa5|,]+/ig, '')
  1437. this.navigate({
  1438. url: '/pages/carInsure1/carType1?modelName=' + encodeURIComponent(cctypeName)
  1439. }, "navigateTo", true);
  1440. }
  1441. },
  1442. // 通过车架号获取车型
  1443. async toChooseVin(cctype) {
  1444. if (cctype == '' || cctype == null) {
  1445. return uni.showToast({
  1446. icon: 'none',
  1447. title: '请输入车架号',
  1448. duration: 1500
  1449. });
  1450. } else {
  1451. if (!this.isFrameno(cctype.trim())) {
  1452. return uni.showToast({
  1453. title: '请输入正确的车辆识别码',
  1454. icon: "none"
  1455. });
  1456. }
  1457. this.navigate({
  1458. url: '/pages/carInsure1/carType1?frameNo=' + encodeURIComponent(cctype)
  1459. }, "navigateTo", true);
  1460. }
  1461. },
  1462. //验证车架号
  1463. isFrameno(str) {
  1464. let mPattern = /^([0-9A-Z]){17}$/;
  1465. return mPattern.test(str);
  1466. },
  1467. toNext() {
  1468. if (this.holderAndOwner) { //投保人同车主
  1469. this.policyHolderInfo = this.ownerInfo;
  1470. if (this.ownerInfoPositiveList.length > 0) {
  1471. this.policyHolderInfoPositiveList = JSON.parse(JSON.stringify(this
  1472. .ownerInfoPositiveList));
  1473. if (this.policyHolderInfoPositiveList.length == 1) {
  1474. this.policyHolderInfoPositiveList[0].imageType = "C03";
  1475. } else {
  1476. this.policyHolderInfoPositiveList[0].imageType = "C03";
  1477. this.policyHolderInfoPositiveList[1].imageType = "D03";
  1478. }
  1479. }
  1480. }
  1481. if (this.insuredAndOwner) { //被保人同车主
  1482. this.insuredPersonInfo = this.ownerInfo;
  1483. if (this.ownerInfoPositiveList.length > 0) {
  1484. this.insuredPersonInfoPositiveList = JSON.parse(JSON.stringify(this
  1485. .ownerInfoPositiveList));
  1486. if (this.insuredPersonInfoPositiveList.length == 1) {
  1487. this.insuredPersonInfoPositiveList[0].imageType = "C04";
  1488. } else {
  1489. this.insuredPersonInfoPositiveList[0].imageType = "C04";
  1490. this.insuredPersonInfoPositiveList[1].imageType = "D04";
  1491. }
  1492. }
  1493. }
  1494. if (this.tbrAndOwner) { //被保人同投保人
  1495. this.insuredPersonInfo = this.policyHolderInfo;
  1496. if (this.policyHolderInfoPositiveList.length > 0) {
  1497. this.insuredPersonInfoPositiveList = JSON.parse(JSON.stringify(this
  1498. .policyHolderInfoPositiveList));
  1499. if (this.insuredPersonInfoPositiveList.length == 1) {
  1500. this.insuredPersonInfoPositiveList[0].imageType = "C04";
  1501. } else {
  1502. this.insuredPersonInfoPositiveList[0].imageType = "C04";
  1503. this.insuredPersonInfoPositiveList[1].imageType = "D04";
  1504. }
  1505. }
  1506. }
  1507. this.$refs.carForm.submit().then(res => {
  1508. this.$refs.ownerForm.submit().then(res1 => {
  1509. this.$refs.policyHolderForm.submit().then(res2 => {
  1510. this.$refs.insuredPersonForm.submit().then(res3 => {
  1511. this.navigate({
  1512. url: '/pages/carInsure1/insureItems1',
  1513. success: (res) => {
  1514. res.eventChannel.emit(
  1515. "acceptData", {
  1516. carInfo: this
  1517. .carInfo,
  1518. ownerInfo: this
  1519. .ownerInfo,
  1520. policyHolderInfo: this
  1521. .policyHolderInfo,
  1522. insuredPersonInfo: this
  1523. .insuredPersonInfo,
  1524. riskList: this
  1525. .riskList,
  1526. kindList: this
  1527. .kindList,
  1528. carInfoPositiveList: this
  1529. .carInfoPositiveList, //车辆
  1530. ownerInfoPositiveList: this
  1531. .ownerInfoPositiveList, //车主
  1532. policyHolderInfoPositiveList: this
  1533. .policyHolderInfoPositiveList, //投保人
  1534. insuredPersonInfoPositiveList: this
  1535. .insuredPersonInfoPositiveList, //被保人
  1536. })
  1537. }
  1538. }, "navigateTo", true);
  1539. })
  1540. })
  1541. })
  1542. })
  1543. }
  1544. }
  1545. }
  1546. </script>
  1547. <style lang="scss" scoped>
  1548. @import '@/style/mixin.scss';
  1549. /deep/ .uni-group__content {
  1550. padding-top: 0;
  1551. }
  1552. /deep/ .uni-forms--top {
  1553. padding: 0;
  1554. }
  1555. /deep/ .uni-forms-item {
  1556. margin-bottom: 0;
  1557. }
  1558. /deep/ .uni-input-input {
  1559. font-size: 26upx;
  1560. }
  1561. /deep/ .uni-switch-input-checked {
  1562. background-color: $themeColor !important;
  1563. border-color: $themeColor !important;
  1564. }
  1565. /deep/ .uni-group__content {
  1566. padding-bottom: 0;
  1567. }
  1568. /deep/ .uni-input-input {
  1569. font-size: 28upx;
  1570. }
  1571. .body {
  1572. width: 100vw;
  1573. /* min-height: 100vh; */
  1574. background: #f5f5f5;
  1575. /* background: #FFFFFF; */
  1576. font-family: "Arial,Helvetica,sans-serif,PingFangSC";
  1577. }
  1578. .title {
  1579. height: 90upx;
  1580. border-bottom: 1px solid #EEEEEE;
  1581. }
  1582. .checkButton {
  1583. margin: 0 20upx;
  1584. width: 100upx;
  1585. height: 50upx;
  1586. flex-shrink: 1;
  1587. background: rgba($themeColor, 0.6);
  1588. color: #FFFFFF;
  1589. border-radius: 5upx;
  1590. }
  1591. .textColor {
  1592. color: #6091f5;
  1593. }
  1594. textarea {
  1595. font-size: 28upx;
  1596. width: 330upx;
  1597. }
  1598. /* 底部的样式Start */
  1599. .infoBottom {
  1600. height: 140upx;
  1601. position: fixed;
  1602. bottom: 0;
  1603. left: 0;
  1604. right: 0;
  1605. background: #FFFFFF;
  1606. border-top: 1upx solid #EEEEEE;
  1607. z-index: 99;
  1608. }
  1609. .infoBottom>button {
  1610. // font-size: 30upx;
  1611. background: $themeColor;
  1612. color: #FFFFFF;
  1613. flex: 1;
  1614. margin: 0upx 30upx;
  1615. }
  1616. /* 底部的样式End */
  1617. .popContent {
  1618. height: 100%;
  1619. background-color: #f9f9f9;
  1620. .popHeader {
  1621. width: 100%;
  1622. text-align: center;
  1623. padding: 10px;
  1624. font-weight: bold;
  1625. background-color: #FFFFFF;
  1626. }
  1627. .imgOcr {
  1628. width: 100%;
  1629. background-color: #f9f9f9;
  1630. .imgOcr-border {
  1631. position: relative;
  1632. width: 49%;
  1633. background-color: #fff;
  1634. padding: 2px;
  1635. .del_btn {
  1636. cursor: pointer;
  1637. position: absolute;
  1638. top: 5rpx;
  1639. right: 0;
  1640. width: 50rpx;
  1641. height: 50rpx;
  1642. border-radius: 50%;
  1643. z-index: 20;
  1644. }
  1645. .obverseimg {
  1646. height: 120px;
  1647. border-radius: 4px;
  1648. }
  1649. }
  1650. }
  1651. .line {
  1652. width: 100%;
  1653. margin: 2px 0;
  1654. background-color: #FFFFFF;
  1655. padding: 0 10px;
  1656. >text {
  1657. font-weight: bold;
  1658. width: 100px;
  1659. }
  1660. }
  1661. .popFooter {
  1662. width: 100%;
  1663. height: 50px;
  1664. font-weight: bold;
  1665. background-color: #FFFFFF;
  1666. color: #3e5cd7;
  1667. .popFooter-btn:nth-child(1) {
  1668. border-right: 1px solid #f9f9f9;
  1669. }
  1670. .popFooter-btn {
  1671. width: 50%;
  1672. text-align: center;
  1673. line-height: 50px;
  1674. }
  1675. }
  1676. }
  1677. .mask {
  1678. /* pointer-events: none; */
  1679. position: fixed;
  1680. z-index: 99999;
  1681. top: 0;
  1682. left: 0;
  1683. right: 0;
  1684. bottom: 0;
  1685. height: 100vh;
  1686. width: 100vw;
  1687. display: flex;
  1688. flex-direction: column;
  1689. justify-content: center;
  1690. align-items: center;
  1691. flex-wrap: wrap;
  1692. }
  1693. .mask.mask-show {
  1694. background: rgba(255, 255, 255, 0.3);
  1695. }
  1696. .title {
  1697. color: #333;
  1698. font-size: 28rpx;
  1699. margin-top: 20rpx;
  1700. }
  1701. .loader {
  1702. display: block;
  1703. width: 120rpx;
  1704. height: 120rpx;
  1705. border-radius: 50%;
  1706. border: 3rpx solid transparent;
  1707. border-top-color: #9370db;
  1708. -webkit-animation: spin 2s linear infinite;
  1709. animation: spin 2s linear infinite;
  1710. }
  1711. .loader::before {
  1712. content: "";
  1713. position: absolute;
  1714. top: 5rpx;
  1715. left: 5rpx;
  1716. right: 5rpx;
  1717. bottom: 5rpx;
  1718. border-radius: 50%;
  1719. border: 3rpx solid transparent;
  1720. border-top-color: #ba55d3;
  1721. -webkit-animation: spin 3s linear infinite;
  1722. animation: spin 3s linear infinite;
  1723. }
  1724. .loader::after {
  1725. content: "";
  1726. position: absolute;
  1727. top: 15rpx;
  1728. left: 15rpx;
  1729. right: 15rpx;
  1730. bottom: 15rpx;
  1731. border-radius: 50%;
  1732. border: 3rpx solid transparent;
  1733. border-top-color: #ff00ff;
  1734. -webkit-animation: spin 1.5s linear infinite;
  1735. animation: spin 1.5s linear infinite;
  1736. }
  1737. @-webkit-keyframes spin {
  1738. 0% {
  1739. -webkit-transform: rotate(0deg);
  1740. -ms-transform: rotate(0deg);
  1741. transform: rotate(0deg);
  1742. }
  1743. 100% {
  1744. -webkit-transform: rotate(360deg);
  1745. -ms-transform: rotate(360deg);
  1746. transform: rotate(360deg);
  1747. }
  1748. }
  1749. @keyframes spin {
  1750. 0% {
  1751. -webkit-transform: rotate(0deg);
  1752. -ms-transform: rotate(0deg);
  1753. transform: rotate(0deg);
  1754. }
  1755. 100% {
  1756. -webkit-transform: rotate(360deg);
  1757. -ms-transform: rotate(360deg);
  1758. transform: rotate(360deg);
  1759. }
  1760. }
  1761. </style>