feat: temp

This commit is contained in:
2025-09-24 13:59:42 +08:00
parent 35c79930c5
commit e89ed5943c
2 changed files with 17 additions and 14 deletions

View File

@@ -64,8 +64,7 @@ function genGameNotice(order_status, start_time) {
function GameInfo(props) {
const { detail, currentLocation, orderDetail, init } = props;
// console.log(orderDetail, "orderDetail");
const { order_status, refund_status } = orderDetail;
const { order_status, refund_status, amount } = orderDetail;
const { latitude, longitude, location, location_name, start_time, end_time, weather } =
detail || {};
@@ -219,18 +218,19 @@ function GameInfo(props) {
}
}
console.log(gameNotice)
return (
<View className={styles.gameInfoContainer}>
{["refund", "progress", "expired"].includes(orderStatus) && (
<View className={styles.paidInfo}>
{refundTextMap.get(refund_status)} ¥ {amount}
</View>
)}
{["progress", "expired"].includes(orderStatus) && (
<>
<View className={styles.paidInfo}>
{refundTextMap.get(refund_status)} ¥ 90
</View>
<View className={styles.gameStatus}>
<Text className={styles.statusText}>{gameNotice.title}</Text>
{gameNotice.content && <Text>{gameNotice.content}</Text>}
</View>
</>
<View className={styles.gameStatus}>
<Text className={styles.statusText}>{gameNotice.title}</Text>
{gameNotice.content && <Text>{gameNotice.content}</Text>}
</View>
)}
<View className={styles.gameInfo}>
{/* Date and Weather */}