You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

car-release.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  1. <template>
  2. <navBar title="行驶证信息上传" :scrollTop="scrollTop"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content">
  5. <view class="item-tips">
  6. <view class="title"> 上传后请核对识别信息 </view>
  7. <view class="tip"> 如有错误请及时手动修改 </view>
  8. </view>
  9. <view class="picture-wrapper" @click="cardImageOcr('1')">
  10. <view class="bg">
  11. <view class="">
  12. <view class="name"> 行驶证主页 </view>
  13. <view class="value"> 上传行驶证的主页 </view>
  14. <view class="tip">
  15. <view class="tip-value"> 拍摄规范 </view>
  16. </view>
  17. </view>
  18. <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`">
  19. </image>
  20. <image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image>
  21. </view>
  22. </view>
  23. <view class="picture-wrapper" @click="cardImageOcr('2')">
  24. <view class="bg">
  25. <view class="">
  26. <view class="name"> 行驶证副页 </view>
  27. <view class="value"> 上传行驶证的副页 </view>
  28. <view class="tip">
  29. <view class="tip-value"> 拍摄规范 </view>
  30. </view>
  31. </view>
  32. <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`">
  33. </image>
  34. <image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image>
  35. </view>
  36. </view>
  37. <view class="picture-wrapper" @click="cardFileImageUpdate()">
  38. <view class="bg">
  39. <view class="">
  40. <view class="name"> 车头照 </view>
  41. <view class="value"> 上传汽车的车头照片 </view>
  42. <view class="tip">
  43. <view class="tip-value"> 拍摄规范 </view>
  44. </view>
  45. </view>
  46. <image v-if="!state.form.vehBodyUrl" class="icon" :src="`${$imgUrl}applyCard/chetou.png`">
  47. </image>
  48. <image v-else class="icon" :src="strReplace(state.form.vehBodyUrl)"></image>
  49. </view>
  50. </view>
  51. <view class="shibie-wrapper">
  52. <view class="title"> 识别内容如下 </view>
  53. <view class="">
  54. <u-form label-width="200" :model="state.form" ref="uForm">
  55. <u-form-item label="车牌号">
  56. <!-- <u-input inputAlign="right" placeholder='请输入车牌号' v-model="state.form.vehicleIdNum" /> -->
  57. <car-number-input @numberInputResult="carNumber"
  58. :defaultStr="state.form.vehicleIdNum"></car-number-input>
  59. </u-form-item>
  60. <u-form-item label="所有人">
  61. <u-input inputAlign="right" placeholder="请输入所有人" v-model="state.form.man"
  62. :disabled="state.isEnableChangeOCRCarInfo" />
  63. </u-form-item>
  64. <u-form-item label="车辆类型">
  65. <u-input inputAlign="right" placeholder="请输入车辆类型" v-model="state.form.vehicleType"
  66. :disabled="state.isEnableChangeOCRCarInfo" />
  67. </u-form-item>
  68. <u-form-item label="使用性质">
  69. <u-input inputAlign="right" placeholder="请输入使用性质" v-model="state.form.character"
  70. :disabled="state.isEnableChangeOCRCarInfo" />
  71. </u-form-item>
  72. <u-form-item label="车辆识别代号">
  73. <u-input inputAlign="right" placeholder="请输入车辆识别代号" v-model="state.form.vin"
  74. :disabled="state.isEnableChangeOCRCarInfo" />
  75. </u-form-item>
  76. <u-form-item label="发动机号码">
  77. <u-input inputAlign="right" placeholder="请输入发动机号码" v-model="state.form.engineNum"
  78. :disabled="state.isEnableChangeOCRCarInfo" />
  79. </u-form-item>
  80. <u-form-item label="注册日期">
  81. <picker mode="date" :value="state.form.register" @change="bindDateChange1"
  82. :disabled="state.isEnableChangeOCRCarInfo">
  83. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  84. {{state.form.register}}
  85. </view>
  86. </picker>
  87. <!-- <u-input inputAlign="right" placeholder="请输入注册日期" v-model="state.form.register" :disabled="state.isEnableChangeOCRCarInfo" /> -->
  88. </u-form-item>
  89. <u-form-item label="发证日期">
  90. <picker mode="date" :value="state.form.issueDate" @change="bindDateChange2"
  91. :disabled="state.isEnableChangeOCRCarInfo">
  92. <view class="uni-input" style="text-align: right;" :class="state.changeColor?'hei':'hui'">
  93. {{state.form.issueDate}}
  94. </view>
  95. </picker>
  96. <!-- <u-input inputAlign="right" placeholder="请输入发证日期" v-model="state.form.issueDate" :disabled="state.isEnableChangeOCRCarInfo"/> -->
  97. </u-form-item>
  98. <u-form-item label="核定载人数">
  99. <u-input inputAlign="right" placeholder="请输入核定载人数" v-model="state.form.approvedCount"
  100. :disabled="state.isEnableChangeOCRCarInfo" />
  101. </u-form-item>
  102. <u-form-item label="整备质量">
  103. <u-input inputAlign="right" placeholder="请输入整备质量" v-model="state.form.maintenaceMass"
  104. :disabled="state.isEnableChangeOCRCarInfo" />
  105. </u-form-item>
  106. <!-- <u-form-item label="外廊尺寸">
  107. <u-input inputAlign="right" placeholder='请输入外廊尺寸' v-model="state.form.vehicleDimensions" />
  108. </u-form-item> -->
  109. <view class="form-item">
  110. <label>外廊尺寸</label>
  111. <view class="input-box">
  112. <text class="sub-label">长</text>
  113. <input v-model="state.outlineL" @input="outlineInput"
  114. :disabled="state.isEnableChangeOCRCarInfo" />
  115. <text class="sub-text">X</text>
  116. <text class="sub-label">宽</text>
  117. <input v-model="state.outlineW" @input="outlineInput"
  118. :disabled="state.isEnableChangeOCRCarInfo" />
  119. <text class="sub-text">X</text>
  120. <text class="sub-label">高</text>
  121. <input v-model="state.outlineH" @input="outlineInput"
  122. :disabled="state.isEnableChangeOCRCarInfo" />
  123. <text class="sub-text">mm</text>
  124. </view>
  125. </view>
  126. <u-form-item label="总质量">
  127. <u-input inputAlign="right" placeholder="请输入总质量" v-model="state.form.totalMass"
  128. :disabled="state.isEnableChangeOCRCarInfo" />
  129. </u-form-item>
  130. <view class="form-item">
  131. <label>车辆用户类型</label>
  132. <view class="select" @click="state.actionSheetShow = true">{{state.form.useUserTypeName}}</view>
  133. <image :src="`${$imgUrl}common/arror-down.png`" class="icon"
  134. @click="state.actionSheetShow = true"></image>
  135. </view>
  136. <!-- <u-form-item label="车辆用户类型">
  137. <u-input @click="state.actionSheetShow = true" placeholder="请输入车辆用户类型" inputAlign="right"
  138. v-model="state.form.useUserTypeName" height="38" type="textarea" :autoHeight="true" />
  139. </u-form-item> -->
  140. </u-form>
  141. </view>
  142. </view>
  143. <view class="green-tip">
  144. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  145. </view>
  146. <view class="action">
  147. <button type="default" class="button" @click="savaHandle()">
  148. 下一步
  149. </button>
  150. </view>
  151. <!-- <u-select v-model="state.actionSheetShow" :list="state.actionSheetList" @confirm="selectConfirm"></u-select>
  152. <u-action-sheet @click="selectConfirm" :list="state.actionSheetList" v-model="state.actionSheetShow">
  153. </u-action-sheet> -->
  154. <!-- 车辆类型弹窗 -->
  155. <u-popup mode="bottom" v-model="state.actionSheetShow">
  156. <view class="window">
  157. <view class="window-item" v-for="item in state.actionSheetList" :key="item.value"
  158. @click="userType(item)">{{item.text}}</view>
  159. </view>
  160. </u-popup>
  161. <u-popup mode="bottom" v-model="state.show">
  162. <view v-if="state.data.transferLogs && state.data.transferLogs.length" class="">
  163. <view class="bettwen-center">
  164. <view style="padding: 20rpx" class="title"> 选择卡签 </view>
  165. <view class="goto"> 直接跳过,不使用此套卡签 </view>
  166. </view>
  167. <view @click="guohuAction(item)" class="card" v-for="(item, index) in state.data.transferLogs"
  168. :key="index" style="margin-top: 30rpx; margin-bottom: 30rpx">
  169. <view v-if="item.status === 'WAITING'" class="card-left">
  170. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  171. <view class="card-center">
  172. <view class="flex">
  173. <view class=""> 卡号: </view>
  174. <view class="card-center-head">
  175. {{ item.cardId }}
  176. </view>
  177. </view>
  178. <view style="margin-top: 10rpx" class="flex">
  179. <view class=""> OBU编号: </view>
  180. <view class="card-center-head">
  181. {{ item.obuId }}
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </u-popup>
  189. </view>
  190. </template>
  191. <script setup lang="ts">
  192. import { reactive, ref } from "vue";
  193. import navBgCar from "./components/nav-bg-car4";
  194. import navBar from "@/components/nav-bar/nav-bar2.vue";
  195. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  196. import { pathToBase64 } from "@/utils/util/imageTool.js";
  197. import {
  198. etcCarCardInfoSubmit,
  199. etcCarOcrCard,
  200. fileUpload,
  201. envs,
  202. queryGuoHuJianCe,
  203. queryGuoHuCaoZuo,
  204. } from "@/utils/network/api.js";
  205. import { request } from "@/utils/network/request.js";
  206. import { stringToJson } from "@/utils/network/encryption";
  207. import { onLoad, onPageScroll } from "@dcloudio/uni-app";
  208. import { getObuStatus } from "@/datas/obuStatus.js";
  209. import { getEtcCardStatus } from "@/datas/etcCardStatus.js";
  210. import { getItem, StorageKeys } from "@/utils/storage";
  211. import { hasLogin } from "@/utils/utils.ts"
  212. import {
  213. getCodeName
  214. } from "@/datas/queryKey.js";
  215. const scrollTop = ref(0);
  216. //监听页面滚动
  217. onPageScroll((e) => {
  218. scrollTop.value = e.scrollTop;
  219. });
  220. //车牌号输入
  221. const carNumber = (val : any) => {
  222. state.form.vehicleIdNum = val.trim();
  223. };
  224. //提交车辆信息
  225. const savaHandle = () => {
  226. state.form.vehicleId =
  227. state.form.vehicleIdNum + "_" + state.vehiclePlateColor;
  228. state.form.opId = getItem(StorageKeys.OpenId);
  229. const options = {
  230. type: 2,
  231. data: state.form,
  232. method: "POST",
  233. showLoading: true,
  234. };
  235. request(etcCarCardInfoSubmit, options)
  236. .then((res) => {
  237. const data = stringToJson(res.bizContent);
  238. queryGuoHuJianCeAction().then((value) => {
  239. if (value.transferLogs && value.transferLogs.length > 0) {
  240. state.data.transferLogs = value.transferLogs;
  241. state.show = true;
  242. } else {
  243. // 签约
  244. if (state.isSign == 2 || state.isSign == 3) {
  245. if (!hasLogin()) {
  246. uni.redirectTo({
  247. url: `/subpackage/orders/addAddress?orderId=${state.form.orderId
  248. }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  249. });
  250. } else {
  251. // uni.redirectTo({
  252. // url: `/subpackage/orders/release-products?orderId=${state.form.orderId
  253. // }&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  254. // });
  255. uni.redirectTo({
  256. url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  257. });
  258. }
  259. } else {
  260. // 不签约
  261. // uni.redirectTo({
  262. // url: `/subpackage/orders/sign-up?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`,
  263. // });
  264. uni.redirectTo({
  265. url: `/subpackage/orders/interestsList?orderId=${state.form.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}`
  266. });
  267. // uni.redirectTo({
  268. // url: `/subpackage/orders/release-products?orderId=${state.form.orderId}&clientFee=${getItem('clientFee')}&&id=${getItem('productId')}`,
  269. // });
  270. }
  271. }
  272. });
  273. })
  274. .catch((res) => {
  275. console.log(res);
  276. });
  277. };
  278. const selectConfirm = (index : any) => {
  279. console.log(index);
  280. state.form.useUserType = state.actionSheetList[index].value;
  281. state.form.useUserTypeName = state.actionSheetList[index].text;
  282. };
  283. //选择车辆用户类型
  284. const userType = (item : any) => {
  285. state.form.useUserType = item.value;
  286. state.form.useUserTypeName = item.text;
  287. state.actionSheetShow = false;
  288. }
  289. //车头照图片上传
  290. const cardFileImageUpdate = () => {
  291. uni.chooseImage({
  292. count: 1, //只能选取一张照片
  293. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  294. sourceType: ["camera", "album"], //从相册选择
  295. success: function (res) {
  296. pathToBase64(res.tempFilePaths[0])
  297. .then((path) => {
  298. var data = {
  299. fileBase64: path,
  300. };
  301. const options = {
  302. type: 2,
  303. data: data,
  304. method: "POST",
  305. showLoading: true,
  306. };
  307. request(fileUpload, options).then((res) => {
  308. const data = stringToJson(res.bizContent);
  309. console.log(data);
  310. state.form.vehBodyUrl = data.data.url;
  311. });
  312. })
  313. .catch((error) => { });
  314. },
  315. });
  316. };
  317. const state = reactive({
  318. changeColor: false,
  319. data: {
  320. transferLogs: [],
  321. },
  322. actionSheetShow: false,
  323. actionSheetList: [],
  324. form: {
  325. orderId: "", //订单ID
  326. man: "", //所有人
  327. character: "", //使用性质
  328. register: "请输入注册日期", //注册日期
  329. customerId: "", //用户编号
  330. vehicleId: "",
  331. vehicleIdNum: "", //车牌编号
  332. issueDate: "请输入发证日期", //发证日期
  333. vehPosImgUrl: "", //行驶证正面
  334. vehNegImgUrl: "", //行驶证证反面
  335. type: "0", //0,客车 1.货车
  336. useUserType: 0, //车辆用户类型
  337. useUserTypeName: "普通车",
  338. vehicleSign: 2, //前/后装标识
  339. vin: "", //车辆识别代号
  340. engineNum: "", //发动机号码
  341. vehicleType: "", //车辆类型
  342. vehicleModel: "", //行驶证品牌型号
  343. approvedCount: undefined, //核定人数
  344. totalMass: undefined, //总质量
  345. maintenaceMass: undefined, //整备质量
  346. permittedWeight: "", //核定载质量
  347. vehicleDimensions: "", //车辆尺寸
  348. permittedTowWeight: "", //准牵引总质量
  349. axleCount: "", //车轴数
  350. ownerName: "", //车主姓名
  351. ownerIdType: "", //车主证件类型
  352. ownerIdNum: "", //车主证件号码
  353. ownPosImgUrl: "", //车主证件正面图片
  354. ownNegImgUrl: "", //车主证件反面图片
  355. agreementId: "", //签约编号
  356. channelId: "5201018892300000001", //编号渠道
  357. scenePayType: "", //
  358. transportIdNum: "", //道路运输证编号
  359. licenseIdNum: "", //经营许可证编号
  360. vehBodyUrl: "", //车身照片
  361. proxyUrl: "", //委托书地址
  362. opId: "",
  363. },
  364. vehiclePlateColor: undefined,
  365. orderId: "",
  366. // type: undefined, //标记来源是否登录 1为未登录数据 - 需要新增地址
  367. show: false,
  368. isMyPeopple: true,
  369. outlineL: "",
  370. outlineW: "",
  371. outlineH: "",
  372. isSign: '',
  373. isEnableChangeOCRCarInfo: true, //申办时是否允许修改OCR识别出来的车辆信息数据
  374. });
  375. onLoad((option : any) => {
  376. state.form.orderId = option.orderId;
  377. // state.type = option.type;
  378. state.form.type = option.type;
  379. state.vehiclePlateColor = option.vehiclePlateColor;
  380. state.isSign = option.isSign
  381. console.log("option", option)
  382. getGlobalParam();
  383. if (option.type == 1) {
  384. state.actionSheetList = [{
  385. text: "普通车",
  386. value: 0,
  387. }]
  388. } else {
  389. state.actionSheetList = [{
  390. text: "普通车",
  391. value: 0,
  392. },
  393. {
  394. text: "道路运输证经营范围仅有“货物专用运输(集装箱) ”的牵引车办理J类型集装箱",
  395. value: 24,
  396. },
  397. {
  398. text: "道路运输证经营范围不含“货物专用运输(集装箱)”的牵引车",
  399. value: 27,
  400. },
  401. {
  402. text: '道路运输证经营范围除“货物专用运输 (集装 箱)"外,还有“普通货运”等其他项目的牵引车办理J2类型集装箱',
  403. value: 28,
  404. }]
  405. }
  406. });
  407. //外廓尺寸输入框
  408. const outlineInput = (e) => {
  409. state.form.vehicleDimensions =
  410. state.outlineL + "X" + state.outlineW + "X" + state.outlineH + "mm";
  411. };
  412. //orc接口调用
  413. const cardImageOcr = (val : any) => {
  414. state.changeColor = true;
  415. var imageType = val;
  416. uni.chooseImage({
  417. count: 1, //只能选取一张照片
  418. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  419. sourceType: ["camera", "album"], //从相册选择
  420. success: function (res) {
  421. pathToBase64(res.tempFilePaths[0])
  422. .then((path) => {
  423. console.log("Base64返回", path)
  424. var data = {
  425. source: "1",
  426. agencyId: "52010106004",
  427. imageType: imageType,
  428. fileName: res.tempFilePaths[0],
  429. imageBase64: path,
  430. };
  431. const options = {
  432. type: 2,
  433. data: data,
  434. method: "POST",
  435. showLoading: true,
  436. };
  437. request(etcCarOcrCard, options).then((res) => {
  438. const data = stringToJson(res.bizContent);
  439. console.log(data);
  440. if (val === "1") {
  441. state.form.vehicleIdNum = data.plate_a;
  442. state.form.man = data.man;
  443. state.form.vehicleType = data.vehicle;
  444. state.form.character = data.character;
  445. state.form.vin = data.vin;
  446. state.form.engineNum = data.engine;
  447. state.form.register = data.register;
  448. state.form.issueDate = data.issue;
  449. state.form.vehPosImgUrl = data.imageUrl;
  450. state.form.vehicleModel = data.model;
  451. } else {
  452. state.form.approvedCount = parseFloat(data.apc);
  453. state.form.maintenaceMass = parseFloat(data.unladen);
  454. state.form.vehicleDimensions = data.overall.replaceAll("x", "X");
  455. let arr = data.overall.split("x");
  456. state.outlineL = arr[0]; //外廓 长
  457. state.outlineW = arr[1]; //外廓 宽
  458. state.outlineH = arr[2].substring(0, arr[2].length - 2); //外廓 高
  459. state.form.totalMass = parseFloat(data.gross);
  460. state.form.vehNegImgUrl = data.imageUrl;
  461. }
  462. });
  463. })
  464. .catch((error) => { console.log("Base64异常", error) });
  465. },
  466. });
  467. };
  468. //过户检测
  469. const queryGuoHuJianCeAction = () => {
  470. var data = {
  471. orderId: state.form.orderId,
  472. };
  473. const options = {
  474. type: 2,
  475. data: data,
  476. method: "POST",
  477. showLoading: true,
  478. };
  479. return new Promise(async (resolve, reject) => {
  480. const res = await request(queryGuoHuJianCe, options);
  481. const data = stringToJson(res.bizContent);
  482. resolve(data);
  483. }).catch((error) => {
  484. reject(error);
  485. });
  486. };
  487. //过户操作
  488. const guohuAction = (val) => {
  489. var data = {
  490. orderId: state.form.orderId,
  491. serviceType: "USE",
  492. obuId: val.obuId,
  493. cardId: val.cardId,
  494. };
  495. const options = {
  496. type: 2,
  497. data: data,
  498. method: "POST",
  499. showLoading: true,
  500. };
  501. return new Promise(async (resolve, reject) => {
  502. const res = await request(queryGuoHuCaoZuo, options);
  503. const data = stringToJson(res.bizContent);
  504. state.show = false;
  505. uni.navigateTo({
  506. url: `/subpackage/orders/choice-product?orderId=${state.form.orderId}`,
  507. });
  508. }).catch((error) => {
  509. reject(error);
  510. });
  511. };
  512. //替换图片地址
  513. const strReplace = (str : string) => {
  514. let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl);
  515. imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl);
  516. return imgUrl;
  517. };
  518. const getGlobalParam = () => {
  519. const data = getItem('globalParam')
  520. console.log("全局配置数据", getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo))
  521. // 申办时是否允许修改OCR识别出来的车辆信息数据
  522. if (getCodeName('IS_ENABLE', data.applyChangeOCRCarInfo) == '启用') {
  523. state.isEnableChangeOCRCarInfo = true;
  524. } else {
  525. state.isEnableChangeOCRCarInfo = false;
  526. }
  527. }
  528. const bindDateChange1 = (e) => {
  529. state.form.register = e.detail.value
  530. state.changeColor = true;
  531. }
  532. const bindDateChange2 = (e) => {
  533. state.form.issueDate = e.detail.value
  534. state.changeColor = true;
  535. }
  536. </script>
  537. <style lang="scss" scoped>
  538. .hui {
  539. color: #ccc;
  540. }
  541. .hei {
  542. color: black;
  543. }
  544. .goto {
  545. margin-right: 20rpx;
  546. padding: 10rpx;
  547. color: #00b38b;
  548. border: 1rpx solid #00b38b;
  549. border-radius: 20rpx;
  550. }
  551. .flex {
  552. display: flex;
  553. align-items: center;
  554. }
  555. .bettwen-center {
  556. display: flex;
  557. align-items: center;
  558. justify-content: space-between;
  559. }
  560. .card {
  561. margin: 20rpx;
  562. height: 150rpx;
  563. background: #ffffff;
  564. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  565. border-radius: 20rpx;
  566. padding: 20rpx;
  567. display: flex;
  568. justify-content: space-between;
  569. align-items: center;
  570. margin-bottom: 30rpx;
  571. .card-left {
  572. display: flex;
  573. align-items: center;
  574. image {
  575. width: 100rpx;
  576. height: 90rpx;
  577. }
  578. .card-center {
  579. margin-left: 30rpx;
  580. .card-center-head {
  581. font-size: 32rpx;
  582. font-family: Noto Sans S Chinese;
  583. font-weight: 400;
  584. color: #333333;
  585. }
  586. .tips {
  587. font-size: 26rpx;
  588. font-family: Noto Sans S Chinese;
  589. font-weight: 400;
  590. color: #666666;
  591. .tips-card {
  592. width: 70rpx;
  593. height: 40rpx;
  594. background: #d3f2ef;
  595. border-radius: 6rpx;
  596. font-size: 20rpx;
  597. font-family: Noto Sans S Chinese;
  598. font-weight: 400;
  599. color: #0a8f8a;
  600. padding: 5rpx 10rpx;
  601. margin-left: 20rpx;
  602. }
  603. }
  604. }
  605. }
  606. .choose-item {
  607. margin-right: 20rpx;
  608. width: 50rpx;
  609. height: 50rpx;
  610. border: 1rpx solid #00b38b;
  611. border-radius: 50%;
  612. display: flex;
  613. justify-content: center;
  614. align-items: center;
  615. .active {
  616. width: 38rpx;
  617. height: 38rpx;
  618. background: #00b38b;
  619. border-radius: 50%;
  620. }
  621. }
  622. }
  623. .content {
  624. position: relative;
  625. margin-top: -50rpx;
  626. padding: 0rpx 30rpx;
  627. position: relative;
  628. .img-pos {
  629. position: absolute;
  630. left: 270rpx;
  631. top: -38rpx;
  632. right: 50rpx;
  633. .img-flex {
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. .car-img {
  638. width: 86rpx;
  639. height: 42rpx;
  640. }
  641. .flag-img {
  642. width: 30rpx;
  643. height: 35rpx;
  644. }
  645. }
  646. }
  647. .action {
  648. padding-left: 20rpx;
  649. padding-right: 20rpx;
  650. padding-bottom: 30rpx;
  651. .button {
  652. height: 80rpx;
  653. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  654. border-radius: 40rpx;
  655. font-size: 32rpx;
  656. font-weight: 400;
  657. color: #ffffff;
  658. line-height: 80rpx;
  659. }
  660. }
  661. .item-tips {
  662. .title {
  663. font-size: 30rpx;
  664. font-family: Microsoft YaHei;
  665. font-weight: 400;
  666. color: #000000;
  667. line-height: 24rpx;
  668. }
  669. .tip {
  670. margin-top: 16rpx;
  671. font-size: 24rpx;
  672. font-family: Microsoft YaHei;
  673. font-weight: 400;
  674. color: #999999;
  675. line-height: 24rpx;
  676. }
  677. }
  678. .picture-wrapper {
  679. margin-top: 40rpx;
  680. .bg {
  681. background: #ffffff;
  682. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  683. border-radius: 20rpx;
  684. padding: 40rpx;
  685. display: flex;
  686. // align-items: center;
  687. justify-content: space-between;
  688. .name {
  689. font-size: 34rpx;
  690. font-family: Microsoft YaHei;
  691. font-weight: 400;
  692. color: #000000;
  693. line-height: 34rpx;
  694. }
  695. .value {
  696. margin-top: 20rpx;
  697. font-size: 24rpx;
  698. font-family: Microsoft YaHei;
  699. font-weight: 400;
  700. color: #999999;
  701. line-height: 24rpx;
  702. }
  703. .tip {
  704. margin-top: 20rpx;
  705. text-align: center;
  706. width: 110rpx;
  707. height: 40rpx;
  708. background: rgba(33, 190, 177, 0.2);
  709. border-radius: 6rpx;
  710. .tip-value {
  711. font-size: 20rpx;
  712. font-family: Microsoft YaHei;
  713. font-weight: 400;
  714. color: #0a8f8a;
  715. line-height: 40rpx;
  716. opacity: 1;
  717. }
  718. }
  719. }
  720. .icon {
  721. width: 294rpx;
  722. height: 188rpx;
  723. }
  724. }
  725. .shibie-wrapper {
  726. margin-top: 60rpx;
  727. .title {
  728. font-size: 30rpx;
  729. font-family: Microsoft YaHei;
  730. font-weight: 400;
  731. color: #000000;
  732. line-height: 30rpx;
  733. }
  734. }
  735. .buchong-wrapper {
  736. margin-top: 60rpx;
  737. .title {
  738. font-size: 30rpx;
  739. font-family: Microsoft YaHei;
  740. font-weight: 400;
  741. color: #000000;
  742. line-height: 30rpx;
  743. }
  744. }
  745. .green-tip {
  746. margin-top: 50rpx;
  747. font-size: 24rpx;
  748. font-family: Microsoft YaHei;
  749. font-weight: 400;
  750. color: #00b38b;
  751. line-height: 24rpx;
  752. margin-bottom: 60rpx;
  753. }
  754. }
  755. .form-item {
  756. display: flex;
  757. font-size: 28rpx;
  758. justify-content: space-between;
  759. align-items: center;
  760. }
  761. .form-item label {}
  762. .form-item .input-box {
  763. display: flex;
  764. align-items: center;
  765. }
  766. .form-item .select {
  767. flex: 1;
  768. background: #f1f1f1;
  769. padding: 6rpx 20rpx;
  770. margin: 0 10rpx;
  771. min-height: 48rpx;
  772. line-height: 48rpx;
  773. border-radius: 8rpx;
  774. }
  775. .form-item .icon {
  776. width: 28rpx;
  777. height: 32rpx;
  778. }
  779. .form-item .input-box input {
  780. width: 90rpx;
  781. background: #f1f1f1;
  782. border-radius: 8rpx;
  783. padding: 0 5rpx;
  784. }
  785. .form-item .sub-text {
  786. color: #808080;
  787. padding-left: 10rpx;
  788. }
  789. .form-item .sub-label {
  790. padding: 0 10rpx;
  791. }
  792. .window {
  793. padding: 60rpx 30rpx;
  794. }
  795. .window .window-item {
  796. border: 1px solid #00b38b;
  797. background: rgba(0, 179, 139, .1);
  798. border-radius: 10rpx;
  799. padding: 16rpx 30rpx;
  800. font-size: 30rpx;
  801. margin-bottom: 10rpx;
  802. }
  803. ::v-deep .u-input__input {
  804. background: transparent;
  805. }
  806. </style>