feat: temp
This commit is contained in:
@@ -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 */}
|
||||
|
||||
Reference in New Issue
Block a user