feat: 重新发布 & 编辑球局跳转更改、订单显示问题修复

This commit is contained in:
2025-09-18 17:16:24 +08:00
parent e117197737
commit 28272d7936
4 changed files with 16 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ import orderService, {
CancelType,
GameOrderRes,
OrderStatus,
RefundStatus,
refundTextMap,
} from "@/services/orderService";
import {
payOrder,
@@ -27,12 +27,6 @@ import styles from "./index.module.scss";
dayjs.locale("zh-cn");
const refundTextMap = new Map([
[RefundStatus.NONE, "已支付"],
[RefundStatus.PENDING, "退款中"],
[RefundStatus.SUCCESS, "已退款"],
]);
const gameNoticeMap = new Map([
[
"pending",

View File

@@ -5,7 +5,7 @@ import { Avatar, Dialog } from "@nutui/nutui-react-taro";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
import classnames from "classnames";
import orderService, { OrderStatus, CancelType } from "@/services/orderService";
import orderService, { OrderStatus, CancelType, refundTextMap } from "@/services/orderService";
import { withAuth, RefundPopup } from "@/components";
import { payOrder, generateOrderActions } from "@/utils";
import emptyContent from "@/static/emptyStatus/publish-empty.png";
@@ -285,7 +285,7 @@ const OrderList = () => {
styles[unPay ? "pending" : "paid"]
)}
>
<Text>{unPay ? "待支付" : "已支付"}</Text> ¥{" "}
<Text>{unPay ? "待支付" : refundTextMap.get(item.refund_status)}</Text> ¥{" "}
<Text>{item.amount}</Text>
</View>
</View>