Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

recharge.vue 20KB

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