This commit is contained in:
kron
2025-08-06 14:58:53 +08:00
parent 8c63ec487a
commit bba172ba58

View File

@@ -151,16 +151,17 @@ onMounted(async () => {
<view class="point"> </view> <view class="point"> </view>
<!-- 编辑按钮组只在编辑状态下显示 --> <!-- 编辑按钮组只在编辑状态下显示 -->
<view class="edit-buttons" @click.stop> <view class="edit-buttons" @click.stop>
<text <view class="edit-btn-text">
>{{ arrow.ring === 0 ? "未上靶" : arrow.ring <text>{{ arrow.ring === 0 ? "未上靶" : arrow.ring }}</text>
}}<text <text
v-if="arrow.ring > 0"
:style="{ :style="{
fontSize: '20px', fontSize: '20px',
marginLeft: arrow.ring > 0 ? '5px' : 0, marginLeft: arrow.ring > 0 ? '5px' : 0,
}" }"
>{{ arrow.ring > 0 ? "环" : "" }}</text ></text
></text >
> </view>
<view class="edit-btn confirm-btn" @click.stop="confirmAdd(index)"> <view class="edit-btn confirm-btn" @click.stop="confirmAdd(index)">
<image src="../static/arrow-edit-save.png" mode="widthFix" /> <image src="../static/arrow-edit-save.png" mode="widthFix" />
</view> </view>
@@ -220,9 +221,8 @@ onMounted(async () => {
.edit-buttons { .edit-buttons {
position: absolute; position: absolute;
top: 50%; top: calc(50% - 44px);
left: 50%; left: calc(50% - 44px);
transform: translateX(-50%) translateY(-50%);
background: #18ff6899; background: #18ff6899;
width: 88px; width: 88px;
height: 88px; height: 88px;
@@ -230,18 +230,20 @@ onMounted(async () => {
align-items: flex-end; align-items: flex-end;
} }
.edit-buttons > text { .edit-btn-text {
width: 100%; width: 100%;
display: block; display: flex;
justify-content: center;
}
.edit-btn-text > text {
line-height: 50px; line-height: 50px;
text-align: center;
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
} }
.edit-btn { .edit-btn {
transform: translateX(-50%) translateY(-50%);
width: 24px; width: 24px;
height: 24px; height: 24px;
display: flex; display: flex;
@@ -256,17 +258,17 @@ onMounted(async () => {
} }
.confirm-btn { .confirm-btn {
left: 50%; left: calc(50% - 12px);
bottom: -24px; bottom: -12px;
} }
.delete-btn { .delete-btn {
left: 50%; left: calc(50% - 12px);
top: 0; top: -12px;
} }
.drag-btn { .drag-btn {
right: -24px; right: -12px;
bottom: -24px; bottom: -12px;
} }
</style> </style>