recharge.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. <template>
  2. <view class="withdraw">
  3. <view class="content">
  4. <!-- 充值相关内容 -->
  5. <view style="height: auto">
  6. <view class="balance-box">
  7. <view>
  8. <view class="balance-title">可用余额</view>
  9. <view class="balance-rmb">
  10. <view style="display: flex; align-items: flex-end">¥</view>
  11. <view class="rmb">{{ userInfo.nowMoney }}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="tabs">
  16. <view
  17. class="tabs-item"
  18. :class="[tabsIndex === item.key ? 'active' : '']"
  19. v-for="item in tabsList"
  20. :key="item.key"
  21. @click="tabsChange(item)"
  22. >
  23. {{ item.title }}
  24. </view>
  25. </view>
  26. <view class="box-list" v-if="tabsIndex === 0">
  27. <view class="box">
  28. <view class="title-tip">自主打款</view>
  29. <view class="item">
  30. <view class="targe">转</view>
  31. <view class="address">
  32. <view style="width: 100%">
  33. 用户名:{{ rechargeInfo.alipayUsername }}
  34. </view>
  35. <view>
  36. 账&nbsp;&nbsp;&nbsp;户:{{ rechargeInfo.alipayAccount }}
  37. </view>
  38. </view>
  39. <view class="end">
  40. <view
  41. class="copy"
  42. @click="copy(`账户:${rechargeInfo.alipayAccount}`)"
  43. >
  44. 复制
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="box-list" v-else>
  51. <view class="box">
  52. <view class="title-tip">自主打款</view>
  53. <view class="item">
  54. <view class="targe">转</view>
  55. <view
  56. class="address"
  57. style="display: flex; flex-wrap: wrap; height: 140rpx"
  58. >
  59. <view>用户名:{{ rechargeInfo.bankCardBank }}</view>
  60. <view>卡号:{{ rechargeInfo.bankCardNumber }}</view>
  61. <view>开户行:{{ rechargeInfo.bankCardUsername }}</view>
  62. </view>
  63. <view class="end">
  64. <view
  65. class="copy"
  66. @click="
  67. copy(
  68. `用户名:${rechargeInfo.bankCardBank},开户行:${rechargeInfo.bankCardNumber},卡号:${rechargeInfo.bankCardUsername}`
  69. )
  70. "
  71. >
  72. 复制
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view style="padding: 0 30px; background-color: #fff; padding-top: 30rpx">
  80. <view class="withdraw-body">
  81. <view class="title-tip">充值金额</view>
  82. <view class="input-money">
  83. <view class="rmb">
  84. <view style="width: 20px">¥</view>
  85. </view>
  86. <view style="width: 100%">
  87. <input
  88. placeholder="请输入充值金额(最低100元起充)"
  89. v-model.number="extract"
  90. type="digit"
  91. class="t-input"
  92. @input="onKeyInput"
  93. />
  94. </view>
  95. </view>
  96. <view class="info-money">
  97. <view v-if="is_lowest">
  98. <text class="info-money-num" style="color: #ff1e0f"
  99. >最低{{ lowest }}元起充,账户充值{{ extract }}元</text
  100. >
  101. </view>
  102. </view>
  103. <view v-if="tabsIndex === 0" style="margin-top: 50rpx">
  104. <view class="title-tip">订单号</view>
  105. <view class="input-order">
  106. <view class="rmb">
  107. <view style="width: 20px"></view>
  108. </view>
  109. <view style="width: 100%">
  110. <input
  111. placeholder="请输入订单号"
  112. v-model="order_no"
  113. class="t-input"
  114. />
  115. </view>
  116. </view>
  117. </view>
  118. <view style="margin-top: 50rpx">
  119. <view class="title-tip">转账图片</view>
  120. <view style="margin-top: 20px">
  121. <view class="upload-box">
  122. <up-upload
  123. :fileList="imageList"
  124. uploadIcon="plus"
  125. @afterRead="afterRead"
  126. @delete="deletePic"
  127. name="1"
  128. multiple
  129. :maxCount="1"
  130. >
  131. <template #trigger>
  132. <view class="upload-block">
  133. <uni-icons
  134. size="38"
  135. color="#ccc"
  136. type="plusempty"
  137. ></uni-icons>
  138. </view>
  139. </template>
  140. </up-upload>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- <view :class="'btn-box tx' + (is_post ? '-active' : '')">
  145. <view class="btn" @click="handleShowModel">提交申请</view>
  146. </view> -->
  147. <view class="btn-box" @click="handleShowModel">
  148. <image class="btn" src="/static/images/sb_btn.png"></image>
  149. <text class="btn-text">提交申请</text>
  150. </view>
  151. <view class="btn-tip" v-if="tabsIndex === 0">
  152. 充值提交后无需审核,0秒到账!
  153. <span style="color: red">(推荐)</span>
  154. </view>
  155. <view class="aggregate" @click="aggregate = !aggregate">
  156. <image
  157. class="choose"
  158. :src="
  159. aggregate
  160. ? '/static/recycle/choose.png'
  161. : '/static/recycle/nochoose.png'
  162. "
  163. mode="scaleToFill"
  164. ></image>
  165. <view class="aggre">
  166. 阅读并同意
  167. <span class="aggre-text" @click="showAggre">《充值协议》</span>
  168. </view>
  169. </view>
  170. </view>
  171. <view v-if="tabsIndex === 0" class="process-guidelines">
  172. <view v-if="tabsIndex === 0" style="margin: 30rpx 0"
  173. >支付宝充值流程指引</view
  174. >
  175. <image
  176. @click="
  177. showImage(
  178. 'https://mp-c7c90a6c-c53b-48dd-bd94-692abc111f89.cdn.bspapp.com/2025/08/07/65570280-62375873-0.png'
  179. )
  180. "
  181. src="https://mp-c7c90a6c-c53b-48dd-bd94-692abc111f89.cdn.bspapp.com/2025/08/07/65570280-62375873-0.png"
  182. width="100%"
  183. height="100%"
  184. mode="aspectFit"
  185. class="preview-image"
  186. ></image>
  187. </view>
  188. </view>
  189. </view>
  190. <uni-popup
  191. ref="singPopup"
  192. type="bottom"
  193. borderRadius="10px 10px 0 0"
  194. maskBackgroundColor="rgba(0,0,0,0)"
  195. >
  196. <view class="signContent">
  197. <scroll-view scrollY class="scroll">
  198. <up-parse :content="content"></up-parse>
  199. </scroll-view>
  200. <view
  201. class="comfireBtn footer"
  202. @click="
  203. aggregate = true;
  204. $refs.singPopup.close();
  205. "
  206. >
  207. 我已详细知悉
  208. </view>
  209. </view>
  210. </uni-popup>
  211. <!-- 图片预览 -->
  212. <!-- <image
  213. src="https://mp-c7c90a6c-c53b-48dd-bd94-692abc111f89.cdn.bspapp.com/2025/08/07/65570280-62375873-0.png"
  214. ></image> -->
  215. <!-- 底部占位 -->
  216. <view style="width: 100%; height: 100rpx"></view>
  217. </view>
  218. </template>
  219. <script setup>
  220. import { onLoad } from "@dcloudio/uni-app";
  221. import { ref, computed, watch } from "vue";
  222. import { useAppStore } from "@/stores/app";
  223. import { useImageUpload } from "@/hooks/useImageUpload";
  224. import { rechargeAlipayAPI, rechargeBankAPI } from "@/api/functions";
  225. import { agreementGetoneApi } from "@/api/user";
  226. import { getMiniProgramData } from "@/api/api";
  227. // 1. 初始化图片上传钩子(解构响应式数据和方法)
  228. const { imageList, afterRead, deletePic, uploadLoading } = useImageUpload({
  229. pid: 12,
  230. model: "zfb",
  231. });
  232. // 2. 获取Pinia Store实例
  233. const appStore = useAppStore();
  234. // 3. 定义响应式数据(替代Vue2的data选项)
  235. // 基础类型用ref,复杂类型(对象/数组)也可用ref(Vue3推荐)
  236. const transferImg = ref([]); // 转账图片
  237. const agreement = ref("");
  238. const extract = ref(null); // 充值金额
  239. const is_lowest = ref(false); // 是否低于最低充值额
  240. const is_post = ref(false); // 提交按钮是否可用
  241. const lowest = ref(100); // 最低充值额
  242. const aggregate = ref(false); // 是否同意协议
  243. const tabsIndex = ref(0); // 当前选中的标签(支付宝/银行卡)
  244. const tabsList = ref([
  245. { key: 0, title: "支付宝" },
  246. { key: 1, title: "银行卡" },
  247. ]); // 标签列表(固定数据,也可不用ref,直接const tabsList = [...])
  248. const order_no = ref(null); // 订单号
  249. const showPreview = ref(false); // 是否显示图片预览
  250. // const ImageUrl = ref([{ id: 1, src: "/static/logo.png" }]); // 预览图片列表
  251. const previewImageUrl = ref(""); // 预览图片地址
  252. const userInfo = ref({});
  253. // 充值账户
  254. const rechargeInfo = ref({
  255. alipayAccount: "",
  256. alipayUsername: "",
  257. bankCardBank: "",
  258. bankCardNumber: "",
  259. bankCardUsername: "",
  260. });
  261. // tabs切换
  262. const tabsChange = (item) => {
  263. tabsIndex.value = item.key;
  264. extract.value = null;
  265. order_no.value = null;
  266. imageList.value = [];
  267. };
  268. // 4. 定义方法(替代Vue2的methods选项)
  269. // 复制文本方法
  270. const copy = (item) => {
  271. uni.setClipboardData({
  272. data: item,
  273. success: () => {
  274. uni.showToast({
  275. title: "复制成功",
  276. icon: "success",
  277. });
  278. },
  279. fail: (err) => {
  280. uni.showToast({
  281. title: "复制失败",
  282. icon: "none",
  283. });
  284. console.error("复制失败:", err);
  285. },
  286. });
  287. };
  288. // 输入框输入事件
  289. const onKeyInput = () => {
  290. checkMoney();
  291. };
  292. // 检查充值金额是否符合要求
  293. const checkMoney = () => {
  294. // 处理null/undefined情况
  295. const currentAmount = Number(extract.value);
  296. if (isNaN(currentAmount)) {
  297. is_post.value = false;
  298. is_lowest.value = true;
  299. return;
  300. }
  301. if (currentAmount >= lowest.value) {
  302. is_post.value = true;
  303. is_lowest.value = false;
  304. } else {
  305. is_lowest.value = true;
  306. is_post.value = false;
  307. }
  308. };
  309. // 提交申请(模板调用但原代码未实现,补充空函数避免报错)
  310. const handleShowModel = async () => {
  311. // 此处可添加提交前的校验(如是否同意协议、是否上传图片等)
  312. // 示例:
  313. if (!aggregate.value) {
  314. uni.showToast({
  315. title: "请先阅读并同意《充值协议》",
  316. icon: "none",
  317. });
  318. return;
  319. }
  320. if (!extract.value || extract.value < lowest.value) {
  321. uni.showToast({
  322. title: `请输入不低于${lowest.value}元的充值金额`,
  323. icon: "none",
  324. });
  325. return;
  326. }
  327. if (!imageList.value.length) {
  328. uni.showToast({
  329. title: "请上传转账图片",
  330. icon: "none",
  331. });
  332. return;
  333. }
  334. // 支付宝
  335. if (tabsIndex.value == 0) {
  336. const res = await rechargeAlipayAPI({
  337. orderNo: order_no.value,
  338. price: extract.value,
  339. rechargeImage: imageList.value.map((v) => v.info.url),
  340. });
  341. // console.log(res);
  342. if (res.code == 200) {
  343. uni.showToast({ title: "充值成功!" });
  344. }
  345. } else {
  346. const res = await rechargeBankAPI({
  347. price: extract.value,
  348. rechargeImage: imageList.value.map((v) => v.info.url),
  349. });
  350. if (res.code == 200) {
  351. uni.showToast({ title: "充值成功!" });
  352. setTimeout(() => {
  353. uni.navigateTo({
  354. url: "/pages/users/vault/index",
  355. });
  356. });
  357. }
  358. }
  359. // 银行卡
  360. };
  361. const singPopup = ref(null); // 需在模板中给uni-popup添加ref="singPopup"
  362. const showAggre = () => {
  363. singPopup.value?.open();
  364. };
  365. async function updateWxSettingInfo() {
  366. const { data } = await getMiniProgramData();
  367. rechargeInfo.value = {
  368. alipayAccount: data.alipayAccount || "",
  369. alipayUsername: data.alipayUsername || "",
  370. bankCardBank: data.bankCardBank || "",
  371. bankCardNumber: data.bankCardNumber || "",
  372. bankCardUsername: data.bankCardUsername || "",
  373. };
  374. }
  375. // 显示图片预览(模板调用但原代码未实现,补充空函数避免报错)
  376. const showImage = (url) => {
  377. uni.previewImage({
  378. current: url, // 当前显示图片的URL
  379. urls: [url], // 需要预览的图片URL列表
  380. success: () => {},
  381. fail: (err) => {
  382. console.error("预览图片失败:", err);
  383. },
  384. });
  385. };
  386. // 获取协议
  387. const content = ref("");
  388. function agreementGetoneFn() {
  389. // 资产说明
  390. agreementGetoneApi({ name: "recharge_rule" }).then((res) => {
  391. content.value = res.data?.content;
  392. });
  393. }
  394. // 5. 生命周期钩子(uni-app的onLoad,Vue3中直接使用)
  395. onLoad((options) => {
  396. if (appStore?.$wxConfig?.auditModeEnabled) {
  397. // uni.reLaunch({
  398. // url: `/pages/index/index`,
  399. // });
  400. // return;
  401. }
  402. agreementGetoneFn();
  403. updateWxSettingInfo();
  404. // 从Pinia Store获取用户信息(注意:Store中的userInfo若为响应式,需确保已加载)
  405. userInfo.value = appStore.userInfo;
  406. // 可选:监听Store中userInfo的变化,实时更新本地userInfo
  407. watch(
  408. () => appStore.userInfo,
  409. (newUserInfo) => {
  410. userInfo.value = newUserInfo;
  411. },
  412. { immediate: true } // 立即执行一次
  413. );
  414. });
  415. // 6. 计算属性(替代Vue2的computed选项)
  416. // 原代码中computed为空,此处示例如何定义(按需添加)
  417. const computedExample = computed(() => {
  418. // 示例:计算充值金额的格式化显示
  419. return extract.value ? `¥${Number(extract.value).toFixed(2)}` : "¥0.00";
  420. });
  421. // 7. 监听器(替代Vue2的watch选项)
  422. // 示例:监听extract变化,自动检查金额(也可通过@input触发,二选一)
  423. watch(
  424. extract,
  425. (newVal) => {
  426. checkMoney();
  427. },
  428. { immediate: true } // 初始值也触发检查
  429. );
  430. // 监听tabsIndex变化(按需添加)
  431. watch(tabsIndex, (newIndex) => {
  432. if (newIndex !== 0) {
  433. order_no.value = null;
  434. }
  435. });
  436. </script>
  437. <style lang="scss" scoped>
  438. page {
  439. height: 100%;
  440. background-color: #f7f7f7;
  441. }
  442. ::v-deep .file-list-row {
  443. background: #ededed;
  444. overflow: hidden;
  445. border-radius: 20rpx;
  446. }
  447. .upload-box {
  448. margin-top: 40rpx;
  449. .upload-block {
  450. width: 160rpx;
  451. height: 160rpx;
  452. border: 1px solid #ccc;
  453. border-radius: 10rpx;
  454. display: flex;
  455. flex-direction: column;
  456. justify-content: center;
  457. align-items: center;
  458. color: #ccc;
  459. font-weight: 700;
  460. font-size: 26rpx;
  461. }
  462. }
  463. .withdraw {
  464. height: 100%;
  465. // background-color: #f7f7f7;
  466. background-image: $uni-bg-primary !important;
  467. .content {
  468. // background: url('https://mp-ad17e5cd-05c1-4df9-b060-556e25dac130.cdn.bspapp.com/mini/static/20250529221733.jpg');
  469. background-size: 100% 500rpx;
  470. background-position: top center;
  471. background-repeat: no-repeat;
  472. box-sizing: border-box;
  473. // padding: 0 30rpx;
  474. }
  475. &-body {
  476. background-color: #fff;
  477. padding: 50rpx 0;
  478. font-size: 14px;
  479. .input-money,
  480. .input-order {
  481. box-sizing: border-box;
  482. }
  483. .input-money {
  484. display: flex;
  485. align-items: center;
  486. border-bottom: 1px solid #eaeef1;
  487. margin-top: 30rpx;
  488. background-color: #ededed;
  489. padding: 20rpx;
  490. border-radius: 15rpx;
  491. width: 100%;
  492. .rmb {
  493. font-size: 38rpx;
  494. // text-wrap: nowrap;
  495. font-weight: 300;
  496. font-family: "Calibri";
  497. }
  498. .t-input {
  499. height: 1.4em;
  500. width: 100%;
  501. font-size: 26rpx;
  502. border: none;
  503. position: relative;
  504. left: 1%;
  505. outline: none;
  506. }
  507. }
  508. .input-order {
  509. display: flex;
  510. align-items: center;
  511. border-bottom: 1px solid #eaeef1;
  512. margin-top: 30rpx;
  513. background-color: #ededed;
  514. padding: 20rpx;
  515. border-radius: 15rpx;
  516. width: 100%;
  517. .t-input {
  518. height: 1.4em;
  519. font-size: 30rpx;
  520. border: none;
  521. position: relative;
  522. left: 0;
  523. outline: none;
  524. }
  525. }
  526. .info-money {
  527. margin-top: 10px;
  528. font-size: 12px;
  529. margin-bottom: 20px;
  530. &-num {
  531. color: #b2b2b2;
  532. }
  533. }
  534. .tx {
  535. button {
  536. color: #b2b2b2;
  537. }
  538. }
  539. .tx-active {
  540. button {
  541. color: #fff;
  542. background: #c4bba6;
  543. }
  544. }
  545. .aggregate {
  546. display: flex;
  547. align-items: center;
  548. justify-content: center;
  549. padding: 10px;
  550. .aggre {
  551. font-size: 14px;
  552. margin-left: 10px;
  553. .aggre-text {
  554. color: #3ab0ff;
  555. }
  556. }
  557. }
  558. .choose {
  559. width: 16px;
  560. height: 16px;
  561. }
  562. }
  563. .box {
  564. display: flex;
  565. flex-direction: column;
  566. background-color: #fff;
  567. padding: 50rpx;
  568. padding-top: 50rpx;
  569. width: 100%;
  570. padding-bottom: 0;
  571. box-sizing: border-box;
  572. &-title {
  573. font-size: 14px;
  574. }
  575. }
  576. .tabs {
  577. display: flex;
  578. height: 80rpx;
  579. border-radius: 40rpx;
  580. padding: 0 20rpx;
  581. color: #000000;
  582. font-size: 30rpx;
  583. box-sizing: border-box;
  584. .tabs-item {
  585. width: 50%;
  586. height: 100%;
  587. display: flex;
  588. justify-content: center;
  589. position: relative;
  590. box-sizing: border-box;
  591. color: #484848;
  592. font-size: 30rpx;
  593. }
  594. .active {
  595. color: #000;
  596. font-weight: 500;
  597. }
  598. .active::after {
  599. position: absolute;
  600. bottom: -10rpx;
  601. left: 50%;
  602. transform: translateX(-50%);
  603. content: "";
  604. border-style: solid;
  605. border-width: 0 10px 10px 10px;
  606. border-color: transparent transparent #ffffff transparent;
  607. width: 0;
  608. height: 0;
  609. opacity: 0;
  610. transform-origin: center top;
  611. animation: showTriangle 0.3s ease-out forwards;
  612. }
  613. }
  614. @keyframes showTriangle {
  615. 0% {
  616. opacity: 0;
  617. transform: translateY(-50%) scaleX(0);
  618. }
  619. 100% {
  620. opacity: 1;
  621. transform: translateY(-50%) scaleX(1);
  622. }
  623. }
  624. .box-list {
  625. width: 100%;
  626. box-sizing: border-box;
  627. .title {
  628. font-size: 14px;
  629. }
  630. }
  631. .box {
  632. display: flex;
  633. flex-direction: column;
  634. align-items: flex-start;
  635. justify-content: center;
  636. background-color: #f7f7f7;
  637. border-top-left-radius: 40rpx;
  638. border-top-right-radius: 40rpx;
  639. width: 100%;
  640. box-sizing: border-box;
  641. padding: 14px;
  642. padding-top: 60rpx;
  643. .head {
  644. font-size: 14px;
  645. }
  646. .item {
  647. width: 100%;
  648. display: flex;
  649. align-items: center;
  650. margin-top: 30px;
  651. .source {
  652. background-color: #f7af74;
  653. }
  654. .targe {
  655. background-color: #cd9933;
  656. }
  657. .source,
  658. .targe {
  659. display: flex;
  660. justify-content: center;
  661. align-items: center;
  662. color: #fff;
  663. width: 35px;
  664. height: 35px;
  665. border-radius: 50%;
  666. margin-right: 20rpx;
  667. }
  668. .address {
  669. height: 100rpx;
  670. display: flex;
  671. flex-wrap: wrap;
  672. align-items: center;
  673. flex: 1;
  674. font-size: 26rpx;
  675. font-family: "微软雅黑";
  676. color: #000000;
  677. }
  678. .write {
  679. margin: 0 10px;
  680. font-size: 14px;
  681. color: #888888;
  682. }
  683. .end {
  684. display: flex;
  685. justify-content: center;
  686. align-items: center;
  687. .copy {
  688. color: #888888;
  689. border-radius: 3px;
  690. border: 1px solid #888888;
  691. font-size: 24rpx;
  692. padding: 6rpx 20rpx;
  693. margin-right: 10rpx;
  694. }
  695. }
  696. }
  697. }
  698. /* 图片预览样式 */
  699. .image-preview-mask {
  700. position: fixed;
  701. top: 0;
  702. left: 0;
  703. width: 100%;
  704. height: 100%;
  705. background-color: rgba(0, 0, 0, 0.8);
  706. display: flex;
  707. justify-content: center;
  708. align-items: center;
  709. z-index: 9999;
  710. .imgBox {
  711. width: 100%;
  712. height: 100vh;
  713. .preview-image {
  714. width: 100%;
  715. height: 100% !important;
  716. }
  717. }
  718. }
  719. .process-guidelines {
  720. color: rgb(0, 0, 0);
  721. font-size: 32rpx;
  722. margin-top: 20rpx;
  723. margin-bottom: 20rpx;
  724. display: flex;
  725. flex-wrap: wrap;
  726. justify-content: center;
  727. border: 1rpx solid #f5f5f5;
  728. border-radius: 20rpx;
  729. box-shadow: 0 0px 10px 6px #efefef;
  730. padding-bottom: 70rpx;
  731. box-sizing: border-box;
  732. }
  733. .title-tip {
  734. position: relative;
  735. padding-left: 20rpx;
  736. height: 50rpx;
  737. display: flex;
  738. align-items: center;
  739. font-size: 32rpx;
  740. font-family: "黑体";
  741. width: 100%;
  742. box-sizing: border-box;
  743. &::before {
  744. position: absolute;
  745. top: 50%;
  746. transform: translatey(-40%);
  747. left: 0;
  748. content: "";
  749. width: 2px;
  750. height: 18px;
  751. background-color: #f8c007;
  752. }
  753. }
  754. .balance-box {
  755. height: 300rpx;
  756. padding-left: 60rpx;
  757. color: #000;
  758. display: flex;
  759. align-items: center;
  760. flex-wrap: wrap;
  761. width: 100%;
  762. box-sizing: border-box;
  763. .balance-title {
  764. width: 100%;
  765. font-size: 30rpx;
  766. // font-weight: 500;
  767. margin-bottom: 10rpx;
  768. // font-family: "微软雅黑";
  769. }
  770. .balance-rmb {
  771. width: 100%;
  772. display: flex;
  773. width: 100%;
  774. font-size: 56rpx;
  775. .rmb {
  776. font-size: 56rpx;
  777. // font-weight: 500;
  778. margin-left: 10rpx;
  779. }
  780. }
  781. }
  782. .btn-box {
  783. height: 100rpx;
  784. display: flex;
  785. justify-content: center;
  786. align-items: center;
  787. margin-bottom: 40rpx;
  788. margin-top: 80rpx;
  789. width: 100%;
  790. box-sizing: border-box;
  791. position: relative;
  792. .btn {
  793. height: 80rpx;
  794. width: 380rpx;
  795. }
  796. .btn-text {
  797. font-size: 30rpx;
  798. color: #000;
  799. position: absolute;
  800. top: 50%;
  801. left: 50%;
  802. transform: translate(-50%, -50%);
  803. }
  804. }
  805. .btn-tip {
  806. height: 30rpx;
  807. display: flex;
  808. justify-content: center;
  809. align-items: center;
  810. margin-bottom: 30rpx;
  811. color: #808080;
  812. width: 100%;
  813. box-sizing: border-box;
  814. }
  815. }
  816. .signContent {
  817. background-color: #f8f8f8;
  818. padding: 20px;
  819. box-sizing: border-box;
  820. display: flex;
  821. justify-content: center;
  822. align-items: center;
  823. flex-direction: column;
  824. border-radius: 20px 20px 0 0;
  825. .scroll {
  826. background-color: #fff;
  827. padding: 4px;
  828. height: 300px;
  829. overflow-y: hidden;
  830. border: 1px solid #dfdfdf;
  831. }
  832. .footer {
  833. margin-top: 10px;
  834. color: #fff;
  835. padding: 4px 20px;
  836. border-radius: 20px;
  837. background: linear-gradient(to right, #8ed187, #5dd665);
  838. }
  839. }
  840. </style>