细节完善
This commit is contained in:
@@ -6,7 +6,8 @@ try {
|
||||
|
||||
switch (envVersion) {
|
||||
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;
|
||||
case "trial": // 体验版
|
||||
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
|
||||
|
||||
@@ -146,7 +146,7 @@ const checkBowData = () => {
|
||||
>自己</text
|
||||
>
|
||||
</view>
|
||||
<text>{{ player.name }}</text>
|
||||
<text class="truncate">{{ player.name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -509,7 +509,7 @@ const checkBowData = () => {
|
||||
.header-mvp > view > view:first-child > text {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
transform: translateY(-4px) skewY(-6deg);
|
||||
transform: translateY(-4px) rotate(-5deg);
|
||||
}
|
||||
.header-mvp > view > view:last-child {
|
||||
display: flex;
|
||||
@@ -517,7 +517,7 @@ const checkBowData = () => {
|
||||
color: #fff;
|
||||
font-size: 8px;
|
||||
text-align: center;
|
||||
transform: translateY(-16px) skewY(-6deg);
|
||||
transform: translateY(-16px) rotate(-5deg);
|
||||
min-width: 40%;
|
||||
}
|
||||
.header-mvp > view > view:last-child > view {
|
||||
@@ -527,5 +527,6 @@ const checkBowData = () => {
|
||||
}
|
||||
.header-mvp > view > view:last-child > view > text {
|
||||
margin-top: 4px;
|
||||
width: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -205,7 +205,7 @@ const checkBowData = () => {
|
||||
<view>
|
||||
<view>
|
||||
<image
|
||||
v-for="(src, index) in round.blue.avatars"
|
||||
v-for="(src, index) in round.red.avatars"
|
||||
:style="{
|
||||
borderColor: '#FF6767',
|
||||
transform: `translateX(-${index * 15}px)`,
|
||||
@@ -281,10 +281,13 @@ const checkBowData = () => {
|
||||
.score-row > view:first-child > view:first-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 70px;
|
||||
}
|
||||
.score-row > view:first-child > view:first-child > image {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
min-width: 25px;
|
||||
min-height: 25px;
|
||||
border: 1px solid;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@@ -19,17 +19,15 @@ onLoad(async (options) => {
|
||||
options.battleId || "BATTLE-1754988051086075885-926"
|
||||
);
|
||||
data.value = result;
|
||||
if (result.winner === 0) {
|
||||
players.value = [
|
||||
...Object.values(result.redPlayers),
|
||||
...Object.values(result.bluePlayers),
|
||||
];
|
||||
} else if (result.winner === 1) {
|
||||
players.value = [
|
||||
...Object.values(result.bluePlayers),
|
||||
...Object.values(result.redPlayers),
|
||||
];
|
||||
}
|
||||
Object.values(result.bluePlayers).forEach((p, index) => {
|
||||
players.value.push(p);
|
||||
if (
|
||||
Object.values(result.redPlayers) &&
|
||||
Object.values(result.redPlayers)[index]
|
||||
) {
|
||||
players.value.push(Object.values(result.redPlayers)[index]);
|
||||
}
|
||||
});
|
||||
if (result.goldenRound) tabs.value.push("决金箭");
|
||||
Object.keys(result.roundsData).forEach((key) => {
|
||||
tabs.value.push(`第${roundsName[key]}轮`);
|
||||
|
||||
@@ -14,7 +14,8 @@ function createWebSocket(token, onMessage) {
|
||||
|
||||
switch (envVersion) {
|
||||
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;
|
||||
case "trial": // 体验版
|
||||
url = "wss://apitest.shelingxingqiu.com/socket";
|
||||
|
||||
Reference in New Issue
Block a user