Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

activation-once-again.vue 20KB

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