细节调整
This commit is contained in:
@@ -64,19 +64,27 @@ onUnmounted(() => {
|
||||
<BowPower :power="power" />
|
||||
</view>
|
||||
</Guide>
|
||||
<view class="user-row">
|
||||
<Avatar :src="user.avatar" :size="35" />
|
||||
<BowPower :power="power" />
|
||||
</view>
|
||||
<image
|
||||
class="text-bg"
|
||||
src="https://api.shelingxingqiu.com/attachment/2025-07-05/db3skuq1n9rj4fmld4.png"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<view class="warnning-text" v-if="distance > 0">
|
||||
<text>当前距离{{ distance }}米</text>
|
||||
<text v-if="distance >= 5">已达到距离要求</text>
|
||||
<text v-else>请调整站位</text>
|
||||
<view class="warnning-text">
|
||||
<block v-if="distance > 0">
|
||||
<text>当前距离{{ distance }}米</text>
|
||||
<text v-if="distance >= 5">已达到距离要求</text>
|
||||
<text v-else>请调整站位</text>
|
||||
</block>
|
||||
<block v-else>
|
||||
<text>大人,请射箭</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="debug-text">{{ debugInfo }}</view>
|
||||
<view>
|
||||
<Avatar :src="user.avatar" :size="35" />
|
||||
<view class="simul" @click="simulShoot" :style="{ color: '#fff' }">
|
||||
模拟射箭
|
||||
</view>
|
||||
@@ -92,6 +100,7 @@ onUnmounted(() => {
|
||||
}
|
||||
.text-bg {
|
||||
width: 100%;
|
||||
transform: translateY(-50px);
|
||||
}
|
||||
.warnning-text {
|
||||
position: fixed;
|
||||
@@ -100,8 +109,9 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 54vw;
|
||||
left: calc(50% - 27vw);
|
||||
top: 30%;
|
||||
top: 34%;
|
||||
}
|
||||
.warnning-text > text {
|
||||
width: 60vw;
|
||||
@@ -113,6 +123,7 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
padding: 15px;
|
||||
margin-top: -27vw;
|
||||
position: relative;
|
||||
}
|
||||
.debug-text {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user