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.

renewal-confirm.vue 21KB

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