Commit c82d78c0 authored by raca's avatar raca

feat: 优化

parent b83bac3f
......@@ -62,11 +62,8 @@ const Group = () => {
useDidShow(async () => {
const tabbar = getTabBar<TabbarRef>(page)
tabbar?.setSelected(1)
})
useEffect(() => {
Promise.all([queryTribePoint(), fetchTribeInfo()])
}, [queryTribePoint, fetchTribeInfo])
})
useShareAppMessage(() => {
return {
......
......@@ -98,7 +98,7 @@ const MainHeader = () => {
</View>
<View className={styles.center}>
<Image className={styles.icon} src={stageDetail.firstTime ? assets['clock.png'].u : assets['clock-up.png'].u} mode="widthFix" />
<Text>{stageDetail.firstTime ? `用时 ≤${t}s` : `用时需提高${t}s`}</Text>
<Text>{stageDetail.firstTime ? `用时 ≤${t}秒` : `用时需提高${t}秒`}</Text>
</View>
</View>
<View className={styles.score}>
......@@ -151,7 +151,7 @@ const MainHeader = () => {
<Text>最佳表现</Text>
<View className={styles.details}>
<Image src={assets['clock.png'].u} className={styles.logo} />
<Text className={styles.consume}>{stageDetail.bestResultTime || 0}s</Text>
<Text className={styles.consume}>{stageDetail.bestResultTime || 0}秒</Text>
</View>
</View>
<View className={styles.achievement}>
......
......@@ -40,9 +40,9 @@ export const renderItem = (item: StageRank) => {
{item.identity === 'LEADER' && <Image className={styles.item_username_crown} src={assetsGroup['crown-small.png'].u} />}
</View>
<View className={styles.item_result}>
<Text className={styles.item_result_first}>{item.firstResultTime || '-'}s</Text>
<Text className={styles.item_result_first}>{item.firstResultTime || '-'}秒</Text>
<Text>|</Text>
<Text className={styles.item_result_best}>{item.bestResultTime || '-'}s</Text>
<Text className={styles.item_result_best}>{item.bestResultTime || '-'}秒</Text>
</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