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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <view class="selectCar-box">
  3. <view class="details">
  4. <view class="title"> 基础信息 </view>
  5. <view class="details-item">
  6. <view> 订单编号: </view>
  7. <text>{{ orderInfos.orderId }}</text>
  8. </view>
  9. <view class="details-item">
  10. <view> 用户名称: </view>
  11. <text>{{ orderInfos.ownerName }}</text>
  12. </view>
  13. <view class="details-item">
  14. <view> 用户证件类型: </view>
  15. <text>{{ getCodeName('CERTIFICATE_TYPE',orderInfos.ownerIdtype) }}</text>
  16. </view>
  17. <view class="details-item">
  18. <view> 用户证件号: </view>
  19. <text>{{ orderInfos.ownerIdnum }}</text>
  20. </view>
  21. <view class="details-item">
  22. <view> 订单车牌号: </view>
  23. <text style="color: #00b38b">{{ orderInfos.vehiclePlate }}</text>
  24. </view>
  25. <view class="details-item">
  26. <view> 车牌颜色: </view>
  27. <text style="color: #00b38b">{{
  28. orderInfos.vehiclePlateColorStr
  29. }}</text>
  30. </view>
  31. <view class="details-item">
  32. <view> 收费车型: </view>
  33. <text>{{ orderInfos.vehicleType }}</text>
  34. </view>
  35. </view>
  36. <view class="title"> 卡信息 </view>
  37. <view class="card">
  38. <view class="card-left">
  39. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  40. <view class="card-center">
  41. <view class="card-center-head"> {{orderInfos.cardId}} </view>
  42. <view class="tips">
  43. <!-- <text>储蓄卡</text> -->
  44. <text class="tips-card">{{getCodeName('CARD_STATE_TYPE',orderInfos.cardStatus)}}</text>
  45. </view>
  46. <view class="choose-item1"> 有效期:{{orderInfos.cardExpireTime }}</view>
  47. </view>
  48. </view>
  49. <view class="choose-item" @click="choose(1)">
  50. <view class="active" v-if="flag.includes(1)">
  51. </view>
  52. </view>
  53. </view>
  54. <view class="title"> OBU设备信息 </view>
  55. <view class="card">
  56. <view class="card-left">
  57. <image :src="`${$imgUrl}card1.png`" mode=""></image>
  58. <view class="card-center">
  59. <view class="card-center-head"> {{orderInfos.obuId}} </view>
  60. <view class="tips">
  61. <!-- <text>储蓄卡</text> -->
  62. <text class="tips-card">{{getCodeName('OBU_STATE_TYPE',orderInfos.obuStatus)}}</text>
  63. </view>
  64. <view class="choose-item1"> 有效期:{{orderInfos.obuExpireTime }} </view>
  65. </view>
  66. </view>
  67. <view class="choose-item" @click="choose(2)">
  68. <view class="active" v-if="flag.includes(2)">
  69. </view>
  70. </view>
  71. </view>
  72. <button class="submit" @click="toPage" v-if="!state.flag">卡签续期</button>
  73. <button class="submit" @click="toBack" v-else="state.flag">返回服务中心</button>
  74. <view class="mask" v-show="state.showPopup">
  75. <view class="main">
  76. <view class="top">
  77. <image class="icon-close" :src="`${$imgUrl}common/icon-close.png`" @click="cancel"></image>
  78. </view>
  79. <image class="icon-success" :src="`${$imgUrl}bluetooth/card-success.png`"></image>
  80. <view class="title">{{state.successName}}续期成功!</view>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script setup>
  86. import {
  87. getCodeName
  88. } from "@/datas/queryKey.js";
  89. import {
  90. reactive,
  91. ref
  92. } from "vue";
  93. import {
  94. navTo
  95. } from "@/utils/utils";
  96. import {
  97. onLoad,
  98. onUnload,
  99. onShow
  100. } from "@dcloudio/uni-app";
  101. import {
  102. request
  103. } from "@/utils/network/request.js";
  104. import {
  105. orderDetail,
  106. cardRenewal,
  107. writeCardBack,
  108. cardModifyConfirm,
  109. obuRenewal,
  110. modifyObuVehicleInfo,
  111. obuActivation,
  112. renewalTimeApi
  113. } from "@/utils/network/api.js";
  114. import {
  115. getVehiclePlateColor
  116. } from "@/datas/vehiclePlateColor";
  117. import {
  118. searchVehicleInfoQuery
  119. } from "@/utils/publicRequest";
  120. const cmd = require("../../../static/etcUtil/cmdConfig.js");
  121. import {
  122. IntegerToHexString,
  123. AsciToHexString,
  124. } from "@/utils/util/fileData.js";
  125. import {
  126. stringToJson
  127. } from "@/utils/network/encryption";
  128. const tools = require("../../../static/etcUtil/tools.js");
  129. const bluetoothUtil = require("../../../static/etcUtil/index.js");
  130. const state = reactive({
  131. showPopup: false,
  132. flag: false,
  133. successName: ""
  134. })
  135. const flag = reactive([])
  136. const type = ref('')
  137. const fileDataStrings = reactive({
  138. approvedCount: 0, //核载人数
  139. cardId: "", //卡号
  140. obuId: "", //obu号
  141. obuId: "", //obu号
  142. packageNum: "", //套餐编号
  143. axleCount: 0, //轴数
  144. axleDistance: "", //轴距
  145. engineNum: "", //发动机
  146. vehicleVin: "",
  147. vehicleEngineNum: "",
  148. cardStatus: "",
  149. obuStatus: "",
  150. type: 0, //类型
  151. userType: 0, //用户类型
  152. vehiclePlate: "", //车牌
  153. vehiclePlateColor: 0, //车牌颜色
  154. vehicleDimensions: "",
  155. outlineL: 0, //外廓 长
  156. outlineW: 0, //外廓 宽
  157. outlineH: 0, //外廓 高
  158. wheelCount: "", //车轮数
  159. vehicleIdNo: "", //车牌号
  160. vehiclePlateColorStr: "",
  161. customerTel: "",
  162. customerId: "",
  163. orderId: ""
  164. });
  165. let cmdRandNum = '';
  166. const orderInfos = reactive({
  167. orderId: "",
  168. ownerName: "",
  169. ownerIdtype: "",
  170. ownerIdnum: "",
  171. vehiclePlate: "",
  172. vehiclePlateColorStr: "",
  173. vehiclePlateColor: "",
  174. vehicleType: "",
  175. cardId: "",
  176. cardStatus: "",
  177. obuId: "",
  178. obuStatus: "",
  179. cardEnableTime: "",
  180. obuEnableTime: "",
  181. cardExpireTime: "",
  182. obuExpireTime: ""
  183. });
  184. let orderInfo = {};
  185. onLoad((option) => {
  186. //请求订单详情
  187. queryOrderDetail(option.id);
  188. getOrderDetails(option.id)
  189. });
  190. onShow((option) => {
  191. uni.$on('bluetoothLink', res => {
  192. console.log(res);
  193. if (res.status) {
  194. // 分别写
  195. if (flag.length == 1) {
  196. for (var i = 0; i < flag.length; i++) {
  197. if (flag[i] == 1) {
  198. state.successName = '卡'
  199. getCardRenewal()
  200. } else {
  201. state.successName = '签'
  202. getObuRenewal()
  203. }
  204. }
  205. } else {
  206. state.successName = '卡签'
  207. // 两个都要写,
  208. getCardRenewal()
  209. }
  210. }
  211. })
  212. })
  213. onUnload(() => {
  214. //移除监听
  215. uni.$off('bluetoothLink')
  216. })
  217. const choose = (data) => {
  218. if (!flag.includes(data)) {
  219. flag.push(data)
  220. console.log(flag);
  221. } else {
  222. flag.splice(flag.indexOf(data), 1)
  223. console.log(flag);
  224. }
  225. if (flag.length == 2) {
  226. type.value = '3'
  227. } else if (flag[0] == 1) {
  228. type.value = '1'
  229. } else {
  230. type.value = '2'
  231. }
  232. }
  233. //获取订单详情
  234. const queryOrderDetail = (id) => {
  235. const options = {
  236. type: 2,
  237. data: {
  238. id: id,
  239. },
  240. method: "POST",
  241. showLoading: true,
  242. };
  243. request(orderDetail, options).then((res) => {
  244. let orderInfo = JSON.parse(res.bizContent);
  245. console.log("orderInfo", orderInfo);
  246. orderInfos.orderId = orderInfo.orderId;
  247. orderInfos.ownerName = orderInfo.ownerName;
  248. orderInfos.ownerIdtype = orderInfo.ownerIdtype;
  249. orderInfos.ownerIdnum = orderInfo.ownerIdnum;
  250. orderInfos.vehiclePlate = orderInfo.vehiclePlate;
  251. orderInfos.vehiclePlateColorStr = orderInfo.vehiclePlateColorStr;
  252. orderInfos.vehiclePlateColor = orderInfo.vehiclePlateColor;
  253. orderInfos.vehicleType = orderInfo.vehicleType;
  254. orderInfos.cardId = orderInfo.cardId;
  255. orderInfos.cardStatus = orderInfo.cardStatus;
  256. orderInfos.obuId = orderInfo.obuId;
  257. orderInfos.obuStatus = orderInfo.obuStatus;
  258. orderInfos.cardExpireTime = orderInfo.cardExpireTime;
  259. orderInfos.obuExpireTime = orderInfo.obuExpireTime;
  260. console.log("orderInfos.cardExpiretime", orderInfos.cardExpiretime, orderInfo.cardExpiretime)
  261. });
  262. };
  263. //卡续期 请求
  264. const getCardRenewal = () => {
  265. const options = {
  266. type: 2,
  267. data: {
  268. cardId: orderInfos.cardId,
  269. },
  270. method: "POST",
  271. showLoading: true,
  272. };
  273. request(cardRenewal, options).then((res) => {
  274. let result = stringToJson(res.bizContent);
  275. let cmdArray = result.command.split(",");
  276. console.log(cmdArray);
  277. console.log(result.cosRecordId);
  278. if (cmdArray.length > 0) {
  279. tools.showLoadingAlert("正在执行指令");
  280. bluetoothUtil.transCmd(cmdArray, "10", function(res) {
  281. tools.hideLoadingAlert();
  282. let status = res[cmdArray.length - 1].substring(res[cmdArray.length - 1].length -
  283. 4, res[cmdArray.length - 1].length);
  284. if (status == "9000") {
  285. getCommandBack(result.command, result.cosRecordId, res.toString());
  286. }
  287. })
  288. }
  289. })
  290. };
  291. /**
  292. * 写卡指令返回 请求
  293. */
  294. const getCommandBack = (command, cosRecordId, response) => {
  295. console.log('======循环写卡指令中======')
  296. tools.showLoadingAlert("加载中");
  297. let options = {
  298. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  299. data: {
  300. cardId: orderInfos.cardId,
  301. orderId: orderInfos.orderId,
  302. command: command,
  303. response: response,
  304. cosRecordId: cosRecordId,
  305. cosType: 2
  306. }, //请求参数
  307. method: "POST", //提交方式(默认POST)
  308. showLoading: true, //是否显示加载中(默认显示)
  309. };
  310. //调用方式
  311. request(writeCardBack, options)
  312. .then((res) => {
  313. tools.hideLoadingAlert();
  314. let result = JSON.parse(res.bizContent);
  315. if (result.orderStatus == 1 || result.orderStatus == "1") {
  316. tools.showLoadingAlert("执行指令中");
  317. bluetoothUtil.transCmd(result.command.split(","), "10", function(res) {
  318. tools.hideLoadingAlert();
  319. let response = res.toString();
  320. getCommandBack(result.command, cosRecordId, response);
  321. });
  322. } else {
  323. getCardModifyConfirm(cosRecordId)
  324. }
  325. })
  326. };
  327. //卡信息变更确认
  328. const getCardModifyConfirm = (cosRecordId) => {
  329. const options = {
  330. type: 2,
  331. data: {
  332. cardId: orderInfos.cardId,
  333. operation: 1,
  334. cosRecordId: cosRecordId
  335. },
  336. method: "POST",
  337. showLoading: true,
  338. };
  339. request(cardModifyConfirm, options).then((res) => {
  340. // 只写卡
  341. if (flag.length == 1) {
  342. sure(1)
  343. state.showPopup = true;
  344. } else {
  345. // 为2要写签
  346. getObuRenewal()
  347. }
  348. })
  349. }
  350. //去连接蓝牙
  351. const toPage = () => {
  352. console.log("flag.length", flag, type)
  353. if (flag.length == 0) {
  354. uni.showToast({
  355. title: '请至少勾选一项',
  356. icon: 'none'
  357. });
  358. } else {
  359. console.log("getCurrentPages()", getCurrentPages())
  360. navTo("/pages/bluetooth/bluetooth?routeType=5"); //去连接蓝牙
  361. }
  362. };
  363. //返回列表
  364. const toBack = () => {
  365. uni.redirectTo({
  366. url: "/pages/service/service"
  367. })
  368. }
  369. //关闭弹窗
  370. const cancel = () => {
  371. state.flag = true;
  372. state.showPopup = false;
  373. uni.navigateTo({
  374. url: `/subpackage/after-sale/deviceInfo/deviceInfo`
  375. })
  376. }
  377. //签续期 请求
  378. const getObuRenewal = () => {
  379. let cmdArray1 = [cmd.HOME_DIRECTORY, cmd.OBU_SYSTEM_FILE, cmd.RANDOM_NUMBER];
  380. tools.showLoadingAlert("正在执行指令");
  381. bluetoothUtil.transCmd(cmdArray1, "20", function(res) {
  382. tools.hideLoadingAlert();
  383. var str = res[2].substring(res[2].length - 4, res[2].length);
  384. if (str == "9000") {
  385. cmdRandNum = res[2].substring(0, res[2].length - 4);
  386. const options = {
  387. type: 2,
  388. data: {
  389. obuId: orderInfos.obuId,
  390. random: cmdRandNum
  391. },
  392. method: "POST",
  393. showLoading: true,
  394. };
  395. request(obuRenewal, options).then((res) => {
  396. let datas = stringToJson(res.bizContent);
  397. console.log("899", datas, datas.data.APDU);
  398. if (datas.data.APDU) {
  399. tools.showLoadingAlert("正在执行指令");
  400. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  401. tools.hideLoadingAlert();
  402. console.log("res=====", res, res[0])
  403. let cmdArr = [cmd.HOME_DIRECTORY, cmd.OBU_DF01, cmd.OBU_EF01, cmd
  404. .RANDOM_NUMBER
  405. ];
  406. bluetoothUtil.transCmd(cmdArr, "20", function(res) {
  407. console.log("chelaing======", res)
  408. var str = res[3].substring(res[3].length - 4, res[3]
  409. .length);
  410. if (str == "9000") {
  411. cmdRandNum = res[3].substring(0, res[3].length -
  412. 4);
  413. console.log("0000000000000000000000000")
  414. getFileData((demos) => {
  415. modifyVehicle(demos);
  416. })
  417. } else {
  418. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  419. }
  420. })
  421. })
  422. }
  423. })
  424. } else {
  425. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  426. }
  427. })
  428. };
  429. //获取fileData
  430. const getFileData = (fun) => {
  431. searchVehicleInfoQuery(orderInfo.vehiclePlate + "_" + orderInfo.vehiclePlateColor,cmdRandNum).then((orderInfo) => {
  432. console.log("orderInfo==",orderInfo,orderInfo.fileData)
  433. fun(orderInfo.fileData);
  434. })
  435. };
  436. /**
  437. * 修改车辆信息 请求
  438. */
  439. const modifyVehicle = (ites) => {
  440. tools.showLoadingAlert("加载中");
  441. console.log('======修改车辆信息======', ites)
  442. let options = {
  443. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  444. data: {
  445. Status: "0",
  446. random: cmdRandNum,
  447. obuSerailNo: orderInfos.obuId,
  448. fileData: ites,
  449. orderId: orderInfos.orderId,
  450. }, //请求参数
  451. method: "POST", //提交方式(默认POST)
  452. showLoading: true, //是否显示加载中(默认显示)
  453. };
  454. //调用方式
  455. request(modifyObuVehicleInfo, options)
  456. .then((res) => {
  457. tools.hideLoadingAlert();
  458. const datas = stringToJson(res.bizContent);
  459. console.log("modifyObuVehicleInfo", modifyObuVehicleInfo, datas)
  460. tools.showLoadingAlert("正在执行指令");
  461. if (datas.data.APDU) {
  462. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  463. console.log('执行指令结果', res)
  464. tools.hideLoadingAlert();
  465. if (res[0] == "9000") {
  466. //再次获取随机数
  467. let cmdArr = [cmd.HOME_DIRECTORY, cmd.RANDOM_NUMBER];
  468. bluetoothUtil.transCmd(cmdArr, '20', function(res) {
  469. var str = res[1].substring(res[1].length - 4, res[1].length);
  470. if (str == "9000") {
  471. cmdRandNum = res[1].substring(0, res[1].length - 4);
  472. getObuActivation();
  473. } else {
  474. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  475. }
  476. })
  477. }
  478. });
  479. }
  480. })
  481. };
  482. /**
  483. * VFJ-OBU在线激活 请求
  484. */
  485. const getObuActivation = () => {
  486. console.log('======VFJ-OBU在线激活======')
  487. tools.showLoadingAlert("加载中");
  488. let options = {
  489. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  490. data: {
  491. random: cmdRandNum,
  492. obuSerailNo: orderInfos.obuId,
  493. orderId: orderInfos.orderId,
  494. }, //请求参数
  495. method: "POST", //提交方式(默认POST)
  496. showLoading: true, //是否显示加载中(默认显示)
  497. };
  498. //调用方式
  499. request(obuActivation, options)
  500. .then((res) => {
  501. tools.hideLoadingAlert();
  502. console.log("在线激活 请求");
  503. console.log(stringToJson(res.bizContent));
  504. const datas = stringToJson(res.bizContent);
  505. tools.showLoadingAlert("执行指令");
  506. console.log("在线激活 请求==========================", datas, datas.data.APDU);
  507. bluetoothUtil.transCmd([datas.data.APDU], "20", function(res) {
  508. tools.hideLoadingAlert();
  509. console.log("在线激活 请求", res);
  510. if (res[0] == "9000") {
  511. sure(2)
  512. state.showPopup = true;
  513. }
  514. });
  515. })
  516. .catch((err) => {
  517. console.log(err);
  518. });
  519. };
  520. //获取订单详情
  521. const getOrderDetails = (id) => {
  522. console.log('======获取订单信息======')
  523. const options = {
  524. type: 2,
  525. data: {
  526. id: id,
  527. },
  528. method: "POST",
  529. showLoading: true,
  530. };
  531. request(orderDetail, options).then((res) => {
  532. orderInfo = JSON.parse(res.bizContent);
  533. console.log("orderInfo", orderInfo);
  534. console.log("orderInfores", res);
  535. if (orderInfo) {
  536. fileDataStrings.userType = orderInfo.userType; //用户类型
  537. fileDataStrings.cardId = orderInfo.cardId;
  538. fileDataStrings.packageNum = orderInfo.packageNum;
  539. fileDataStrings.obuId = orderInfo.obuId;
  540. fileDataStrings.customerTel = orderInfo.customerTel;
  541. fileDataStrings.customerId = orderInfo.customerId;
  542. fileDataStrings.orderId = orderInfo.orderId;
  543. let vehicleId = orderInfo.vehiclePlate + "_" + orderInfo.vehiclePlateColor
  544. searchVehicleInfoQuery(vehicleId).then((orderInfo) => {
  545. fileDataStrings.approvedCount = parseInt(orderInfo.approvedCount); //核载人数
  546. fileDataStrings.vehicleVin = orderInfo.vin;
  547. fileDataStrings.vehicleEngineNum = orderInfo.engineNum;
  548. fileDataStrings.axleCount = parseInt(orderInfo.axleCount); //轴数
  549. fileDataStrings.engineNum = orderInfo.engineNum; //发动机
  550. fileDataStrings.type = parseInt(orderInfo.type); //类型
  551. fileDataStrings.vehiclePlate = orderInfo.vehiclePlate; //车牌
  552. fileDataStrings.vehiclePlateColor = orderInfo.vehiclePlateColor; //车牌颜色
  553. console.log("车辆信息", orderInfo)
  554. fileDataStrings.vehicleDimensions = orderInfo.vehicleDimensions;
  555. let arr = orderInfo.vehicleDimensions.split("X");
  556. console.log("orderInfo.vehicleDimensions", orderInfo.vehicleDimensions.split("X"))
  557. fileDataStrings.outlineL = parseInt(arr[0]); //外廓 长
  558. fileDataStrings.outlineW = parseInt(arr[1]); //外廓 宽
  559. if(arr[2].indexOf('mm')){
  560. fileDataStrings.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  561. }else{
  562. fileDataStrings.outlineH = arr[2] //外廓 高
  563. }
  564. fileDataStrings.vehicleIdNo = orderInfo.vehicleEngineNum; //车编号
  565. fileDataStrings.vehiclePlateColorStr = getVehiclePlateColor(orderInfo
  566. .vehiclePlateColor);
  567. console.log("fileDataStrings", fileDataStrings);
  568. })
  569. }
  570. });
  571. };
  572. const sure = (val) => {
  573. var data = {}
  574. if (val == 1) {
  575. data = {
  576. type: "1",
  577. cardId: fileDataStrings.cardId,
  578. }
  579. } else {
  580. data = {
  581. type: "2",
  582. obuId: fileDataStrings.obuId,
  583. }
  584. }
  585. const options = {
  586. type: 2,
  587. data: data,
  588. method: "POST",
  589. showLoading: true,
  590. };
  591. request(renewalTimeApi, options).then((res) => {
  592. })
  593. }
  594. </script>
  595. <style>
  596. page {
  597. width: 100%;
  598. height: 100%;
  599. background-color: #fff;
  600. }
  601. </style>
  602. <style lang="scss" scoped>
  603. .mask {
  604. background: rgba(0, 0, 0, .35);
  605. position: fixed;
  606. left: 0;
  607. top: 0;
  608. bottom: 0;
  609. right: 0;
  610. }
  611. .main {
  612. width: 560rpx;
  613. padding: 25rpx 20rpx 55rpx;
  614. text-align: center;
  615. background: #fff;
  616. position: absolute;
  617. left: 50%;
  618. top: 50%;
  619. transform: translate(-50%, -50%);
  620. border-radius: 20rpx;
  621. .top {
  622. text-align: right;
  623. .icon-close {
  624. width: 48rpx;
  625. height: 48rpx;
  626. }
  627. }
  628. .icon-success {
  629. width: 500rpx;
  630. height: 320rpx;
  631. margin-top: 22rpx;
  632. }
  633. .title {
  634. color: #333333;
  635. font-size: 40rpx;
  636. font-weight: 600;
  637. text-align: center;
  638. margin-top: 55rpx;
  639. }
  640. }
  641. .selectCar-box {
  642. // width: 100%;
  643. // height: 100%;
  644. padding: 30rpx;
  645. .title {
  646. font-size: 30rpx;
  647. font-family: Microsoft YaHei UI;
  648. font-weight: 400;
  649. color: #333333;
  650. margin-bottom: 30rpx;
  651. }
  652. .details {
  653. .title {
  654. font-size: 30rpx;
  655. font-family: Microsoft YaHei UI;
  656. font-weight: 400;
  657. color: #333333;
  658. margin-bottom: 30rpx;
  659. }
  660. .details-item {
  661. display: flex;
  662. font-size: 26rpx;
  663. font-family: Noto Sans S Chinese;
  664. font-weight: 400;
  665. color: #999999;
  666. margin-bottom: 30rpx;
  667. text {
  668. font-size: 26rpx;
  669. font-family: Noto Sans S Chinese;
  670. font-weight: 400;
  671. color: #333333;
  672. }
  673. }
  674. }
  675. .card {
  676. height: 150rpx;
  677. background: #ffffff;
  678. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  679. border-radius: 20rpx;
  680. padding: 30rpx;
  681. display: flex;
  682. justify-content: space-between;
  683. align-items: center;
  684. margin-bottom: 60rpx;
  685. .card-left {
  686. display: flex;
  687. align-items: center;
  688. image {
  689. width: 100rpx;
  690. height: 90rpx;
  691. }
  692. .card-center {
  693. margin-left: 30rpx;
  694. .card-center-head {
  695. font-size: 32rpx;
  696. font-family: Noto Sans S Chinese;
  697. font-weight: 400;
  698. color: #333333;
  699. }
  700. .tips {
  701. font-size: 26rpx;
  702. font-family: Noto Sans S Chinese;
  703. font-weight: 400;
  704. color: #666666;
  705. .tips-card {
  706. width: 70rpx;
  707. height: 40rpx;
  708. background: #d3f2ef;
  709. border-radius: 6rpx;
  710. font-size: 20rpx;
  711. font-family: Noto Sans S Chinese;
  712. font-weight: 400;
  713. color: #0a8f8a;
  714. padding: 5rpx 10rpx;
  715. margin-left: 20rpx;
  716. }
  717. }
  718. }
  719. }
  720. .choose-item1 {
  721. margin-right: 20rpx;
  722. /* width: 50rpx; */
  723. // height: 50rpx;
  724. /* border: 1rpx solid #00B38B; */
  725. border-radius: 50%;
  726. // display: flex;
  727. // justify-content: center;
  728. // align-items: center;
  729. font-size: 25rpx;
  730. // align-self: end;
  731. .active {
  732. width: 38rpx;
  733. height: 38rpx;
  734. background: #00b38b;
  735. border-radius: 50%;
  736. }
  737. }
  738. .choose-item {
  739. margin-right: 20rpx;
  740. width: 50rpx;
  741. height: 50rpx;
  742. border: 1rpx solid #00B38B;
  743. border-radius: 50%;
  744. display: flex;
  745. justify-content: center;
  746. align-items: center;
  747. .active {
  748. width: 38rpx;
  749. height: 38rpx;
  750. background: #00B38B;
  751. border-radius: 50%;
  752. }
  753. }
  754. }
  755. .remark {
  756. font-size: 26rpx;
  757. font-family: Microsoft YaHei UI;
  758. font-weight: 400;
  759. color: #666666;
  760. text-indent: 30rpx;
  761. margin-bottom: 30rpx;
  762. }
  763. .submit {
  764. margin-top: 100rpx;
  765. width: 670rpx;
  766. height: 80rpx;
  767. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  768. border-radius: 40rpx;
  769. font-size: 32rpx;
  770. font-family: Noto Sans S Chinese;
  771. font-weight: 400;
  772. color: #ffffff;
  773. line-height: 80rpx;
  774. }
  775. }
  776. </style>