From da511bfabbe1a140d603ddf6a385069ab8cf1832 Mon Sep 17 00:00:00 2001
From: Eamon-meng <17516219072@163.com>
Date: Fri, 27 Jun 2025 14:57:14 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AF=BC=E8=88=AA=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E9=93=BE=E6=8E=A5&=E6=9B=B4=E6=96=B0=E6=94=AF?=
=?UTF-8?q?=E4=BB=98=E4=BD=99=E9=A2=9D=E8=AE=A1=E7=AE=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/(home)/@footer/page.tsx | 6 +++---
src/app/(home)/@header/menu-help.tsx | 2 +-
src/app/admin/(dashboard)/_client/charts.tsx | 8 --------
.../composites/purchase/short/right.tsx | 19 +------------------
4 files changed, 5 insertions(+), 30 deletions(-)
diff --git a/src/app/(home)/@footer/page.tsx b/src/app/(home)/@footer/page.tsx
index a5dcc54..c65ae8d 100644
--- a/src/app/(home)/@footer/page.tsx
+++ b/src/app/(home)/@footer/page.tsx
@@ -35,9 +35,9 @@ export default function Footer(props: FooterProps) {
diff --git a/src/app/admin/(dashboard)/_client/charts.tsx b/src/app/admin/(dashboard)/_client/charts.tsx
index ff121e9..54e05b5 100644
--- a/src/app/admin/(dashboard)/_client/charts.tsx
+++ b/src/app/admin/(dashboard)/_client/charts.tsx
@@ -45,14 +45,6 @@ export default function Charts({initialData}: ChartsProps) {
resource_no: zod.string().min(11, '请输入正确的套餐编号').max(11, '请输入正确的套餐编号').optional(),
create_after: zod.date().optional(),
create_before: zod.date().optional(),
- }).refine((data) => {
- if (data.create_after && data.create_before) {
- return data.create_before >= data.create_after
- }
- return true
- }, {
- message: '结束时间不得早于开始时间',
- path: ['create_before'],
})
type FormValues = zod.infer
diff --git a/src/components/composites/purchase/short/right.tsx b/src/components/composites/purchase/short/right.tsx
index 7d2f256..6832482 100644
--- a/src/components/composites/purchase/short/right.tsx
+++ b/src/components/composites/purchase/short/right.tsx
@@ -30,24 +30,7 @@ export default function Right() {
const quota = form.watch('quota')
const price = useMemo(() => {
- // var factor int32
- // switch data.Mode {
- // case 1:
- // factor = data.DailyLimit * data.Expire
- // case 2:
- // factor = data.Quota
- // }
- //
- // var base = data.Live
- // if base == 180 {
- // base = 150
- // }
- //
- // var dec = decimal.Decimal{}.
- // Add(decimal.NewFromInt32(base * factor)).
- // Div(decimal.NewFromInt(30000))
- // data.price = &dec
- const base = live === '180' ? 150 : Number(live) * 60
+ const base = live === '180' ? 150 : Number(live)
const factor = {
1: Number(expire) * dailyLimit,
2: quota,