细节修改
This commit is contained in:
@@ -75,7 +75,7 @@ watch(
|
|||||||
clearInterval(timer.value);
|
clearInterval(timer.value);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
newVal();
|
newVal();
|
||||||
}, 2000);
|
}, 1500);
|
||||||
} else {
|
} else {
|
||||||
totalTop.value += 0.5;
|
totalTop.value += 0.5;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
user.value,
|
user.value,
|
||||||
practiseResult.value
|
practiseResult.value
|
||||||
);
|
);
|
||||||
}, 2000);
|
}, 1500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -39,12 +39,19 @@ onLoad(async (options) => {
|
|||||||
:key="index"
|
:key="index"
|
||||||
:style="{
|
:style="{
|
||||||
width: `${Math.max(100 / data.players.length, 18)}vw`,
|
width: `${Math.max(100 / data.players.length, 18)}vw`,
|
||||||
backgroundColor:
|
|
||||||
player.playerId === currentUser.playerId ? '#aba57a' : '',
|
|
||||||
color: player.playerId === currentUser.playerId ? '#000' : '#fff9',
|
color: player.playerId === currentUser.playerId ? '#000' : '#fff9',
|
||||||
}"
|
}"
|
||||||
@click="() => onSelect(player.playerId)"
|
@click="() => onSelect(player.playerId)"
|
||||||
>
|
>
|
||||||
|
<image
|
||||||
|
v-if="player.playerId === currentUser.playerId"
|
||||||
|
src="../static/player-bg2.png"
|
||||||
|
:style="{
|
||||||
|
width: `${Math.max(100 / data.players.length, 18)}vw`,
|
||||||
|
}"
|
||||||
|
mode="aspectFill"
|
||||||
|
class="player-bg"
|
||||||
|
/>
|
||||||
<Avatar
|
<Avatar
|
||||||
:src="player.avatar"
|
:src="player.avatar"
|
||||||
:size="40"
|
:size="40"
|
||||||
@@ -89,8 +96,14 @@ onLoad(async (options) => {
|
|||||||
height: 85px;
|
height: 85px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
background-color: #fff3;
|
background-color: #fff3;
|
||||||
}
|
}
|
||||||
|
.players::-webkit-scrollbar {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
.players > view {
|
.players > view {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -99,6 +112,11 @@ onLoad(async (options) => {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.player-bg {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.players > view > text {
|
.players > view > text {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
@@ -107,6 +125,7 @@ onLoad(async (options) => {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
.score-text {
|
.score-text {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -58,12 +58,19 @@ async function onReceiveMessage(messages = []) {
|
|||||||
}
|
}
|
||||||
if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
|
if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
|
||||||
if (practiseId.value && practiseId.value === msg.practice.id) {
|
if (practiseId.value && practiseId.value === msg.practice.id) {
|
||||||
start.value = false;
|
setTimeout(() => {
|
||||||
practiseResult.value = {
|
start.value = false;
|
||||||
...msg.practice,
|
practiseResult.value = {
|
||||||
arrows: JSON.parse(msg.practice.arrows),
|
...msg.practice,
|
||||||
};
|
arrows: JSON.parse(msg.practice.arrows),
|
||||||
generateCanvasImage("shareCanvas", 2, user.value, practiseResult.value);
|
};
|
||||||
|
generateCanvasImage(
|
||||||
|
"shareCanvas",
|
||||||
|
2,
|
||||||
|
user.value,
|
||||||
|
practiseResult.value
|
||||||
|
);
|
||||||
|
}, 1500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -101,8 +108,8 @@ onUnmounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<Container :bgType="1" title="个人单组练习">
|
<Container :bgType="1" title="个人单组练习">
|
||||||
<view>
|
<view>
|
||||||
<TestDistance v-if="!start && !practiseResult.arrows" />
|
<TestDistance v-if="!practiseId" />
|
||||||
<block v-if="start || practiseResult.arrows">
|
<block v-if="practiseId">
|
||||||
<ShootProgress
|
<ShootProgress
|
||||||
:tips="`${
|
:tips="`${
|
||||||
!start || scores.length === 12
|
!start || scores.length === 12
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
user.value,
|
user.value,
|
||||||
practiseResult.value
|
practiseResult.value
|
||||||
);
|
);
|
||||||
}, 2000);
|
}, 1500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -101,8 +101,8 @@ onUnmounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<Container :bgType="1" title="日常耐力挑战">
|
<Container :bgType="1" title="日常耐力挑战">
|
||||||
<view>
|
<view>
|
||||||
<TestDistance v-if="!start && !practiseResult.arrows" />
|
<TestDistance v-if="!practiseId" />
|
||||||
<block v-if="start || practiseResult.arrows">
|
<block v-if="practiseId">
|
||||||
<ShootProgress
|
<ShootProgress
|
||||||
:start="start"
|
:start="start"
|
||||||
:tips="`请连续射击${total}支箭`"
|
:tips="`请连续射击${total}支箭`"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 8.2 KiB |
BIN
src/static/player-bg2.png
Normal file
BIN
src/static/player-bg2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user