Commit 5c64d856 authored by hewenhao's avatar hewenhao

Merge branch 'master' of dev.jiuaoedu.com:hewenhao/GeekLearnMathWeapp

parents 6c0742f3 778cb505
...@@ -107,13 +107,14 @@ const MainHeader = () => { ...@@ -107,13 +107,14 @@ const MainHeader = () => {
</View> </View>
<View className={styles.achievement}> <View className={styles.achievement}>
<Text className={styles.text}>勋章成就</Text> <Text className={styles.text}>勋章成就</Text>
{/* 以后优化 */}
{stageDetailPre {stageDetailPre
? ( ? (
<> <>
<View className={classNames(styles.details,)}> <View className={classNames(styles.details,)}>
<Image src={formatLevelAchieve(stageDetailPre.firstTime ? stageDetail?.level : stageDetailPre?.level)} className={styles.logo} /> <Image src={formatLevelAchieve(stageDetailPre.firstTime ? stageDetail?.level : (stageDetailPre?.level || stageDetail?.level))} className={styles.logo} />
<Image src={formatTopAchieve(stageDetailPre.firstTime ? stageDetail?.gear?.toString() : stageDetailPre?.gear?.toString())} className={styles.logo} /> <Image src={formatTopAchieve(stageDetailPre.firstTime ? stageDetail?.gear?.toString() : (stageDetailPre?.gear?.toString() || stageDetail?.gear?.toString()))} className={styles.logo} />
<Image src={(isKing || (stageDetailPre.firstTime ? stageDetail?.upGear : stageDetailPre?.upGear)) ? assets['upgear.png'].u : assets['upgear-un.png'].u} className={styles.logo} /> <Image src={(isKing || (stageDetailPre.firstTime ? stageDetail?.upGear : (stageDetailPre?.upGear || stageDetail?.upGear))) ? assets['upgear.png'].u : assets['upgear-un.png'].u} className={styles.logo} />
</View> </View>
<View className={styles.beforeDetails}> <View className={styles.beforeDetails}>
......
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