细节调整
This commit is contained in:
@@ -131,8 +131,14 @@ const simulShoot2 = async () => {
|
||||
v-if="scores.length && showRoundTips && showLatestArrow && showE"
|
||||
class="e-value fade-in-out"
|
||||
:style="{
|
||||
left: calcRealX(scores[scores.length - 1].x, 66),
|
||||
top: calcRealY(scores[scores.length - 1].y, 150),
|
||||
left: calcRealX(
|
||||
scores[scores.length - 1].ring ? scores[scores.length - 1].x : 0,
|
||||
66
|
||||
),
|
||||
top: calcRealY(
|
||||
scores[scores.length - 1].ring ? scores[scores.length - 1].y : 0,
|
||||
150
|
||||
),
|
||||
}"
|
||||
>
|
||||
经验 +1
|
||||
@@ -141,19 +147,37 @@ const simulShoot2 = async () => {
|
||||
v-if="scores.length && showRoundTips && showLatestArrow"
|
||||
class="round-tip fade-in-out"
|
||||
:style="{
|
||||
left: calcRealX(scores[scores.length - 1].x, 70),
|
||||
top: calcRealY(scores[scores.length - 1].y, 100),
|
||||
left: calcRealX(
|
||||
scores[scores.length - 1].ring ? scores[scores.length - 1].x : 0,
|
||||
100
|
||||
),
|
||||
top: calcRealY(
|
||||
scores[scores.length - 1].ring ? scores[scores.length - 1].y : 0,
|
||||
100
|
||||
),
|
||||
}"
|
||||
>{{ scores[scores.length - 1].ring }}<text>环</text></view
|
||||
>{{ scores[scores.length - 1].ring || "未上靶"
|
||||
}}<text v-if="scores[scores.length - 1].ring">环</text></view
|
||||
>
|
||||
<view
|
||||
v-if="blueScores.length && showRoundTips && showLatestArrow"
|
||||
class="round-tip fade-in-out"
|
||||
:style="{
|
||||
left: calcRealX(blueScores[blueScores.length - 1].x, 70),
|
||||
top: calcRealY(blueScores[blueScores.length - 1].y, 100),
|
||||
left: calcRealX(
|
||||
blueScores[blueScores.length - 1].ring
|
||||
? blueScores[blueScores.length - 1].x
|
||||
: 0,
|
||||
100
|
||||
),
|
||||
top: calcRealY(
|
||||
blueScores[blueScores.length - 1].ring
|
||||
? blueScores[blueScores.length - 1].y
|
||||
: 0,
|
||||
100
|
||||
),
|
||||
}"
|
||||
>{{ blueScores[blueScores.length - 1].ring }}<text>环</text></view
|
||||
>{{ blueScores[blueScores.length - 1].ring || "未上靶"
|
||||
}}<text v-if="blueScores[blueScores.length - 1].ring">环</text></view
|
||||
>
|
||||
<block v-for="(bow, index) in scores" :key="index">
|
||||
<view
|
||||
@@ -202,9 +226,9 @@ const simulShoot2 = async () => {
|
||||
<button @click="simulShoot">模拟</button>
|
||||
<button @click="simulShoot2">射箭</button>
|
||||
</view>
|
||||
<text :style="{ color: '#fff', wordBreak: 'break-all' }">{{
|
||||
<!-- <text :style="{ color: '#fff', wordBreak: 'break-all' }">{{
|
||||
scores.length ? scores[scores.length - 1] : ""
|
||||
}}</text>
|
||||
}}</text> -->
|
||||
<!-- <StartCountdown :start="startCount" /> -->
|
||||
</view>
|
||||
</template>
|
||||
@@ -240,7 +264,7 @@ const simulShoot2 = async () => {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
z-index: 2;
|
||||
width: 70px;
|
||||
width: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
.round-tip > text {
|
||||
|
||||
Reference in New Issue
Block a user