From 1baa7c94dc4499c60cd17cb64447b82ae34a862d Mon Sep 17 00:00:00 2001 From: luorijun Date: Fri, 15 Aug 2025 10:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=BB=A4=E7=89=8C=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E5=9C=A8=20401=20=E6=97=B6=E6=89=8D=E4=BC=9A=E6=B8=85?= =?UTF-8?q?=E7=A9=BAcookie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 +++++++--- src/app/callback/sftpay/page.tsx | 50 ++++++++++++++++++++++- src/app/test/page.tsx | 68 ++++++++++---------------------- 3 files changed, 83 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index da03ded..b892820 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,21 @@ ## TODO +支付等待轮询需要使用 abortcontroller,以便在手动点击时能中断轮询请求 + +长短效切换 url 没有重写 + +手机支付后原页面保留完成等待弹窗 + +支付接口 sse 向客户端推送通知与支付结果等事件 + +微信支付渠道无法完成支付 + +整体文字替换 + 后台首页 : +- 接口联调 - banner 拉伸问题 - 图表组件高度和查询按钮越界问题 -- 磁贴组件手机视图竖排,删除“套餐”,“数量” - 公告查看更多跳转实现 手机端支付页面样式调整为类似电商的底部支付栏 @@ -12,14 +24,10 @@ MDX code 块语法高亮 全部替换封装时间范围组件,检查结束时间字段手机端适配问题(需要尾部对齐) -全局修改断点命名 - -页头链接完善跳转地址 +页尾链接完善跳转地址 树组件优化 -sse 向客户端推送通知与支付结果等事件 - IP 管理按长短效分页 调整页面大小优化:如果单页大小不超过预期大小,不需要刷新数据 diff --git a/src/app/callback/sftpay/page.tsx b/src/app/callback/sftpay/page.tsx index aabe009..2790cd7 100644 --- a/src/app/callback/sftpay/page.tsx +++ b/src/app/callback/sftpay/page.tsx @@ -6,6 +6,54 @@ export type SftpayPageProps = { export default async function SftpayPage(props: SftpayPageProps) { return ( -
111
+
+
+
+
+
+ + + +
+
+

支付成功

+

+ 您的订单已成功支付,感谢您的使用 +

+
+ +
+
+
+
+
订单编号
+
ORD-12345678
+
+
+
支付金额
+
¥ 299.00
+
+
+
支付时间
+
{new Date().toLocaleString('zh-CN')}
+
+
+
支付方式
+
SFT支付
+
+
+
+ +
+ +
+
+
+
) } diff --git a/src/app/test/page.tsx b/src/app/test/page.tsx index 7d00f5b..c87b280 100644 --- a/src/app/test/page.tsx +++ b/src/app/test/page.tsx @@ -1,54 +1,26 @@ -import Wrap from '@/components/wrap' -import {NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport} from '@radix-ui/react-navigation-menu' -import Link from 'next/link' +'use client' +import {Button} from '@/components/ui/button' +import {useEffect, useRef, useState} from 'react' export default function TestPage() { + const [show, setShow] = useState(false) + return ( -
- - -
-
-
-
- - - - Test 0 - - - - - Test 1 - - - - Test 1 Content - - - - - - Test 2 - - - - Test 2 Content - - - - - - Test 3 - - - - -
-
- -
-
+
+ + {show && }
) } + +function TestCanvas() { + const c = useRef(null) + + useEffect(() => { + console.log(c) + }, []) + + return ( + + ) +}