Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

activation-once-again.vue 21KB

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