细节完善

This commit is contained in:
kron
2025-08-21 09:36:00 +08:00
parent 70b3a25369
commit d9c9319d24
3 changed files with 15 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ onMounted(async () => {
}}</text>
<text :style="{ opacity: expand ? 0 : 1 }" v-if="itemIndex === 3">{{
selectedIndex !== -1 && secondSelectIndex !== -1
? `${selectedIndex + 1}/${groupArrows[secondSelectIndex]}`
? `${selectedIndex}/${groupArrows[secondSelectIndex]}`
: itemTexts[itemIndex]
}}</text>
</block>

View File

@@ -62,8 +62,8 @@ onUnmounted(() => {
}"
>
<view :style="{ display: 'flex', flexDirection: 'column' }">
<text :style="{ color: '#fed847' }">预先射几箭测试</text>
<text>请确保射箭距离有5米</text>
<text :style="{ color: '#fed847' }">确保站距达到5米</text>
<text>低于5米的射箭无效</text>
</view>
</view>
</Guide>

View File

@@ -38,6 +38,15 @@ const handleSelect = (index) => {
}
return false;
});
if (!myData.value.userId) {
myData.value = {
userId: user.value.id,
TotalGames: 0,
totalScore: 0,
mvpCount: 0,
TenRings: 0,
};
}
}
};
@@ -178,19 +187,19 @@ const subTitles = ["排位赛积分", "MVP次数", "十环次数"];
<text class="rank-item-integral" v-if="selectedIndex === 0">
<text
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
>{{ myData.totalScore }}</text
>{{ myData.totalScore || 0 }}</text
></text
>
<text class="rank-item-integral" v-if="selectedIndex === 1">
<text
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
>{{ myData.mvpCount }}</text
>{{ myData.mvpCount || 0 }}</text
></text
>
<text class="rank-item-integral" v-if="selectedIndex === 2">
<text
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
>{{ myData.TenRings }}</text
>{{ myData.TenRings || 0 }}</text
></text
>
</view>