Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

activation-once-again.vue 21KB

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