feat: 订单显示问题修复、修复球局开局后可加入的问题

This commit is contained in:
2025-10-01 17:26:29 +08:00
parent d30909e559
commit 9cdbfa42ad
3 changed files with 24 additions and 14 deletions

View File

@@ -276,6 +276,7 @@ const OrderList = () => {
const unPay =
item.order_status === OrderStatus.PENDING &&
item.cancel_type === CancelType.NONE;
const timeout = item.cancel_type === CancelType.TIMEOUT;
const { game_info } = item;
const {
@@ -297,17 +298,21 @@ const OrderList = () => {
>
<View className={styles.gameTitle}>
<View className={styles.title}>{item?.game_info?.title}</View>
<View
className={classnames(
styles.payNum,
styles[unPay ? "pending" : "paid"]
)}
>
<Text>
{unPay ? "待支付" : refundTextMap.get(item.refund_status)}
</Text>{" "}
¥ <Text>{item.amount}</Text>
</View>
{!timeout && (
<View
className={classnames(
styles.payNum,
styles[unPay ? "pending" : "paid"]
)}
>
<Text>
{unPay
? "待支付"
: refundTextMap.get(item.refund_status)}
</Text>{" "}
¥ <Text>{item.amount}</Text>
</View>
)}
</View>
<View className={styles.gameTime}>
{generateTimeMsg(item.game_info || {})}