UI完善
This commit is contained in:
@@ -8,9 +8,15 @@ const handleSelect = (index) => {
|
||||
selectedIndex.value = index;
|
||||
};
|
||||
|
||||
const toMatchPage = (gameType, teamSize) => {
|
||||
const toTeamMatchPage = (gameType, teamSize) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/match-room?gameType=${gameType}&teamSize=${teamSize}`,
|
||||
url: `/pages/team-match?gameType=${gameType}&teamSize=${teamSize}`,
|
||||
});
|
||||
};
|
||||
|
||||
const toMeleeMatchPage = (gameType, teamSize) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/team-match?gameType=${gameType}&teamSize=${teamSize}`,
|
||||
});
|
||||
};
|
||||
</script>
|
||||
@@ -50,17 +56,17 @@ const toMatchPage = (gameType, teamSize) => {
|
||||
<image
|
||||
src="../static/battle1v1.png"
|
||||
mode="widthFix"
|
||||
@click="() => toMatchPage(1, 2)"
|
||||
@click="() => toTeamMatchPage(1, 2)"
|
||||
/>
|
||||
<image
|
||||
src="../static/battle5.png"
|
||||
mode="widthFix"
|
||||
@click="() => toMatchPage(2, 5)"
|
||||
@click="() => toMeleeMatchPage(2, 5)"
|
||||
/>
|
||||
<image
|
||||
src="../static/battle10.png"
|
||||
mode="widthFix"
|
||||
@click="() => toMatchPage(2, 10)"
|
||||
@click="() => toMeleeMatchPage(2, 10)"
|
||||
/>
|
||||
</view>
|
||||
<view class="data-progress">
|
||||
|
||||
Reference in New Issue
Block a user