carInfo1.vue 60 KB

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