Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

recharge.vue 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <view class="wrapper">
  3. <view class="account">
  4. <image :src="`${$imgUrl}common/bg-recharge.png`" class="head-bg"></image>
  5. <view class="account-text">
  6. <view class="balance">
  7. <text class="balance-tit">账户余额</text>
  8. <text class="balance-val">0元</text>
  9. </view>
  10. <view class="right-box">
  11. <view class="no">账户编号:000100</view>
  12. <view class="btn btn-record">账户充值记录</view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="input-box">
  17. <input v-model="state.money" placeholder="请输入金额" class="input" />
  18. <view class="tips">最低充值金额不小于10元</view>
  19. </view>
  20. <view class="tabs">
  21. <view class="tab-tit">在线充值</view>
  22. <view class="tab">
  23. <view v-for="(item,index) in state.moneryArray" @click="tableIndexAction(index)" :key="index"
  24. :class="{'item':state.moneryArray,'active':state.tableIndex===index}">{{item.name}}</view>
  25. </view>
  26. </view>
  27. <view class="btn btn-primary" @click="rechargeAction">立即充值</view>
  28. </view>
  29. </template>
  30. <script setup lang="ts">
  31. import {
  32. stringToJson
  33. } from "@/utils/network/encryption";
  34. import {
  35. onLoad,
  36. onShow
  37. } from "@dcloudio/uni-app";
  38. import {
  39. quanCheck,
  40. quanApply,
  41. quanXf,
  42. cardCzPayResultCheck,
  43. cardCzApply,
  44. cardCzPay,
  45. cardCzPayResult,
  46. cardCzXFCheck,
  47. quanConfirm,
  48. wechatAppID,
  49. wechatPayConfigId,
  50. wechatSecret,
  51. } from "@/utils/network/api.js";
  52. import {
  53. request
  54. } from "@/utils/network/request.js";
  55. import {
  56. reactive
  57. } from "vue";
  58. import {
  59. navTo
  60. } from "@/utils/utils"
  61. import {
  62. msg
  63. } from "@/utils/utils";
  64. import {
  65. getItem,
  66. StorageKeys,
  67. setItem
  68. } from "@/utils/storage";
  69. const datas = require("../../static/etcUtil/datas.js");
  70. const bluetoothUtil = require("../../static/etcUtil/index.js");
  71. const cmd = require("../../static/etcUtil/cmdConfig.js");
  72. const tools = require("../../static/etcUtil/tools.js");
  73. const state = reactive({
  74. moneryArray: [{
  75. name: '50元',
  76. value: 50
  77. }, {
  78. name: '100元',
  79. value: 100
  80. }, {
  81. name: '200元',
  82. value: 200
  83. }, {
  84. name: '300元',
  85. value: 300
  86. }, {
  87. name: '500元',
  88. value: 500
  89. }, {
  90. name: '1000元',
  91. value: 1000
  92. }],
  93. tableIndex: 0,
  94. openid: "",
  95. connectSuccess: undefined,
  96. fee: 5000,
  97. money: 50,
  98. orderNum: "",
  99. cardId: "", //卡号 需要传参
  100. mockpreBalance: 2000, //fix:模拟余额 目前没有检测状态接口,第一次会模拟圈层检测来检测状态
  101. show:false,
  102. items: [{
  103. value: '0',
  104. name: '微信',
  105. checked: 'true'
  106. },
  107. {
  108. value: '1',
  109. name: '对公账户'
  110. }
  111. ],
  112. current: 0
  113. });
  114. //读卡信息
  115. const card = reactive({
  116. cardId: "",
  117. netId: "",
  118. cardType: "",
  119. startTime: "",
  120. endTime: "",
  121. userName: "",
  122. idNum: "",
  123. vehiclePlate: "",
  124. vehiclePlateColor: "",
  125. color: "",
  126. version: "",
  127. type: "",
  128. favourable: "",
  129. money: undefined,
  130. v_userType: "",
  131. });
  132. onLoad((option) => {
  133. /*获取openId 用途:(用户支付)*/
  134. getOpenID();
  135. /*传参*/
  136. state.cardId = option.cardId;
  137. state.connectSuccess = option.connectSuccess;
  138. state.orderNum = getItem("orderNum");
  139. // 金额回填,本来是好的,但是他跳转了,跳转过来就得刷新页面,所以就是默认的5000
  140. if(state.fee){
  141. state.fee=option.fee
  142. }
  143. //跳转过来走圈存流程
  144. if (state.connectSuccess === "1") {
  145. /*读卡*/
  146. getCardId();
  147. }
  148. quanCheckAction().then((val: any) => {
  149. console.log("圈层检测val",val)
  150. //如果 圈层检测正常
  151. if (val.chargeStatus === 1) {
  152. console.log(`进行充值检测`);
  153. czCheckAction().then((checkResult: any) => {
  154. //判断订单逻辑如果有订单充值 则直接拿到订单去链接蓝牙
  155. if (checkResult.orders && checkResult.orders.length > 0) {
  156. //拿到订单,存起来
  157. state.orderNum = checkResult.orders[0].orderNum;
  158. setItem("orderNum", state.orderNum);
  159. // 检测用户是否存在有半条流水
  160. go()
  161. } else {
  162. console.log('没有可修复的流水')
  163. }
  164. });
  165. } else {
  166. // 检测用户是否存在有半条流水
  167. go()
  168. }
  169. });
  170. });
  171. function go() {
  172. uni.showModal({
  173. title: '提示',
  174. content: '检测到你有一笔未充值的订单,请先进行充值!',
  175. success: () => {
  176. //走蓝牙进行修复
  177. uni.navigateTo({
  178. url: `/pages/bluetooth/bluetooth?routeType=2&&cardId=${state.cardId}&&fee=${state.fee}`,
  179. });
  180. },
  181. fail: () => {}
  182. })
  183. }
  184. const tableIndexAction = (val: any) => {
  185. state.tableIndex = val
  186. state.money = state.moneryArray[val].value
  187. }
  188. /*点击充值按钮*/
  189. const rechargeAction = () => {
  190. state.fee = state.money * 100; //元换成分
  191. wx.showModal({
  192. title: '圈存确认',
  193. content: '您确定要充值圈存吗',
  194. success: function(res) {
  195. if (res.confirm) {
  196. /*进行圈层检测,此处检测仅为校验圈层状态来决定去哪里*/
  197. console.log("进行圈层检测");
  198. quanCheckAction().then((val: any) => {
  199. //如果 圈层检测正常
  200. if (val.chargeStatus === 1) {
  201. console.log(`进行充值检测`);
  202. czCheckAction().then((checkResult: any) => {
  203. //判断订单逻辑如果有订单充值 则直接拿到订单去链接蓝牙
  204. if (checkResult.orders && checkResult.orders.length > 0) {
  205. //拿到订单,存起来
  206. state.orderNum = checkResult.orders[0].orderNum;
  207. setItem("orderNum", state.orderNum);
  208. //链接蓝牙
  209. go()
  210. } else {
  211. cardCzApplyAction().then((applyResult: any) => {
  212. //拿到订单 存起来
  213. state.orderNum = applyResult.orderNum;
  214. setItem("orderNum", state.orderNum);
  215. //如果订单没有支付 走支付
  216. if (applyResult.orderStatus === "ORDER_NOT_PAY") {
  217. //走支付
  218. console.log("走支付");
  219. wxPayment();
  220. }
  221. });
  222. }
  223. });
  224. } else {
  225. //走蓝牙进行修复
  226. go()
  227. }
  228. });
  229. }
  230. }
  231. });
  232. };
  233. /*读卡*/
  234. const getCardId = () => {
  235. console.log("======获取卡信息======");
  236. let cmdArr = [
  237. cmd.HOME_DIRECTORY,
  238. //选择主目
  239. cmd.APPLICATION_DIRECTORY,
  240. //选择文件1001--DF01联网收费应用目录
  241. cmd.CMD_READBINARY,
  242. //15文件--卡片发行基本数据文件
  243. cmd.CMD_GETBALANCE,
  244. //钱包
  245. ];
  246. tools.showLoadingAlert("正在执行指令");
  247. bluetoothUtil.transCmd(cmdArr, "10", function(res) {
  248. tools.hideLoadingAlert();
  249. //10:写卡 20:写OBU
  250. let str = res[2].substring(res[2].length - 4, res[2].length);
  251. let str3 = res[3].substring(res[3].length - 4, res[3].length);
  252. if (str == "9000" || str3 == "9000") {
  253. if (res[2].length > 86 || res[3] >= 12) {
  254. card.cardId = res[2].substring(20, 40); //卡号
  255. card.startTime = res[2].substring(40, 48);
  256. card.endTime = res[2].substring(48, 56);
  257. card.version = res[2].substring(18, 19) >= 4 ? "4x" : "2x";
  258. card.netId = res[2].substring(20, 24);
  259. card.cardType = res[2].substring(28, 29) == 23 ? 1 : 2;
  260. card.vehiclePlateColor = parseInt(res[2].substring(82, 84), 16);
  261. (card.money = parseInt(parseInt(res[3].substring(0, 8), 16), 10)),
  262. console.log("======卡信息======", card);
  263. if (card.cardId !== state.cardId) {
  264. msg("设备卡信息与当前充值卡号不匹配,请核对卡号");
  265. return;
  266. }
  267. quanCheckActionTrue().then((val) => {
  268. checkQuanCengEvent(val);
  269. });
  270. } else {
  271. console.error("CMD_READBINARY指令长度不符" + res[2]);
  272. tools.hideLoadingAlert();
  273. }
  274. }
  275. console.error("CMD_READBINARY指令长度不符" + res[2]);
  276. tools.hideLoadingAlert();
  277. });
  278. };
  279. const checkQuanCengEvent = (val: any) => {
  280. if (val.chargeStatus === 1) {
  281. let cmdArr = val.command.split(",");
  282. uni.showLoading({
  283. title: "写入中",
  284. });
  285. bluetoothUtil.transCmd(cmdArr, "10", function(res) {
  286. let response = res.toString();
  287. var dic = {
  288. command: val.command,
  289. cosResponse: response,
  290. };
  291. uni.hideLoading();
  292. cardCzXFCheckAction().then((xfRes) => {
  293. quanApplyAction(dic).then((value) => {
  294. console.log("圈层申请完后的结果");
  295. console.log(value);
  296. //圈存初始化验证通过 , 进行圈存
  297. if (value.commandType === 2) {
  298. uanConfirmAction(value).then((confirmResult) => {
  299. navTo(
  300. `/pages/recharge/result`)
  301. });
  302. } else {
  303. msg("圈存初始化指令验证失败, 重新初始化");
  304. }
  305. });
  306. });
  307. });
  308. } else {
  309. let cmdArr = val.command.split(",");
  310. uni.showLoading({
  311. title: "写入中",
  312. });
  313. bluetoothUtil.transCmd(cmdArr, "10", function(res) {
  314. var status = res[1].substring(res[1].length - 4, res[1].length);
  315. console.log("打印状态");
  316. console.log(status);
  317. if (status === "9000") {
  318. console.log("修复指令入参");
  319. let response = res.toString();
  320. var dic = {
  321. command: val.command,
  322. cosResponse: response,
  323. rechargeId: val.rechargeId,
  324. };
  325. quanFixAction(dic).then((value) => {
  326. console.log(value);
  327. console.log("修复结果返回");
  328. var fixStatus = value.fixStatus;
  329. //圈存修复COS指令Response信息不足,重新进行修复初始化
  330. if (fixStatus === 3) {
  331. let xfcmdArr = value.command.split(",");
  332. bluetoothUtil.transCmd(xfcmdArr, "10", function(resValueData) {
  333. var status = resValueData[1].substring(
  334. resValueData[1].length - 4,
  335. resValueData[1].length
  336. );
  337. console.log("打印状态");
  338. console.log(status);
  339. if (status === "9000") {
  340. console.log(resValueData);
  341. var valueResponse = resValueData.toString();
  342. console.log(response);
  343. var applyDic = {
  344. command: value.command,
  345. cosResponse: valueResponse,
  346. rechargeId: value.rechargeId,
  347. };
  348. console.log("消费成功");
  349. quanApplyAction(applyDic).then((applyValue) => {
  350. uanConfirmAction(applyValue).then((
  351. confirmResult) => {
  352. msg("充值成功");
  353. navTo(
  354. `/pages/recharge/result`)
  355. });
  356. });
  357. }
  358. });
  359. } else if (fixStatus === 2) {
  360. uanConfirmSucessAction(value).then((confirmResult) => {
  361. msg("充值成功");
  362. navTo(`/pages/recharge/result`)
  363. });
  364. } else if (fixStatus === 1) {
  365. quanCheckActionTrue().then((val) => {
  366. checkQuanCengEvent(val);
  367. });
  368. }
  369. });
  370. uni.hideLoading();
  371. }
  372. });
  373. }
  374. };
  375. /*透传*/
  376. const transCmd = (cmd) => {
  377. bluetoothUtil.transCmd(cmd, "10", function(res) {
  378. var status = res[1].substring(res[1].length - 4, res[1].length);
  379. if (status === "9000") {
  380. return res.toString();
  381. }
  382. });
  383. };
  384. /*圈层检测 -假数据校验*/
  385. const quanCheckAction = () => {
  386. var data = {
  387. cardId: state.cardId, //卡号
  388. fee: state.fee,
  389. preBalance: state.mockpreBalance, //假余额
  390. tradeType: 14,
  391. };
  392. const options = {
  393. type: 2,
  394. data: data,
  395. method: "POST",
  396. showLoading: true,
  397. };
  398. return new Promise(async (resolve, reject) => {
  399. const res = await request(quanCheck, options);
  400. const data = stringToJson(res.bizContent);
  401. resolve(data);
  402. }).catch((error) => {
  403. reject(error);
  404. });
  405. };
  406. const quanCheckActionTrue = () => {
  407. console.log("进行真实圈层检测");
  408. var data = {
  409. cardId: card.cardId,
  410. fee: state.fee,
  411. preBalance: card.money,
  412. tradeType: 14,
  413. };
  414. const options = {
  415. type: 2,
  416. data: data,
  417. method: "POST",
  418. showLoading: true,
  419. };
  420. return new Promise(async (resolve, reject) => {
  421. const res = await request(quanCheck, options);
  422. const data = stringToJson(res.bizContent);
  423. resolve(data);
  424. }).catch((error) => {
  425. reject(error);
  426. });
  427. };
  428. /*充值消费*/
  429. const cardCzXFCheckAction = () => {
  430. var data = {
  431. cardId: card.cardId, //修复初始化的指令
  432. openId: getItem(StorageKeys.OpenId), //修复初始化结果
  433. orderNum: state.orderNum, //充值流水号
  434. };
  435. const options = {
  436. type: 2,
  437. data: data,
  438. method: "POST",
  439. showLoading: true,
  440. };
  441. return new Promise(async (resolve, reject) => {
  442. const res = await request(cardCzXFCheck, options);
  443. const data = stringToJson(res.bizContent);
  444. resolve(data);
  445. }).catch((error) => {
  446. reject(error);
  447. });
  448. };
  449. /*圈存修复*/
  450. const quanFixAction = (val) => {
  451. var data = {
  452. command: val.command, //修复初始化的指令
  453. cosResponse: val.cosResponse, //修复初始化结果
  454. rechargeId: val.rechargeId, //充值流水号
  455. };
  456. const options = {
  457. type: 2,
  458. data: data,
  459. method: "POST",
  460. showLoading: true,
  461. };
  462. return new Promise(async (resolve, reject) => {
  463. const res = await request(quanXf, options);
  464. const data = stringToJson(res.bizContent);
  465. resolve(data);
  466. }).catch((error) => {
  467. reject(error);
  468. });
  469. };
  470. /*圈层申请*/
  471. const quanApplyAction = (data) => {
  472. var form = {
  473. cardId: card.cardId,
  474. fee: state.fee,
  475. preBalance: card.money,
  476. tradeType: 14,
  477. command: data.command,
  478. cosResponse: data.cosResponse,
  479. orderId: state.orderNum,
  480. rechargeId: data.rechargeId,
  481. };
  482. const options = {
  483. type: 2,
  484. data: form,
  485. method: "POST",
  486. showLoading: true,
  487. };
  488. return new Promise(async (resolve, reject) => {
  489. const res = await request(quanApply, options);
  490. const data = stringToJson(res.bizContent);
  491. resolve(data);
  492. }).catch((error) => {
  493. reject(error);
  494. });
  495. };
  496. /*圈层确认*/
  497. const uanConfirmAction = (data) => {
  498. console.log("圈层确认进入");
  499. let cmdArr = data.command.split(",");
  500. console.log(cmdArr);
  501. bluetoothUtil.transCmd(cmdArr, "10", function(res) {
  502. console.log("圈层透传");
  503. console.log(res);
  504. var arraylenth = res.length;
  505. var status = res[arraylenth - 1].substring(
  506. res[arraylenth - 1].length - 4,
  507. res[arraylenth - 1].length
  508. );
  509. console.log("打印圈层确认指令状态");
  510. console.log(status);
  511. if (status === "9000") {
  512. var form = {
  513. command: data.command,
  514. cosResponse: res.toString(),
  515. rechargeId: data.rechargeId,
  516. paidAmount: state.fee,
  517. giftAmount: 0,
  518. };
  519. const options = {
  520. type: 2,
  521. data: form,
  522. method: "POST",
  523. showLoading: true,
  524. };
  525. return new Promise(async (resolve, reject) => {
  526. const res = await request(quanConfirm, options);
  527. const data = stringToJson(res.bizContent);
  528. resolve(data);
  529. }).catch((error) => {
  530. reject(error);
  531. });
  532. }
  533. });
  534. };
  535. const uanConfirmSucessAction = (data) => {
  536. var form = {
  537. command: data.command,
  538. cosResponse: "9000",
  539. rechargeId: data.rechargeId,
  540. paidAmount: state.fee,
  541. giftAmount: 0,
  542. };
  543. const options = {
  544. type: 2,
  545. data: form,
  546. method: "POST",
  547. showLoading: true,
  548. };
  549. return new Promise(async (resolve, reject) => {
  550. const res = await request(quanConfirm, options);
  551. const data = stringToJson(res.bizContent);
  552. resolve(data);
  553. }).catch((error) => {
  554. reject(error);
  555. });
  556. };
  557. /*充值检测*/
  558. const czCheckAction = () => {
  559. var form = {
  560. cardId: state.cardId,
  561. openId: getItem(StorageKeys.OpenId),
  562. };
  563. const options = {
  564. type: 2,
  565. data: form,
  566. method: "POST",
  567. showLoading: true,
  568. };
  569. return new Promise(async (resolve, reject) => {
  570. const res = await request(cardCzPayResultCheck, options);
  571. const data = stringToJson(res.bizContent);
  572. console.log("充值检测",data)
  573. resolve(data);
  574. }).catch((error) => {
  575. reject(error);
  576. });
  577. };
  578. /*充值申请*/
  579. const cardCzApplyAction = () => {
  580. var data = {
  581. cardId: state.cardId,
  582. openId: getItem(StorageKeys.OpenId),
  583. rechargeMoney: state.fee,
  584. };
  585. const options = {
  586. type: 2,
  587. data: data,
  588. method: "POST",
  589. showLoading: true,
  590. };
  591. return new Promise(async (resolve, reject) => {
  592. const res = await request(cardCzApply, options);
  593. const data = stringToJson(res.bizContent);
  594. resolve(data);
  595. }).catch((error) => {
  596. reject(error);
  597. });
  598. };
  599. //获取微信小程序openid
  600. const getOpenID = () => {
  601. uni.login({
  602. provider: "weixin",
  603. success: function(e) {
  604. wx.request({
  605. url: `https://api.weixin.qq.com/sns/jscode2session?appid=${wechatAppID}&secret=${wechatSecret}&js_code=${e.code}&grant_type=authorization_code`,
  606. success: (res: any) => {
  607. state.openid = res.data.openid;
  608. },
  609. });
  610. },
  611. fail: function() {
  612. msg("获取不到oppenId,请检查AppID和Secret是否争取");
  613. },
  614. });
  615. };
  616. //掉起微信支付
  617. const wxPayment = () => {
  618. // #ifdef MP-WEIXIN
  619. const options = {
  620. type: 2,
  621. data: {
  622. openId: getItem(StorageKeys.OpenId),
  623. wxOpenId: state.openid,
  624. cardId: state.cardId,
  625. orderNum: state.orderNum,
  626. payConfigId: wechatPayConfigId,
  627. body: "储值卡充值",
  628. },
  629. method: "POST",
  630. showLoading: true,
  631. };
  632. request(cardCzPay, options).then((res) => {
  633. const data = stringToJson(res.bizContent);
  634. uni.requestPayment({
  635. provider: "wxpay",
  636. orderInfo: "",
  637. timeStamp: data.timestamp,
  638. nonceStr: data.noncestr,
  639. package: data.wxPackage ?? "",
  640. signType: data.signType,
  641. paySign: data.sign,
  642. success: function() {
  643. //回调订单状态
  644. console.log("回调订单状态");
  645. checkOrder();
  646. },
  647. fail: function(err) {
  648. confirm(err, () => {}, "支付失败", false);
  649. },
  650. });
  651. });
  652. // #endif
  653. };
  654. //支付成功改变订单状态
  655. const checkOrder = () => {
  656. const options = {
  657. type: 2,
  658. data: {
  659. cardId: state.cardId,
  660. openId: getItem(StorageKeys.OpenId),
  661. orderNum: state.orderNum,
  662. },
  663. method: "POST",
  664. showLoading: true,
  665. };
  666. request(cardCzPayResult, options).then((res) => {
  667. const data = stringToJson(res.bizContent);
  668. if (data.tradeState === "SUCCESS")
  669. uni.navigateTo({
  670. url: `/pages/bluetooth/bluetooth?routeType=2&&cardId=${state.cardId}&&fee=${state.fee}`,
  671. });
  672. console.log(data);
  673. });
  674. };
  675. </script>
  676. <style>
  677. .account {
  678. height: 224rpx;
  679. width: 690rpx;
  680. margin: 30rpx;
  681. position: relative;
  682. }
  683. .account .account-text {
  684. display: flex;
  685. justify-content: space-between;
  686. padding: 20rpx 50rpx;
  687. height: 100%;
  688. }
  689. .account .balance {
  690. display: flex;
  691. flex-direction: column;
  692. justify-content: center;
  693. align-items: flex-start;
  694. color: #ffffff;
  695. }
  696. .account .balance-tit {
  697. font-size: 26rpx;
  698. margin-bottom: 10rpx;
  699. }
  700. .account .balance-val {
  701. font-size: 56rpx;
  702. }
  703. .account .right-box {
  704. display: flex;
  705. flex-direction: column;
  706. justify-content: flex-start;
  707. align-items: flex-end;
  708. }
  709. .account .right-box .no {
  710. font-size: 26rpx;
  711. color: #ffffff;
  712. }
  713. .account .right-box .btn {
  714. font-size: 26rpx;
  715. padding: 0 20rpx;
  716. box-sizing: border-box;
  717. height: 42rpx;
  718. line-height: 42rpx;
  719. color: #28d20f;
  720. background: #ffffff;
  721. border-radius: 21rpx;
  722. display: inline-block;
  723. margin-top: 18rpx;
  724. }
  725. .account .head-bg {
  726. width: 690rpx;
  727. height: 224rpx;
  728. position: absolute;
  729. left: 0;
  730. top: 0;
  731. z-index: -99;
  732. }
  733. .input-box {
  734. display: flex;
  735. flex-direction: column;
  736. justify-content: center;
  737. align-items: center;
  738. padding: 20rpx 0;
  739. }
  740. .input-box .input {
  741. width: 430rpx;
  742. height: 98rpx;
  743. line-height: 98rpx;
  744. background: #f8f8f8;
  745. border: 1px solid #999999;
  746. border-radius: 6rpx;
  747. font-size: 30rpx;
  748. text-align: center;
  749. }
  750. .input-box .tips {
  751. color: #666666;
  752. font-size: 26rpx;
  753. margin-top: 18rpx;
  754. }
  755. .tabs {}
  756. .tabs .tab-tit {
  757. font-size: 30rpx;
  758. color: #333;
  759. padding: 45rpx 0 22rpx 30rpx;
  760. }
  761. .tabs .tab {
  762. display: flex;
  763. flex-wrap: wrap;
  764. justify-content: space-evenly;
  765. }
  766. .tabs .tab .item {
  767. width: 210rpx;
  768. height: 100rpx;
  769. background: #f6fff7;
  770. border: 1px solid #dcdde1;
  771. box-sizing: border-box;
  772. line-height: 100rpx;
  773. border-radius: 6rpx;
  774. text-align: center;
  775. margin-bottom: 24rpx;
  776. color: #333333;
  777. font-size: 32rpx;
  778. }
  779. .tabs .tab .item.active {
  780. border: 1px solid #24cc49;
  781. color: #24cc49;
  782. }
  783. .btn-primary {
  784. width: 670rpx;
  785. height: 80rpx;
  786. line-height: 80rpx;
  787. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  788. border-radius: 40rpx;
  789. font-size: 32rpx;
  790. color: #ffffff;
  791. margin: 200rpx 40rpx 0;
  792. text-align: center;
  793. }
  794. .uni-list{
  795. padding: 120rpx 10rpx 0 10rpx;
  796. font-size:34rpx;
  797. }
  798. label{
  799. display: flex;
  800. justify-content: space-between;
  801. margin-top:30rpx;
  802. }
  803. </style>