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.

activation-once-again.vue 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  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 class="details-item">
  36. <view> 重新激活次数: </view>
  37. <text>{{ state.activationNum }}次</text>
  38. <text class="record" style="color:#00b38b" @click="goActivationRecord">OBU重新激活记录</text>
  39. </view>
  40. </view>
  41. <view class="title"> 卡信息 </view>
  42. <view class="card">
  43. <view class="card-left">
  44. <image :src="`${$imgUrl}card2.png`" mode=""></image>
  45. <view class="card-center">
  46. <view class="card-center-head"> {{orderInfos.cardId}} </view>
  47. <view class="tips">
  48. <text>储蓄卡</text>
  49. <text class="tips-card">{{getCodeName('CARD_STATE_TYPE',orderInfos.cardStatus)}}</text>
  50. </view>
  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 class="tips-card">{{getCodeName('OBU_STATE_TYPE',orderInfos.obuStatus)}}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="picture-wrapper" @click="takePhotoMode('3')">
  67. <view class="bg">
  68. <view class="">
  69. <view class="name"> 行驶证主页 </view>
  70. <view class="value"> 上传行驶证的主页 </view>
  71. <view class="tip">
  72. <view class="tip-value"> 拍摄规范 </view>
  73. </view>
  74. </view>
  75. <image v-if="!state.form.vehPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-zhu.png`">
  76. </image>
  77. <image v-else class="icon" :src="strReplace(state.form.vehPosImgUrl)"></image>
  78. </view>
  79. </view>
  80. <view class="picture-wrapper" @click="takePhotoMode('4')">
  81. <view class="bg">
  82. <view class="">
  83. <view class="name"> 行驶证副页 </view>
  84. <view class="value"> 上传行驶证的副页 </view>
  85. <view class="tip">
  86. <view class="tip-value"> 拍摄规范 </view>
  87. </view>
  88. </view>
  89. <image v-if="!state.form.vehNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/car-fu.png`">
  90. </image>
  91. <image v-else class="icon" :src="strReplace(state.form.vehNegImgUrl)"></image>
  92. </view>
  93. </view>
  94. <button class="submit" @click="toPage">再次激活</button>
  95. <view class="mask" v-show="state.showPopup">
  96. <view class="main">
  97. <view class="top">
  98. <image class="icon-close" :src="`${$imgUrl}common/icon-close.png`" @click="cancel"></image>
  99. </view>
  100. <image class="icon-success" :src="`${$imgUrl}bluetooth/device-active-success.png`"></image>
  101. <view class="title">设备激活成功!</view>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="choice-takePhoto-wrap" v-if="state.isTakePhotoModeShow" @click="cancle">
  106. <view class="choice-takePhoto">
  107. <view @click.stop="takePhoto(state.choiceIndex)" style="border-radius: 20rpx 20rpx 0 0;">拍照</view>
  108. <view @click.stop="xiangce(state.choiceIndex)">从手机相册选择</view>
  109. <view @click.stop="cancle">取消</view>
  110. </view>
  111. </view>
  112. <viewfinder v-if="state.phoneType" :phoneType="state.phoneType" :images="state.images"
  113. :showStartPhoto="state.showImg" @confirmReturn="confirmReturn" @camera="camera"></viewfinder>
  114. </template>
  115. <script lang="ts" setup>
  116. import viewfinder from "@/components/viewfinder.vue"
  117. import {
  118. reactive,
  119. ref
  120. } from "vue";
  121. import {
  122. formatTime,
  123. expireDate,
  124. expireDate2,
  125. getFormatDate,
  126. msg,
  127. navTo,
  128. strReplace,
  129. uploadFile
  130. } from "@/utils/utils";
  131. import {
  132. onLoad, onShow
  133. } from '@dcloudio/uni-app'
  134. import {
  135. request
  136. } from "@/utils/network/request.js";
  137. import {
  138. stringToJson
  139. } from "@/utils/network/encryption.js";
  140. import activeSuccess from "./components/popup-device-active-success";
  141. import * as IFCODE from "@/utils/network/api.js";
  142. import {
  143. channelId
  144. } from "@/utils/network/difference";
  145. const cmd = require("../../../static/etcUtil/cmdConfig.js");
  146. const tools = require("../../../static/etcUtil/tools.js");
  147. const bluetoothUtil = require("../../../static/etcUtil/index.js");
  148. import {
  149. getCodeName
  150. } from "@/datas/queryKey.js";
  151. import { agentId } from "@/utils/network/difference";
  152. const state = reactive({
  153. phoneType: 0, // 1 身份证正面 2 身份证反面 3行驶证正面 4行驶证反面
  154. choiceIndex: 1, // 1 身份证正面 2 身份证反面
  155. isTakePhotoModeShow: false, //选择拍照方式是否出来
  156. changeColor: false,
  157. showImg: true,
  158. images: '',
  159. showPopup: false,
  160. form: {
  161. vehPosImgUrl: "",
  162. vehNegImgUrl: "",
  163. vehicleIdNum: "",
  164. vehicleIdNumB: ''
  165. },
  166. activationNum: "",//激活次数
  167. })
  168. //订单
  169. const orderInfos = reactive({
  170. orderId: "",
  171. ownerName: "",
  172. ownerIdtype: "",
  173. ownerIdnum: "",
  174. vehiclePlate: "",
  175. vehiclePlateColorStr: "",
  176. vehiclePlateColor: "",
  177. vehicleType: "",
  178. cardId: "",
  179. cardStatus: "",
  180. obuId: "",
  181. obuStatus: "",
  182. outlineL: 0,
  183. outlineW: 0,
  184. outlineH: 0,
  185. type: 0,
  186. axleCount: 0,
  187. approvedCount: 0,
  188. vehicleVin: "",
  189. vehicleEngineNum: "",
  190. });
  191. //OBU
  192. const obu = reactive({
  193. obuId: "",
  194. startTime: "",
  195. endTime: "",
  196. version: "",
  197. approvedCount: "",
  198. axleCount: "",
  199. axleDistance: "",
  200. engineNum: "",
  201. type: "",
  202. userType: "",
  203. contractNo: "",
  204. vehiclePlate: "",
  205. vehiclePlateColor: "",
  206. vin: "",
  207. wheelCount: "",
  208. isJH: ""
  209. });
  210. let ids = '';
  211. onLoad((option) => {
  212. console.log('======重新激活开始111======', option);
  213. //请求订单详情
  214. queryOrderDetail(option.id);
  215. ids = option.id;
  216. if (option.status) {
  217. getObuId()
  218. }
  219. });
  220. onShow((option) => {
  221. // uni.$on('bluetoothLink', res => {
  222. // console.log(res);
  223. // if (res.status) {
  224. // getObuId()
  225. // }
  226. // //移除监听
  227. // console.log('======移除监听1111======', res)
  228. // })
  229. })
  230. const cancel = () => {
  231. state.showPopup = false;
  232. uni.navigateBack({
  233. delta: 2
  234. })
  235. };
  236. const toPage = () => {
  237. // navTo("/pages/bluetooth/bluetooth?routeType=5&id=" + ids);
  238. // // return
  239. // if (!state.form.vehPosImgUrl) {
  240. // msg("请上传行驶证主页")
  241. // return;
  242. // }
  243. // if (!state.form.vehNegImgUrl) {
  244. // msg("请上传行驶证副页")
  245. // return;
  246. // }
  247. // console.log("state.form.vehicleIdNum", state.form.vehicleIdNum, orderInfos.vehiclePlate)
  248. // if (state.form.vehicleIdNum == orderInfos.vehiclePlate) {
  249. // if (state.form.vehicleIdNumB == orderInfos.vehiclePlate) {
  250. // activationRecordQuery().then((val) => {
  251. // console.log("激活次数", val)
  252. // if (val.limit) {
  253. // navTo("/pages/bluetooth/bluetooth?routeType=5");
  254. // } else {
  255. // msg("一年内到达激活次数上限5次")
  256. // }
  257. // });
  258. // } else {
  259. // msg("请上传正确行驶证副页")
  260. // }
  261. // } else {
  262. // msg("请上传正确行驶证")
  263. // }
  264. };
  265. //获取订单详情
  266. const queryOrderDetail = (id : string) => {
  267. const options = {
  268. type: 2,
  269. data: {
  270. id: id,
  271. },
  272. method: "POST",
  273. showLoading: true,
  274. };
  275. request(IFCODE.orderDetail, options).then((res) => {
  276. let orderInfo = JSON.parse(res.bizContent);
  277. console.log(orderInfo);
  278. orderInfos.orderId = orderInfo.orderId;
  279. orderInfos.ownerName = orderInfo.ownerName;
  280. orderInfos.ownerIdtype = orderInfo.ownerIdtype;
  281. orderInfos.ownerIdnum = orderInfo.ownerIdnum;
  282. orderInfos.vehiclePlate = orderInfo.vehiclePlate;
  283. orderInfos.vehiclePlateColorStr = orderInfo.vehiclePlateColorStr;
  284. orderInfos.vehiclePlateColor = orderInfo.vehiclePlateColor;
  285. orderInfos.vehicleType = orderInfo.vehicleType;
  286. orderInfos.cardId = orderInfo.cardId;
  287. orderInfos.cardStatus = orderInfo.cardStatus;
  288. orderInfos.obuId = orderInfo.obuId;
  289. orderInfos.obuStatus = orderInfo.obuStatus;
  290. let arr = orderInfo.vehicleDimensions.split("X");
  291. orderInfos.outlineL = parseInt(arr[0]); //外廓 长
  292. orderInfos.outlineW = parseInt(arr[1]); //外廓 宽
  293. orderInfos.outlineH = parseInt(arr[2].substring(0, arr[2].length - 2)); //外廓 高
  294. orderInfos.type = orderInfo.type;
  295. orderInfos.axleCount = orderInfo.vehicleAxleCount;
  296. orderInfos.approvedCount = orderInfo.vehicleApprovedCount;
  297. orderInfos.vehicleVin = orderInfo.vehicleVin;
  298. orderInfos.vehicleEngineNum = orderInfo.vehicleEngineNum;
  299. activationRecordQuery().then((val) => {
  300. console.log("jihuo", val)
  301. state.activationNum = val.num
  302. });
  303. });
  304. };
  305. /**
  306. * 获取OBU号 读OBU
  307. */
  308. const getObuId = () => {
  309. console.log('======获取OBU号======')
  310. let cmdArray = [cmd.HOME_DIRECTORY, cmd.OBU_SYSTEM_FILE, cmd.RANDOM_NUMBER];
  311. // tools.showLoadingAlert("正在执行指令");
  312. bluetoothUtil.transCmd(cmdArray, "20", function (res) {
  313. tools.hideLoadingAlert();
  314. var status = res[1].substring(res[1].length - 4, res[1].length);
  315. console.log('获取OBU号执行结果' + status)
  316. //第一次获取随机数
  317. if (status == "9000") {
  318. obu.obuId = res[1].substring(20, 36);
  319. obu.vin = res[1].substring(18, 20);
  320. obu.version = res[1].substring(18, 19) >= 4 ? "4x" : "2x";
  321. getInstallApply()
  322. }
  323. });
  324. };
  325. /**
  326. * BDS-安装申请 请求
  327. */
  328. const getInstallApply = () => {
  329. console.log('======安装申请======')
  330. tools.showLoadingAlert("加载中");
  331. let options = {
  332. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  333. data: {
  334. obuId: obu.obuId,
  335. vehicleId: orderInfos.vehiclePlate + "_" + orderInfos.vehiclePlateColor,
  336. orderId: orderInfos.orderId,
  337. agentId: agentId,
  338. channelId: channelId,
  339. channelType: "1",
  340. staffId: "opId",
  341. terminalId: "999999999",
  342. }, //请求参数
  343. method: "POST", //提交方式(默认POST)
  344. showLoading: true, //是否显示加载中(默认显示)
  345. };
  346. //调用方式
  347. request(IFCODE.installApply, options)
  348. .then(() => {
  349. tools.hideLoadingAlert();
  350. //再次获取随机数
  351. let cmdArr = [cmd.HOME_DIRECTORY, cmd.RANDOM_NUMBER];
  352. bluetoothUtil.transCmd(cmdArr, '20', function (res) {
  353. var str = res[1].substring(res[1].length - 4, res[1].length);
  354. if (str == "9000") {
  355. let cmdRandNum = res[1].substring(0, res[1].length - 4);
  356. getObuActivation(cmdRandNum);
  357. } else {
  358. tools.alertF("RANDOM_NUMBER指令长度不符" + res[1]);
  359. }
  360. })
  361. })
  362. };
  363. /**
  364. * VFJ-OBU在线激活 请求
  365. */
  366. const getObuActivation = (cmdRandNum : string) => {
  367. console.log('======VFJ-OBU在线激活======')
  368. tools.showLoadingAlert("加载中");
  369. let options = {
  370. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  371. data: {
  372. random: cmdRandNum,
  373. obuSerailNo: obu.obuId,
  374. orderId: orderInfos.orderId,
  375. }, //请求参数
  376. method: "POST", //提交方式(默认POST)
  377. showLoading: true, //是否显示加载中(默认显示)
  378. };
  379. //调用方式
  380. request(IFCODE.obuActivation, options)
  381. .then((res) => {
  382. tools.hideLoadingAlert();
  383. console.log("在线激活 请求");
  384. console.log(stringToJson(res.bizContent));
  385. const datas = stringToJson(res.bizContent);
  386. tools.showLoadingAlert("执行指令");
  387. bluetoothUtil.transCmd([datas.data.APDU], "20", function (res) {
  388. tools.hideLoadingAlert();
  389. console.log(res);
  390. if (res[0] == "9000") {
  391. console.log("在线激活执行指令88888 请求", res);
  392. getObuInstall(0, ""); //status 0 - 安装成功 || 1 - 安装失败
  393. }
  394. });
  395. })
  396. .catch((err) => {
  397. console.log(err);
  398. });
  399. };
  400. /**
  401. * BDS-安装确认 请求
  402. */
  403. const getObuInstall = (status : number, reason : string) => {
  404. console.log('======OBU安装确认======')
  405. tools.showLoadingAlert("加载中");
  406. let options = {
  407. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  408. data: {
  409. installStatus: status,
  410. failReason: reason,
  411. installType: "1",
  412. installChannelId: channelId,
  413. obuId: obu.obuId,
  414. orderId: orderInfos.orderId
  415. }, //请求参数
  416. method: "POST", //提交方式(默认POST)
  417. showLoading: true, //是否显示加载中(默认显示)
  418. };
  419. //调用方式
  420. request(IFCODE.obuInstall, options)
  421. .then(() => {
  422. tools.hideLoadingAlert();
  423. state.showPopup = true;
  424. submitVehicleQuery()
  425. });
  426. };
  427. const xiangce = (val) => {
  428. console.log("val", val)
  429. if (state.choiceIndex == 3) {
  430. var imageType = 1;
  431. } else {
  432. var imageType = 2;
  433. }
  434. state.changeColor = true;
  435. uni.chooseImage({
  436. count: 1, //只能选取一张照片
  437. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  438. sourceType: ["album"], //从相册选择
  439. success: function (res) {
  440. console.log("tempFilePaths[0].startsWith('file://')", res.tempFilePaths[0], res.tempFilePaths[0].startsWith('file://'))
  441. if (state.choiceIndex == 3 || state.choiceIndex == 4) {
  442. state.showImg = false
  443. state.images = res.tempFilePaths[0]
  444. state.phoneType = state.choiceIndex
  445. state.isTakePhotoModeShow = false
  446. return
  447. }
  448. },
  449. })
  450. }
  451. const takePhoto = (val) => {
  452. console.log("拍照", val)
  453. state.phoneType = val;
  454. state.showImg = true;
  455. }
  456. const confirmReturn = (val) => {
  457. if (state.choiceIndex == 3) {
  458. var imageType = 1;
  459. } else {
  460. var imageType = 2;
  461. }
  462. state.changeColor = true;
  463. state.phoneType = 0
  464. state.isTakePhotoModeShow = false
  465. uploadFile(val.tempImagePath, imageType, IFCODE.etcCarOcrCard).then((data) => {
  466. // uploadFile(val.tempImagePath, state.choiceIndex, ocrAllQuery).then((data) => {
  467. console.log('输出内容=====================', state.choiceIndex)
  468. if (state.choiceIndex === "3") {
  469. if (data.plate_a.length > 8) {
  470. state.form.vehicleIdNum = data.plate_a.substring(0, 8);
  471. } else {
  472. state.form.vehicleIdNum = data.plate_a;
  473. }
  474. state.form.vehPosImgUrl = data.imageUrl;
  475. } else {
  476. state.form.vehNegImgUrl = data.imageUrl;
  477. state.form.vehicleIdNumB = data.plate_a;
  478. console.log('=====================', state.form.vehNegImgUrl, state)
  479. }
  480. state.isTakePhotoModeShow = false
  481. })
  482. console.log("图片地址val", val.tempImagePath)
  483. }
  484. const takePhotoMode = (index) => {
  485. console.log("index", index)
  486. state.isTakePhotoModeShow = true
  487. state.choiceIndex = index
  488. }
  489. const cancle = () => {
  490. state.isTakePhotoModeShow = false
  491. }
  492. const camera = () => {
  493. state.phoneType = 0
  494. }
  495. // 查询重新激活记录
  496. const activationRecordQuery = () => {
  497. const options = {
  498. type: 2,
  499. data: {
  500. cardId: orderInfos.cardId,
  501. obuId: orderInfos.obuId,
  502. },
  503. method: "POST",
  504. showLoading: true,
  505. };
  506. return new Promise(async (resolve, reject) => {
  507. const res = await request(IFCODE.activationRecordApi, options);
  508. const data = stringToJson(res.bizContent);
  509. resolve(data);
  510. }).catch((error) => {
  511. reject(error);
  512. });
  513. }
  514. // 提交车辆信息
  515. const submitVehicleQuery = () => {
  516. const options = {
  517. type: 2,
  518. data: {
  519. cardId: orderInfos.cardId,
  520. obuId: orderInfos.obuId,
  521. vehPosImgUrl: state.form.vehPosImgUrl,
  522. vehNegImgUrl: state.form.vehNegImgUrl,
  523. vehiclePlate: orderInfos.vehiclePlate
  524. },
  525. method: "POST",
  526. };
  527. console.log("提交车辆信息成功", options)
  528. request(IFCODE.submitVehicleApi, options).then(() => {
  529. console.log("提交车辆信息成功")
  530. });
  531. }
  532. const goActivationRecord = () => {
  533. uni.navigateTo({
  534. url: `/subpackage/after-sale/activation-once-again/activation-once-again-record?obuId=${orderInfos.obuId}&&cardId=${orderInfos.cardId}`
  535. })
  536. }
  537. </script>
  538. <style>
  539. page {
  540. width: 100%;
  541. height: 100%;
  542. background-color: #fff;
  543. }
  544. </style>
  545. <style lang="scss" scoped>
  546. .mask {
  547. background: rgba(0, 0, 0, .35);
  548. position: fixed;
  549. left: 0;
  550. top: 0;
  551. bottom: 0;
  552. right: 0;
  553. }
  554. .main {
  555. width: 560rpx;
  556. padding: 25rpx 20rpx 55rpx;
  557. text-align: center;
  558. background: #fff;
  559. position: absolute;
  560. left: 50%;
  561. top: 50%;
  562. transform: translate(-50%, -50%);
  563. border-radius: 20rpx;
  564. .top {
  565. text-align: right;
  566. .icon-close {
  567. width: 48rpx;
  568. height: 48rpx;
  569. }
  570. }
  571. .icon-success {
  572. width: 500rpx;
  573. height: 320rpx;
  574. margin-top: 22rpx;
  575. }
  576. .title {
  577. color: #333333;
  578. font-size: 40rpx;
  579. font-weight: 600;
  580. text-align: center;
  581. margin-top: 55rpx;
  582. }
  583. }
  584. .selectCar-box {
  585. // width: 100%;
  586. // height: 100%;
  587. padding: 30rpx;
  588. .title {
  589. font-size: 30rpx;
  590. font-family: Microsoft YaHei UI;
  591. font-weight: 400;
  592. color: #333333;
  593. margin-bottom: 30rpx;
  594. }
  595. .details {
  596. .title {
  597. font-size: 30rpx;
  598. font-family: Microsoft YaHei UI;
  599. font-weight: 400;
  600. color: #333333;
  601. margin-bottom: 30rpx;
  602. }
  603. .details-item {
  604. display: flex;
  605. font-size: 26rpx;
  606. font-family: Noto Sans S Chinese;
  607. font-weight: 400;
  608. color: #999999;
  609. margin-bottom: 30rpx;
  610. text {
  611. font-size: 26rpx;
  612. font-family: Noto Sans S Chinese;
  613. font-weight: 400;
  614. color: #333333;
  615. }
  616. }
  617. }
  618. .card {
  619. height: 150rpx;
  620. background: #ffffff;
  621. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  622. border-radius: 20rpx;
  623. padding: 30rpx;
  624. display: flex;
  625. justify-content: space-between;
  626. align-items: center;
  627. margin-bottom: 60rpx;
  628. .card-left {
  629. display: flex;
  630. align-items: center;
  631. image {
  632. width: 100rpx;
  633. height: 90rpx;
  634. }
  635. .card-center {
  636. margin-left: 30rpx;
  637. .card-center-head {
  638. font-size: 32rpx;
  639. font-family: Noto Sans S Chinese;
  640. font-weight: 400;
  641. color: #333333;
  642. }
  643. .tips {
  644. font-size: 26rpx;
  645. font-family: Noto Sans S Chinese;
  646. font-weight: 400;
  647. color: #666666;
  648. .tips-card {
  649. width: 70rpx;
  650. height: 40rpx;
  651. background: #d3f2ef;
  652. border-radius: 6rpx;
  653. font-size: 20rpx;
  654. font-family: Noto Sans S Chinese;
  655. font-weight: 400;
  656. color: #0a8f8a;
  657. padding: 5rpx 10rpx;
  658. margin-left: 20rpx;
  659. }
  660. }
  661. }
  662. }
  663. .choose-item {
  664. margin-right: 20rpx;
  665. border-radius: 50%;
  666. font-size: 25rpx;
  667. .active {
  668. width: 38rpx;
  669. height: 38rpx;
  670. background: #00b38b;
  671. border-radius: 50%;
  672. }
  673. }
  674. }
  675. .remark {
  676. font-size: 26rpx;
  677. font-family: Microsoft YaHei UI;
  678. font-weight: 400;
  679. color: #666666;
  680. text-indent: 30rpx;
  681. margin-bottom: 30rpx;
  682. }
  683. .submit {
  684. margin-top: 100rpx;
  685. margin-bottom: 30rpx;
  686. width: 670rpx;
  687. height: 80rpx;
  688. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  689. border-radius: 40rpx;
  690. font-size: 32rpx;
  691. font-family: Noto Sans S Chinese;
  692. font-weight: 400;
  693. color: #ffffff;
  694. line-height: 80rpx;
  695. }
  696. }
  697. .picture-wrapper {
  698. margin-top: 40rpx;
  699. .bg {
  700. background: #ffffff;
  701. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  702. border-radius: 20rpx;
  703. padding: 40rpx;
  704. display: flex;
  705. // align-items: center;
  706. justify-content: space-between;
  707. .name {
  708. font-size: 34rpx;
  709. font-family: Microsoft YaHei;
  710. font-weight: 400;
  711. color: #000000;
  712. line-height: 34rpx;
  713. }
  714. .value {
  715. margin-top: 20rpx;
  716. font-size: 24rpx;
  717. font-family: Microsoft YaHei;
  718. font-weight: 400;
  719. color: #999999;
  720. line-height: 24rpx;
  721. }
  722. .tip {
  723. margin-top: 20rpx;
  724. text-align: center;
  725. width: 110rpx;
  726. height: 40rpx;
  727. background: rgba(33, 190, 177, 0.2);
  728. border-radius: 6rpx;
  729. .tip-value {
  730. font-size: 20rpx;
  731. font-family: Microsoft YaHei;
  732. font-weight: 400;
  733. color: #0a8f8a;
  734. line-height: 40rpx;
  735. opacity: 1;
  736. }
  737. }
  738. }
  739. .icon {
  740. width: 294rpx;
  741. height: 188rpx;
  742. }
  743. }
  744. .choice-takePhoto {
  745. position: absolute;
  746. bottom: 0;
  747. background-color: white;
  748. width: 100%;
  749. border-radius: 20rpx 20rpx 0 0;
  750. }
  751. .choice-takePhoto>view:first-child {
  752. text-align: center;
  753. height: 80rpx;
  754. line-height: 80rpx;
  755. border-bottom: 1rpx solid rgba(127, 127, 127, 0.3);
  756. background-color: white;
  757. }
  758. .choice-takePhoto>view:last-child {
  759. text-align: center;
  760. height: 80rpx;
  761. line-height: 80rpx;
  762. border-top: 6rpx solid rgba(127, 127, 127, 0.1);
  763. background-color: white;
  764. }
  765. .choice-takePhoto>view {
  766. text-align: center;
  767. height: 80rpx;
  768. line-height: 80rpx;
  769. background-color: white;
  770. }
  771. .choice-takePhoto-wrap {
  772. width: 100%;
  773. height: 100vh;
  774. background-color: rgba(127, 127, 127, 0.2);
  775. position: fixed;
  776. left: 0;
  777. top: 0;
  778. z-index: 11111;
  779. }
  780. .record {
  781. height: 40rpx;
  782. background: #d3f2ef;
  783. border-radius: 6rpx;
  784. font-size: 20rpx;
  785. font-family: Noto Sans S Chinese;
  786. font-weight: 400;
  787. color: #0a8f8a;
  788. padding: 5rpx 10rpx;
  789. margin-left: 60rpx;
  790. }
  791. </style>