entry.vue 41 KB

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