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

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