细节完善

This commit is contained in:
kron
2025-08-15 16:37:10 +08:00
parent b2abcc71b1
commit 8110a0f5c1
5 changed files with 21 additions and 17 deletions

View File

@@ -6,7 +6,8 @@ try {
switch (envVersion) { switch (envVersion) {
case "develop": // 开发版 case "develop": // 开发版
BASE_URL = "http://192.168.1.242:8000/api/shoot"; // BASE_URL = "http://192.168.1.242:8000/api/shoot";
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
break; break;
case "trial": // 体验版 case "trial": // 体验版
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";

View File

@@ -146,7 +146,7 @@ const checkBowData = () => {
>自己</text >自己</text
> >
</view> </view>
<text>{{ player.name }}</text> <text class="truncate">{{ player.name }}</text>
</view> </view>
</view> </view>
</view> </view>
@@ -509,7 +509,7 @@ const checkBowData = () => {
.header-mvp > view > view:first-child > text { .header-mvp > view > view:first-child > text {
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
transform: translateY(-4px) skewY(-6deg); transform: translateY(-4px) rotate(-5deg);
} }
.header-mvp > view > view:last-child { .header-mvp > view > view:last-child {
display: flex; display: flex;
@@ -517,7 +517,7 @@ const checkBowData = () => {
color: #fff; color: #fff;
font-size: 8px; font-size: 8px;
text-align: center; text-align: center;
transform: translateY(-16px) skewY(-6deg); transform: translateY(-16px) rotate(-5deg);
min-width: 40%; min-width: 40%;
} }
.header-mvp > view > view:last-child > view { .header-mvp > view > view:last-child > view {
@@ -527,5 +527,6 @@ const checkBowData = () => {
} }
.header-mvp > view > view:last-child > view > text { .header-mvp > view > view:last-child > view > text {
margin-top: 4px; margin-top: 4px;
width: 40px;
} }
</style> </style>

View File

@@ -205,7 +205,7 @@ const checkBowData = () => {
<view> <view>
<view> <view>
<image <image
v-for="(src, index) in round.blue.avatars" v-for="(src, index) in round.red.avatars"
:style="{ :style="{
borderColor: '#FF6767', borderColor: '#FF6767',
transform: `translateX(-${index * 15}px)`, transform: `translateX(-${index * 15}px)`,
@@ -281,10 +281,13 @@ const checkBowData = () => {
.score-row > view:first-child > view:first-child { .score-row > view:first-child > view:first-child {
display: flex; display: flex;
align-items: center; align-items: center;
width: 70px;
} }
.score-row > view:first-child > view:first-child > image { .score-row > view:first-child > view:first-child > image {
width: 25px; width: 25px;
height: 25px; height: 25px;
min-width: 25px;
min-height: 25px;
border: 1px solid; border: 1px solid;
border-radius: 50%; border-radius: 50%;
} }

View File

@@ -19,17 +19,15 @@ onLoad(async (options) => {
options.battleId || "BATTLE-1754988051086075885-926" options.battleId || "BATTLE-1754988051086075885-926"
); );
data.value = result; data.value = result;
if (result.winner === 0) { Object.values(result.bluePlayers).forEach((p, index) => {
players.value = [ players.value.push(p);
...Object.values(result.redPlayers), if (
...Object.values(result.bluePlayers), Object.values(result.redPlayers) &&
]; Object.values(result.redPlayers)[index]
} else if (result.winner === 1) { ) {
players.value = [ players.value.push(Object.values(result.redPlayers)[index]);
...Object.values(result.bluePlayers),
...Object.values(result.redPlayers),
];
} }
});
if (result.goldenRound) tabs.value.push("决金箭"); if (result.goldenRound) tabs.value.push("决金箭");
Object.keys(result.roundsData).forEach((key) => { Object.keys(result.roundsData).forEach((key) => {
tabs.value.push(`${roundsName[key]}`); tabs.value.push(`${roundsName[key]}`);

View File

@@ -14,7 +14,8 @@ function createWebSocket(token, onMessage) {
switch (envVersion) { switch (envVersion) {
case "develop": // 开发版 case "develop": // 开发版
url = "ws://192.168.1.242:8000/socket"; // url = "ws://192.168.1.242:8000/socket";
url = "wss://apitest.shelingxingqiu.com/socket";
break; break;
case "trial": // 体验版 case "trial": // 体验版
url = "wss://apitest.shelingxingqiu.com/socket"; url = "wss://apitest.shelingxingqiu.com/socket";