選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

renewal-confirm.vue 21KB

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