Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

car-message-change.vue 35KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321
  1. <template>
  2. <view v-if="state.isMyPeopple" class="content">
  3. <view class="item-tips">
  4. <view class="title"> 上传后请核对识别信息 </view>
  5. <view class="tip"> 如有错误请及时手动修改 </view>
  6. </view>
  7. <view class="picture-wrapper" @click="takePhotoMode('1','my')">
  8. <view class="bg">
  9. <view class="">
  10. <view class="name"> 人像面 </view>
  11. <view class="value"> 上传身份证的人像面 </view>
  12. <view class="tip">
  13. <view class="tip-value"> 拍摄规范 </view>
  14. </view>
  15. </view>
  16. <image v-if="!state.form.ownPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  17. </image>
  18. <image v-else class="icon" :src="strReplace(state.form.ownPosImgUrl)"></image>
  19. </view>
  20. </view>
  21. <view class="picture-wrapper" @click="takePhotoMode('2','my')">
  22. <view class="bg">
  23. <view class="">
  24. <view class="name"> 国徽面 </view>
  25. <view class="value"> 上传身份证的国徽面 </view>
  26. <view class="tip">
  27. <view class="tip-value"> 拍摄规范 </view>
  28. </view>
  29. </view>
  30. <image v-if="!state.form.ownNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  31. </image>
  32. <image v-else class="icon" :src="strReplace(state.form.ownNegImgUrl)"></image>
  33. </view>
  34. </view>
  35. <view class="shibie-wrapper">
  36. <view class="title"> 识别内容如下 </view>
  37. <u-form label-width="230" :model="state.form" ref="uForm">
  38. <u-form-item label="姓名">
  39. <u-input v-model="state.form.userName" placeholder='请输入姓名' :disabled="state.isEnableOCRData"
  40. maxlength="20" @input="replaceInput" />
  41. </u-form-item>
  42. <u-form-item label="身份证号">
  43. <u-input placeholder='请输入身份证' type="idcard" v-model="state.form.userIdNum"
  44. :disabled="state.isEnableOCRData" maxlength="18" />
  45. </u-form-item>
  46. <u-form-item label="地址">
  47. <u-input placeholder='请输入地址' :autoHeight='true' v-model="state.form.address"
  48. :disabled="state.isEnableOCRData" maxlength="50" />
  49. </u-form-item>
  50. <u-form-item label="联系方式">
  51. <u-input placeholder='请输入联系方式' type="number" v-model="state.form.tel" maxlength="11" />
  52. </u-form-item>
  53. </u-form>
  54. </view>
  55. <view class="picture-wrapper" @click="takePhotoMode('3')">
  56. <view class="bg">
  57. <view class="">
  58. <view class="name"> 行驶证主页 </view>
  59. <view class="value"> 上传行驶证的主页 </view>
  60. <view class="tip">
  61. <view class="tip-value"> 拍摄规范 </view>
  62. </view>
  63. </view>
  64. <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`">
  65. </image>
  66. <image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image>
  67. </view>
  68. </view>
  69. <view class="picture-wrapper" @click="takePhotoMode('4')">
  70. <view class="bg">
  71. <view class="">
  72. <view class="name"> 行驶证副页 </view>
  73. <view class="value"> 上传行驶证的副页 </view>
  74. <view class="tip">
  75. <view class="tip-value"> 拍摄规范 </view>
  76. </view>
  77. </view>
  78. <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`">
  79. </image>
  80. <image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image>
  81. </view>
  82. </view>
  83. <view class="picture-wrapper" @click="cardFileImageUpdate()">
  84. <view class="bg">
  85. <view class="">
  86. <view class="name"> 车头照 </view>
  87. <view class="value"> 上传汽车的车头照片 </view>
  88. <view class="tip">
  89. <view class="tip-value"> 拍摄规范 </view>
  90. </view>
  91. </view>
  92. <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`">
  93. </image>
  94. <image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"></image>
  95. </view>
  96. </view>
  97. <view class="shibie-wrapper">
  98. <view class="title"> 识别内容如下 </view>
  99. <view class="">
  100. <u-form label-width="200" :model="state.form" ref="uForm">
  101. <u-form-item label="车牌号">
  102. <!-- <car-number-input @numberInputResult="carNumber"
  103. :defaultStr="state.form.vehicleIdNum" ></car-number-input> -->
  104. <u-input inputAlign="right" placeholder="请输入车牌号" v-model="state.form.vehicleIdNum" disabled />
  105. </u-form-item>
  106. <u-form-item label="所有人">
  107. <u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.ownerName"
  108. :disabled="state.isEnableChangeOCRCarInfo" />
  109. </u-form-item>
  110. <u-form-item label="车辆类型">
  111. <u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType"
  112. :disabled="state.isEnableChangeOCRCarInfo" />
  113. </u-form-item>
  114. <!-- <u-form-item label="使用性质">
  115. <u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character"
  116. :disabled="state.isEnableChangeOCRCarInfo" />
  117. </u-form-item> -->
  118. <u-form-item label="车辆识别代号">
  119. <u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin"
  120. :disabled="state.isEnableChangeOCRCarInfo" />
  121. </u-form-item>
  122. <u-form-item label="发动机号码">
  123. <u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum"
  124. :disabled="state.isEnableChangeOCRCarInfo" />
  125. </u-form-item>
  126. <u-form-item label="注册日期">
  127. <picker mode="date" :value="state.form.register" @change="bindDateChange1"
  128. :disabled="state.isEnableChangeOCRCarInfo">
  129. <view class="uni-input" style="text-align: right;">
  130. {{state.form.register}}
  131. </view>
  132. </picker>
  133. </u-form-item>
  134. <u-form-item label="发证日期">
  135. <picker mode="date" :value="state.form.issueDate" @change="bindDateChange2"
  136. :disabled="state.isEnableChangeOCRCarInfo">
  137. <view class="uni-input" style="text-align: right;">
  138. {{state.form.issueDate}}
  139. </view>
  140. </picker>
  141. </u-form-item>
  142. <u-form-item label="核定载人数">
  143. <u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCountShow"
  144. :disabled="state.isEnableChangeOCRCarInfo" />
  145. </u-form-item>
  146. <u-form-item label="整备质量">
  147. <u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMassShow"
  148. :disabled="state.isEnableChangeOCRCarInfo" />
  149. </u-form-item>
  150. <view class="form-item">
  151. <label>外廊尺寸</label>
  152. <view class="input-box">
  153. <text class="sub-label">长</text>
  154. <input v-model="state.outlineL" @input="outlineInput"
  155. :disabled="state.isEnableChangeOCRCarInfo" />
  156. <text class="sub-text">X</text>
  157. <text class="sub-label">宽</text>
  158. <input v-model="state.outlineW" @input="outlineInput"
  159. :disabled="state.isEnableChangeOCRCarInfo" />
  160. <text class="sub-text">X</text>
  161. <text class="sub-label">高</text>
  162. <input v-model="state.outlineH" @input="outlineInput"
  163. :disabled="state.isEnableChangeOCRCarInfo" />
  164. <text class="sub-text">mm</text>
  165. </view>
  166. </view>
  167. <u-form-item label="总质量">
  168. <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMassShow"
  169. :disabled="state.isEnableChangeOCRCarInfo" />
  170. </u-form-item>
  171. <u-form-item label="车轴数">
  172. <u-input inputAlign="right" placeholder="请输入车轴数" v-model="state.form.axleCount" type="number"
  173. maxlength="2" />
  174. </u-form-item>
  175. <view class="form-item">
  176. <label>车辆用户类型</label>
  177. <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view>
  178. <image :src="`${$imgUrl}common/arror-down.png`" class="icon"
  179. @click="state.actionSheetShow = true"></image>
  180. </view>
  181. </u-form>
  182. </view>
  183. </view>
  184. <view class="green-tip">
  185. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  186. </view>
  187. <view class="action">
  188. <button type="default" class="button" @click="savaHandleCar()">
  189. 提交
  190. </button>
  191. </view>
  192. <!-- 车辆类型弹窗 -->
  193. <u-popup mode="bottom" v-model="state.actionSheetShow">
  194. <view class="window">
  195. <view class="window-item" v-for="item in state.actionSheetList" :key="item.value"
  196. @click="userType(item)">{{item.text}}</view>
  197. </view>
  198. </u-popup>
  199. </view>
  200. <u-select mode="single-column" :list="state.genderList" v-model="state.genderShow" @confirm="genderSelectConfirm">
  201. </u-select>
  202. <view class="choice-takePhoto-wrap" v-if="state.isTakePhotoModeShow" @click="cancle">
  203. <view class="choice-takePhoto">
  204. <view @click.stop="takePhoto(state.choiceIndex)" style="border-radius: 20rpx 20rpx 0 0;">拍照</view>
  205. <view @click.stop="xiangce(state.choiceIndex)">从手机相册选择</view>
  206. <view @click.stop="cancle">取消</view>
  207. </view>
  208. </view>
  209. <viewfinder v-if="state.phoneType" :phoneType="state.phoneType" :images="state.images"
  210. :showStartPhoto="state.showImg" @confirmReturn="confirmReturn" @camera="camera"></viewfinder>
  211. </template>
  212. <script setup lang="ts">
  213. import viewfinder from "../../components/viewfinder.vue"
  214. import {
  215. reactive,
  216. ref,
  217. } from "vue";
  218. import {
  219. msg,
  220. checkStr,
  221. strReplace,
  222. uploadFile, hasLogin
  223. } from "@/utils/utils";
  224. import {
  225. onLoad,
  226. onPageScroll,
  227. } from "@dcloudio/uni-app";
  228. import {
  229. etcOcrCard,
  230. etcUserCardInfoSubmit,
  231. fileUpload,
  232. register,
  233. envs,
  234. getUserMsg,
  235. ocrAllQuery,
  236. etcCarOcrCard,
  237. searchVehicleInfo,
  238. carChangeApi,
  239. creactWorkOrder
  240. } from "@/utils/network/api.js";
  241. import {
  242. request
  243. } from "@/utils/network/request.js";
  244. import {
  245. stringToJson
  246. } from "@/utils/network/encryption";
  247. import {
  248. setItem,
  249. getItem,
  250. StorageKeys
  251. } from "@/utils/storage";
  252. import {
  253. getCodeName
  254. } from "@/datas/queryKey.js";
  255. import navBar from "@/components/nav-bar/nav-bar2.vue";
  256. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  257. import { getObuStatus } from "@/datas/obuStatus.js";
  258. import { getEtcCardStatus } from "@/datas/etcCardStatus.js";
  259. const scrollTop = ref(0)
  260. const state = reactive({
  261. showImg: true,
  262. isMy: "",//自己办理 他人办理
  263. phoneType: 0, // 1 身份证正面 2 身份证反面 3行驶证正面 4行驶证反面
  264. choiceIndex: 1, // 1 身份证正面 2 身份证反面
  265. isTakePhotoModeShow: false, //选择拍照方式是否出来
  266. images: '',
  267. genderList: [{
  268. value: '男',
  269. label: '男'
  270. },
  271. {
  272. value: '女',
  273. label: '女'
  274. }
  275. ],
  276. form: {
  277. orderId: "", //订单ID
  278. userName: "", //开户人姓名
  279. userIdType: "101", //用户证件类型 101//身份证
  280. userIdNum: "", //用户证件号码
  281. tel: "", //开户人手机号
  282. address: "", //开户人地址
  283. sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
  284. channelId: "", //渠道id
  285. gender: "",
  286. customerIdVld: "",
  287. agentName: "",
  288. agentGender: "",
  289. agentTel: '',
  290. agentPhone: "",
  291. agentIdType: "101",
  292. agentIdNum: "",
  293. agentPosImgUrl: "",
  294. agentNegImgUrl: "",
  295. proxyUrl: "",
  296. agentAddress: "",
  297. agentIdVld: '',
  298. opId: '',
  299. orderSource: 'WECHAT',
  300. // ownerName: "", //所有人
  301. character: "", //使用性质
  302. register: "请输入注册日期", //注册日期
  303. customerId: "", //用户编号
  304. vehicleId: "",
  305. vehicleIdNum: "", //车牌编号
  306. issueDate: "请输入发证日期", //发证日期
  307. vehPosImgUrl: "", //行驶证正面
  308. vehNegImgUrl: "", //行驶证证反面
  309. type: "0", //0,客车 1.货车
  310. useUserType: 0, //车辆用户类型
  311. useUserTypeName: "普通车",
  312. vehicleSign: 2, //前/后装标识
  313. vin: "", //车辆识别代号
  314. engineNum: "", //发动机号码
  315. vehicleType: "", //车辆类型
  316. vehicleModel: "", //行驶证品牌型号
  317. approvedCount: undefined, //核定人数
  318. approvedCountShow: undefined,//展示的
  319. totalMass: undefined, //总质量
  320. totalMassShow: undefined, //总质量
  321. maintenaceMass: undefined, //整备质量
  322. maintenaceMassShow: undefined, //整备质量展示的
  323. permittedWeight: "", //核定载质量
  324. vehicleDimensions: "", //车辆尺寸
  325. permittedTowWeight: "", //准牵引总质量
  326. axleCount: "", //车轴数
  327. ownerName: "", //车主姓名
  328. ownerIdType: "", //车主证件类型
  329. ownerIdNum: "", //车主证件号码
  330. ownPosImgUrl: "", //车主证件正面图片
  331. ownNegImgUrl: "", //车主证件反面图片
  332. agreementId: "", //签约编号
  333. // channelId: "5201018892300000001", //编号渠道
  334. scenePayType: "", //
  335. transportIdNum: "", //道路运输证编号
  336. licenseIdNum: "", //经营许可证编号
  337. vehBodyUrl: "", //车身照片
  338. // proxyUrl: "", //委托书地址
  339. },
  340. genderShow: false,
  341. orderId: "",
  342. vehiclePlateColor: undefined,
  343. isMyPeopple: true,
  344. isSign: '',
  345. type: 1,
  346. isEnableOther: true, //小程序是否支持他人办理
  347. isEnableBook: true, //他人办理时是否上传委托书
  348. isEnableInfo: true, //小程序信息带出
  349. isEnableOCRData: true, //允许修改OCR识别出来的数据
  350. changeColor: false,
  351. data: {
  352. transferLogs: [],
  353. },
  354. actionSheetShow: false,
  355. actionSheetList: [{
  356. text: "普通车",
  357. value: 0,
  358. },
  359. {
  360. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  361. value: 24,
  362. },
  363. {
  364. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  365. value: 27,
  366. },
  367. {
  368. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  369. value: 28,
  370. }],
  371. show: false,
  372. outlineL: "",
  373. outlineW: "",
  374. outlineH: "",
  375. isEnableChangeOCRCarInfo: false, //申办时是否允许修改OCR识别出来的车辆信息数据
  376. businessType: "",
  377. });
  378. const searchVehicleInfoQuery = () => {
  379. const options = {
  380. type: 2,
  381. data: {
  382. vehicleId: state.form.vehicleId
  383. },
  384. method: "POST",
  385. showLoading: true,
  386. };
  387. request(searchVehicleInfo, options).then((res) => {
  388. let result = stringToJson(res.bizContent);
  389. // state.allData = result.vehicles[0]
  390. writeMsg(result.vehicles[0])
  391. });
  392. }
  393. const writeMsg = (allData) => {
  394. console.log("车辆信息", allData);
  395. state.form.ownPosImgUrl = allData['ownerPosImgUrl']
  396. state.form.ownNegImgUrl = allData['ownerNegImgUrl']
  397. state.form.userName = allData['contacts']
  398. state.form.userIdNum = allData['ownerIdNum']
  399. state.form.ownerIdNum = allData['ownerIdNum']
  400. state.form.address = allData['ownerAddress']
  401. state.form.tel = allData['ownerTel']
  402. state.form.vehPosImgUrl = allData['vehPosImgUrl']
  403. state.form.vehNegImgUrl = allData['vehNegImgUrl']
  404. state.form.vehBodyUrl = allData['vehBodyUrl']
  405. state.form.vehicleIdNum = allData['vehiclePlate']
  406. state.form.ownerName = allData['ownerName']
  407. state.form.vehicleType = allData['vehicleType']
  408. // state.form.character = allData['vehicleType'] //使用性质
  409. state.form.vin = allData['vin']
  410. state.form.engineNum = allData['engineNum']
  411. state.form.register = allData['registerDate']
  412. state.form.issueDate = allData['issueDate']
  413. state.form.approvedCountShow = allData['approvedCount']
  414. state.form.maintenaceMassShow = allData['maintenaceMass']
  415. state.form.approvedCount = allData['approvedCount']
  416. state.form.maintenaceMass = allData['maintenaceMass']
  417. allData['vehicleDimensions']
  418. let arr = allData['vehicleDimensions'].split("X");
  419. state.outlineL = parseInt(arr[0]); //外廓 长
  420. state.outlineW = parseInt(arr[1]); //外廓 宽
  421. state.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  422. state.form.totalMassShow = allData['totalMass']
  423. state.form.totalMass = allData['totalMass']
  424. state.form.axleCount = allData['axleCount'] ? allData['axleCount'] : 2
  425. if (allData['useUserType'] == 0) {
  426. state.form.useUserTypeName = "普通车"
  427. } else if (allData['useUserType'] == 24) {
  428. state.form.useUserTypeName = "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱"
  429. } else if (allData['useUserType'] == 27) {
  430. state.form.useUserTypeName = "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车"
  431. } else if (allData['useUserType'] == 28) {
  432. state.form.useUserTypeName = "道路运输证经营范围除'货物专用运输 (集装 箱)'外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱"
  433. }
  434. state.vehiclePlateColor = allData['vehiclePlateColor']
  435. state.form.customerId = allData['customerId']
  436. }
  437. const userGenderAction = () => {
  438. state.genderShow = true;
  439. };
  440. const genderSelectConfirm = (e) => {
  441. state.form.gender = ''
  442. e.map((val, index) => {
  443. state.form.gender = val.label;
  444. })
  445. };
  446. const camera = () => {
  447. state.phoneType = 0
  448. }
  449. onLoad((option : any) => {
  450. state.form.vehicleId = option.vehicleId;
  451. state.form.opId = getItem('openId') ? getItem('openId') : '';
  452. getGlobalParam(); //全局配置数据
  453. console.log("option", option)
  454. searchVehicleInfoQuery(); //车辆信息查询
  455. state.businessType = getItem('key')['DASP_PUSH_TYPE'][0]['code']
  456. console.log("getItem('key')['DASP_PUSH_TYPE']", getItem('key')['DASP_PUSH_TYPE'])
  457. });
  458. //监听页面滚动
  459. onPageScroll((e) => {
  460. scrollTop.value = e.scrollTop;
  461. });
  462. const replaceInput = (event) => {
  463. console.log("event", event)
  464. const screeningStr = /[^\u4E00-\u9FA5]/g; //想禁止什么类型,在这里替换正则就可以了
  465. if (screeningStr.test(event)) {
  466. setTimeout(() => {
  467. state.form.userName = event.replace(screeningStr, '');
  468. }, 100)
  469. } else {
  470. setTimeout(() => {
  471. state.form.userName = event;
  472. }, 100)
  473. }
  474. console.log("event.replace(screeningStr, '')", event.replace(screeningStr, ''), event, state.form.userName)
  475. }
  476. const getGlobalParam = () => {
  477. const data = getItem('globalParam')
  478. console.log("全局配置数据", getCodeName('IS_ENABLE', data.miniSupportOther), getCodeName('IS_ENABLE', data.otherUploadProxy), getCodeName('IS_ENABLE', data.miniInfoShow), getCodeName('IS_ENABLE', data.changeOCRData))
  479. // 小程序是否支持他人办理
  480. if (getCodeName('IS_ENABLE', data.miniSupportOther) == '启用') {
  481. state.isEnableOther = true;
  482. } else {
  483. state.isEnableOther = false;
  484. }
  485. // 他人办理时是否上传委托书
  486. if (getCodeName('IS_ENABLE', data.otherUploadProxy) == '启用') {
  487. state.isEnableBook = true;
  488. } else {
  489. state.isEnableBook = false;
  490. }
  491. // 小程序信息带出
  492. if (getCodeName('IS_ENABLE', data.miniInfoShow) == '启用') {
  493. state.isEnableInfo = true;
  494. uni.showModal({
  495. // title: '提示',
  496. content: '是否允许带出用户信息',
  497. success: function (res) {
  498. if (res.confirm) {
  499. console.log('用户点击确定');
  500. } else if (res.cancel) {
  501. console.log('用户点击取消');
  502. }
  503. }
  504. });
  505. } else {
  506. state.isEnableInfo = false;
  507. }
  508. // 允许修改OCR识别出来的数据
  509. if (getCodeName('IS_ENABLE', data.changeOCRData) == '启用') {
  510. state.isEnableOCRData = false;
  511. } else {
  512. state.isEnableOCRData = true;
  513. }
  514. // 申办时是否允许修改OCR识别出来的车辆信息数据
  515. // if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  516. // state.isEnableChangeOCRCarInfo = true;
  517. // } else {
  518. // state.isEnableChangeOCRCarInfo = false;
  519. // }
  520. }
  521. const takePhotoMode = (index, isMy) => {
  522. console.log("index", index, isMy)
  523. state.isTakePhotoModeShow = true
  524. state.choiceIndex = index
  525. state.isMy = isMy
  526. }
  527. const xiangce = (val) => {
  528. console.log("val", val)
  529. var imageType = val;
  530. if (state.choiceIndex == 3) {
  531. var imageType = 1;
  532. } else {
  533. var imageType = 2;
  534. }
  535. uni.chooseImage({
  536. count: 1, //只能选取一张照片
  537. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  538. sourceType: ["album"], //从相册选择
  539. success: function (res) {
  540. state.showImg = false
  541. state.images = res.tempFilePaths[0]
  542. state.phoneType = state.choiceIndex
  543. state.isTakePhotoModeShow = false
  544. if (state.choiceIndex == 3 || state.choiceIndex == 4) {
  545. state.showImg = false
  546. state.images = res.tempFilePaths[0]
  547. state.phoneType = state.choiceIndex
  548. state.isTakePhotoModeShow = false
  549. return
  550. }
  551. console.log("tempFilePaths[0].startsWith('file://')", res.tempFilePaths[0], res.tempFilePaths[0].startsWith('file://'))
  552. },
  553. })
  554. }
  555. const takePhoto = (val) => {
  556. state.showImg = true
  557. console.log("拍照", val)
  558. state.phoneType = val;
  559. }
  560. const confirmReturn = (val) => {
  561. console.log("图片地址val", val)
  562. state.phoneType = 0
  563. state.isTakePhotoModeShow = false
  564. // var imageType = state.choiceIndex;
  565. if (state.choiceIndex == 1) {
  566. var imageType = 1;
  567. var queryCode = etcOcrCard
  568. } else if (state.choiceIndex == 2) {
  569. var imageType = 2;
  570. var queryCode = etcOcrCard
  571. }
  572. if (state.choiceIndex == 3) {
  573. var imageType = 1;
  574. var queryCode = etcCarOcrCard
  575. } else if (state.choiceIndex == 4) {
  576. var imageType = 2;
  577. var queryCode = etcCarOcrCard
  578. }
  579. // uploadFile(val.tempImagePath, imageType, ocrAllQuery).then((data) => {
  580. uploadFile(val.tempImagePath, imageType, queryCode).then((data) => {
  581. if (state.isMy == "my") {
  582. if (state.choiceIndex == "1") {
  583. console.log("身份证上传", data)
  584. state.form.userName = data.name;
  585. state.form.gender = data.gender;
  586. state.form.userIdNum = data.idno;
  587. state.form.ownPosImgUrl = data.imageUrl;
  588. state.form.address = data.address;
  589. } else {
  590. state.form.customerIdVld = data.enddate;
  591. state.form.ownNegImgUrl = data.imageUrl;
  592. }
  593. state.isTakePhotoModeShow = false
  594. } else {
  595. if (state.choiceIndex == "1") {
  596. state.form.agentName = data.name;
  597. state.form.agentGender = data.gender;
  598. state.form.agentIdNum = data.idno;
  599. state.form.agentPosImgUrl = data.imageUrl;
  600. state.form.agentAddress = data.address;
  601. } else if (state.choiceIndex == "2") {
  602. console.log("state.isMy", state.isMy, state.choiceIndex, state.choiceIndex == "1", data)
  603. state.form.agentIdVld = data.enddate;
  604. state.form.agentNegImgUrl = data.imageUrl;
  605. } else if (state.choiceIndex == "3") {
  606. if (data.plate_a.length > 8) {
  607. state.form.vehicleIdNum = data.plate_a.substring(0, 8);
  608. } else {
  609. state.form.vehicleIdNum = data.plate_a;
  610. }
  611. state.form.ownerName = data.man;
  612. state.form.vehicleType = data.vehicle;
  613. state.form.character = data.character;
  614. state.form.vin = data.vin;
  615. state.form.engineNum = data.engine;
  616. state.form.register = data.register;
  617. state.form.issueDate = data.issue;
  618. state.form.vehPosImgUrl = data.imageUrl;
  619. state.form.vehicleModel = data.model;
  620. } else {
  621. state.form.approvedCount = data.apc;
  622. state.form.approvedCountShow = data.apc;
  623. state.form.maintenaceMass = data.unladen;
  624. state.form.maintenaceMassShow = data.unladen;
  625. // 91接口差
  626. // // #ifdef MP-WEIXIN
  627. // state.form.vehicleDimensions = data.overall.replaceAll("×", "X");
  628. // // #endif
  629. // // #ifdef MP-ALIPAY
  630. // state.form.vehicleDimensions = data.overall.replace(/×/g, "X");
  631. // // #endif
  632. // let arr = data.overall.split("×");
  633. // #ifdef MP-WEIXIN
  634. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  635. // #endif
  636. // #ifdef MP-ALIPAY
  637. state.form.vehicleDimensions = data.overall.replace(/x/g, "X");
  638. // #endif
  639. let arr = data.overall.split("x");
  640. state.outlineL = arr[0]; //外廓 长
  641. state.outlineW = arr[1]; //外廓 宽
  642. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  643. state.form.totalMass = data.gross;
  644. state.form.totalMassShow = data.gross;
  645. state.form.vehNegImgUrl = data.imageUrl;
  646. state.form.permittedWeight = data.alc ? data.alc : 0;
  647. state.form.permittedTowWeight = data.towing ? data.towing : 0;
  648. console.log('=====================', state.form.vehNegImgUrl, state)
  649. }
  650. state.isTakePhotoModeShow = false
  651. }
  652. })
  653. }
  654. const cancle = () => {
  655. state.isTakePhotoModeShow = false
  656. }
  657. // 车辆信息
  658. //车牌号输入
  659. const carNumber = (val : any) => {
  660. state.form.vehicleIdNum = val.trim();
  661. };
  662. //提交车辆信息
  663. const savaHandleCar = () => {
  664. if (!checkStr(state.form.userIdNum, 'card')) {
  665. msg('请输入正确身份证');
  666. return;
  667. }
  668. if (!checkStr(state.form.tel, 'mobile')) {
  669. msg('请输入正确手机号');
  670. return;
  671. }
  672. if (!state.form.vehBodyUrl) {
  673. msg("请上传车头照");
  674. return;
  675. }
  676. if (state.form.type == 1) {
  677. state.form.axleCount = 2;
  678. } else {
  679. if (!state.form.axleCount) {
  680. msg("请输入车轴数");
  681. return;
  682. }
  683. }
  684. state.form.vehicleId =
  685. state.form.vehicleIdNum + "_" + state.vehiclePlateColor;
  686. state.form.opId = getItem(StorageKeys.OpenId);
  687. state.form.approvedCount = parseFloat(state.form.approvedCount);
  688. state.form.maintenaceMass = parseFloat(state.form.maintenaceMass);
  689. state.form.totalMass = parseFloat(state.form.totalMass);
  690. state.form.permittedWeight = parseFloat(state.form.permittedWeight);
  691. state.form.permittedTowWeight = parseFloat(state.form.permittedTowWeight);
  692. const options = {
  693. type: 2,
  694. data: state.form,
  695. method: "POST",
  696. showLoading: true,
  697. };
  698. request(carChangeApi, options)
  699. .then((res) => {
  700. const data = stringToJson(res.bizContent);
  701. // 创建工单
  702. // creactWorkOrderRequest().then((val : any) => {
  703. msg("待审核")
  704. setTimeout(() => {
  705. uni.navigateBack({
  706. delta: 2
  707. })
  708. }, 2000)
  709. // })
  710. })
  711. .catch((res) => {
  712. console.log(res);
  713. });
  714. };
  715. const creactWorkOrderRequest = () => {
  716. const options = {
  717. type: 2,
  718. data: {
  719. businessType: state.businessType,
  720. vehiclePlate: state.form.vehicleIdNum,
  721. vehiclePlateColor: state.vehiclePlateColor,
  722. customerId: state.form.customerId
  723. },
  724. method: "POST",
  725. showLoading: true,
  726. };
  727. return new Promise(async (resolve, reject) => {
  728. const res = await request(creactWorkOrder, options);
  729. const data = stringToJson(res.bizContent);
  730. resolve(data);
  731. }).catch((error) => {
  732. reject(error);
  733. });
  734. }
  735. const selectConfirm = (index : any) => {
  736. console.log(index);
  737. state.form.useUserType = state.actionSheetList[index].value;
  738. state.form.useUserTypeName = state.actionSheetList[index].text;
  739. };
  740. //选择车辆用户类型
  741. const userType = (item : any) => {
  742. state.form.useUserType = item.value;
  743. state.form.useUserTypeName = item.text;
  744. state.actionSheetShow = false;
  745. }
  746. // 车头照图片上传
  747. const cardFileImageUpdate = () => {
  748. uni.chooseImage({
  749. count: 1, //只能选取一张照片
  750. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  751. sourceType: ["camera", "album"], //从相册选择
  752. success: function (res) {
  753. uploadFile(res.tempFilePaths[0], "", "").then((data) => {
  754. state.form.vehBodyUrl = data;
  755. })
  756. },
  757. });
  758. };
  759. //外廓尺寸输入框
  760. const outlineInput = (e) => {
  761. state.form.vehicleDimensions =
  762. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  763. };
  764. const bindDateChange1 = (e) => {
  765. state.form.register = e.detail.value
  766. state.changeColor = true;
  767. }
  768. const bindDateChange2 = (e) => {
  769. state.form.issueDate = e.detail.value
  770. state.changeColor = true;
  771. }
  772. </script>
  773. <style lang="scss" scoped>
  774. .title {
  775. font-size: 35rpx;
  776. font-family: Microsoft YaHei;
  777. font-weight: 400;
  778. color: #000000;
  779. line-height: 80rpx;
  780. margin-bottom: 10rpx;
  781. }
  782. .content-wrap {
  783. position: relative;
  784. // margin-top: -50rpx;
  785. padding: 0rpx 30rpx;
  786. display: flex;
  787. .big {
  788. font-size: 30rpx;
  789. font-family: Microsoft YaHei;
  790. font-weight: 400;
  791. color: #333333;
  792. line-height: 24rpx;
  793. }
  794. .nomal {
  795. font-size: 26rpx;
  796. font-family: Microsoft YaHei;
  797. font-weight: 400;
  798. color: #666666;
  799. line-height: 24rpx;
  800. }
  801. .tip {
  802. margin-top: -5px;
  803. width: 117rpx;
  804. height: 16rpx;
  805. background: #00b38b;
  806. opacity: 0.3;
  807. }
  808. }
  809. .content {
  810. padding: 50rpx 30rpx 50rpx 30rpx;
  811. .action {
  812. padding-left: 20rpx;
  813. padding-right: 20rpx;
  814. padding-bottom: 30rpx;
  815. .button {
  816. height: 80rpx;
  817. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  818. border-radius: 40rpx;
  819. font-size: 32rpx;
  820. font-weight: 400;
  821. color: #ffffff;
  822. line-height: 80rpx;
  823. }
  824. }
  825. .item-tips {
  826. .title {
  827. font-size: 30rpx;
  828. font-family: Microsoft YaHei;
  829. font-weight: 400;
  830. color: #000000;
  831. line-height: 24rpx;
  832. }
  833. .tip {
  834. margin-top: 16rpx;
  835. font-size: 24rpx;
  836. font-family: Microsoft YaHei;
  837. font-weight: 400;
  838. color: #999999;
  839. line-height: 24rpx;
  840. }
  841. }
  842. .picture-wrapper {
  843. margin-top: 40rpx;
  844. .bg {
  845. background: #ffffff;
  846. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  847. border-radius: 20rpx;
  848. padding: 40rpx;
  849. display: flex;
  850. // align-items: center;
  851. justify-content: space-between;
  852. .name {
  853. font-size: 34rpx;
  854. font-family: Microsoft YaHei;
  855. font-weight: 400;
  856. color: #000000;
  857. line-height: 34rpx;
  858. }
  859. .value {
  860. margin-top: 20rpx;
  861. font-size: 24rpx;
  862. font-family: Microsoft YaHei;
  863. font-weight: 400;
  864. color: #999999;
  865. line-height: 24rpx;
  866. }
  867. .tip {
  868. margin-top: 20rpx;
  869. text-align: center;
  870. width: 110rpx;
  871. height: 40rpx;
  872. background: rgba(33, 190, 177, 0.2);
  873. border-radius: 6rpx;
  874. .tip-value {
  875. font-size: 20rpx;
  876. font-family: Microsoft YaHei;
  877. font-weight: 400;
  878. color: #0a8f8a;
  879. line-height: 40rpx;
  880. opacity: 1;
  881. }
  882. }
  883. }
  884. .icon {
  885. width: 294rpx;
  886. height: 188rpx;
  887. }
  888. }
  889. .shibie-wrapper {
  890. margin-top: 60rpx;
  891. .title {
  892. font-size: 30rpx;
  893. font-family: Microsoft YaHei;
  894. font-weight: 400;
  895. color: #000000;
  896. line-height: 30rpx;
  897. }
  898. }
  899. .buchong-wrapper {
  900. margin-top: 60rpx;
  901. .title {
  902. font-size: 30rpx;
  903. font-family: Microsoft YaHei;
  904. font-weight: 400;
  905. color: #000000;
  906. line-height: 30rpx;
  907. }
  908. }
  909. .green-tip {
  910. margin-top: 50rpx;
  911. font-size: 24rpx;
  912. font-family: Microsoft YaHei;
  913. font-weight: 400;
  914. color: #00b38b;
  915. line-height: 24rpx;
  916. margin-bottom: 60rpx;
  917. }
  918. }
  919. .choice-takePhoto {
  920. position: absolute;
  921. bottom: 0;
  922. background-color: white;
  923. width: 100%;
  924. border-radius: 20rpx 20rpx 0 0;
  925. }
  926. .choice-takePhoto>view:first-child {
  927. text-align: center;
  928. height: 80rpx;
  929. line-height: 80rpx;
  930. border-bottom: 1rpx solid rgba(127, 127, 127, 0.3);
  931. background-color: white;
  932. }
  933. .choice-takePhoto>view:last-child {
  934. text-align: center;
  935. height: 80rpx;
  936. line-height: 80rpx;
  937. border-top: 6rpx solid rgba(127, 127, 127, 0.1);
  938. background-color: white;
  939. }
  940. .choice-takePhoto>view {
  941. text-align: center;
  942. height: 80rpx;
  943. line-height: 80rpx;
  944. background-color: white;
  945. }
  946. .choice-takePhoto-wrap {
  947. width: 100%;
  948. height: 100vh;
  949. background-color: rgba(127, 127, 127, 0.2);
  950. position: fixed;
  951. left: 0;
  952. top: 0;
  953. z-index: 11111;
  954. }
  955. .hui {
  956. color: #ccc;
  957. }
  958. .hei {
  959. color: black;
  960. }
  961. .goto {
  962. margin-right: 20rpx;
  963. padding: 10rpx;
  964. color: #00b38b;
  965. border: 1rpx solid #00b38b;
  966. border-radius: 20rpx;
  967. }
  968. .flex {
  969. display: flex;
  970. align-items: center;
  971. }
  972. .bettwen-center {
  973. display: flex;
  974. align-items: center;
  975. justify-content: space-between;
  976. }
  977. .card {
  978. margin: 20rpx;
  979. height: 150rpx;
  980. background: #ffffff;
  981. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  982. border-radius: 20rpx;
  983. padding: 20rpx;
  984. display: flex;
  985. justify-content: space-between;
  986. align-items: center;
  987. margin-bottom: 30rpx;
  988. .card-left {
  989. display: flex;
  990. align-items: center;
  991. image {
  992. width: 100rpx;
  993. height: 90rpx;
  994. }
  995. .card-center {
  996. margin-left: 30rpx;
  997. .card-center-head {
  998. font-size: 32rpx;
  999. font-family: Noto Sans S Chinese;
  1000. font-weight: 400;
  1001. color: #333333;
  1002. }
  1003. .tips {
  1004. font-size: 26rpx;
  1005. font-family: Noto Sans S Chinese;
  1006. font-weight: 400;
  1007. color: #666666;
  1008. .tips-card {
  1009. width: 70rpx;
  1010. height: 40rpx;
  1011. background: #d3f2ef;
  1012. border-radius: 6rpx;
  1013. font-size: 20rpx;
  1014. font-family: Noto Sans S Chinese;
  1015. font-weight: 400;
  1016. color: #0a8f8a;
  1017. padding: 5rpx 10rpx;
  1018. margin-left: 20rpx;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. .choose-item {
  1024. margin-right: 20rpx;
  1025. width: 50rpx;
  1026. height: 50rpx;
  1027. border: 1rpx solid #00b38b;
  1028. border-radius: 50%;
  1029. display: flex;
  1030. justify-content: center;
  1031. align-items: center;
  1032. .active {
  1033. width: 38rpx;
  1034. height: 38rpx;
  1035. background: #00b38b;
  1036. border-radius: 50%;
  1037. }
  1038. }
  1039. }
  1040. .content {
  1041. // position: relative;
  1042. // margin-top: -50rpx;
  1043. // padding: 0rpx 30rpx;
  1044. // position: relative;
  1045. .img-pos {
  1046. position: absolute;
  1047. left: 270rpx;
  1048. top: -38rpx;
  1049. right: 50rpx;
  1050. .img-flex {
  1051. display: flex;
  1052. justify-content: space-between;
  1053. align-items: center;
  1054. .car-img {
  1055. width: 86rpx;
  1056. height: 42rpx;
  1057. }
  1058. .flag-img {
  1059. width: 30rpx;
  1060. height: 35rpx;
  1061. }
  1062. }
  1063. }
  1064. .action {
  1065. padding-left: 20rpx;
  1066. padding-right: 20rpx;
  1067. padding-bottom: 30rpx;
  1068. .button {
  1069. height: 80rpx;
  1070. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  1071. border-radius: 40rpx;
  1072. font-size: 32rpx;
  1073. font-weight: 400;
  1074. color: #ffffff;
  1075. line-height: 80rpx;
  1076. }
  1077. }
  1078. .item-tips {
  1079. .title {
  1080. font-size: 30rpx;
  1081. font-family: Microsoft YaHei;
  1082. font-weight: 400;
  1083. color: #000000;
  1084. line-height: 24rpx;
  1085. }
  1086. .tip {
  1087. margin-top: 16rpx;
  1088. font-size: 24rpx;
  1089. font-family: Microsoft YaHei;
  1090. font-weight: 400;
  1091. color: #999999;
  1092. line-height: 24rpx;
  1093. }
  1094. }
  1095. .picture-wrapper {
  1096. margin-top: 40rpx;
  1097. .bg {
  1098. background: #ffffff;
  1099. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  1100. border-radius: 20rpx;
  1101. padding: 40rpx;
  1102. display: flex;
  1103. // align-items: center;
  1104. justify-content: space-between;
  1105. .name {
  1106. font-size: 34rpx;
  1107. font-family: Microsoft YaHei;
  1108. font-weight: 400;
  1109. color: #000000;
  1110. line-height: 34rpx;
  1111. }
  1112. .value {
  1113. margin-top: 20rpx;
  1114. font-size: 24rpx;
  1115. font-family: Microsoft YaHei;
  1116. font-weight: 400;
  1117. color: #999999;
  1118. line-height: 24rpx;
  1119. }
  1120. .tip {
  1121. margin-top: 20rpx;
  1122. text-align: center;
  1123. width: 110rpx;
  1124. height: 40rpx;
  1125. background: rgba(33, 190, 177, 0.2);
  1126. border-radius: 6rpx;
  1127. .tip-value {
  1128. font-size: 20rpx;
  1129. font-family: Microsoft YaHei;
  1130. font-weight: 400;
  1131. color: #0a8f8a;
  1132. line-height: 40rpx;
  1133. opacity: 1;
  1134. }
  1135. }
  1136. }
  1137. .icon {
  1138. width: 294rpx;
  1139. height: 188rpx;
  1140. }
  1141. }
  1142. .shibie-wrapper {
  1143. margin-top: 60rpx;
  1144. .title {
  1145. font-size: 30rpx;
  1146. font-family: Microsoft YaHei;
  1147. font-weight: 400;
  1148. color: #000000;
  1149. line-height: 30rpx;
  1150. }
  1151. }
  1152. .buchong-wrapper {
  1153. margin-top: 60rpx;
  1154. .title {
  1155. font-size: 30rpx;
  1156. font-family: Microsoft YaHei;
  1157. font-weight: 400;
  1158. color: #000000;
  1159. line-height: 30rpx;
  1160. }
  1161. }
  1162. .green-tip {
  1163. margin-top: 50rpx;
  1164. font-size: 24rpx;
  1165. font-family: Microsoft YaHei;
  1166. font-weight: 400;
  1167. color: #00b38b;
  1168. line-height: 24rpx;
  1169. margin-bottom: 60rpx;
  1170. }
  1171. }
  1172. .form-item {
  1173. display: flex;
  1174. font-size: 28rpx;
  1175. justify-content: space-between;
  1176. align-items: center;
  1177. }
  1178. .form-item label {}
  1179. .form-item .input-box {
  1180. display: flex;
  1181. align-items: center;
  1182. }
  1183. .form-item .select {
  1184. flex: 1;
  1185. background: #f1f1f1;
  1186. padding: 6rpx 20rpx;
  1187. margin: 0 10rpx;
  1188. min-height: 48rpx;
  1189. line-height: 48rpx;
  1190. border-radius: 8rpx;
  1191. }
  1192. .form-item .icon {
  1193. width: 28rpx;
  1194. height: 32rpx;
  1195. }
  1196. .form-item .input-box input {
  1197. width: 90rpx;
  1198. background: #f1f1f1;
  1199. border-radius: 8rpx;
  1200. padding: 0 5rpx;
  1201. }
  1202. .form-item .sub-text {
  1203. color: #808080;
  1204. padding-left: 10rpx;
  1205. }
  1206. .form-item .sub-label {
  1207. padding: 0 10rpx;
  1208. }
  1209. .window {
  1210. padding: 60rpx 30rpx;
  1211. }
  1212. .window .window-item {
  1213. border: 1px solid #00b38b;
  1214. background: rgba(0, 179, 139, .1);
  1215. border-radius: 10rpx;
  1216. padding: 16rpx 30rpx;
  1217. font-size: 30rpx;
  1218. margin-bottom: 10rpx;
  1219. }
  1220. ::v-deep .u-input__input {
  1221. background: transparent;
  1222. }
  1223. </style>