Commit 403153bb authored by raca's avatar raca

feat: update

parent de0e0051
...@@ -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