细节调整
This commit is contained in:
@@ -267,9 +267,11 @@ async function onReceiveMessage(messages = []) {
|
||||
}
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.FinalShoot) {
|
||||
isFinalShoot.value = true;
|
||||
showRoundTip.value = true;
|
||||
tips.value = "准备开始决金箭";
|
||||
if (!isFinalShoot.value) {
|
||||
isFinalShoot.value = true;
|
||||
showRoundTip.value = true;
|
||||
tips.value = "准备开始决金箭";
|
||||
}
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.HalfTimeOver) {
|
||||
startCount.value = false;
|
||||
|
||||
@@ -148,9 +148,6 @@ const onBack = () => {
|
||||
uni.navigateBack();
|
||||
}
|
||||
};
|
||||
const exitRoom = async () => {
|
||||
uni.navigateBack();
|
||||
};
|
||||
onMounted(() => {
|
||||
uni.$on("socket-inbox", onReceiveMessage);
|
||||
});
|
||||
@@ -224,9 +221,9 @@ onUnmounted(() => {
|
||||
</block>
|
||||
<SModal :show="showModal" :onClose="() => (showModal = false)">
|
||||
<view class="modal">
|
||||
<SButton :onClick="exitRoom" width="200px" :rounded="20">
|
||||
退出比赛
|
||||
</SButton>
|
||||
<view class="modal" :style="{ color: '#fff9' }"
|
||||
>排位赛进行过程无法退出</view
|
||||
>
|
||||
</view>
|
||||
</SModal>
|
||||
</view>
|
||||
|
||||
@@ -84,7 +84,7 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Container :bgType="1" title="个人单组练习">
|
||||
<Container :bgType="1" title="日常耐力挑战">
|
||||
<view>
|
||||
<TestDistance v-if="!start && !practiseResult.arrows" />
|
||||
<block v-if="start || practiseResult.arrows">
|
||||
|
||||
@@ -62,7 +62,7 @@ const subTitles = ["排位赛积分", "本周MVP次数", "本周十环次数"];
|
||||
<image src="../static/rankbg.png" mode="widthFix" class="header-bg" />
|
||||
<view class="rank-tabs">
|
||||
<view
|
||||
v-for="(rankType, index) in ['积分表', 'MVP榜', '十环榜']"
|
||||
v-for="(rankType, index) in ['积分榜', 'MVP榜', '十环榜']"
|
||||
:key="index"
|
||||
:style="{
|
||||
fontSize: index === selectedIndex ? '16px' : '14px',
|
||||
|
||||
@@ -221,7 +221,7 @@ const toRankListPage = () => {
|
||||
<view>
|
||||
<view
|
||||
v-for="(rankType, index) in [
|
||||
'积分表',
|
||||
'积分榜',
|
||||
'MVP榜',
|
||||
'十环榜',
|
||||
'最牛省份',
|
||||
|
||||
@@ -157,8 +157,11 @@ async function onReceiveMessage(messages = []) {
|
||||
if (result.currentRound < 5) showRoundTip.value = true;
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.FinalShoot) {
|
||||
isFinalShoot.value = true;
|
||||
showRoundTip.value = true;
|
||||
if (!isFinalShoot.value) {
|
||||
isFinalShoot.value = true;
|
||||
showRoundTip.value = true;
|
||||
tips.value = "准备开始决金箭";
|
||||
}
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||
uni.redirectTo({
|
||||
@@ -174,9 +177,6 @@ const onBack = () => {
|
||||
uni.navigateBack();
|
||||
}
|
||||
};
|
||||
const exitRoom = async () => {
|
||||
uni.navigateBack();
|
||||
};
|
||||
onMounted(() => {
|
||||
uni.$on("socket-inbox", onReceiveMessage);
|
||||
});
|
||||
@@ -249,11 +249,9 @@ onUnmounted(() => {
|
||||
/>
|
||||
</block>
|
||||
<SModal :show="showModal" :onClose="() => (showModal = false)">
|
||||
<view class="modal">
|
||||
<SButton :onClick="exitRoom" width="200px" :rounded="20">
|
||||
退出比赛
|
||||
</SButton>
|
||||
</view>
|
||||
<view class="modal" :style="{ color: '#fff9' }"
|
||||
>排位赛进行过程无法退出</view
|
||||
>
|
||||
</SModal>
|
||||
</view>
|
||||
<view :style="{ marginBottom: '20px' }">
|
||||
|
||||
Reference in New Issue
Block a user