Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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