From 678d6131793968b4e939ad066650e2aa9e607a52 Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 31 Jan 2025 23:31:41 +0800 Subject: [PATCH] chore: update default theme style --- web/default/src/pages/TopUp/index.js | 147 ++++++++++++++++++++++----- 1 file changed, 123 insertions(+), 24 deletions(-) diff --git a/web/default/src/pages/TopUp/index.js b/web/default/src/pages/TopUp/index.js index 45d79ef0..aa3336b7 100644 --- a/web/default/src/pages/TopUp/index.js +++ b/web/default/src/pages/TopUp/index.js @@ -1,5 +1,13 @@ import React, { useEffect, useState } from 'react'; -import { Button, Form, Grid, Header, Card, Statistic } from 'semantic-ui-react'; +import { + Button, + Form, + Grid, + Header, + Card, + Statistic, + Divider, +} from 'semantic-ui-react'; import { API, showError, showInfo, showSuccess } from '../../helpers'; import { renderQuota } from '../../helpers/render'; @@ -78,33 +86,124 @@ const TopUp = () => {
- 充值额度 + +
+ + 充值中心 +
+
+ -
- { - setRedemptionCode(e.target.value); - }} - /> - - - + + + +
+ + 在线充值 +
+
+ +
+ + + {renderQuota(userQuota)} + + 当前可用额度 + + + +
+
+
+
+ - - - {renderQuota(userQuota)} - 剩余额度 - - + + + +
+ + 兑换码充值 +
+
+ +
+ { + setRedemptionCode(e.target.value); + }} + onPaste={(e) => { + e.preventDefault(); + const pastedText = e.clipboardData.getData('text'); + setRedemptionCode(pastedText.trim()); + }} + action={ + + +
+
+