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 20KB

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