Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

activation-once-again.vue 20KB

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