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.

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