Information.vue 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748
  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. productId: "",
  1016. productName: "",
  1017. }
  1018. },
  1019. watch: {
  1020. checkType: {
  1021. handler(val) {
  1022. switch (val) {
  1023. case 'carInfo':
  1024. this.tabslist = [{
  1025. name: '行驶证识别'
  1026. }]
  1027. break;
  1028. default:
  1029. this.tabslist = [{
  1030. name: '证件识别'
  1031. }]
  1032. break;
  1033. }
  1034. },
  1035. deep: true
  1036. },
  1037. },
  1038. onShow() {
  1039. uni.pageScrollTo({
  1040. scrollTop: 0,
  1041. duration: 0
  1042. });
  1043. },
  1044. onLoad(params) {
  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. let historys = JSON.parse(params.historyInfo);
  1052. this.carExpand = true;
  1053. this.carInfo.licenseNo = decodeURIComponent(params.licenseNo);
  1054. this.carInfo = historys.carInfo;
  1055. this.ownerInfo = historys.ownerInfo;
  1056. this.policyHolderInfo = historys.policyHolderInfo;
  1057. this.insuredPersonInfo = historys.insuredPersonInfo;
  1058. this.carInfoPositiveList = historys.carInfoPositiveList;
  1059. this.ownerInfoPositiveList = historys.ownerInfoPositiveList;
  1060. this.policyHolderInfoPositiveList = historys.policyHolderInfoPositiveList;
  1061. this.insuredPersonInfoPositiveList = historys.insuredPersonInfoPositiveList;
  1062. if (this.ownerInfo.identifyNumber) {
  1063. this.ownersExpand = true;
  1064. }
  1065. } else {
  1066. const eventChannel = this.getOpenerEventChannel()
  1067. eventChannel.on('acceptData', (data) => {
  1068. if (!!data) {
  1069. let info = JSON.parse(JSON.stringify(data));
  1070. let page = this.routepage;
  1071. switch (page) {
  1072. case 'pages/carInsure/entry':
  1073. this.carInfoShow = false;
  1074. this.carInfo = info.carInfo; //车辆信息
  1075. this.ownerInfo = info.ownerInfo; //车辆信息
  1076. this.policyHolderInfo = info.policyHolderInfo; //车辆信息
  1077. this.insuredPersonInfo = info.insuredPersonInfo; //车辆信息
  1078. if (this.carInfo.cimodelclass == 'A0') {
  1079. this.carInfo1.cimodelclass = "客车"
  1080. } else {
  1081. this.carInfo1.cimodelclass = "货车"
  1082. }
  1083. this.ownerInfo.name = info.carInfo.carOwner; //车主
  1084. this.carInfoPositiveList = info.carInfoPositiveList; //车辆
  1085. break;
  1086. case 'pages/carInsure/quote':
  1087. case 'pages/carInsure/premiumCalc':
  1088. case 'pages/carInsure/quoteDetail':
  1089. case 'pages/carInsure/companyQuotable':
  1090. this.productId = data.productId;
  1091. this.productName = data.productName;
  1092. this.carInfoShow = true;
  1093. this.carInfo = info.carInfo; //车辆信息
  1094. if (this.carInfo.cimodelclass == 'A0') {
  1095. this.carInfo1.cimodelclass = "客车"
  1096. } else {
  1097. this.carInfo1.cimodelclass = "货车"
  1098. }
  1099. this.ownerInfo = info.ownerInfo; //车主信息
  1100. this.policyHolderInfo = info.policyHolderInfo; //投保人信息
  1101. this.insuredPersonInfo = info.insuredPersonInfo; //被保人信息
  1102. this.riskList = info.riskList; //险种大类
  1103. this.kindList = info.kindList; //商业险险别
  1104. this.carInfoPositiveList = info.carInfoPositiveList; //车辆
  1105. this.ownerInfoPositiveList = info.ownerInfoPositiveList; //车主
  1106. this.policyHolderInfoPositiveList = info.policyHolderInfoPositiveList; //投保
  1107. this.insuredPersonInfoPositiveList = info.insuredPersonInfoPositiveList; //被保人
  1108. this.carExpand = true;
  1109. this.ownersExpand = true;
  1110. this.policyHolderExpand = true;
  1111. this.InsuredExpand = true;
  1112. this.policyHolderholder = "99";
  1113. this.Insuredholder = "99";
  1114. break;
  1115. default:
  1116. break;
  1117. }
  1118. }
  1119. })
  1120. }
  1121. this.getDicType("businessVehicleUse"); //车辆用途(营业)
  1122. this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  1123. this.getDicType("natureOfVehicleUse"); //车辆性质
  1124. this.getDicType("vehicleType"); //车辆种类
  1125. this.getDicType("trafficManagementVehicleType"); //车辆类型
  1126. this.getDicType("energyType"); //能源种类
  1127. },
  1128. onUnload() {
  1129. //投保人同车主
  1130. if (this.policyHolderholder == '1') {
  1131. this.setPersonInfoAndImageType('ownerInfo', 'policyHolderInfo', "C03");
  1132. }
  1133. if (this.Insuredholder == '1') {
  1134. this.setPersonInfoAndImageType('ownerInfo', 'insuredPersonInfo', "C04");
  1135. }
  1136. if (this.Insuredholder == '2') {
  1137. this.setPersonInfoAndImageType('policyHolderInfo', 'insuredPersonInfo', "C04");
  1138. }
  1139. uni.setStorageSync('historyInfo', {
  1140. carInfo: this.carInfo,
  1141. ownerInfo: this.ownerInfo,
  1142. policyHolderInfo: this.policyHolderInfo,
  1143. insuredPersonInfo: this.insuredPersonInfo,
  1144. carInfoPositiveList: this.carInfoPositiveList,
  1145. ownerInfoPositiveList: this.ownerInfoPositiveList,
  1146. policyHolderInfoPositiveList: this.policyHolderInfoPositiveList,
  1147. insuredPersonInfoPositiveList: this.insuredPersonInfoPositiveList,
  1148. });
  1149. },
  1150. onPageScroll(e) {
  1151. this.handleScroll(e);
  1152. },
  1153. mounted() {
  1154. uni.pageScrollTo({
  1155. scrollTop: 0,
  1156. duration: 0
  1157. });
  1158. uni.$on('scroll', this.handleScroll);
  1159. },
  1160. destroyed() {
  1161. uni.$off('scroll', this.handleScroll);
  1162. },
  1163. methods: {
  1164. async getDicType(type) {
  1165. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  1166. if (res.code == 200) {
  1167. this[type + 'options'] = res.data.ddList;
  1168. if (type == "energyType") {
  1169. this.carInfo1.energyType = this.dictionaryMatching(this.energyTypeoptions, this
  1170. .carInfo
  1171. .energyType)
  1172. }
  1173. if (type == "vehicleType") {
  1174. this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1175. this
  1176. .carInfo
  1177. .cimodelclass)
  1178. }
  1179. if (type == "trafficManagementVehicleType") {
  1180. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  1181. this
  1182. .carInfo
  1183. .cartype);
  1184. }
  1185. if (type == "natureOfVehicleUse") {
  1186. this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
  1187. .natureOfVehicleUseoptions,
  1188. this
  1189. .carInfo
  1190. .carnature) : "";
  1191. }
  1192. if ((type == "BusinessVehicleUse" || type == 'outOfBusinessVehicleUse') && this.carInfo
  1193. .carnature) {
  1194. this.carInfo1.vehicleUse = this.carInfo.carnature == '01' ? this.dictionaryMatching(this
  1195. .businessVehicleUseoptions,
  1196. this
  1197. .carInfo
  1198. .vehicleUse) : this.dictionaryMatching(this
  1199. .outOfBusinessVehicleUseoptions,
  1200. this
  1201. .carInfo
  1202. .vehicleUse);
  1203. }
  1204. }
  1205. },
  1206. dictionaryConfirm(e, name) {
  1207. if (name == 'carnature') {
  1208. this.carInfo1['vehicleUse'] = "";
  1209. this.carInfo['vehicleUse'] = "";
  1210. }
  1211. this.carInfo[name] = e[0].value;
  1212. this.carInfo1[name] = e[0].label;
  1213. },
  1214. async toChooseVin(cctype) {
  1215. if (cctype == '' || cctype == null) {
  1216. return uni.showToast({
  1217. icon: 'none',
  1218. title: '请输入车架号',
  1219. duration: 1500
  1220. });
  1221. } else {
  1222. if (!this.isFrameno(cctype.trim())) {
  1223. return uni.showToast({
  1224. title: '请输入正确的车辆识别码',
  1225. icon: "none"
  1226. });
  1227. }
  1228. this.navigate({
  1229. url: '/pages/carInsure/carType?frameNo=' + encodeURIComponent(cctype)
  1230. }, "navigateTo", true);
  1231. }
  1232. },
  1233. //跳转选择车辆类型页面
  1234. toChooseVehicleType(cctype) {
  1235. if (cctype == '' || cctype == null) {
  1236. uni.showToast({
  1237. icon: 'none',
  1238. title: '请输入车型名称',
  1239. duration: 1500
  1240. });
  1241. } else {
  1242. let cctypeName = cctype.replace(/[^u4e00-u9fa5|,]+/ig, '')
  1243. this.navigate({
  1244. url: '/pages/carInsure/carType?modelName=' + encodeURIComponent(cctypeName)
  1245. }, "navigateTo", true);
  1246. }
  1247. },
  1248. //验证车架号
  1249. isFrameno(str) {
  1250. let mPattern = /^([0-9A-Z]){17}$/;
  1251. return mPattern.test(str);
  1252. },
  1253. rotatefront(int) {
  1254. this[int] = this[int] == 270 ? 0 : this[int] + 90;
  1255. },
  1256. rotateback(int) {
  1257. this[int] = this[int] == 0 ? 270 : this[int] - 90;
  1258. },
  1259. onMove(e) {
  1260. this.x = e.detail.x;
  1261. this.y = e.detail.y;
  1262. },
  1263. //字典name匹配
  1264. dictionaryMatching(list, value) {
  1265. let obj = list.find(val => val.dictValue == value);
  1266. if (obj) {
  1267. return obj.dictTag;
  1268. }
  1269. },
  1270. //OC识别返回信息
  1271. carCallback(obj) {
  1272. this.carfrontImg = obj.frontImg;
  1273. this.carbackImg = obj.backImg;
  1274. this.carInfoPositiveList = obj.ImgList;
  1275. Object.assign(this.carInfo, obj.Info);
  1276. this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1277. this
  1278. .carInfo
  1279. .cimodelclass)
  1280. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  1281. this
  1282. .carInfo
  1283. .cartype);
  1284. this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
  1285. .natureOfVehicleUseoptions,
  1286. this
  1287. .carInfo
  1288. .carnature) : "";
  1289. if (this.carInfo.carnature && this.carInfo.vehicleUse) {
  1290. this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
  1291. .outOfBusinessVehicleUseoptions,
  1292. this
  1293. .carInfo
  1294. .vehicleUse) : this.dictionaryMatching(this
  1295. .BusinessVehicleUseoptions,
  1296. this
  1297. .carInfo
  1298. .vehicleUse);
  1299. } else {
  1300. this.carInfo1.vehicleUse = "";
  1301. }
  1302. this.OCRShow = false;
  1303. this.carExpand = true;
  1304. },
  1305. ownerInfoCallback(obj) {
  1306. this.ownerfrontImg = obj.frontImg;
  1307. this.ownerbackImg = obj.backImg;
  1308. this.ownerInfoPositiveList = obj.ImgList;
  1309. Object.assign(this.ownerInfo, obj.Info);
  1310. this.OCRShow = false;
  1311. this.ownersExpand = true;
  1312. },
  1313. applicantInfoCallback(obj) {
  1314. this.policyHolderfrontImg = obj.frontImg;
  1315. this.policyHolderbackImg = obj.backImg;
  1316. this.policyHolderInfoPositiveList = obj.ImgList;
  1317. Object.assign(this.policyHolderInfo, obj.Info);
  1318. this.OCRShow = false;
  1319. this.policyHolderExpand = true;
  1320. },
  1321. InsuredInfoCallback(obj) {
  1322. this.InsuredfrontImg = obj.frontImg;
  1323. this.InsuredbackImg = obj.backImg;
  1324. this.insuredPersonInfoPositiveList = obj.ImgList;
  1325. Object.assign(this.insuredPersonInfo, obj.Info);
  1326. this.OCRShow = false;
  1327. this.InsuredExpand = true;
  1328. },
  1329. OCRtabschange(e) {
  1330. this.tabsCurrent = e;
  1331. },
  1332. closePopup() {
  1333. this.OCRShow = false;
  1334. },
  1335. ocrIdentify(name) {
  1336. this.checkType = name;
  1337. this.OCRShow = !this.OCRShow;
  1338. },
  1339. transferFlagchange(status) {
  1340. if (status) {
  1341. this.carInfo.transferDate = this.carInfo.issueDate;
  1342. } else {
  1343. this.carInfo.transferDate = ""
  1344. }
  1345. },
  1346. binddata(name, value, type) {
  1347. if (name == 'identifyNumber' && value) {
  1348. this[type].age = getAgeByIdCard(value)
  1349. this[type].gender = getGenderFromIdCard(value)
  1350. }
  1351. },
  1352. //转变大写(车型/车架号/发动机号)
  1353. upperCaseType(type) {
  1354. this.carInfo[type] = this.carInfo[type].toUpperCase();
  1355. if (type == 'frameNo') {
  1356. this.carInfo.vinNo = this.carInfo.frameNo.trim();
  1357. }
  1358. },
  1359. Dateconfirm(e, obj, param) {
  1360. this[obj][param] = e.year + '-' + e.month + '-' + e.day;
  1361. },
  1362. //(同车主/同投保人)数据处理
  1363. setPersonInfoAndImageType(sourceInfo, targetInfo, imageType) {
  1364. let obj = Object.assign({}, this[sourceInfo]);
  1365. this[targetInfo] = obj;
  1366. if (this[sourceInfo + 'PositiveList'].length > 0) {
  1367. this[targetInfo + 'PositiveList'] = JSON.parse(JSON.stringify(this[sourceInfo + 'PositiveList']));
  1368. if (this[targetInfo + 'PositiveList'].length == 1) {
  1369. this[targetInfo + 'PositiveList'][0].imageType = imageType;
  1370. } else {
  1371. this[targetInfo + 'PositiveList'][0].imageType = imageType;
  1372. this[targetInfo + 'PositiveList'][1].imageType = `D${imageType.substr(1)}`;
  1373. }
  1374. }
  1375. },
  1376. isEveryPropertyFilled(obj, excludedKey) {
  1377. // 通过 Object.keys() 遍历对象的所有键,并使用 every() 方法检查每个键对应的值
  1378. return Object.keys(obj).every(key => {
  1379. // 如果当前键是要排除的键,则认为这个键“有效”
  1380. if (key === excludedKey) {
  1381. return true;
  1382. }
  1383. // 对于其他键,检查值是否不是 undefined、null 或空字符串
  1384. const value = obj[key];
  1385. return value !== undefined && value !== null && value !== '';
  1386. });
  1387. },
  1388. //校验事件
  1389. next() {
  1390. //投保人同车主
  1391. if (this.policyHolderholder == '1') {
  1392. this.setPersonInfoAndImageType('ownerInfo', 'policyHolderInfo', "C03");
  1393. }
  1394. if (this.Insuredholder == '1') {
  1395. this.setPersonInfoAndImageType('ownerInfo', 'insuredPersonInfo', "C04");
  1396. }
  1397. if (this.Insuredholder == '2') {
  1398. this.setPersonInfoAndImageType('policyHolderInfo', 'insuredPersonInfo', "C04");
  1399. }
  1400. if (this.isEveryPropertyFilled(this.ownerInfo, 'email') && this.isEveryPropertyFilled(this
  1401. .policyHolderInfo,
  1402. 'email') && this.isEveryPropertyFilled(this.insuredPersonInfo, 'email')) {
  1403. this.navigate({
  1404. url: '/pages/carInsure/companyQuotable',
  1405. success: (res) => {
  1406. res.eventChannel.emit(
  1407. "acceptData", {
  1408. carInfo: this
  1409. .carInfo,
  1410. ownerInfo: this
  1411. .ownerInfo,
  1412. policyHolderInfo: this
  1413. .policyHolderInfo,
  1414. insuredPersonInfo: this
  1415. .insuredPersonInfo,
  1416. riskList: this
  1417. .riskList,
  1418. kindList: this
  1419. .kindList,
  1420. carInfoPositiveList: this
  1421. .carInfoPositiveList, //车辆
  1422. ownerInfoPositiveList: this
  1423. .ownerInfoPositiveList, //车主
  1424. policyHolderInfoPositiveList: this
  1425. .policyHolderInfoPositiveList, //投保人
  1426. insuredPersonInfoPositiveList: this
  1427. .insuredPersonInfoPositiveList, //被保人
  1428. productId: this.productId,
  1429. productName: this.productName,
  1430. })
  1431. }
  1432. }, "navigateTo", true);
  1433. } else {
  1434. this.$refs.carForm.submit().then(res => {
  1435. this.$refs.ownerForm.submit().then(res1 => {
  1436. this.$refs.policyHolderForm.submit().then(res2 => {
  1437. this.$refs.InsuredForm.submit().then(res3 => {}).catch(err => {
  1438. console.log('表单错误信息:', err);
  1439. })
  1440. }).catch(err => {
  1441. console.log('表单错误信息:', err);
  1442. })
  1443. }).catch(err => {})
  1444. }).catch(err => {})
  1445. }
  1446. },
  1447. expand(int) {
  1448. this[int] = true;
  1449. },
  1450. //人员止期
  1451. ValidEndDateClick(value, identify, info) {
  1452. this[identify] = value;
  1453. switch (value) {
  1454. case '10年':
  1455. this[info].identifyValidEndDate = this.endDateInt(this[info].identifyValidDate, 10)
  1456. break;
  1457. case '20年':
  1458. this[info].identifyValidEndDate = this.endDateInt(this[info].identifyValidDate, 20)
  1459. break;
  1460. case '长期':
  1461. this[info].identifyValidEndDate = '9999-12-31'
  1462. break;
  1463. default:
  1464. }
  1465. },
  1466. //投保人同车主
  1467. applicantholderClick(value) {
  1468. this.policyHolderholder = value;
  1469. if (value == '99') {
  1470. for (let key in this.policyHolderInfo) {
  1471. if (key !== 'identifyType') {
  1472. this.policyHolderInfo[key] = '';
  1473. }
  1474. }
  1475. }
  1476. },
  1477. //被保人同车主/投保人
  1478. InsuredholderClick(value) {
  1479. this.Insuredholder = value;
  1480. if (value == '99') {
  1481. for (let key in this.insuredPersonInfo) {
  1482. if (key !== 'identifyType') {
  1483. this.insuredPersonInfo[key] = '';
  1484. }
  1485. }
  1486. }
  1487. },
  1488. //头部颜色变化js
  1489. handleScroll(e) {
  1490. const scrollTop = e.scrollTop;
  1491. let opacity = 1;
  1492. let shadowOpacity = 0;
  1493. if (scrollTop > this.prevScrollTop) {
  1494. // 向下滚动
  1495. opacity = Math.min((scrollTop - 50) / 100, 1); // 根据滚动距离计算透明度,最大为1
  1496. shadowOpacity = Math.min((scrollTop - 50) / 500, 0.3); // 根据滚动距离计算阴影透明度,最大为0.3
  1497. } else if (scrollTop < 50) {
  1498. // 在顶部附近,设置透明度和阴影透明度均为0
  1499. opacity = 0;
  1500. shadowOpacity = 0;
  1501. } else {
  1502. // 向上滚动
  1503. opacity = Math.max(0, 1 - (scrollTop / 100)); // 根据滚动距离计算透明度,最小为0
  1504. shadowOpacity = Math.max(0, 0.3 - (scrollTop / 500)); // 根据滚动距离计算阴影透明度,最小为0
  1505. }
  1506. const rgbaOpacity = opacity * 100; // 将透明度转换为百分比形式
  1507. const backgroundColor = `rgb(255 255 255 / ${rgbaOpacity}%)`; // 根据透明度设置背景颜色
  1508. // 计算阴影的颜色和大小
  1509. const shadowBlur = shadowOpacity * 10; // 阴影模糊程度为阴影透明度的10像素
  1510. const shadowColor = `rgba(218, 227, 244, ${shadowOpacity})`; // 阴影颜色为黑色,透明度根据阴影透明度计算
  1511. const boxShadow = `0 0 ${shadowBlur}px ${shadowColor}`; // 生成box-shadow属性值
  1512. this.headerStyle.backgroundColor = backgroundColor;
  1513. this.headerStyle.boxShadow = boxShadow;
  1514. this.prevScrollTop = scrollTop;
  1515. },
  1516. //页面返回按钮
  1517. back() {
  1518. uni.navigateBack({
  1519. delta: 1, // 返回的页面数,如果是1表示返回上一页
  1520. success: function() {}
  1521. });
  1522. },
  1523. endDateInt(time, sum) {
  1524. let currentDate = new Date(time);
  1525. currentDate.setFullYear(currentDate.getFullYear() + sum);
  1526. let year = currentDate.getFullYear();
  1527. let month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
  1528. let day = ('0' + currentDate.getDate()).slice(-2);
  1529. let formattedDate = year + '-' + month + '-' + day;
  1530. return formattedDate;
  1531. }
  1532. },
  1533. }
  1534. </script>
  1535. <style lang="scss" scoped>
  1536. .uni-forms-item ::v-deep .uni-input-input {
  1537. text-align: end;
  1538. }
  1539. .uni-forms-item ::v-deep .u-input__textarea {
  1540. min-height: auto !important;
  1541. }
  1542. ::v-deep .uni-forms-item {
  1543. border-bottom: 1px solid #f2f2f2;
  1544. }
  1545. ::v-deep .uni-forms-item:last-child {
  1546. border: none;
  1547. }
  1548. .page {
  1549. height: auto;
  1550. background: #F8FAFE;
  1551. padding: 12px 16px 50px 16px;
  1552. }
  1553. .fixed {
  1554. position: fixed;
  1555. top: 0;
  1556. left: 0;
  1557. width: 100%;
  1558. height: auto;
  1559. background-color: transparent;
  1560. padding: 50px 16px 16px 16px;
  1561. z-index: 99;
  1562. transition: background-color 0.2s;
  1563. text {
  1564. font-size: 18px;
  1565. font-weight: bold;
  1566. }
  1567. }
  1568. .banner {
  1569. width: 100%;
  1570. height: 168px;
  1571. background-image: url("/static/image/car-insure/carban2.png");
  1572. background-size: cover;
  1573. background-position: center;
  1574. }
  1575. .Information {
  1576. width: 100%;
  1577. height: auto;
  1578. margin-bottom: 24px;
  1579. .title {
  1580. font-size: 15px;
  1581. font-weight: bold;
  1582. }
  1583. .collapse {
  1584. width: 100%;
  1585. height: auto;
  1586. background: #FFFFFF;
  1587. margin-top: 10px;
  1588. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1589. border-radius: 12px 12px 12px 12px;
  1590. >view:nth-child(1) {
  1591. width: 100%;
  1592. height: 42px;
  1593. }
  1594. .top-ocr {
  1595. background-color: #F9F9F9;
  1596. border-top-left-radius: 12px;
  1597. border-top-right-radius: 12px;
  1598. color: #0052FF;
  1599. font-size: 14px;
  1600. image {
  1601. width: 20px;
  1602. height: 20px;
  1603. }
  1604. }
  1605. .btn-collapse {
  1606. height: 42px;
  1607. font-size: 12px;
  1608. background-color: white;
  1609. border-bottom-left-radius: 12px;
  1610. border-bottom-right-radius: 12px;
  1611. color: rgba(60, 60, 60, 0.6);
  1612. }
  1613. }
  1614. }
  1615. .movable-view {
  1616. .operate-img {
  1617. width: 90%;
  1618. height: auto;
  1619. background-color: #F9F9F9;
  1620. border-radius: 8px;
  1621. padding: 10px 25px;
  1622. margin-top: 10px;
  1623. >view:nth-child(2) {
  1624. background-color: rgba(0, 82, 255, 0.06);
  1625. border-radius: 4px 4px 4px 4px;
  1626. border: 1px solid #0052FF;
  1627. color: #0052FF;
  1628. padding: 3px 5px;
  1629. }
  1630. >view {
  1631. font-size: 14px;
  1632. }
  1633. image {
  1634. width: 22px;
  1635. height: 22px;
  1636. margin-right: 5px;
  1637. }
  1638. }
  1639. }
  1640. .status-data {
  1641. width: 66px;
  1642. height: 30px;
  1643. margin: 0 7px;
  1644. font-size: 14px;
  1645. border: 1px solid #CDCDCD;
  1646. cursor: pointer;
  1647. text-align: center;
  1648. line-height: 30px;
  1649. }
  1650. .active {
  1651. position: relative;
  1652. background: rgba(0, 82, 255, 0.1);
  1653. color: #0052FF;
  1654. border: 1px solid #0052FF;
  1655. font-weight: 700;
  1656. }
  1657. .active::before {
  1658. content: "";
  1659. position: absolute;
  1660. top: 0;
  1661. left: 0;
  1662. width: 10px;
  1663. height: 10px;
  1664. background-image: url("/static/image/car-insure/before.png");
  1665. background-size: cover;
  1666. }
  1667. .footer-btn {
  1668. position: fixed;
  1669. bottom: 0;
  1670. left: 0;
  1671. width: 100%;
  1672. height: 62px;
  1673. background: #FFFFFF;
  1674. box-shadow: 0px -4px 10px 0px #DAE3F4;
  1675. border-radius: 0px 0px 0px 0px;
  1676. padding: 12px 16px;
  1677. z-index: 99;
  1678. }
  1679. movable-area {
  1680. height: 220px;
  1681. width: 100%;
  1682. border-top-left-radius: 12px;
  1683. border-top-right-radius: 12px;
  1684. background-color: #D8D8D8;
  1685. overflow: hidden;
  1686. }
  1687. movable-view {
  1688. display: flex;
  1689. align-items: center;
  1690. justify-content: center;
  1691. height: 100%;
  1692. width: 100%;
  1693. }
  1694. </style>