Information.vue 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  1. <template>
  2. <view class="page">
  3. <public-module></public-module>
  4. <view class="fixed dis a-c j-start" :style="headerStyle">
  5. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  6. <text style="margin: auto;">{{headerText}}</text>
  7. </view>
  8. <view class="banner"></view>
  9. <view v-show="carInfoShow" class="Information" style="margin-top: -84px;">
  10. <text class="title">车辆信息</text>
  11. <view class="collapse">
  12. <view class="top-ocr dis j-c a-c" v-show="!carfrontImg">
  13. <image src="../../static/image/car-insure/Frame.png" mode="">
  14. </image>
  15. <text @tap="ocrIdentify('carInfo')" style="margin-left: 5px;">点击上传/拍摄行驶证 自动填写信息</text>
  16. </view>
  17. <view v-show="!carExpand && !carfrontImg" class="btn-collapse dis a-c j-c" @click="expand('carExpand')">
  18. <text>展开手动输入车辆信息</text>
  19. <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)" style="margin-left: 5px;"></u-icon>
  20. </view>
  21. <view v-show="carExpand" class="">
  22. <view v-if=" carfrontImg" class="movable-view dis f-c a-c">
  23. <movable-area>
  24. <movable-view direction="all" out-of-bounds :scale="true" :damping="30" :friction="10">
  25. <image :src="carfrontImg" mode="widthFix"
  26. :style="{width:'100%',height:'100%',transform:`rotate(-${cardeg}deg)`}">
  27. </image>
  28. </movable-view>
  29. </movable-area>
  30. <view class="operate-img dis j-s a-c">
  31. <view class="dis a-c" @tap="rotatefront('cardeg')">
  32. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  33. 左转
  34. </view>
  35. <view class="dis a-c" @tap="ocrIdentify('carInfo')">
  36. <image src="/static/image/car-insure/upload.png" mode=""></image>
  37. 上传
  38. </view>
  39. <view class="dis a-c" @tap="rotateback('cardeg')">
  40. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  41. 右转
  42. </view>
  43. </view>
  44. </view>
  45. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
  46. style="padding: 0 15px;" err-show-type="toast" label-width="100">
  47. <uni-forms-item label="车牌号: ">
  48. <input class="uni-input-input textColor" placeholder="输入车牌号" v-model="carInfo.licenseNo"
  49. placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
  50. </uni-forms-item>
  51. <uni-forms-item name="frameNo" required label="车辆识别码:">
  52. <view class="d-flex a-center" style="height: 100%;">
  53. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码"
  54. v-model="carInfo.frameNo" maxlength="17" placeholder-style="font-size:28upx"
  55. @input="upperCaseType('frameNo')" />
  56. <image src="/static/image/car-insure/search.png" mode=""
  57. style="width: 22px;height: 22px;" @tap="toChooseVin(carInfo.frameNo)">
  58. </image>
  59. </view>
  60. </uni-forms-item>
  61. <uni-forms-item name="modelcname" required label="品牌型号: ">
  62. <view class="d-flex a-center textColor" style="height: 100%;">
  63. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  64. v-model="carInfo.modelcname"
  65. @blur="binddata('modelcname', $event.detail.value,'carForm')"
  66. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  67. <image src="/static/image/car-insure/search.png" mode=""
  68. style="width: 22px;height: 22px;" @tap="toChooseVehicleType(carInfo.modelcname)">
  69. </image>
  70. </view>
  71. </uni-forms-item>
  72. <uni-forms-item name="engineNo" required label="发动机号: ">
  73. <input class="uni-input-input textColor" placeholder="请输入发动机号" v-model="carInfo.engineNo"
  74. @blur="binddata('engineNo', $event.detail.value,'carForm')"
  75. placeholder-style="font-size:28upx" @input="upperCaseType('engineNo')" />
  76. </uni-forms-item>
  77. <uni-forms-item required label="注册日期" name="registerDate">
  78. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="registerDateShow"
  79. v-model="carInfo.registerDate" placeholder="请选择注册日期" @click="registerDateShow = true"
  80. placeholder-style="color:#808080"></u-input>
  81. <u-picker v-model="registerDateShow" mode="time" :params="params" :end-year="endYear"
  82. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  83. </uni-forms-item>
  84. <uni-forms-item required label="发证日期" name="issueDate">
  85. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="issueDateShow"
  86. v-model="carInfo.issueDate" placeholder="请选择发证日期" @click="issueDateShow = true"
  87. placeholder-style="color:#808080"></u-input>
  88. <u-picker v-model="issueDateShow" mode="time" :params="params"
  89. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  90. </uni-forms-item>
  91. <!-- <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
  92. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="transferDateShow"
  93. v-model="carInfo.transferDate" placeholder="请选择过户日期" @click="transferDateShow = true"
  94. placeholder-style="color:#808080"></u-input>
  95. <u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
  96. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  97. </uni-forms-item> -->
  98. <uni-forms-item label="整备质量: " required name="completeKerbMass">
  99. <input class="uni-input-input textColor" placeholder="请输入整备质量"
  100. v-model="carInfo.completeKerbMass" placeholder-style="font-size:28upx" />
  101. </uni-forms-item>
  102. <uni-forms-item label="核定载质量: ">
  103. <input class="uni-input-input textColor" placeholder="请输入核定载质量" v-model="carInfo.limitLoad"
  104. placeholder-style="font-size:28upx" />
  105. </uni-forms-item>
  106. <uni-forms-item label="使用性质: " required name="carnature">
  107. <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
  108. @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
  109. placeholder-style="color:#808080" placeholder="请选择使用性质" />
  110. <u-select mode="single-column" :list="natureOfVehicleUseoptions" v-model="carnatureShow"
  111. label-name="dictTag" value-name="dictValue"
  112. @confirm="dictionaryConfirm($event,'carnature')"></u-select>
  113. </uni-forms-item>
  114. <uni-forms-item label="能源种类: " required name="energyType">
  115. <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
  116. @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
  117. placeholder-style="color:#808080" placeholder="请选择能源种类" />
  118. <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
  119. label-name="dictTag" value-name="dictValue"
  120. @confirm="dictionaryConfirm($event,'energyType')"></u-select>
  121. </uni-forms-item>
  122. <uni-forms-item label="车辆用途: " required name="vehicleUse">
  123. <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
  124. @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
  125. placeholder-style="color:#808080" placeholder="请选择车辆用途" />
  126. <u-select v-if="carInfo.carnature=='01'" mode="single-column"
  127. :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
  128. value-name="dictValue" @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  129. <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
  130. v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
  131. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  132. </uni-forms-item>
  133. <uni-forms-item label="车辆类型: " required name="cartype">
  134. <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
  135. @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
  136. placeholder-style="color:#808080" placeholder="请选择车辆类型" />
  137. <u-select mode="single-column" :list="trafficManagementVehicleTypeoptions"
  138. v-model="cartypeShow" label-name="dictTag" value-name="dictValue"
  139. @confirm="dictionaryConfirm($event,'cartype')"></u-select>
  140. </uni-forms-item>
  141. <uni-forms-item label="车辆种类: " required name="cimodelclass">
  142. <u-input v-model="carInfo1.cimodelclass" type="select" :select-open="cimodelclassShow"
  143. @click="cimodelclassShow = true" :custom-style="{textAlign:'right'}"
  144. placeholder-style="color:#808080" placeholder="请选择车辆种类" />
  145. <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
  146. label-name="dictTag" value-name="dictValue"
  147. @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
  148. </uni-forms-item>
  149. <uni-forms-item label="年款: ">
  150. <input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
  151. placeholder-style="font-size:28upx" />
  152. </uni-forms-item>
  153. <uni-forms-item label="座位数: ">
  154. <input class="uni-input-input textColor" placeholder="请输入座位数" maxlength="1"
  155. v-model="carInfo.seatCount" placeholder-style="font-size:28upx" />
  156. </uni-forms-item>
  157. <uni-forms-item label="排量: ">
  158. <input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
  159. placeholder-style="font-size:28upx" />
  160. </uni-forms-item>
  161. <uni-forms-item label="功率: ">
  162. <input class="uni-input-input textColor" placeholder="请输入功率" v-model="carInfo.powerScale"
  163. placeholder-style="font-size:28upx" />
  164. </uni-forms-item>
  165. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  166. <input class="uni-input-input textColor" placeholder="请输入新车购置价"
  167. v-model="carInfo.purchasePrice" placeholder-style="font-size:28upx"
  168. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  169. @input="upperCaseType('purchasePrice')" />
  170. </uni-forms-item>
  171. <!-- <uni-forms-item label="是否过户: ">
  172. <view class="d-flex j-end a-c" style="height:100%">
  173. <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
  174. @change="transferFlagchange"></u-switch>
  175. </view>
  176. </uni-forms-item> -->
  177. </uni-forms>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="Information">
  182. <text class="title">车主信息</text>
  183. <view class="collapse">
  184. <view class="top-ocr dis j-c a-c" v-show="!ownerfrontImg">
  185. <image src="../../static/image/car-insure/Frame1.png" mode="">
  186. </image>
  187. <text @tap="ocrIdentify('ownerInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
  188. </view>
  189. <view v-show="!ownersExpand && !ownerfrontImg" class="btn-collapse dis a-c j-c"
  190. @click="expand('ownersExpand')">
  191. <text>展开手动输入车主信息</text>
  192. <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)" style="margin-left: 5px;"></u-icon>
  193. </view>
  194. <view v-show="ownersExpand">
  195. <view v-show=" ownerfrontImg" class="movable-view dis f-c a-c">
  196. <movable-area>
  197. <movable-view direction="all" out-of-bounds :scale="true" :damping="30" :friction="10">
  198. <image :src="ownerfrontImg" mode="widthFix"
  199. :style="{width:'100%',height:'100%',transform:`rotate(-${user1deg}deg)`}">
  200. </image>
  201. </movable-view>
  202. </movable-area>
  203. <view class="operate-img dis j-s a-c">
  204. <view class="dis a-c" @tap="rotatefront('user1deg')">
  205. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  206. 左转
  207. </view>
  208. <view class="dis a-c" @tap="ocrIdentify('ownerInfo')">
  209. <image src="/static/image/car-insure/upload.png" mode=""></image>
  210. 上传
  211. </view>
  212. <view class="dis a-c" @tap="rotateback('user1deg')">
  213. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  214. 右转
  215. </view>
  216. </view>
  217. </view>
  218. <uni-forms :rules="ownerRules" :value="ownerInfo" ref="ownerForm" validate-trigger="bind"
  219. style="padding: 0 15px;" err-show-type="toast" label-width="80">
  220. <uni-forms-item name="name" required label="姓名: ">
  221. <input class="uni-input-input textColor" placeholder="请输入姓名" v-model="ownerInfo.name"
  222. maxlength="5" placeholder-style="font-size:28upx" />
  223. </uni-forms-item>
  224. <uni-forms-item name="identifyType" required label="证件类型:">
  225. <view class="dis a-c j-end" style="width:100%;height: 100%;">
  226. 身份证
  227. </view>
  228. </uni-forms-item>
  229. <uni-forms-item required name="identifyNumber" label="证件号: ">
  230. <input class="uni-input-input textColor" placeholder="请输入证件号"
  231. v-model="ownerInfo.identifyNumber" maxlength="18"
  232. @blur="binddata('identifyNumber', $event.detail.value,'ownerInfo')"
  233. placeholder-style="font-size:28upx" />
  234. </uni-forms-item>
  235. <uni-forms-item required name="age" label="年龄: ">
  236. <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
  237. v-model="ownerInfo.age" maxlength="18" placeholder-style="font-size:28upx" />
  238. </uni-forms-item>
  239. <uni-forms-item name="gender" required label="性别:">
  240. <input class="uni-input-input textColor" disabled placeholder="请输入性别"
  241. v-model="ownerInfo.gender" maxlength="1" placeholder-style="font-size:28upx" />
  242. </uni-forms-item>
  243. <uni-forms-item required name="mobile" label="手机号: ">
  244. <input class="uni-input-input textColor" placeholder="请输入手机号" v-model="ownerInfo.mobile"
  245. maxlength="11" placeholder-style="font-size:28upx" />
  246. </uni-forms-item>
  247. <uni-forms-item required name="addr" label="地址: ">
  248. <u-input type="textarea" v-model="ownerInfo.addr" :custom-style="{textAlign:'right'}"
  249. placeholder-style="color:#808080" :auto-height="true" placeholder="请输入地址" />
  250. </uni-forms-item>
  251. <uni-forms-item name="email" label="邮箱: ">
  252. <input class="uni-input-input textColor" placeholder="请输入邮箱" v-model="ownerInfo.email"
  253. placeholder-style="font-size:28upx" />
  254. </uni-forms-item>
  255. <uni-forms-item required label="有效期起期" name="identifyValidDate">
  256. <u-input type="select" :select-open="ownerDateShow" v-model="ownerInfo.identifyValidDate"
  257. placeholder="请选择有效期起期" @click="ownerDateShow = true" :custom-style="{textAlign:'right'}"
  258. placeholder-style="color:#808080"></u-input>
  259. <u-picker v-model="ownerDateShow" mode="time" :params="params"
  260. @confirm="e=> Dateconfirm(e,'ownerInfo','identifyValidDate')"></u-picker>
  261. </uni-forms-item>
  262. <uni-forms-item required label="有效期止期" name="identifyValidEndDate" style="padding-right: 18px;">
  263. <input class="uni-input-input textColor" disabled placeholder="有效期止期"
  264. v-model="ownerInfo.identifyValidEndDate" placeholder-style="font-size:28upx" />
  265. </uni-forms-item>
  266. <uni-forms-item label="止期年限" style="padding: 10px 0 5px;">
  267. <view class="dis a-c j-c">
  268. <view class="status-data" :class="item.value==ownerValidEndDateholder? 'active':''"
  269. v-for="(item,index) in endDateList"
  270. @tap="ValidEndDateClick(item.value,'ownerValidEndDateholder','ownerInfo')"
  271. :key="index">
  272. {{item.label}}
  273. </view>
  274. </view>
  275. </uni-forms-item>
  276. </uni-forms>
  277. </view>
  278. </view>
  279. </view>
  280. <view class="Information" style="padding-bottom: 10px;border-bottom: 1px solid #f2f2f2;">
  281. <view class=" dis j-s a-c">
  282. <text class="title">投保人信息</text>
  283. <view class="dis a-c j-c">
  284. <view class="status-data" :class="item.value==policyHolderholder? 'active':''"
  285. v-for="(item,index) in holderstatusList" @tap="applicantholderClick(item.value)" :key="index">
  286. {{item.label}}
  287. </view>
  288. </view>
  289. </view>
  290. <uni-forms :rules="policyHolderRules" :value="policyHolderInfo" ref="policyHolderForm"
  291. validate-trigger="bind" err-show-type="toast" label-width="80">
  292. <view v-show="policyHolderholder=='99'" class="collapse">
  293. <view class="top-ocr dis j-c a-c" v-show="!policyHolderfrontImg">
  294. <image src="../../static/image/car-insure/Frame1.png" mode="">
  295. </image>
  296. <text @tap="ocrIdentify('policyHolderInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
  297. </view>
  298. <view v-show="!policyHolderExpand && !policyHolderfrontImg" class="btn-collapse dis a-c j-c"
  299. @click="expand('policyHolderExpand')">
  300. <text>展开手动输入投保人信息</text>
  301. <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)"
  302. style="margin-left: 5px;"></u-icon>
  303. </view>
  304. <view v-show="policyHolderExpand">
  305. <view v-show=" policyHolderfrontImg" class="movable-view dis f-c a-c">
  306. <movable-area>
  307. <movable-view direction="all" out-of-bounds :scale="true" :damping="30" :friction="10">
  308. <image :src="policyHolderfrontImg" mode="widthFix"
  309. :style="{width:'100%',height:'100%',transform:`rotate(-${user2deg}deg)`}">
  310. </image>
  311. </movable-view>
  312. </movable-area>
  313. <view class="operate-img dis j-s a-c">
  314. <view class="dis a-c" @tap="rotatefront('user2deg')">
  315. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  316. 左转
  317. </view>
  318. <view class="dis a-c" @tap="ocrIdentify('policyHolderInfo')">
  319. <image src="/static/image/car-insure/upload.png" mode=""></image>
  320. 上传
  321. </view>
  322. <view class="dis a-c" @tap="rotateback('user2deg')">
  323. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  324. 右转
  325. </view>
  326. </view>
  327. </view>
  328. <view style="padding: 0 15px;">
  329. <uni-forms-item name="name" required label="姓名: ">
  330. <input class="uni-input-input textColor" placeholder="请输入姓名"
  331. v-model="policyHolderInfo.name" maxlength="5" placeholder-style="font-size:28upx" />
  332. </uni-forms-item>
  333. <uni-forms-item name="identifyType" required label="证件类型:">
  334. <view class="dis a-c j-end" style="width:100%;height: 100%;">
  335. 身份证
  336. </view>
  337. </uni-forms-item>
  338. <uni-forms-item required name="identifyNumber" label="证件号: ">
  339. <input class="uni-input-input textColor" placeholder="请输入证件号"
  340. v-model="policyHolderInfo.identifyNumber" maxlength="18"
  341. @blur="binddata('identifyNumber', $event.detail.value,'policyHolderInfo')"
  342. placeholder-style="font-size:28upx" />
  343. </uni-forms-item>
  344. <uni-forms-item required name="age" label="年龄: ">
  345. <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
  346. v-model="policyHolderInfo.age" maxlength="18" placeholder-style="font-size:28upx" />
  347. </uni-forms-item>
  348. <uni-forms-item name="gender" required label="性别:">
  349. <input class="uni-input-input textColor" disabled placeholder="请输入性别"
  350. v-model="policyHolderInfo.gender" maxlength="1"
  351. placeholder-style="font-size:28upx" />
  352. </uni-forms-item>
  353. <uni-forms-item required name="mobile" label="手机号: ">
  354. <input class="uni-input-input textColor" placeholder="请输入手机号"
  355. v-model="policyHolderInfo.mobile" maxlength="11"
  356. placeholder-style="font-size:28upx" />
  357. </uni-forms-item>
  358. <uni-forms-item required name="addr" label="地址: ">
  359. <u-input type="textarea" v-model="policyHolderInfo.addr"
  360. :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
  361. placeholder="请输入地址" />
  362. </uni-forms-item>
  363. <uni-forms-item name="email" label="邮箱: ">
  364. <input class="uni-input-input textColor" placeholder="请输入邮箱"
  365. v-model="policyHolderInfo.email" placeholder-style="font-size:28upx" />
  366. </uni-forms-item>
  367. <uni-forms-item required label="有效期起期" name="identifyValidDate">
  368. <u-input type="select" :select-open="applicantDateShow"
  369. v-model="policyHolderInfo.identifyValidDate" placeholder="请选择有效期起期"
  370. @click="applicantDateShow = true" :custom-style="{textAlign:'right'}"
  371. placeholder-style="color:#808080"></u-input>
  372. <u-picker v-model="applicantDateShow" mode="time" :params="params"
  373. @confirm="e=> Dateconfirm(e,'policyHolderInfo','identifyValidDate')"></u-picker>
  374. </uni-forms-item>
  375. <uni-forms-item required label="有效期止期" name="identifyValidEndDate"
  376. style="padding-right: 18px;">
  377. <input class="uni-input-input textColor" disabled placeholder="有效期止期"
  378. v-model="policyHolderInfo.identifyValidEndDate"
  379. placeholder-style="font-size:28upx" />
  380. </uni-forms-item>
  381. <uni-forms-item label="止期年限" style="padding: 10px 0 5px;">
  382. <view class="dis a-c j-c">
  383. <view class="status-data" :class="item.value==policyValidEndDateholder? 'active':''"
  384. v-for="(item,index) in endDateList"
  385. @tap="ValidEndDateClick(item.value,'policyValidEndDateholder','policyHolderInfo')"
  386. :key="index">
  387. {{item.label}}
  388. </view>
  389. </view>
  390. </uni-forms-item>
  391. </view>
  392. </view>
  393. </view>
  394. </uni-forms>
  395. </view>
  396. <view class="Information " style="padding-bottom: 10px;border-bottom: 1px solid #f2f2f2;">
  397. <view class="dis j-s a-c">
  398. <text class="title">被保人信息</text>
  399. <view class="dis a-c j-c">
  400. <view class="status-data" :class="item.value==Insuredholder? 'active':''"
  401. v-for="(item,index) in insuredstatusList" @tap="InsuredholderClick(item.value)" :key="index">
  402. {{item.label}}
  403. </view>
  404. </view>
  405. </view>
  406. <uni-forms :rules="InsuredRules" :value="insuredPersonInfo" ref="InsuredForm" validate-trigger="bind"
  407. err-show-type="toast" label-width="80">
  408. <view v-show="Insuredholder=='99'" class="collapse">
  409. <view class="top-ocr dis j-c a-c" v-show="!InsuredfrontImg">
  410. <image src="../../static/image/car-insure/Frame1.png" mode="">
  411. </image>
  412. <text @tap="ocrIdentify('insuredPersonInfo')" style="margin-left: 5px;">点击上传/拍摄身份证 自动填写信息</text>
  413. </view>
  414. <view v-show="!InsuredExpand && !InsuredfrontImg" class="btn-collapse dis a-c j-c"
  415. @click="expand('InsuredExpand')">
  416. <text>展开手动输入被保人信息</text>
  417. <u-icon name="arrow-down" size="30" color="rgb(60 60 60 / 60%)"
  418. style="margin-left: 5px;"></u-icon>
  419. </view>
  420. <view v-show='InsuredExpand'>
  421. <view v-show=" InsuredfrontImg" class="movable-view dis f-c a-c">
  422. <movable-area>
  423. <movable-view direction="all" out-of-bounds :scale="true">
  424. <image :src="InsuredfrontImg" mode=""
  425. :style="{width:'100%',height:'100%',transform:`rotate(-${user3deg}deg)`}">
  426. </image>
  427. </movable-view>
  428. </movable-area>
  429. <view class="operate-img dis j-s a-c">
  430. <view class="dis a-c" @tap="rotatefront('user3deg')">
  431. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  432. 左转
  433. </view>
  434. <view class="dis a-c" @tap="ocrIdentify('insuredPersonInfo')">
  435. <image src="/static/image/car-insure/upload.png" mode=""></image>
  436. 上传
  437. </view>
  438. <view class="dis a-c" @tap="rotateback('user3deg')">
  439. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  440. 右转
  441. </view>
  442. </view>
  443. </view>
  444. <view style="padding: 0 15px;">
  445. <uni-forms-item name="name" required label="姓名: ">
  446. <input class="uni-input-input textColor" placeholder="请输入姓名"
  447. v-model="insuredPersonInfo.name" maxlength="5"
  448. placeholder-style="font-size:28upx" />
  449. </uni-forms-item>
  450. <uni-forms-item name="identifyType" required label="证件类型:">
  451. <view class="dis a-c j-end" style="width:100%;height: 100%;">
  452. 身份证
  453. </view>
  454. </uni-forms-item>
  455. <uni-forms-item required name="identifyNumber" label="证件号: ">
  456. <input class="uni-input-input textColor" placeholder="请输入证件号"
  457. v-model="insuredPersonInfo.identifyNumber" maxlength="18"
  458. @blur="binddata('identifyNumber', $event.detail.value,'insuredPersonInfo')"
  459. placeholder-style="font-size:28upx" />
  460. </uni-forms-item>
  461. <uni-forms-item required name="age" label="年龄: ">
  462. <input class="uni-input-input textColor" disabled placeholder="请输入年龄"
  463. v-model="insuredPersonInfo.age" maxlength="18"
  464. placeholder-style="font-size:28upx" />
  465. </uni-forms-item>
  466. <uni-forms-item name="gender" required label="性别:">
  467. <input class="uni-input-input textColor" disabled placeholder="请输入性别"
  468. v-model="insuredPersonInfo.gender" maxlength="1"
  469. placeholder-style="font-size:28upx" />
  470. </uni-forms-item>
  471. <uni-forms-item required name="mobile" label="手机号: ">
  472. <input class="uni-input-input textColor" placeholder="请输入手机号"
  473. v-model="insuredPersonInfo.mobile" maxlength="11"
  474. placeholder-style="font-size:28upx" />
  475. </uni-forms-item>
  476. <uni-forms-item required name="addr" label="地址: ">
  477. <u-input type="textarea" v-model="insuredPersonInfo.addr"
  478. :custom-style="{textAlign:'right'}" :auto-height="true"
  479. placeholder-style="color:#808080" placeholder="请输入地址" />
  480. </uni-forms-item>
  481. <uni-forms-item name="email" label="邮箱: ">
  482. <input class="uni-input-input textColor" placeholder="请输入邮箱"
  483. v-model="insuredPersonInfo.email" placeholder-style="font-size:28upx" />
  484. </uni-forms-item>
  485. <uni-forms-item required label="有效期起期" name="identifyValidDate">
  486. <u-input type="select" :select-open="InsuredDateShow"
  487. v-model="insuredPersonInfo.identifyValidDate" placeholder="请选择有效期起期"
  488. @click="InsuredDateShow = true" :custom-style="{textAlign:'right'}"
  489. placeholder-style="color:#808080"></u-input>
  490. <u-picker v-model="InsuredDateShow" mode="time" :params="params"
  491. @confirm="e=> Dateconfirm(e,'insuredPersonInfo','identifyValidDate')"></u-picker>
  492. </uni-forms-item>
  493. <uni-forms-item required label="有效期止期" name="identifyValidEndDate"
  494. style="padding-right: 18px;">
  495. <input class="uni-input-input textColor" disabled placeholder="有效期止期"
  496. v-model="insuredPersonInfo.identifyValidEndDate"
  497. placeholder-style="font-size:28upx" />
  498. </uni-forms-item>
  499. <uni-forms-item label="止期年限" style="padding: 10px 0 5px;">
  500. <view class="dis a-c j-c">
  501. <view class="status-data"
  502. :class="item.value==insuredValidEndDateholder? 'active':''"
  503. v-for="(item,index) in endDateList"
  504. @tap="ValidEndDateClick(item.value,'insuredValidEndDateholder','insuredPersonInfo')"
  505. :key="index">
  506. {{item.label}}
  507. </view>
  508. </view>
  509. </uni-forms-item>
  510. </view>
  511. </view>
  512. </view>
  513. </uni-forms>
  514. </view>
  515. <view class="footer-btn">
  516. <u-button type="primary" style="background:#0052FF;" @tap="next">下一步</u-button>
  517. </view>
  518. <OCRComponent :showModal='OCRShow' @closePopup="closePopup" :tabslist="tabslist" @tabschange="OCRtabschange"
  519. :tabsCurrent="tabsCurrent" :checkType='checkType' @carCallback="carCallback"
  520. @ownerInfoCallback="ownerInfoCallback" @applicantInfoCallback="applicantInfoCallback"
  521. @InsuredInfoCallback="InsuredInfoCallback">
  522. </OCRComponent>
  523. </view>
  524. </template>
  525. <script>
  526. import OCRComponent from '@/components/modules/carInsure/OCRComponent/OCRComponent.vue'; //引用图片信息检查插件
  527. import {
  528. getAgeByIdCard,
  529. getGenderFromIdCard
  530. } from '@/plugins/utils';
  531. var dateTime = new Date();
  532. let Year = dateTime.getFullYear();
  533. let Month = Number(dateTime.getMonth() + 1);
  534. export default {
  535. components: {
  536. OCRComponent
  537. },
  538. data() {
  539. return {
  540. carInfo: {
  541. licenseNo: "", //车牌号
  542. brandName: "", //车辆品牌型号
  543. vinNo: "", //车架号
  544. engineNo: "", //发动机号
  545. modelCode: "", //车型编码
  546. seatCount: "0", //核定载客量 核定载人数
  547. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  548. carBrand: "", //车型品牌
  549. ciCarName: "", //行业车型名称
  550. ciModelCode: "", //行业车型编码
  551. completeKerbMass: "", //整备质量
  552. exhaustScale: "", //排量
  553. factory: "", //工厂名称
  554. factoryid: "", //工厂编码
  555. frameNo: "", //车架号
  556. licenseTypeCode: "02", //号牌种类
  557. vehicleclass: "", //车辆类型
  558. familyName: "", //车型
  559. modelcname: "", //车型名称
  560. powertypecode: "", //燃料类型编码
  561. vehicleweight: "", //总质量
  562. limitLoad: "", //核定载质量
  563. caryear: "0", //年款
  564. cimodelclass: "A0", //车辆种类
  565. powertype: "汽油", //燃料类型
  566. energyType: "0", //能源种类
  567. enginedesc: "", //排量
  568. powerScale: "", //功率
  569. registerDate: "", //注册日期
  570. issueDate: "", //发证日期
  571. transferFlag: false, //过户标志
  572. transferFlagBi: false, //商业过户标志
  573. transferDate: "", //过户日期
  574. loanStatus: 0, //贷款标志
  575. firstBeneMan: "", //第一受益人
  576. noLicenseFlag: false, //是否新车
  577. cartype: "K33", //客车A0 货车H0          
  578. carnature: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  579. property: "1", //所属性质 1个人 2企业 3个人
  580. outOfInsurance: false, //脱保
  581. usedCar: false, //二手车
  582. vehicleUse: "05" //车辆用途
  583. },
  584. ownerInfo: {
  585. name: "",
  586. identifyType: "01",
  587. identifyNumber: "",
  588. addr: "",
  589. gender: "", //性别
  590. email: "", //邮箱
  591. mobile: "",
  592. identifyValidDate: "", //有效期起期
  593. identifyValidEndDate: "", //有效期止期
  594. age: "", //年龄
  595. },
  596. policyHolderInfo: {
  597. name: "",
  598. identifyType: "01",
  599. identifyNumber: "",
  600. addr: "",
  601. gender: "", //性别
  602. email: "",
  603. mobile: "",
  604. identifyValidDate: "", //有效期起期
  605. identifyValidEndDate: "", //有效期止期
  606. age: "", //年龄
  607. },
  608. insuredPersonInfo: {
  609. name: "",
  610. identifyType: "01",
  611. identifyNumber: "",
  612. addr: "",
  613. gender: "", //性别
  614. email: "",
  615. mobile: "",
  616. identifyValidDate: "", //有效期起期
  617. identifyValidEndDate: "", //有效期止期
  618. age: "", //年龄
  619. },
  620. //影像信息
  621. riskList: [], //交强险和商业险的选择
  622. kindList: [], //商业险险种的选择
  623. carInfoPositiveList: [], //车辆
  624. ownerInfoPositiveList: [], //车主
  625. policyHolderInfoPositiveList: [], //投保人
  626. insuredPersonInfoPositiveList: [], //被保人
  627. //影像信息
  628. carfrontImg: "", //显示图片
  629. carbackImg: "", //显示图片
  630. ownerfrontImg: "", //显示图片
  631. ownerbackImg: "", //显示图片
  632. policyHolderfrontImg: "", //显示图片
  633. policyHolderbackImg: "", //显示图片
  634. InsuredfrontImg: "", //显示图片
  635. InsuredbackImg: "", //显示图片
  636. OCRShow: false,
  637. tabsCurrent: 0,
  638. checkType: "carInfo", //组件类型
  639. tabslist: [{
  640. name: '行驶证识别'
  641. }],
  642. params: {
  643. year: true, //年
  644. month: true, //月
  645. day: true, //日
  646. hour: false, //时
  647. minute: false, //分
  648. second: false, //秒
  649. },
  650. errorType: ['message', 'toast'],
  651. carRules: {
  652. frameNo: {
  653. rules: [{
  654. required: true,
  655. errorMessage: '请输入车辆识别码',
  656. }, {
  657. pattern: /^([0-9A-Z]){17}$/,
  658. errorMessage: '请输入正确的车辆识别码',
  659. }]
  660. },
  661. modelcname: {
  662. rules: [{
  663. required: true,
  664. errorMessage: '请输入品牌型号',
  665. }, ]
  666. },
  667. engineNo: {
  668. rules: [{
  669. required: true,
  670. errorMessage: '请输入发动机号',
  671. }, ]
  672. },
  673. purchasePrice: {
  674. rules: [{
  675. required: true,
  676. errorMessage: '请输入新车购置价',
  677. }, {
  678. validateField: function(rule, value, data, callback) {
  679. if (value == 0) {
  680. callback('新车购置价不能为零')
  681. }
  682. return true
  683. }
  684. }]
  685. },
  686. completeKerbMass: {
  687. rules: [{
  688. required: true,
  689. errorMessage: '请输入整备质量',
  690. }, ]
  691. },
  692. carnature: {
  693. rules: [{
  694. required: true,
  695. errorMessage: '使用性质必选',
  696. }, ]
  697. },
  698. vehicleUse: {
  699. rules: [{
  700. required: true,
  701. errorMessage: '车辆用途必选',
  702. }, ]
  703. },
  704. registerDate: {
  705. rules: [{
  706. required: true,
  707. errorMessage: '请选择注册日期',
  708. }, {
  709. pattern: /^\d{4}-\d{2}-\d{2}$/,
  710. errorMessage: '注册日期格式错误',
  711. }]
  712. },
  713. issueDate: {
  714. rules: [{
  715. required: true,
  716. errorMessage: '请选择发证日期',
  717. }, {
  718. pattern: /^\d{4}-\d{2}-\d{2}$/,
  719. errorMessage: '发证日期日期格式错误',
  720. }]
  721. }
  722. },
  723. ownerRules: {
  724. name: {
  725. rules: [{
  726. required: true,
  727. errorMessage: '请输入车主姓名',
  728. },
  729. {
  730. minLength: 2,
  731. maxLength: 5,
  732. errorMessage: '车主姓名长度在 {minLength} 到 {maxLength} 个字符',
  733. },
  734. {
  735. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  736. errorMessage: '请输入正确的车主姓名',
  737. }
  738. ]
  739. },
  740. identifyNumber: {
  741. rules: [{
  742. required: true,
  743. errorMessage: '请输入车主证件号',
  744. },
  745. {
  746. 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]$/,
  747. errorMessage: '请输入正确的车主证件号',
  748. }
  749. ]
  750. },
  751. mobile: {
  752. rules: [{
  753. required: true,
  754. errorMessage: '请输入车主手机号',
  755. },
  756. {
  757. pattern: /^1[3-9]\d{9}$/,
  758. errorMessage: '请输入正确的手机号',
  759. }
  760. ]
  761. },
  762. addr: {
  763. rules: [{
  764. required: true,
  765. errorMessage: '请输入车主地址',
  766. },
  767. {
  768. minLength: 8,
  769. maxLength: 40,
  770. errorMessage: '车主地址长度在 {minLength} 到 {maxLength} 个字符',
  771. },
  772. ]
  773. },
  774. identifyValidDate: {
  775. rules: [{
  776. required: true,
  777. errorMessage: '请选择身份证起期',
  778. }, {
  779. pattern: /^\d{4}-\d{2}-\d{2}$/,
  780. errorMessage: '身份证起期格式错误',
  781. }]
  782. },
  783. identifyValidEndDate: {
  784. rules: [{
  785. required: true,
  786. errorMessage: '请选择身份证止期',
  787. }, {
  788. pattern: /^\d{4}-\d{2}-\d{2}$/,
  789. errorMessage: '身份证止期格式错误',
  790. }]
  791. },
  792. },
  793. policyHolderRules: {
  794. name: {
  795. rules: [{
  796. required: true,
  797. errorMessage: '请输入投保人姓名',
  798. },
  799. {
  800. minLength: 2,
  801. maxLength: 5,
  802. errorMessage: '投保人姓名长度在 {minLength} 到 {maxLength} 个字符',
  803. },
  804. {
  805. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  806. errorMessage: '请输入正确的投保人姓名',
  807. }
  808. ]
  809. },
  810. identifyNumber: {
  811. rules: [{
  812. required: true,
  813. errorMessage: '请输入投保人证件号',
  814. },
  815. {
  816. 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]$/,
  817. errorMessage: '请输入正确的投保人证件号',
  818. }
  819. ]
  820. },
  821. mobile: {
  822. rules: [{
  823. required: true,
  824. errorMessage: '请输入投保人手机号',
  825. },
  826. {
  827. pattern: /^1[3-9]\d{9}$/,
  828. errorMessage: '请输入正确的手机号',
  829. }
  830. ]
  831. },
  832. addr: {
  833. rules: [{
  834. required: true,
  835. errorMessage: '请输入投保人地址',
  836. },
  837. {
  838. minLength: 8,
  839. maxLength: 40,
  840. errorMessage: '投保人地址长度在 {minLength} 到 {maxLength} 个字符',
  841. },
  842. ]
  843. },
  844. identifyValidDate: {
  845. rules: [{
  846. required: true,
  847. errorMessage: '请选择身份证起期',
  848. }, {
  849. pattern: /^\d{4}-\d{2}-\d{2}$/,
  850. errorMessage: '身份证起期格式错误',
  851. }]
  852. },
  853. identifyValidEndDate: {
  854. rules: [{
  855. required: true,
  856. errorMessage: '请选择身份证止期',
  857. }, {
  858. pattern: /^\d{4}-\d{2}-\d{2}$/,
  859. errorMessage: '身份证止期格式错误',
  860. }]
  861. },
  862. },
  863. InsuredRules: {
  864. name: {
  865. rules: [{
  866. required: true,
  867. errorMessage: '请输入被保人姓名',
  868. },
  869. {
  870. minLength: 2,
  871. maxLength: 5,
  872. errorMessage: '被保人姓名长度在 {minLength} 到 {maxLength} 个字符',
  873. },
  874. {
  875. pattern: /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/,
  876. errorMessage: '请输入正确的被保人姓名',
  877. }
  878. ]
  879. },
  880. identifyNumber: {
  881. rules: [{
  882. required: true,
  883. errorMessage: '请输入被保人证件号',
  884. },
  885. {
  886. 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]$/,
  887. errorMessage: '请输入正确的被保人证件号',
  888. }
  889. ]
  890. },
  891. mobile: {
  892. rules: [{
  893. required: true,
  894. errorMessage: '请输入被保人手机号',
  895. },
  896. {
  897. 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}$/,
  898. errorMessage: '请输入正确的手机号',
  899. }
  900. ]
  901. },
  902. addr: {
  903. rules: [{
  904. required: true,
  905. errorMessage: '请输入被保人地址',
  906. },
  907. {
  908. minLength: 8,
  909. maxLength: 40,
  910. errorMessage: '被保人地址长度在 {minLength} 到 {maxLength} 个字符',
  911. },
  912. ]
  913. },
  914. identifyValidDate: {
  915. rules: [{
  916. required: true,
  917. errorMessage: '请选择身份证起期',
  918. }, {
  919. pattern: /^\d{4}-\d{2}-\d{2}$/,
  920. errorMessage: '身份证起期格式错误',
  921. }]
  922. },
  923. identifyValidEndDate: {
  924. rules: [{
  925. required: true,
  926. errorMessage: '请选择身份证止期',
  927. }, {
  928. pattern: /^\d{4}-\d{2}-\d{2}$/,
  929. errorMessage: '身份证止期格式错误',
  930. }]
  931. },
  932. },
  933. endYear: Year,
  934. endMonth: Month,
  935. registerDateShow: false, //注册日期
  936. issueDateShow: false, //发证日期
  937. transferDateShow: false, //转移登记日期
  938. ownerDateShow: false, //
  939. applicantDateShow: false, //
  940. InsuredDateShow: false, //
  941. identifyType: "身份证",
  942. carExpand: false,
  943. ownersExpand: false,
  944. policyHolderExpand: false,
  945. InsuredExpand: false,
  946. carInfoShow: true, //车辆信息显示
  947. headerText: '信息录入',
  948. headerStyle: {
  949. backgroundColor: 'transparent',
  950. },
  951. prevScrollTop: 0,
  952. policyHolderholder: "1",
  953. Insuredholder: "2",
  954. ownerValidEndDateholder: null,
  955. policyValidEndDateholder: null,
  956. insuredValidEndDateholder: null,
  957. holderstatusList: [{
  958. label: '同车主',
  959. value: "1",
  960. },
  961. {
  962. label: '其他人',
  963. value: "99",
  964. },
  965. ],
  966. insuredstatusList: [{
  967. label: '同车主',
  968. value: '1',
  969. },
  970. {
  971. label: '同投保人',
  972. value: '2',
  973. },
  974. {
  975. label: '其他人',
  976. value: '99',
  977. },
  978. ],
  979. endDateList: [{
  980. label: '10年',
  981. value: "10年"
  982. },
  983. {
  984. label: '20年',
  985. value: "20年"
  986. },
  987. {
  988. label: '长期',
  989. value: "长期"
  990. },
  991. ],
  992. cardeg: 0, //旋转角度
  993. user1deg: 0, //旋转角度
  994. user2deg: 0, //旋转角度
  995. user3deg: 0, //旋转角度
  996. routepage: "",
  997. carInfo1: {
  998. carnature: "非营业",
  999. energyType: "燃油",
  1000. vehicleUse: "家庭自用",
  1001. cartype: "轿车",
  1002. cimodelclass: "客车",
  1003. },
  1004. carnatureShow: false, //使用性质
  1005. energyTypeShow: false, //能源种类
  1006. vehicleUseShow: false, //车辆用途
  1007. cartypeShow: false, //车辆类型
  1008. cimodelclassShow: false, //车辆种类
  1009. natureOfVehicleUseoptions: [],
  1010. vehicleTypeoptions: [],
  1011. trafficManagementVehicleTypeoptions: [],
  1012. energyTypeoptions: [],
  1013. businessVehicleUseoptions: [],
  1014. outOfBusinessVehicleUseoptions: [],
  1015. }
  1016. },
  1017. watch: {
  1018. checkType: {
  1019. handler(val) {
  1020. switch (val) {
  1021. case 'carInfo':
  1022. this.tabslist = [{
  1023. name: '行驶证识别'
  1024. }]
  1025. break;
  1026. default:
  1027. this.tabslist = [{
  1028. name: '证件识别'
  1029. }]
  1030. break;
  1031. }
  1032. },
  1033. deep: true
  1034. },
  1035. },
  1036. onShow() {
  1037. },
  1038. onLoad(params) {
  1039. this.getDicType("businessVehicleUse"); //车辆用途(营业)
  1040. this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  1041. this.getDicType("natureOfVehicleUse"); //车辆性质
  1042. this.getDicType("vehicleType"); //车辆种类
  1043. this.getDicType("trafficManagementVehicleType"); //车辆类型
  1044. this.getDicType("energyType"); //能源种类
  1045. let pages = getCurrentPages(); // 当前页面路由
  1046. if (pages.length > 1) {
  1047. let beforePage = pages[pages.length - 2].route; // 上一个页面路由
  1048. this.routepage = beforePage;
  1049. }
  1050. if (!!params.licenseNo) {
  1051. this.carExpand = true;
  1052. this.carInfo.licenseNo = decodeURIComponent(params.licenseNo);
  1053. } else {
  1054. const eventChannel = this.getOpenerEventChannel()
  1055. eventChannel.on('acceptData', (data) => {
  1056. console.log(data);
  1057. if (!!data) {
  1058. let info = JSON.parse(JSON.stringify(data));
  1059. let page = this.routepage;
  1060. switch (page) {
  1061. case 'pages/carInsure/entry':
  1062. this.carInfoShow = false;
  1063. this.carInfo = info.carInfo; //车辆信息
  1064. if (this.carInfo.cimodelclass == 'A0') {
  1065. this.carInfo1.cimodelclass = "客车"
  1066. } else {
  1067. this.carInfo1.cimodelclass = "货车"
  1068. }
  1069. this.ownerInfo.name = info.carInfo.carOwner; //车主
  1070. this.carInfoPositiveList = info.carInfoPositiveList; //车辆
  1071. break;
  1072. case 'pages/carInsure/quote':
  1073. case 'pages/carInsure/quoteDetail':
  1074. this.carInfo = info.carInfo; //车辆信息
  1075. if (this.carInfo.cimodelclass == 'A0') {
  1076. this.carInfo1.cimodelclass = "客车"
  1077. } else {
  1078. this.carInfo1.cimodelclass = "货车"
  1079. }
  1080. this.ownerInfo = info.ownerInfo; //车主信息
  1081. this.policyHolderInfo = info.policyHolderInfo; //投保人信息
  1082. this.insuredPersonInfo = info.insuredPersonInfo; //被保人信息
  1083. this.riskList = info.riskList; //险种大类
  1084. this.kindList = info.kindList; //商业险险别
  1085. this.carInfoPositiveList = info.carInfoPositiveList; //车辆
  1086. this.ownerInfoPositiveList = info.ownerInfoPositiveList; //车主
  1087. this.policyHolderInfoPositiveList = info.policyHolderInfoPositiveList; //投保
  1088. this.insuredPersonInfoPositiveList = info.insuredPersonInfoPositiveList; //被保人
  1089. this.carExpand = true;
  1090. this.ownersExpand = true;
  1091. this.policyHolderExpand = true;
  1092. this.InsuredExpand = true;
  1093. this.policyHolderholder = "99";
  1094. this.Insuredholder = "99";
  1095. break;
  1096. default:
  1097. break;
  1098. }
  1099. }
  1100. })
  1101. }
  1102. },
  1103. onPageScroll(e) {
  1104. this.handleScroll(e);
  1105. },
  1106. mounted() {
  1107. uni.pageScrollTo({
  1108. scrollTop: 0,
  1109. duration: 0
  1110. });
  1111. uni.$on('scroll', this.handleScroll);
  1112. },
  1113. destroyed() {
  1114. uni.$off('scroll', this.handleScroll);
  1115. },
  1116. methods: {
  1117. async getDicType(type) {
  1118. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  1119. if (res.code == 200) {
  1120. this[type + 'options'] = res.data.ddList;
  1121. // if (type == "trafficManagementVehicleType") {
  1122. // this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions, this
  1123. // .carInfo
  1124. // .cartype)
  1125. // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1126. // this
  1127. // .carInfo
  1128. // .cimodelclass)
  1129. // }
  1130. }
  1131. },
  1132. dictionaryConfirm(e, name) {
  1133. if (name == 'carnature') {
  1134. this.carInfo1['vehicleUse'] = "";
  1135. this.carInfo['vehicleUse'] = "";
  1136. }
  1137. this.carInfo[name] = e[0].value;
  1138. this.carInfo1[name] = e[0].label;
  1139. },
  1140. async toChooseVin(cctype) {
  1141. if (cctype == '' || cctype == null) {
  1142. return uni.showToast({
  1143. icon: 'none',
  1144. title: '请输入车架号',
  1145. duration: 1500
  1146. });
  1147. } else {
  1148. if (!this.isFrameno(cctype.trim())) {
  1149. return uni.showToast({
  1150. title: '请输入正确的车辆识别码',
  1151. icon: "none"
  1152. });
  1153. }
  1154. this.navigate({
  1155. url: '/pages/carInsure/carType?frameNo=' + encodeURIComponent(cctype)
  1156. }, "navigateTo", true);
  1157. }
  1158. },
  1159. //跳转选择车辆类型页面
  1160. toChooseVehicleType(cctype) {
  1161. if (cctype == '' || cctype == null) {
  1162. uni.showToast({
  1163. icon: 'none',
  1164. title: '请输入车型名称',
  1165. duration: 1500
  1166. });
  1167. } else {
  1168. let cctypeName = cctype.replace(/[^u4e00-u9fa5|,]+/ig, '')
  1169. this.navigate({
  1170. url: '/pages/carInsure/carType?modelName=' + encodeURIComponent(cctypeName)
  1171. }, "navigateTo", true);
  1172. }
  1173. },
  1174. //验证车架号
  1175. isFrameno(str) {
  1176. let mPattern = /^([0-9A-Z]){17}$/;
  1177. return mPattern.test(str);
  1178. },
  1179. rotatefront(int) {
  1180. this[int] = this[int] == 270 ? 0 : this[int] + 90;
  1181. },
  1182. rotateback(int) {
  1183. this[int] = this[int] == 0 ? 270 : this[int] - 90;
  1184. },
  1185. onMove(e) {
  1186. this.x = e.detail.x;
  1187. this.y = e.detail.y;
  1188. },
  1189. //字典name匹配
  1190. dictionaryMatching(list, value) {
  1191. let obj = list.find(val => val.dictValue == value);
  1192. return obj.dictTag;
  1193. },
  1194. //OC识别返回信息
  1195. carCallback(obj) {
  1196. this.carfrontImg = obj.frontImg;
  1197. this.carbackImg = obj.backImg;
  1198. this.carInfoPositiveList = obj.ImgList;
  1199. Object.assign(this.carInfo, obj.Info);
  1200. this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1201. this
  1202. .carInfo
  1203. .cimodelclass)
  1204. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  1205. this
  1206. .carInfo
  1207. .cartype);
  1208. this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
  1209. .natureOfVehicleUseoptions,
  1210. this
  1211. .carInfo
  1212. .carnature) : "";
  1213. this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
  1214. .outOfBusinessVehicleUseoptions,
  1215. this
  1216. .carInfo
  1217. .vehicleUse) : "";
  1218. this.OCRShow = false;
  1219. this.carExpand = true;
  1220. },
  1221. ownerInfoCallback(obj) {
  1222. this.ownerfrontImg = obj.frontImg;
  1223. this.ownerbackImg = obj.backImg;
  1224. this.ownerInfoPositiveList = obj.ImgList;
  1225. Object.assign(this.ownerInfo, obj.Info);
  1226. this.OCRShow = false;
  1227. this.ownersExpand = true;
  1228. },
  1229. applicantInfoCallback(obj) {
  1230. this.policyHolderfrontImg = obj.frontImg;
  1231. this.policyHolderbackImg = obj.backImg;
  1232. this.policyHolderInfoPositiveList = obj.ImgList;
  1233. Object.assign(this.policyHolderInfo, obj.Info);
  1234. this.OCRShow = false;
  1235. this.policyHolderExpand = true;
  1236. },
  1237. InsuredInfoCallback(obj) {
  1238. this.InsuredfrontImg = obj.frontImg;
  1239. this.InsuredbackImg = obj.backImg;
  1240. this.insuredPersonInfoPositiveList = obj.ImgList;
  1241. Object.assign(this.insuredPersonInfo, obj.Info);
  1242. this.OCRShow = false;
  1243. this.InsuredExpand = true;
  1244. },
  1245. OCRtabschange(e) {
  1246. this.tabsCurrent = e;
  1247. },
  1248. closePopup() {
  1249. this.OCRShow = false;
  1250. },
  1251. ocrIdentify(name) {
  1252. this.checkType = name;
  1253. this.OCRShow = !this.OCRShow;
  1254. },
  1255. transferFlagchange(status) {
  1256. if (status) {
  1257. this.carInfo.transferDate = this.carInfo.issueDate;
  1258. } else {
  1259. this.carInfo.transferDate = ""
  1260. }
  1261. },
  1262. binddata(name, value, type) {
  1263. if (name == 'identifyNumber' && value) {
  1264. this[type].age = getAgeByIdCard(value)
  1265. this[type].gender = getGenderFromIdCard(value)
  1266. }
  1267. },
  1268. //转变大写(车型/车架号/发动机号)
  1269. upperCaseType(type) {
  1270. this.carInfo[type] = this.carInfo[type].toUpperCase();
  1271. if (type == 'frameNo') {
  1272. this.carInfo.vinNo = this.carInfo.frameNo.trim();
  1273. }
  1274. },
  1275. Dateconfirm(e, obj, param) {
  1276. this[obj][param] = e.year + '-' + e.month + '-' + e.day;
  1277. },
  1278. //(同车主/同投保人)数据处理
  1279. setPersonInfoAndImageType(sourceInfo, targetInfo, imageType) {
  1280. let obj = Object.assign({}, this[sourceInfo]);
  1281. this[targetInfo] = obj;
  1282. if (this[sourceInfo + 'PositiveList'].length > 0) {
  1283. this[targetInfo + 'PositiveList'] = JSON.parse(JSON.stringify(this[sourceInfo + 'PositiveList']));
  1284. if (this[targetInfo + 'PositiveList'].length == 1) {
  1285. this[targetInfo + 'PositiveList'][0].imageType = imageType;
  1286. } else {
  1287. this[targetInfo + 'PositiveList'][0].imageType = imageType;
  1288. this[targetInfo + 'PositiveList'][1].imageType = `D${imageType.substr(1)}`;
  1289. }
  1290. }
  1291. },
  1292. isEveryPropertyFilled(obj, excludedKey) {
  1293. // 通过 Object.keys() 遍历对象的所有键,并使用 every() 方法检查每个键对应的值
  1294. return Object.keys(obj).every(key => {
  1295. // 如果当前键是要排除的键,则认为这个键“有效”
  1296. if (key === excludedKey) {
  1297. return true;
  1298. }
  1299. // 对于其他键,检查值是否不是 undefined、null 或空字符串
  1300. const value = obj[key];
  1301. return value !== undefined && value !== null && value !== '';
  1302. });
  1303. },
  1304. //校验事件
  1305. next() {
  1306. //投保人同车主
  1307. if (this.policyHolderholder == '1') {
  1308. this.setPersonInfoAndImageType('ownerInfo', 'policyHolderInfo', "C03");
  1309. }
  1310. if (this.Insuredholder == '1') {
  1311. this.setPersonInfoAndImageType('ownerInfo', 'insuredPersonInfo', "C04");
  1312. }
  1313. if (this.Insuredholder == '2') {
  1314. this.setPersonInfoAndImageType('policyHolderInfo', 'insuredPersonInfo', "C04");
  1315. }
  1316. if (this.isEveryPropertyFilled(this.ownerInfo, 'email') && this.isEveryPropertyFilled(this
  1317. .policyHolderInfo,
  1318. 'email') && this.isEveryPropertyFilled(this.insuredPersonInfo, 'email')) {
  1319. this.navigate({
  1320. url: '/pages/carInsure/insureItems',
  1321. success: (res) => {
  1322. res.eventChannel.emit(
  1323. "acceptData", {
  1324. carInfo: this
  1325. .carInfo,
  1326. ownerInfo: this
  1327. .ownerInfo,
  1328. policyHolderInfo: this
  1329. .policyHolderInfo,
  1330. insuredPersonInfo: this
  1331. .insuredPersonInfo,
  1332. riskList: this
  1333. .riskList,
  1334. kindList: this
  1335. .kindList,
  1336. carInfoPositiveList: this
  1337. .carInfoPositiveList, //车辆
  1338. ownerInfoPositiveList: this
  1339. .ownerInfoPositiveList, //车主
  1340. policyHolderInfoPositiveList: this
  1341. .policyHolderInfoPositiveList, //投保人
  1342. insuredPersonInfoPositiveList: this
  1343. .insuredPersonInfoPositiveList, //被保人
  1344. })
  1345. }
  1346. }, "navigateTo", true);
  1347. } else {
  1348. this.$refs.carForm.submit().then(res => {
  1349. this.$refs.ownerForm.submit().then(res1 => {
  1350. this.$refs.policyHolderForm.submit().then(res2 => {
  1351. this.$refs.InsuredForm.submit().then(res3 => {}).catch(err => {
  1352. console.log('表单错误信息:', err);
  1353. })
  1354. }).catch(err => {
  1355. console.log('表单错误信息:', err);
  1356. })
  1357. }).catch(err => {})
  1358. }).catch(err => {})
  1359. }
  1360. },
  1361. expand(int) {
  1362. this[int] = true;
  1363. },
  1364. //人员止期
  1365. ValidEndDateClick(value, identify, info) {
  1366. this[identify] = value;
  1367. switch (value) {
  1368. case '10年':
  1369. this[info].identifyValidEndDate = this.endDateInt(this[info].identifyValidDate, 10)
  1370. break;
  1371. case '20年':
  1372. this[info].identifyValidEndDate = this.endDateInt(this[info].identifyValidDate, 20)
  1373. break;
  1374. case '长期':
  1375. this[info].identifyValidEndDate = '9999-12-31'
  1376. break;
  1377. default:
  1378. }
  1379. },
  1380. //投保人同车主
  1381. applicantholderClick(value) {
  1382. this.policyHolderholder = value;
  1383. if (value == '99') {
  1384. for (let key in this.policyHolderInfo) {
  1385. if (key !== 'identifyType') {
  1386. this.policyHolderInfo[key] = '';
  1387. }
  1388. }
  1389. }
  1390. },
  1391. //被保人同车主/投保人
  1392. InsuredholderClick(value) {
  1393. this.Insuredholder = value;
  1394. if (value == '99') {
  1395. for (let key in this.insuredPersonInfo) {
  1396. if (key !== 'identifyType') {
  1397. this.insuredPersonInfo[key] = '';
  1398. }
  1399. }
  1400. }
  1401. },
  1402. //头部颜色变化js
  1403. handleScroll(e) {
  1404. const scrollTop = e.scrollTop;
  1405. let opacity = 1;
  1406. let shadowOpacity = 0;
  1407. if (scrollTop > this.prevScrollTop) {
  1408. // 向下滚动
  1409. opacity = Math.min((scrollTop - 50) / 100, 1); // 根据滚动距离计算透明度,最大为1
  1410. shadowOpacity = Math.min((scrollTop - 50) / 500, 0.3); // 根据滚动距离计算阴影透明度,最大为0.3
  1411. } else if (scrollTop < 50) {
  1412. // 在顶部附近,设置透明度和阴影透明度均为0
  1413. opacity = 0;
  1414. shadowOpacity = 0;
  1415. } else {
  1416. // 向上滚动
  1417. opacity = Math.max(0, 1 - (scrollTop / 100)); // 根据滚动距离计算透明度,最小为0
  1418. shadowOpacity = Math.max(0, 0.3 - (scrollTop / 500)); // 根据滚动距离计算阴影透明度,最小为0
  1419. }
  1420. const rgbaOpacity = opacity * 100; // 将透明度转换为百分比形式
  1421. const backgroundColor = `rgb(255 255 255 / ${rgbaOpacity}%)`; // 根据透明度设置背景颜色
  1422. // 计算阴影的颜色和大小
  1423. const shadowBlur = shadowOpacity * 10; // 阴影模糊程度为阴影透明度的10像素
  1424. const shadowColor = `rgba(218, 227, 244, ${shadowOpacity})`; // 阴影颜色为黑色,透明度根据阴影透明度计算
  1425. const boxShadow = `0 0 ${shadowBlur}px ${shadowColor}`; // 生成box-shadow属性值
  1426. this.headerStyle.backgroundColor = backgroundColor;
  1427. this.headerStyle.boxShadow = boxShadow;
  1428. this.prevScrollTop = scrollTop;
  1429. },
  1430. //页面返回按钮
  1431. back() {
  1432. uni.navigateBack({
  1433. delta: 1, // 返回的页面数,如果是1表示返回上一页
  1434. success: function() {}
  1435. });
  1436. },
  1437. endDateInt(time, sum) {
  1438. let currentDate = new Date(time);
  1439. currentDate.setFullYear(currentDate.getFullYear() + sum);
  1440. let year = currentDate.getFullYear();
  1441. let month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
  1442. let day = ('0' + currentDate.getDate()).slice(-2);
  1443. let formattedDate = year + '-' + month + '-' + day;
  1444. return formattedDate;
  1445. }
  1446. },
  1447. }
  1448. </script>
  1449. <style lang="scss" scoped>
  1450. .uni-forms-item ::v-deep .uni-input-input {
  1451. text-align: end;
  1452. }
  1453. .uni-forms-item ::v-deep .u-input__textarea {
  1454. min-height: auto !important;
  1455. }
  1456. ::v-deep .uni-forms-item {
  1457. border-bottom: 1px solid #f2f2f2;
  1458. }
  1459. ::v-deep .uni-forms-item:last-child {
  1460. border: none;
  1461. }
  1462. .page {
  1463. height: auto;
  1464. background: #F8FAFE;
  1465. padding: 12px 16px 50px 16px;
  1466. }
  1467. .fixed {
  1468. position: fixed;
  1469. top: 0;
  1470. left: 0;
  1471. width: 100%;
  1472. height: auto;
  1473. background-color: transparent;
  1474. padding: 50px 16px 16px 16px;
  1475. z-index: 99;
  1476. transition: background-color 0.2s;
  1477. text {
  1478. font-size: 18px;
  1479. font-weight: bold;
  1480. }
  1481. }
  1482. .banner {
  1483. width: 100%;
  1484. height: 168px;
  1485. background-image: url("/static/image/car-insure/carban2.png");
  1486. background-size: cover;
  1487. background-position: center;
  1488. }
  1489. .Information {
  1490. width: 100%;
  1491. height: auto;
  1492. margin-bottom: 24px;
  1493. .title {
  1494. font-size: 15px;
  1495. font-weight: bold;
  1496. }
  1497. .collapse {
  1498. width: 100%;
  1499. height: auto;
  1500. background: #FFFFFF;
  1501. margin-top: 10px;
  1502. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1503. border-radius: 12px 12px 12px 12px;
  1504. >view:nth-child(1) {
  1505. width: 100%;
  1506. height: 42px;
  1507. }
  1508. .top-ocr {
  1509. background-color: #F9F9F9;
  1510. border-top-left-radius: 12px;
  1511. border-top-right-radius: 12px;
  1512. color: #0052FF;
  1513. font-size: 14px;
  1514. image {
  1515. width: 20px;
  1516. height: 20px;
  1517. }
  1518. }
  1519. .btn-collapse {
  1520. height: 42px;
  1521. font-size: 12px;
  1522. background-color: white;
  1523. border-bottom-left-radius: 12px;
  1524. border-bottom-right-radius: 12px;
  1525. color: rgba(60, 60, 60, 0.6);
  1526. }
  1527. }
  1528. }
  1529. .movable-view {
  1530. .operate-img {
  1531. width: 90%;
  1532. height: auto;
  1533. background-color: #F9F9F9;
  1534. border-radius: 8px;
  1535. padding: 10px 25px;
  1536. margin-top: 10px;
  1537. >view:nth-child(2) {
  1538. background-color: rgba(0, 82, 255, 0.06);
  1539. border-radius: 4px 4px 4px 4px;
  1540. border: 1px solid #0052FF;
  1541. color: #0052FF;
  1542. padding: 3px 5px;
  1543. }
  1544. >view {
  1545. font-size: 14px;
  1546. }
  1547. image {
  1548. width: 22px;
  1549. height: 22px;
  1550. margin-right: 5px;
  1551. }
  1552. }
  1553. }
  1554. .status-data {
  1555. width: 66px;
  1556. height: 30px;
  1557. margin: 0 7px;
  1558. font-size: 14px;
  1559. border: 1px solid #CDCDCD;
  1560. cursor: pointer;
  1561. text-align: center;
  1562. line-height: 30px;
  1563. }
  1564. .active {
  1565. position: relative;
  1566. background: rgba(0, 82, 255, 0.1);
  1567. color: #0052FF;
  1568. border: 1px solid #0052FF;
  1569. font-weight: 700;
  1570. }
  1571. .active::before {
  1572. content: "";
  1573. position: absolute;
  1574. top: 0;
  1575. left: 0;
  1576. width: 10px;
  1577. height: 10px;
  1578. background-image: url("/static/image/car-insure/before.png");
  1579. background-size: cover;
  1580. }
  1581. .footer-btn {
  1582. position: fixed;
  1583. bottom: 0;
  1584. left: 0;
  1585. width: 100%;
  1586. height: 62px;
  1587. background: #FFFFFF;
  1588. box-shadow: 0px -4px 10px 0px #DAE3F4;
  1589. border-radius: 0px 0px 0px 0px;
  1590. padding: 12px 16px;
  1591. z-index: 99;
  1592. }
  1593. movable-area {
  1594. height: 220px;
  1595. width: 100%;
  1596. border-top-left-radius: 12px;
  1597. border-top-right-radius: 12px;
  1598. background-color: #D8D8D8;
  1599. overflow: hidden;
  1600. }
  1601. movable-view {
  1602. display: flex;
  1603. align-items: center;
  1604. justify-content: center;
  1605. height: 100%;
  1606. width: 100%;
  1607. }
  1608. </style>