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-ali.vue 20KB

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