Information.vue 60 KB

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