您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

activation-once-again.vue 21KB

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