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

recharge.vue 19KB

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