细节完善
This commit is contained in:
@@ -150,7 +150,7 @@ onMounted(async () => {
|
|||||||
}}</text>
|
}}</text>
|
||||||
<text :style="{ opacity: expand ? 0 : 1 }" v-if="itemIndex === 3">{{
|
<text :style="{ opacity: expand ? 0 : 1 }" v-if="itemIndex === 3">{{
|
||||||
selectedIndex !== -1 && secondSelectIndex !== -1
|
selectedIndex !== -1 && secondSelectIndex !== -1
|
||||||
? `${selectedIndex + 1}组/${groupArrows[secondSelectIndex]}箭`
|
? `${selectedIndex}组/${groupArrows[secondSelectIndex]}箭`
|
||||||
: itemTexts[itemIndex]
|
: itemTexts[itemIndex]
|
||||||
}}</text>
|
}}</text>
|
||||||
</block>
|
</block>
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ onUnmounted(() => {
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<view :style="{ display: 'flex', flexDirection: 'column' }">
|
<view :style="{ display: 'flex', flexDirection: 'column' }">
|
||||||
<text :style="{ color: '#fed847' }">请预先射几箭测试</text>
|
<text :style="{ color: '#fed847' }">请确保站距达到5米</text>
|
||||||
<text>请确保射箭距离有5米</text>
|
<text>低于5米的射箭无效</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</Guide>
|
</Guide>
|
||||||
|
|||||||
@@ -38,6 +38,15 @@ const handleSelect = (index) => {
|
|||||||
}
|
}
|
||||||
return false;
|
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 class="rank-item-integral" v-if="selectedIndex === 0">
|
||||||
<text
|
<text
|
||||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||||
>{{ myData.totalScore }}</text
|
>{{ myData.totalScore || 0 }}</text
|
||||||
>分</text
|
>分</text
|
||||||
>
|
>
|
||||||
<text class="rank-item-integral" v-if="selectedIndex === 1">
|
<text class="rank-item-integral" v-if="selectedIndex === 1">
|
||||||
<text
|
<text
|
||||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||||
>{{ myData.mvpCount }}</text
|
>{{ myData.mvpCount || 0 }}</text
|
||||||
>次</text
|
>次</text
|
||||||
>
|
>
|
||||||
<text class="rank-item-integral" v-if="selectedIndex === 2">
|
<text class="rank-item-integral" v-if="selectedIndex === 2">
|
||||||
<text
|
<text
|
||||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||||
>{{ myData.TenRings }}</text
|
>{{ myData.TenRings || 0 }}</text
|
||||||
>次</text
|
>次</text
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user