entry.vue 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  1. <template>
  2. <view class="page">
  3. <service-widget @btnClick="btn_click"></service-widget>
  4. <view class="banner mb-3" v-if="insuranceType==1">
  5. <image src="/static/image/car-insure/carban.png" mode=""></image>
  6. </view>
  7. <view class="carinfo">
  8. <view class="title dis a-c j-s mb-3">
  9. <text>车辆信息</text>
  10. <view class="rounded dis a-c j-c">
  11. <view class="left dis a-c j-c" :class="insuranceType==1? 'active':''" @click="insuranceType=1">
  12. <text>车牌号</text>
  13. </view>
  14. <view class="center"></view>
  15. <view class="right dis a-c j-c" :class="insuranceType==2? 'active':''" @click="insuranceType=2">
  16. <text>行驶证</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="carinput" v-show="insuranceType==1">
  21. <view class="top dis a-c j-s mb-3">
  22. <text>车牌号码</text>
  23. <u-switch v-model="checked" active-color="#0052FF" inactive-color="#eee" size='30'
  24. @change="switchChange"></u-switch>
  25. </view>
  26. <view class="btn dis a-c j-s">
  27. <view class="so-plate-word dis a-c j-c" data-index="0" :class="currentInputIndex==0?'actives':''"
  28. @tap="inputSwitch">
  29. <text>{{LicenseInputValue[0]}}</text>
  30. </view>
  31. <view class="so-plate-word dis a-c j-c" data-index="1" :class="currentInputIndex==1?'actives':''"
  32. @tap="inputSwitch">
  33. <text>{{LicenseInputValue[1]}}</text>
  34. </view>
  35. <view class="so-plate-dot"></view>
  36. <view class="so-plate-word dis a-c j-c" data-index="2" :class="currentInputIndex==2?'actives':''"
  37. @tap="inputSwitch">
  38. <text>{{LicenseInputValue[2]}}</text>
  39. </view>
  40. <view class="so-plate-word dis a-c j-c" data-index="3" :class="currentInputIndex==3?'actives':''"
  41. @tap="inputSwitch">
  42. <text>{{LicenseInputValue[3]}}</text>
  43. </view>
  44. <view class="so-plate-word dis a-c j-c" data-index="4" :class="currentInputIndex==4?'actives':''"
  45. @tap="inputSwitch">
  46. <text>{{LicenseInputValue[4]}}</text>
  47. </view>
  48. <view class="so-plate-word dis a-c j-c" data-index="5" :class="currentInputIndex==5?'actives':''"
  49. @tap="inputSwitch">
  50. <text>{{LicenseInputValue[5]}}</text>
  51. </view>
  52. <view class="so-plate-word dis a-c j-c" data-index="6" :class="currentInputIndex==6?'actives':''"
  53. @tap="inputSwitch">
  54. <text>{{LicenseInputValue[6]}}</text>
  55. </view>
  56. <view class="so-plate-word dis a-c j-c" data-index="7" :class="currentInputIndex==7?'newactives':''"
  57. @tap="inputSwitch">
  58. <text v-if="LicenseInputValue[7]">{{LicenseInputValue[7]}}</text>
  59. <view v-else class="newEnergy dis f-c a-c j-c">
  60. <image src="/static/image/car-insure/leaf.png" mode="">
  61. </image>
  62. <text>新能源</text>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view v-show="insuranceType==2" class="OCRcar">
  68. <view class="title dis j-s a-c">
  69. <view class="dis a-c">
  70. <text>行驶证识别</text>
  71. <view class="switch-container ml-2" @tap="toggleSwitch" v-if="carbackImg">
  72. <view class="switch-track">
  73. <view class="switch-thumb dis a-c j-c" :class="{ thumbactive: !isActive }"></view>
  74. <view class="switch-thumb1 dis a-c j-c" :class="{ thumbactive1: isActive }">主</view>
  75. <view class="switch-thumb2 dis a-c j-c" :class="{ thumbactive1: !isActive }">副</view>
  76. </view>
  77. </view>
  78. </view>
  79. <text @click="carSwitching=!carSwitching">{{carSwitching?'手动输入':'拍照识别'}}</text>
  80. </view>
  81. <view v-show="carSwitching" class="ocr mt-2">
  82. <image v-if="!carfrontImg" @tap="ocrIdentify" src="/static/image/car-insure/carbg.png" mode=""
  83. style="width: 100%;height: 198px;">
  84. </image>
  85. <template v-else>
  86. <view v-if=" carfrontImg" class="movable-view dis f-c a-c">
  87. <movable-area>
  88. <movable-view direction="all" :out-of-bounds="true" :scale="true" :damping="30"
  89. :friction="10">
  90. <image v-if="isActive" :src="carfrontImg" mode="widthFix"
  91. :style="{width:'100%',height:'100%',transform:`rotate(-${cardeg}deg)`}">
  92. </image>
  93. <image v-else :src="carbackImg" mode="widthFix"
  94. :style="{width:'100%',height:'100%',transform:`rotate(-${cardeg}deg)`}">
  95. </image>
  96. </movable-view>
  97. </movable-area>
  98. <view class="operate-img dis j-s a-c">
  99. <view class="dis a-c" @tap="rotatefront('cardeg')">
  100. <image src="/static/image/car-insure/rotate1.png" mode=""></image>
  101. 左转
  102. </view>
  103. <view class="dis a-c" @tap="ocrIdentify('carInfo')">
  104. <image src="/static/image/car-insure/upload.png" mode=""></image>
  105. 上传
  106. </view>
  107. <view class="dis a-c" @tap="rotateback('cardeg')">
  108. <image src="/static/image/car-insure/rotate2.png" mode=""></image>
  109. 右转
  110. </view>
  111. </view>
  112. </view>
  113. <view class="">
  114. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
  115. err-show-type="toast" label-width="100" style="padding: 0 15px;">
  116. <uni-forms-item label="车牌号: ">
  117. <input class="uni-input-input textColor" placeholder="输入车牌号"
  118. v-model="carInfo.licenseNo" placeholder-style="font-size:28upx"
  119. @input="upperCaseType('licenseNo')" />
  120. </uni-forms-item>
  121. <uni-forms-item name="modelcname" required label="品牌型号: ">
  122. <view class="d-flex a-center textColor" style="height: 100%;">
  123. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  124. v-model="carInfo.modelcname"
  125. @blur="binddata('modelcname', $event.detail.value,'carForm')"
  126. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  127. <image src="/static/image/car-insure/search.png" mode=""
  128. style="width: 20px;height: 20px;"
  129. @tap="toChooseVehicleType(carInfo.modelcname)">
  130. </image>
  131. </view>
  132. </uni-forms-item>
  133. <uni-forms-item name="frameNo" required label="车辆识别码:">
  134. <view class="d-flex a-center" style="height: 100%;">
  135. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码"
  136. v-model="carInfo.frameNo" maxlength="17" placeholder-style="font-size:28upx"
  137. @input="upperCaseType('frameNo')" />
  138. <image src="/static/image/car-insure/search.png" mode=""
  139. style="width: 20px;height: 20px;" @tap="toChooseVin(carInfo.frameNo)">
  140. </image>
  141. </view>
  142. </uni-forms-item>
  143. <uni-forms-item name="engineNo" required label="发动机号: ">
  144. <input class="uni-input-input textColor" placeholder="请输入发动机号"
  145. v-model="carInfo.engineNo"
  146. @blur="binddata('engineNo', $event.detail.value,'carForm')"
  147. placeholder-style="font-size:28upx" @input="upperCaseType('engineNo')" />
  148. </uni-forms-item>
  149. <uni-forms-item required label="注册日期" name="registerDate">
  150. <u-input type="select" :custom-style="{textAlign:'right'}"
  151. :select-open="registerDateShow" v-model="carInfo.registerDate"
  152. placeholder="请选择注册日期" @click="registerDateShow = true"
  153. placeholder-style="color:#808080"></u-input>
  154. <u-picker v-model="registerDateShow" mode="time" :params="params"
  155. :end-year="endYear" :end-month="endMonth"
  156. @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  157. </uni-forms-item>
  158. <uni-forms-item required label="发证日期" name="issueDate">
  159. <u-input type="select" :custom-style="{textAlign:'right'}"
  160. :select-open="issueDateShow" v-model="carInfo.issueDate" placeholder="请选择发证日期"
  161. @click="issueDateShow = true" placeholder-style="color:#808080"></u-input>
  162. <u-picker v-model="issueDateShow" mode="time" :params="params"
  163. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  164. </uni-forms-item>
  165. <uni-forms-item label="整备质量: " required name="completeKerbMass">
  166. <input class="uni-input-input textColor" placeholder="请输入整备质量"
  167. v-model="carInfo.completeKerbMass" placeholder-style="font-size:28upx" />
  168. </uni-forms-item>
  169. <uni-forms-item label="核定载质量: ">
  170. <input class="uni-input-input textColor" placeholder="请输入核定载质量"
  171. v-model="carInfo.limitLoad" placeholder-style="font-size:28upx" />
  172. </uni-forms-item>
  173. <uni-forms-item label="使用性质: " required name="carnature">
  174. <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
  175. @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
  176. placeholder-style="color:#808080" placeholder="请选择使用性质" />
  177. <u-select mode="single-column" :list="natureOfVehicleUseoptions"
  178. v-model="carnatureShow" label-name="dictTag" value-name="dictValue"
  179. @confirm="dictionaryConfirm($event,'carnature')"></u-select>
  180. </uni-forms-item>
  181. <uni-forms-item label="能源种类: " required name="energyType">
  182. <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
  183. @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
  184. placeholder-style="color:#808080" placeholder="请选择能源种类" />
  185. <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
  186. label-name="dictTag" value-name="dictValue"
  187. @confirm="dictionaryConfirm($event,'energyType')"></u-select>
  188. </uni-forms-item>
  189. <uni-forms-item label="车辆用途: " required name="vehicleUse">
  190. <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
  191. @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
  192. placeholder-style="color:#808080" placeholder="请选择车辆用途" />
  193. <u-select v-if="carInfo.carnature=='01'" mode="single-column"
  194. :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
  195. value-name="dictValue"
  196. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  197. <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
  198. v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
  199. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  200. </uni-forms-item>
  201. <uni-forms-item label="车辆类型: " required name="cartype">
  202. <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
  203. @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
  204. placeholder-style="color:#808080" placeholder="请选择车辆类型" />
  205. <u-select mode="single-column" :searchShow="true"
  206. :list="trafficManagementVehicleTypeoptions" v-model="cartypeShow"
  207. label-name="dictTag" value-name="dictValue"
  208. @confirm="dictionaryConfirm($event,'cartype')"></u-select>
  209. </uni-forms-item>
  210. <uni-forms-item label="车辆种类: " required name="cimodelclass">
  211. <u-input v-model="carInfo1.cimodelclass" type="select"
  212. :select-open="cimodelclassShow" @click="cimodelclassShow = true"
  213. :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"
  214. placeholder="请选择车辆种类" />
  215. <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
  216. label-name="dictTag" value-name="dictValue"
  217. @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
  218. </uni-forms-item>
  219. <uni-forms-item label="年款: ">
  220. <input class="uni-input-input textColor" placeholder="请输入年款"
  221. v-model="carInfo.caryear" placeholder-style="font-size:28upx" />
  222. </uni-forms-item>
  223. <uni-forms-item label="座位数: ">
  224. <input class="uni-input-input textColor" placeholder="请输入座位数"
  225. v-model="carInfo.seatCount" maxlength="1" placeholder-style="font-size:28upx" />
  226. </uni-forms-item>
  227. <uni-forms-item label="排量: ">
  228. <input class="uni-input-input textColor" placeholder="请输入排量"
  229. v-model="carInfo.enginedesc" placeholder-style="font-size:28upx" />
  230. </uni-forms-item>
  231. <uni-forms-item label="功率: ">
  232. <input class="uni-input-input textColor" placeholder="请输入功率"
  233. v-model="carInfo.powerScale" placeholder-style="font-size:28upx" />
  234. </uni-forms-item>
  235. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  236. <input class="uni-input-input textColor" placeholder="请输入新车购置价"
  237. v-model="carInfo.purchasePrice" placeholder-style="font-size:28upx"
  238. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  239. @input="upperCaseType('purchasePrice')" />
  240. </uni-forms-item>
  241. <uni-forms-item label="是否过户: ">
  242. <view class="d-flex j-end a-c" style="height:100%">
  243. <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
  244. @change="transferFlagchange"></u-switch>
  245. </view>
  246. </uni-forms-item>
  247. <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
  248. <u-input type="select" :select-open="transferDateShow"
  249. :custom-style="{textAlign:'right'}" v-model="carInfo.transferDate"
  250. placeholder="请选择过户日期" @click="transferDateShow = true"
  251. placeholder-style="color:#808080"></u-input>
  252. <u-picker v-model="transferDateShow" mode="time" :params="params"
  253. :end-year="endYear" :end-month="endMonth"
  254. @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  255. </uni-forms-item>
  256. </uni-forms>
  257. </view>
  258. </template>
  259. </view>
  260. <view v-show="!carSwitching" class="content mt-2">
  261. <uni-forms :rules="carRules" :value="carInfo" ref="carForm" validate-trigger="bind"
  262. style="padding: 0 15px;" err-show-type="toast" label-width="100">
  263. <uni-forms-item label="车牌号: ">
  264. <input class="uni-input-input textColor" placeholder="输入车牌号" v-model="carInfo.licenseNo"
  265. placeholder-style="font-size:28upx" @input="upperCaseType('licenseNo')" />
  266. </uni-forms-item>
  267. <uni-forms-item name="modelcname" required label="品牌型号: ">
  268. <view class="d-flex a-center textColor" style="height: 100%;">
  269. <input class="uni-input-input flex-1 textColor" placeholder="请输入品牌型号"
  270. v-model="carInfo.modelcname"
  271. @blur="binddata('modelcname', $event.detail.value,'carForm')"
  272. placeholder-style="font-size:28upx" @input="upperCaseType('modelcname')" />
  273. <image src="/static/image/car-insure/search.png" mode=""
  274. style="width: 20px;height: 20px;" @tap="toChooseVehicleType(carInfo.modelcname)">
  275. </image>
  276. </view>
  277. </uni-forms-item>
  278. <uni-forms-item name="frameNo" required label="车辆识别码:">
  279. <view class="d-flex a-center" style="height: 100%;">
  280. <input class="uni-input-input flex-1 textColor" placeholder="请输入车辆识别码"
  281. v-model="carInfo.frameNo" maxlength="17" placeholder-style="font-size:28upx"
  282. @input="upperCaseType('frameNo')" />
  283. <image src="/static/image/car-insure/search.png" mode=""
  284. style="width: 20px;height: 20px;" @tap="toChooseVin(carInfo.frameNo)">
  285. </image>
  286. </view>
  287. </uni-forms-item>
  288. <uni-forms-item name="engineNo" required label="发动机号: ">
  289. <input class="uni-input-input textColor" placeholder="请输入发动机号" v-model="carInfo.engineNo"
  290. @blur="binddata('engineNo', $event.detail.value,'carForm')"
  291. placeholder-style="font-size:28upx" @input="upperCaseType('engineNo')" />
  292. </uni-forms-item>
  293. <uni-forms-item required label="注册日期" name="registerDate">
  294. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="registerDateShow"
  295. v-model="carInfo.registerDate" placeholder="请选择注册日期" @click="registerDateShow = true"
  296. placeholder-style="color:#808080"></u-input>
  297. <u-picker v-model="registerDateShow" mode="time" :params="params" :end-year="endYear"
  298. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','registerDate')"></u-picker>
  299. </uni-forms-item>
  300. <uni-forms-item required label="发证日期" name="issueDate">
  301. <u-input type="select" :custom-style="{textAlign:'right'}" :select-open="issueDateShow"
  302. v-model="carInfo.issueDate" placeholder="请选择发证日期" @click="issueDateShow = true"
  303. placeholder-style="color:#808080"></u-input>
  304. <u-picker v-model="issueDateShow" mode="time" :params="params"
  305. @confirm="e=> Dateconfirm(e,'carInfo','issueDate')"></u-picker>
  306. </uni-forms-item>
  307. <uni-forms-item label="整备质量: " required name="completeKerbMass">
  308. <input class="uni-input-input textColor" placeholder="请输入整备质量"
  309. v-model="carInfo.completeKerbMass" placeholder-style="font-size:28upx" />
  310. </uni-forms-item>
  311. <uni-forms-item label="核定载质量: ">
  312. <input class="uni-input-input textColor" placeholder="请输入核定载质量" v-model="carInfo.limitLoad"
  313. placeholder-style="font-size:28upx" />
  314. </uni-forms-item>
  315. <uni-forms-item label="使用性质: " required name="carnature">
  316. <u-input v-model="carInfo1.carnature" type="select" :select-open="carnatureShow"
  317. @click="carnatureShow = true" :custom-style="{textAlign:'right'}"
  318. placeholder-style="color:#808080" placeholder="请选择使用性质" />
  319. <u-select mode="single-column" :list="natureOfVehicleUseoptions" v-model="carnatureShow"
  320. label-name="dictTag" value-name="dictValue"
  321. @confirm="dictionaryConfirm($event,'carnature')"></u-select>
  322. </uni-forms-item>
  323. <uni-forms-item label="能源种类: " required name="energyType">
  324. <u-input v-model="carInfo1.energyType" type="select" :select-open="energyTypeShow"
  325. @click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
  326. placeholder-style="color:#808080" placeholder="请选择能源种类" />
  327. <u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
  328. label-name="dictTag" value-name="dictValue"
  329. @confirm="dictionaryConfirm($event,'energyType')"></u-select>
  330. </uni-forms-item>
  331. <uni-forms-item label="车辆用途: " required name="vehicleUse">
  332. <u-input v-model="carInfo1.vehicleUse" type="select" :select-open="vehicleUseShow"
  333. @click="vehicleUseShow = true" :custom-style="{textAlign:'right'}"
  334. placeholder-style="color:#808080" placeholder="请选择车辆用途" />
  335. <u-select v-if="carInfo.carnature=='01'" mode="single-column"
  336. :list="businessVehicleUseoptions" v-model="vehicleUseShow" label-name="dictTag"
  337. value-name="dictValue" @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  338. <u-select v-else mode="single-column" :list="outOfBusinessVehicleUseoptions"
  339. v-model="vehicleUseShow" label-name="dictTag" value-name="dictValue"
  340. @confirm="dictionaryConfirm($event,'vehicleUse')"></u-select>
  341. </uni-forms-item>
  342. <uni-forms-item label="车辆类型: " required name="cartype">
  343. <u-input v-model="carInfo1.cartype" type="select" :select-open="cartypeShow"
  344. @click="cartypeShow = true" :custom-style="{textAlign:'right'}"
  345. placeholder-style="color:#808080" placeholder="请选择车辆类型" />
  346. <u-select mode="single-column" :searchShow="true"
  347. :list="trafficManagementVehicleTypeoptions" v-model="cartypeShow" label-name="dictTag"
  348. value-name="dictValue" @confirm="dictionaryConfirm($event,'cartype')"></u-select>
  349. </uni-forms-item>
  350. <uni-forms-item label="车辆种类: " required name="cimodelclass">
  351. <u-input v-model="carInfo1.cimodelclass" type="select" :select-open="cimodelclassShow"
  352. @click="cimodelclassShow = true" :custom-style="{textAlign:'right'}"
  353. placeholder-style="color:#808080" placeholder="请选择车辆种类" />
  354. <u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
  355. label-name="dictTag" value-name="dictValue"
  356. @confirm="dictionaryConfirm($event,'cimodelclass')"></u-select>
  357. </uni-forms-item>
  358. <uni-forms-item label="年款: ">
  359. <input class="uni-input-input textColor" placeholder="请输入年款" v-model="carInfo.caryear"
  360. placeholder-style="font-size:28upx" />
  361. </uni-forms-item>
  362. <uni-forms-item label="座位数: ">
  363. <input class="uni-input-input textColor" maxlength="1" placeholder="请输入座位数"
  364. v-model="carInfo.seatCount" placeholder-style="font-size:28upx" />
  365. </uni-forms-item>
  366. <uni-forms-item label="排量: ">
  367. <input class="uni-input-input textColor" placeholder="请输入排量" v-model="carInfo.enginedesc"
  368. placeholder-style="font-size:28upx" />
  369. </uni-forms-item>
  370. <uni-forms-item label="功率: ">
  371. <input class="uni-input-input textColor" placeholder="请输入功率" v-model="carInfo.powerScale"
  372. placeholder-style="font-size:28upx" />
  373. </uni-forms-item>
  374. <uni-forms-item label="新车购置价: " required name="purchasePrice">
  375. <input class="uni-input-input textColor" placeholder="请输入新车购置价"
  376. v-model="carInfo.purchasePrice" placeholder-style="font-size:28upx"
  377. @blur="binddata('purchasePrice', $event.detail.value,'carForm')"
  378. @input="upperCaseType('purchasePrice')" />
  379. </uni-forms-item>
  380. <!-- <uni-forms-item label="是否过户: ">
  381. <view class="d-flex j-end a-c" style="height:100%">
  382. <u-switch v-model="carInfo.transferFlag" active-color="#0052FF " size="30"
  383. @change="transferFlagchange"></u-switch>
  384. </view>
  385. </uni-forms-item>
  386. <uni-forms-item v-if="carInfo.transferFlag" required label="转移登记日期" name="transferDate">
  387. <u-input type="select" :select-open="transferDateShow" v-model="carInfo.transferDate"
  388. placeholder="请选择过户日期" @click="transferDateShow = true"
  389. :custom-style="{textAlign:'right'}" placeholder-style="color:#808080"></u-input>
  390. <u-picker v-model="transferDateShow" mode="time" :params="params" :end-year="endYear"
  391. :end-month="endMonth" @confirm="e=> Dateconfirm(e,'carInfo','transferDate')"></u-picker>
  392. </uni-forms-item> -->
  393. </uni-forms>
  394. </view>
  395. </view>
  396. </view>
  397. <view class="fixed dis a-c j-c">
  398. <u-button type="warning" class="fiexdbtn" shape="circle" @click="toNext">立即投保</u-button>
  399. </view>
  400. <OCRComponent :showModal='OCRShow' @closePopup="closePopup" :tabslist="tabslist" @tabschange="OCRtabschange"
  401. :tabsCurrent="tabsCurrent" :checkType='checkType' @carCallback="carCallback">
  402. </OCRComponent>
  403. <u-keyboard ref="uKeyboard" mode="car" :keyboardType="keyboardType" v-model="keyboardShow"
  404. @change="keyboardchange" @backspace="backspacesss" @confirm="backsconfirm"></u-keyboard>
  405. <u-toast ref="uToast" />
  406. </view>
  407. </template>
  408. <script>
  409. import OCRComponent from '@/components/modules/carInsure/OCRComponent/OCRComponent.vue'; //引用图片信息检查插件
  410. var dateTime = new Date();
  411. let Year = dateTime.getFullYear();
  412. let Month = Number(dateTime.getMonth() + 1);
  413. export default {
  414. components: {
  415. OCRComponent,
  416. },
  417. data() {
  418. return {
  419. isActive: true,
  420. vehicleType: false, //车型查询调用标识
  421. keyboardType: false, //键盘中/英切换标识
  422. endYear: Year,
  423. endMonth: Month,
  424. params: {
  425. year: true, //年
  426. month: true, //月
  427. day: true, //日
  428. hour: false, //时
  429. minute: false, //分
  430. second: false, //秒
  431. },
  432. carRules: {
  433. frameNo: {
  434. rules: [{
  435. required: true,
  436. errorMessage: '请输入车辆识别码',
  437. }, {
  438. pattern: /^([0-9A-Z]){17}$/,
  439. errorMessage: '请输入正确的车辆识别码',
  440. }]
  441. },
  442. modelcname: {
  443. rules: [{
  444. required: true,
  445. errorMessage: '请输入品牌型号',
  446. }, ]
  447. },
  448. engineNo: {
  449. rules: [{
  450. required: true,
  451. errorMessage: '请输入发动机号',
  452. }, ]
  453. },
  454. purchasePrice: {
  455. rules: [{
  456. required: true,
  457. errorMessage: '请输入新车购置价',
  458. }, {
  459. validateField: function(rule, value, data, callback) {
  460. if (value == 0) {
  461. callback('新车购置价不能为零')
  462. }
  463. return true
  464. }
  465. }]
  466. },
  467. completeKerbMass: {
  468. rules: [{
  469. required: true,
  470. errorMessage: '请输入整备质量',
  471. }, ]
  472. },
  473. carnature: {
  474. rules: [{
  475. required: true,
  476. errorMessage: '使用性质必选',
  477. }, ]
  478. },
  479. vehicleUse: {
  480. rules: [{
  481. required: true,
  482. errorMessage: '车辆用途必选',
  483. }, ]
  484. },
  485. registerDate: {
  486. rules: [{
  487. required: true,
  488. errorMessage: '请选择注册日期',
  489. }, {
  490. pattern: /^\d{4}-\d{2}-\d{2}$/,
  491. errorMessage: '注册日期格式错误',
  492. }]
  493. },
  494. issueDate: {
  495. rules: [{
  496. required: true,
  497. errorMessage: '请选择发证日期',
  498. }, {
  499. pattern: /^\d{4}-\d{2}-\d{2}$/,
  500. errorMessage: '发证日期日期格式错误',
  501. }]
  502. }
  503. },
  504. //影像信息
  505. carSwitching: true, //true识别 false录入
  506. keyboardShow: false,
  507. insuranceType: 2,
  508. checked: true,
  509. LicenseInputValue: ['晋', 'A', '', '', '', '', '', ''],
  510. currentInputIndex: 0,
  511. carInfoPositiveList: [], //车辆
  512. ownerInfoPositiveList: [], //车主
  513. policyHolderInfoPositiveList: [], //投保人
  514. insuredPersonInfoPositiveList: [], //被保人
  515. ownerInfo: {
  516. name: "",
  517. identifyType: "01",
  518. identifyNumber: "",
  519. addr: "",
  520. gender: "", //性别
  521. email: "", //邮箱
  522. mobile: "",
  523. identifyValidDate: "", //有效期起期
  524. identifyValidEndDate: "", //有效期止期
  525. age: "", //年龄
  526. },
  527. policyHolderInfo: {
  528. name: "",
  529. identifyType: "01",
  530. identifyNumber: "",
  531. addr: "",
  532. gender: "", //性别
  533. email: "",
  534. mobile: "",
  535. identifyValidDate: "", //有效期起期
  536. identifyValidEndDate: "", //有效期止期
  537. age: "", //年龄
  538. },
  539. insuredPersonInfo: {
  540. name: "",
  541. identifyType: "01",
  542. identifyNumber: "",
  543. addr: "",
  544. gender: "", //性别
  545. email: "",
  546. mobile: "",
  547. identifyValidDate: "", //有效期起期
  548. identifyValidEndDate: "", //有效期止期
  549. age: "", //年龄
  550. },
  551. //车辆信息
  552. carInfo: {
  553. licenseNo: "", //车牌号
  554. brandName: "", //车辆品牌型号
  555. vinNo: "", //车架号
  556. engineNo: "", //发动机号
  557. modelCode: "", //车型编码
  558. seatCount: "0", //核定载客量 核定载人数
  559. purchasePrice: "", //新车购置价最低,行业实际价值,协商价值
  560. carBrand: "", //车型品牌
  561. ciCarName: "", //行业车型名称
  562. ciModelCode: "", //行业车型编码
  563. completeKerbMass: "", //整备质量
  564. exhaustScale: "", //排量
  565. factory: "", //工厂名称
  566. factoryid: "", //工厂编码
  567. frameNo: "", //车架号
  568. licenseTypeCode: "02", //号牌种类
  569. vehicleclass: "", //车辆类型
  570. familyName: "", //车型
  571. modelcname: "", //车型名称
  572. powertypecode: "", //燃料类型编码
  573. vehicleweight: "", //总质量
  574. limitLoad: "", //核定载质量
  575. caryear: "0", //年款
  576. cimodelclass: "A0", //车辆种类客车A0 货车H0
  577. cartype: "K33", //车辆类型
  578. powertype: "汽油", //燃料类型
  579. energyType: "0", //能源种类
  580. enginedesc: "", //排量
  581. powerScale: "", //功率
  582. registerDate: "", //注册日期
  583. issueDate: "", //发证日期
  584. transferFlag: false, //过户标志
  585. transferFlagBi: false, //商业过户标志
  586. transferDate: "", //过户日期
  587. loanStatus: 0, //贷款标志
  588. firstBeneMan: "", //第一受益人
  589. noLicenseFlag: false, //是否新车
  590. carnature: "02", //使用性质 家庭自用8A 非营业企业8B 非营业党政机关,事业团体8C 非营业货车8D
  591. property: "1", //所属性质 1个人 2企业 3个人
  592. outOfInsurance: false, //脱保
  593. usedCar: false, //二手车
  594. vehicleUse: "05" //车辆用途
  595. },
  596. carInfo1: {
  597. carnature: "非营业",
  598. energyType: "燃油",
  599. vehicleUse: "家庭自用",
  600. cartype: "轿车",
  601. cimodelclass: "客车",
  602. },
  603. registerDateShow: false, //注册日期
  604. issueDateShow: false, //发证日期
  605. transferDateShow: false, //转移登记日期
  606. carnatureShow: false, //使用性质
  607. energyTypeShow: false, //能源种类
  608. vehicleUseShow: false, //车辆用途
  609. cartypeShow: false, //车辆类型
  610. cimodelclassShow: false, //车辆种类
  611. /* 数据字典 */
  612. natureOfVehicleUseoptions: [],
  613. vehicleTypeoptions: [],
  614. trafficManagementVehicleTypeoptions: [],
  615. energyTypeoptions: [],
  616. businessVehicleUseoptions: [],
  617. outOfBusinessVehicleUseoptions: [],
  618. /* 数据字典 */
  619. tabslist: [{
  620. name: '行驶证识别'
  621. }, ],
  622. OCRShow: false,
  623. tabsCurrent: 0,
  624. checkType: "carInfo", //组件类型
  625. carfrontImg: null, //展示图片
  626. carbackImg: null, //展示图片
  627. cardeg: 0, //旋转角度
  628. word: "word",
  629. }
  630. },
  631. async onLoad() {
  632. this.$http.get('/sysMenuRecord/add?type=1&menuType=1')
  633. this.getDicType("businessVehicleUse"); //车辆用途(营业)
  634. this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  635. this.getDicType("natureOfVehicleUse"); //车辆性质
  636. this.getDicType("vehicleType"); //车辆种类
  637. this.getDicType("trafficManagementVehicleType"); //车辆类型
  638. this.getDicType("energyType"); //能源种类
  639. if (this.checked) {
  640. this.LicenseInputValue.forEach((val, index) => {
  641. if (index < 7) {
  642. this.$set(this.LicenseInputValue, index, "*");
  643. }
  644. })
  645. let valueList = this.LicenseInputValue;
  646. const str = valueList.join("")
  647. this.carInfo.licenseNo = str;
  648. } else {
  649. this.LicenseInputValue.forEach((val, index) => {
  650. this.$set(this.LicenseInputValue, index, "");
  651. })
  652. this.carInfo.licenseNo = "";
  653. }
  654. },
  655. onShow() {
  656. let historyInfo = uni.getStorageSync('historyInfo');
  657. if (historyInfo) {
  658. this.carInfo = historyInfo.carInfo;
  659. this.ownerInfo = historyInfo.ownerInfo;
  660. this.policyHolderInfo = historyInfo.policyHolderInfo;
  661. this.insuredPersonInfo = historyInfo.insuredPersonInfo;
  662. this.carInfoPositiveList = historyInfo.carInfoPositiveList;
  663. this.ownerInfoPositiveList = historyInfo.ownerInfoPositiveList;
  664. this.policyHolderInfoPositiveList = historyInfo.policyHolderInfoPositiveList;
  665. this.insuredPersonInfoPositiveList = historyInfo.insuredPersonInfoPositiveList;
  666. }
  667. },
  668. watch: {
  669. currentInputIndex(newVal) {
  670. switch (newVal) {
  671. case 0:
  672. this.keyboardType = false;
  673. break;
  674. default:
  675. this.keyboardType = true;
  676. }
  677. },
  678. "carInfo.energyType": {
  679. handler(val) {
  680. if (val) {
  681. this.carInfo1.energyType = this.dictionaryMatching(this.energyTypeoptions,
  682. this
  683. .carInfo
  684. .energyType);
  685. }
  686. },
  687. deep: true
  688. },
  689. "carInfo.cartype": {
  690. handler(val) {
  691. if (val) {
  692. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  693. this
  694. .carInfo
  695. .cartype);
  696. }
  697. },
  698. deep: true
  699. },
  700. },
  701. methods: {
  702. btn_click() {
  703. uni.navigateTo({
  704. url: '/pages/chat/chat'
  705. })
  706. },
  707. toggleSwitch() {
  708. this.isActive = !this.isActive;
  709. },
  710. rotatefront(int) {
  711. this[int] = this[int] == 270 ? 0 : this[int] + 90;
  712. },
  713. rotateback(int) {
  714. this[int] = this[int] == 0 ? 270 : this[int] - 90;
  715. },
  716. dictionaryConfirm(e, name) {
  717. if (name == 'carnature') {
  718. this.carInfo1['vehicleUse'] = "";
  719. this.carInfo['vehicleUse'] = "";
  720. }
  721. this.carInfo[name] = e[0].value;
  722. this.carInfo1[name] = e[0].label;
  723. },
  724. async getDicType(type) {
  725. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  726. if (res.code == 200) {
  727. this[type + 'options'] = res.data.ddList;
  728. // if (type == "trafficManagementVehicleType") {
  729. // this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions, this
  730. // .carInfo
  731. // .cartype)
  732. // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  733. // this
  734. // .carInfo
  735. // .cimodelclass)
  736. // }
  737. }
  738. },
  739. //字典name匹配
  740. dictionaryMatching(list, value) {
  741. let obj = list.find(val => val.dictValue == value);
  742. return obj.dictTag;
  743. },
  744. //OC识别返回信息
  745. carCallback(obj) {
  746. this.carfrontImg = obj.frontImg;
  747. this.carbackImg = obj.backImg;
  748. this.carInfoPositiveList = obj.ImgList;
  749. Object.assign(this.carInfo, obj.Info);
  750. this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  751. this
  752. .carInfo
  753. .cimodelclass)
  754. this.carInfo1.cartype = this.dictionaryMatching(this.trafficManagementVehicleTypeoptions,
  755. this
  756. .carInfo
  757. .cartype);
  758. this.carInfo1.carnature = this.carInfo.carnature ? this.dictionaryMatching(this
  759. .natureOfVehicleUseoptions,
  760. this
  761. .carInfo
  762. .carnature) : "";
  763. if (this.carInfo.carnature && this.carInfo.vehicleUse) {
  764. this.carInfo1.vehicleUse = this.carInfo.carnature == '02' ? this.dictionaryMatching(this
  765. .outOfBusinessVehicleUseoptions,
  766. this
  767. .carInfo
  768. .vehicleUse) : this.dictionaryMatching(this
  769. .BusinessVehicleUseoptions,
  770. this
  771. .carInfo
  772. .vehicleUse);
  773. } else {
  774. this.carInfo1.vehicleUse = "";
  775. }
  776. this.OCRShow = false;
  777. },
  778. upperCaseType(type) {
  779. this.carInfo[type] = this.carInfo[type].toUpperCase();
  780. if (type == 'frameNo') {
  781. this.carInfo.vinNo = this.carInfo.frameNo.trim();
  782. }
  783. },
  784. //
  785. transferFlagchange(status) {
  786. if (status) {
  787. this.carInfo.transferDate = this.carInfo.issueDate;
  788. } else {
  789. this.carInfo.transferDate = ""
  790. }
  791. },
  792. Dateconfirm(e, obj, param) {
  793. this[obj][param] = e.year + '-' + e.month + '-' + e.day;
  794. },
  795. //下一步
  796. toNext() {
  797. switch (this.insuranceType) {
  798. case 1:
  799. if (!this.carInfo.licenseNo && !this.islicense(this.carInfo.licenseNo)) {
  800. return uni.showToast({
  801. icon: "none",
  802. title: '请填写正确的车牌号码',
  803. duration: 1500
  804. });
  805. }
  806. let params = {
  807. carInfo: this
  808. .carInfo,
  809. ownerInfo: this
  810. .ownerInfo,
  811. policyHolderInfo: this
  812. .policyHolderInfo,
  813. insuredPersonInfo: this
  814. .insuredPersonInfo,
  815. carInfoPositiveList: this
  816. .carInfoPositiveList, //车辆
  817. ownerInfoPositiveList: this
  818. .ownerInfoPositiveList, //车主
  819. policyHolderInfoPositiveList: this
  820. .policyHolderInfoPositiveList, //投保人
  821. insuredPersonInfoPositiveList: this
  822. .insuredPersonInfoPositiveList, //被保人
  823. }
  824. this.navigate({
  825. url: "/pages/carInsure/Information?licenseNo=" + encodeURIComponent(this.carInfo
  826. .licenseNo) + '&historyInfo=' + `${JSON.stringify(params)}`
  827. }, "navigateTo", true)
  828. break;
  829. case 2:
  830. if (!this.carInfo.licenseNo && !this.carfrontImg) {
  831. return uni.showToast({
  832. icon: "none",
  833. title: '请上传资料或录入信息后再投保',
  834. duration: 1500
  835. });
  836. }
  837. this.$refs.carForm.submit().then(res => {
  838. if (this.vehicleType) {
  839. this.navigate({
  840. url: '/pages/carInsure/Information',
  841. success: (res) => {
  842. res.eventChannel.emit(
  843. "acceptData", {
  844. carInfo: this
  845. .carInfo,
  846. ownerInfo: this
  847. .ownerInfo,
  848. policyHolderInfo: this
  849. .policyHolderInfo,
  850. insuredPersonInfo: this
  851. .insuredPersonInfo,
  852. carInfoPositiveList: this
  853. .carInfoPositiveList, //车辆
  854. ownerInfoPositiveList: this
  855. .ownerInfoPositiveList, //车主
  856. policyHolderInfoPositiveList: this
  857. .policyHolderInfoPositiveList, //投保人
  858. insuredPersonInfoPositiveList: this
  859. .insuredPersonInfoPositiveList, //被保人
  860. })
  861. }
  862. }, "navigateTo", true);
  863. } else {
  864. this.$refs.uToast.show({
  865. title: '检测到未精准校验车型,即将跳转到车型界面选择,请等待。。。',
  866. type: 'warning',
  867. icon: false,
  868. })
  869. setTimeout(() => {
  870. this.navigate({
  871. url: '/pages/carInsure/carType?frameNo=' +
  872. encodeURIComponent(this.carInfo.frameNo) +
  873. '&vehicleType=true'
  874. }, "navigateTo", true);
  875. }, 2000)
  876. }
  877. })
  878. break;
  879. default:
  880. break;
  881. }
  882. },
  883. switchChange(value) {
  884. if (value) {
  885. this.LicenseInputValue.forEach((val, index) => {
  886. if (index < 7) {
  887. this.$set(this.LicenseInputValue, index, "*");
  888. }
  889. })
  890. let valueList = this.LicenseInputValue;
  891. const str = valueList.join("")
  892. this.carInfo.licenseNo = str;
  893. } else {
  894. this.LicenseInputValue.forEach((val, index) => {
  895. this.$set(this.LicenseInputValue, index, "");
  896. })
  897. this.carInfo.licenseNo = "";
  898. }
  899. },
  900. // 通过车架号获取车型
  901. async toChooseVin(cctype) {
  902. this.vehicleType = true;
  903. if (cctype == '' || cctype == null) {
  904. return uni.showToast({
  905. icon: 'none',
  906. title: '请输入车架号',
  907. duration: 1500
  908. });
  909. } else {
  910. if (!this.isFrameno(cctype.trim())) {
  911. return uni.showToast({
  912. title: '请输入正确的车辆识别码',
  913. icon: "none"
  914. });
  915. }
  916. this.navigate({
  917. url: '/pages/carInsure/carType?frameNo=' + encodeURIComponent(cctype)
  918. }, "navigateTo", true);
  919. }
  920. },
  921. //跳转选择车辆类型页面
  922. toChooseVehicleType(cctype) {
  923. if (cctype == '' || cctype == null) {
  924. uni.showToast({
  925. icon: 'none',
  926. title: '请输入车型名称',
  927. duration: 1500
  928. });
  929. } else {
  930. let cctypeName = cctype.replace(/[^u4e00-u9fa5|,]+/ig, '')
  931. this.navigate({
  932. url: '/pages/carInsure/carType?modelName=' + encodeURIComponent(cctypeName)
  933. }, "navigateTo", true);
  934. }
  935. },
  936. //验证车牌号
  937. islicense(val) {
  938. let mPattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$/;
  939. return mPattern.test(val);
  940. },
  941. //验证车架号
  942. isFrameno(str) {
  943. let mPattern = /^([0-9A-Z]){17}$/;
  944. return mPattern.test(str);
  945. },
  946. //OCR识别
  947. ocrIdentify() {
  948. this.OCRShow = !this.OCRShow;
  949. },
  950. closePopup() {
  951. this.OCRShow = false;
  952. },
  953. OCRtabschange(e) {
  954. this.tabsCurrent = e;
  955. },
  956. keyboardchange(val) {
  957. this.$set(this.LicenseInputValue, this.currentInputIndex, val);
  958. if (this.currentInputIndex < 7) {
  959. this.currentInputIndex++;
  960. }
  961. },
  962. backsconfirm() {
  963. let valueList = this.LicenseInputValue;
  964. const str = valueList.join("")
  965. this.carInfo.licenseNo = str;
  966. },
  967. //键盘退格键
  968. backspacesss() {
  969. this.$set(this.LicenseInputValue, this.currentInputIndex, '')
  970. if (this.currentInputIndex != 0) this.currentInputIndex--
  971. },
  972. inputSwitch(e) {
  973. const {
  974. index
  975. } = e.currentTarget.dataset;
  976. this.currentInputIndex = parseInt(index);
  977. this.keyboardShow = true;
  978. console.log(this.currentInputIndex);
  979. },
  980. }
  981. }
  982. </script>
  983. <style lang="scss" scoped>
  984. .uni-forms-item .uni-input-input {
  985. text-align: end;
  986. }
  987. ::v-deep .uni-forms-item {
  988. border-bottom: 1px solid #f2f2f2;
  989. }
  990. ::v-deep .uni-forms-item:last-child {
  991. border: none;
  992. }
  993. page {
  994. height: 100vh;
  995. background: #F8FAFE;
  996. }
  997. .page {
  998. padding: 16px 16px 50px 16px;
  999. }
  1000. .banner {
  1001. width: 100%;
  1002. height: 202px;
  1003. image {
  1004. width: 100%;
  1005. height: 100%;
  1006. }
  1007. }
  1008. .carinfo {
  1009. width: 100%;
  1010. height: auto;
  1011. >.title {
  1012. padding: 10px;
  1013. border-bottom: 1px solid #f2f2f2;
  1014. >text {
  1015. font-weight: bold;
  1016. font-size: 15px;
  1017. }
  1018. .rounded {
  1019. width: 120px;
  1020. height: 28px;
  1021. background: #0052FF;
  1022. border-radius: 15px;
  1023. padding: 1px;
  1024. box-sizing: border-box;
  1025. position: relative;
  1026. .left {
  1027. width: 50%;
  1028. height: 100%;
  1029. background-color: white;
  1030. border-top-left-radius: 15px;
  1031. border-bottom-left-radius: 15px;
  1032. font-size: 24rpx;
  1033. color: #0052FF;
  1034. }
  1035. .right {
  1036. width: 50%;
  1037. height: 100%;
  1038. background-color: #fff;
  1039. border-top-right-radius: 15px;
  1040. border-bottom-right-radius: 15px;
  1041. font-size: 24rpx;
  1042. color: #0052FF;
  1043. }
  1044. .center {
  1045. width: 8px;
  1046. height: 100%;
  1047. background-color: white;
  1048. position: absolute;
  1049. border-left: 1px solid #0052FF;
  1050. border-right: 1px solid #0052FF;
  1051. top: 50%;
  1052. left: 50%;
  1053. transform: translate(-50%, -50%) skewX(-10deg);
  1054. }
  1055. .active {
  1056. background-color: #0052FF;
  1057. color: #fff;
  1058. }
  1059. }
  1060. }
  1061. .carinput {
  1062. width: 100%;
  1063. height: auto;
  1064. background: #FFFFFF;
  1065. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1066. border-radius: 12px;
  1067. padding: 10px;
  1068. .top {
  1069. font-weight: bold;
  1070. font-size: 15px;
  1071. }
  1072. .so-plate-word {
  1073. width: 40px;
  1074. height: 40px;
  1075. background-color: #f8f8fa;
  1076. border-radius: 5px;
  1077. margin: 0 4px;
  1078. box-sizing: border-box;
  1079. text {
  1080. font-size: 18px;
  1081. font-weight: bold;
  1082. }
  1083. .newEnergy {
  1084. image {
  1085. width: 12px;
  1086. height: 12px;
  1087. }
  1088. text {
  1089. font-size: 16rpx;
  1090. color: #0eb78e;
  1091. }
  1092. }
  1093. }
  1094. .so-plate-dot {
  1095. width: 15upx;
  1096. height: 15upx;
  1097. background: #ccc;
  1098. border-radius: 50%;
  1099. margin: 0 5upx
  1100. }
  1101. .actives {
  1102. border: 1px solid #0052FF;
  1103. background-color: rgba(0, 82, 255, 0.1);
  1104. }
  1105. .newactives {
  1106. border: 1px solid #0eb78e;
  1107. background-color: rgba(14, 183, 142, 0.1);
  1108. }
  1109. }
  1110. .OCRcar {
  1111. width: 100%;
  1112. height: auto;
  1113. .title {
  1114. color: #FF5600;
  1115. text:nth-child(1) {
  1116. font-size: 15px;
  1117. font-weight: bold;
  1118. color: #232832;
  1119. }
  1120. }
  1121. .ocr {
  1122. width: 100%;
  1123. height: auto;
  1124. background-color: white;
  1125. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1126. border-radius: 12px;
  1127. .content {
  1128. padding: 0 15px;
  1129. }
  1130. .movable-view {
  1131. .operate-img {
  1132. width: 90%;
  1133. height: 38px;
  1134. background-color: #F9F9F9;
  1135. border-radius: 8px;
  1136. padding: 10px 25px;
  1137. margin-top: 10px;
  1138. >view:nth-child(2) {
  1139. background-color: rgba(0, 82, 255, 0.06);
  1140. border-radius: 4px 4px 4px 4px;
  1141. border: 1px solid #0052FF;
  1142. color: #0052FF;
  1143. padding: 3px 5px;
  1144. }
  1145. >view {
  1146. font-size: 14px;
  1147. }
  1148. image {
  1149. width: 22px;
  1150. height: 22px;
  1151. margin-right: 5px;
  1152. }
  1153. }
  1154. }
  1155. }
  1156. .content {
  1157. width: 100%;
  1158. height: auto;
  1159. background-color: white;
  1160. box-shadow: 0px 4px 10px 0px #DAE3F4;
  1161. border-radius: 12px;
  1162. .input-align-right {
  1163. padding: 20px;
  1164. }
  1165. }
  1166. }
  1167. }
  1168. .fixed {
  1169. width: 100%;
  1170. height: 80px;
  1171. padding: 10px;
  1172. position: fixed;
  1173. bottom: 0;
  1174. left: 0;
  1175. right: 0;
  1176. background: white;
  1177. z-index: 9;
  1178. border-top: 1px solid #f2f2f2;
  1179. .fiexdbtn {
  1180. width: 50%;
  1181. background: linear-gradient(to bottom, #FFF9F5, #FCD4C0, #F8A67D);
  1182. color: #FF5600;
  1183. font-weight: bold;
  1184. font-size: 18px;
  1185. border: 1px solid #F8A67D;
  1186. }
  1187. }
  1188. movable-area {
  1189. height: 220px;
  1190. width: 100%;
  1191. border-top-left-radius: 12px;
  1192. border-top-right-radius: 12px;
  1193. background-color: #D8D8D8;
  1194. overflow: hidden;
  1195. }
  1196. movable-view {
  1197. display: flex;
  1198. align-items: center;
  1199. justify-content: center;
  1200. height: 100%;
  1201. width: 100%;
  1202. }
  1203. .switch-container {
  1204. width: 60px;
  1205. height: 30px;
  1206. background-color: #E6EEFF;
  1207. border-radius: 15px;
  1208. position: relative;
  1209. cursor: pointer;
  1210. }
  1211. .switch-track {
  1212. width: 100%;
  1213. height: 100%;
  1214. background-color: #E6EEFF;
  1215. border-radius: 4px;
  1216. position: relative;
  1217. transition: background-color 0.3s ease;
  1218. }
  1219. .switch-thumb {
  1220. width: 26px;
  1221. height: 26px;
  1222. background-color: #0052FF;
  1223. border-radius: 4px;
  1224. position: absolute;
  1225. top: 2px;
  1226. left: 2px;
  1227. transition: transform 0.3s ease;
  1228. font-size: 13px;
  1229. color: #fff;
  1230. }
  1231. .switch-thumb1 {
  1232. width: 26px;
  1233. height: 26px;
  1234. position: absolute;
  1235. top: 2px;
  1236. left: 2px;
  1237. font-size: 13px;
  1238. color: rgba(0, 82, 255, 0.8);
  1239. }
  1240. .switch-thumb2 {
  1241. width: 26px;
  1242. height: 26px;
  1243. position: absolute;
  1244. top: 2px;
  1245. right: 2px;
  1246. font-size: 13px;
  1247. color: rgba(0, 82, 255, 0.8);
  1248. }
  1249. .thumbactive {
  1250. background-color: #0052FF;
  1251. transform: translateX(30px);
  1252. }
  1253. .thumbactive1 {
  1254. color: #fff;
  1255. }
  1256. </style>