Commit c64a6de5 authored by hewenhao's avatar hewenhao

feat: update

parent 8cdd05d5
......@@ -63,6 +63,11 @@ const GameCompleteHead = () => {
const time = useFormatTick((gameResult?.resultTime ?? 0) * 1000)
const bonus = useMemo(() => {
if (!gameResult) return 0
return gameResult?.gearReward + gameResult?.levelReward + gameResult?.upGearReward
}, [gameResult])
const bg = useMemo(() => {
return getLevelBigBg(gameResult?.level)
}, [gameResult])
......@@ -88,7 +93,7 @@ const GameCompleteHead = () => {
<View className={styles.item_wrap}>
<View className={styles.item}>
<Image src={require('../assets/bonus.png')} className={styles.icon}></Image>
<View className={styles.item_text}>+30</View>
<View className={styles.item_text}>+{bonus}</View>
</View>
<View className={styles.item}>
<Image src={require('../assets/right-count.png')} className={styles.icon}></Image>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment