Commit 22184a4b authored by raca's avatar raca

feat: 负秒数变0.1

parent efdaff1f
...@@ -58,7 +58,7 @@ const MainHeader = () => { ...@@ -58,7 +58,7 @@ const MainHeader = () => {
const renderAgain = useCallback(() => ( const renderAgain = useCallback(() => (
<View className={styles.againDetails}> <View className={styles.againDetails}>
{stageDetail?.nextSteps?.map((item, index) => ( {stageDetail?.nextSteps?.map((item, index) => (
<GuideCompleteScene2 index={index + 2}> <GuideCompleteScene2 key={index} index={index + 2}>
<View className={styles.content}> <View className={styles.content}>
<Image className={styles.badge} style={{ marginRight: 10 }} src={formatNextStep(item).u} mode="widthFix" /> <Image className={styles.badge} style={{ marginRight: 10 }} src={formatNextStep(item).u} mode="widthFix" />
<View className={styles.center}> <View className={styles.center}>
...@@ -66,7 +66,7 @@ const MainHeader = () => { ...@@ -66,7 +66,7 @@ const MainHeader = () => {
<Image style={{ width: 14, height: 15 }} src={require('../assets/down-arrow.png')} mode="widthFix" /> <Image style={{ width: 14, height: 15 }} src={require('../assets/down-arrow.png')} mode="widthFix" />
{item.nextStepTime}秒,就能获得 {item.nextStepTime}秒,就能获得
<Text style={{ color: '#FFCF83', fontWeight: 600 }}> <Text style={{ color: '#FFCF83', fontWeight: 600 }}>
{formatNextStep(item).t} {Number(formatNextStep(item).t || 0) <= 0 ? 0.1 : formatNextStep(item).t}
</Text> </Text>
</View> </View>
</View> </View>
......
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