entry.vue 41 KB

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