修改字段
This commit is contained in:
@@ -55,7 +55,10 @@
|
|||||||
"path": "pages/ranking"
|
"path": "pages/ranking"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/rank-list"
|
"path": "pages/rank-list",
|
||||||
|
"style": {
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/team-match"
|
"path": "pages/team-match"
|
||||||
|
|||||||
@@ -326,10 +326,6 @@ async function onReceiveMessage(messages = []) {
|
|||||||
scores.value = [];
|
scores.value = [];
|
||||||
totalRounds.value = msg.groupUserStatus.config.maxRounds;
|
totalRounds.value = msg.groupUserStatus.config.maxRounds;
|
||||||
step.value = 3;
|
step.value = 3;
|
||||||
if (battleType.value === 2) {
|
|
||||||
tips.value = "请在90秒内射完12支箭";
|
|
||||||
seq.value += 1;
|
|
||||||
}
|
|
||||||
if (!roundResults.value.length)
|
if (!roundResults.value.length)
|
||||||
roundResults.value.push({
|
roundResults.value.push({
|
||||||
redArrows: [],
|
redArrows: [],
|
||||||
@@ -446,6 +442,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
title: "游戏结束",
|
title: "游戏结束",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
|
uni.navigateBack();
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/pages/battle-result?battleId=${msg.id}`,
|
url: `/pages/battle-result?battleId=${msg.id}`,
|
||||||
|
|||||||
@@ -156,11 +156,12 @@ async function onReceiveMessage(messages = []) {
|
|||||||
}
|
}
|
||||||
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||||
uni.setStorageSync("last-battle", msg.endStatus);
|
uni.setStorageSync("last-battle", msg.endStatus);
|
||||||
if (msg.endStatus.nosaved) {
|
if (msg.endStatus.noSaved) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "游戏结束",
|
title: "游戏结束",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
|
uni.navigateBack();
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/pages/battle-result?battleId=${msg.id}`,
|
url: `/pages/battle-result?battleId=${msg.id}`,
|
||||||
|
|||||||
@@ -161,7 +161,13 @@ const subTitles = ["排位赛积分", "本周MVP次数", "本周十环次数"];
|
|||||||
<text class="truncate">{{ user.nickName }}</text>
|
<text class="truncate">{{ user.nickName }}</text>
|
||||||
<text>{{ user.lvlName }},{{ myData.TotalGames }}场</text>
|
<text>{{ user.lvlName }},{{ myData.TotalGames }}场</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="rank-item-integral"
|
<text class="rank-item-integral" v-if="selectedIndex === 2"
|
||||||
|
><text
|
||||||
|
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||||
|
>{{ myData.TenRings }}</text
|
||||||
|
>次</text
|
||||||
|
>
|
||||||
|
<text class="rank-item-integral" v-else
|
||||||
><text
|
><text
|
||||||
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
:style="{ fontSize: '14px', color: '#fff', marginRight: '5px' }"
|
||||||
>{{ myData.totalScore }}</text
|
>{{ myData.totalScore }}</text
|
||||||
|
|||||||
@@ -226,11 +226,12 @@ async function onReceiveMessage(messages = []) {
|
|||||||
}
|
}
|
||||||
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||||
uni.setStorageSync("last-battle", msg.endStatus);
|
uni.setStorageSync("last-battle", msg.endStatus);
|
||||||
if (msg.endStatus.nosaved) {
|
if (msg.endStatus.noSaved) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "游戏结束",
|
title: "游戏结束",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
|
uni.navigateBack();
|
||||||
} else {
|
} else {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: `/pages/battle-result?battleId=${msg.id}`,
|
url: `/pages/battle-result?battleId=${msg.id}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user