客服推送处理+后台操作

This commit is contained in:
Yeomai committed 2026-09-30 20:57:47 +08:00
1 parent b652132957
commit a81c637a98
11 files changed
+302 -54

No files matched your search

@@ -8,7 +8,8 @@ import { Button, Card, Empty, Input, Notice, Select } from '@/components/ui';
interface OrderRow {
id: number;
out_trade_no: string;
/** 后台主动发放 / 回收没有支付单号,服务端返回 null */
out_trade_no: string | null;
wx_order_id: string | null;
status: number;
amount_fen: number;
@@ -140,6 +141,8 @@ export default function OrdersPage() {
{ value: 2, label: '已开通' },
{ value: 3, label: '已退款' },
{ value: 4, label: '已关闭' },
{ value: 5, label: '后台主动发放' },
{ value: 6, label: '后台主动回收' },
]}
/>
<Button variant="ghost" onClick={() => load(1, status === '-1' ? '' : status)}>
@@ -168,7 +171,7 @@ export default function OrdersPage() {
<tbody>
{items.map((o) => (
<tr key={o.id} className="border-b border-gray-100 hover:bg-gray-50">
<td className="px-2 py-2 font-mono text-xs">{o.out_trade_no}</td>
<td className="px-2 py-2 font-mono text-xs">{o.out_trade_no || '—'}</td>
<td className="px-2 py-2">
<div>{o.nickname || <span className="text-gray-400">游客</span>}</div>
<div className="font-mono text-xs text-gray-400">{o.openid}</div>