修改了对对碰的背景样式

This commit is contained in:
tsui110 2025-12-30 23:39:24 +08:00
parent ef4e4599f4
commit 054b849374

View File

@ -134,6 +134,7 @@
> >
<image v-if="cell.image" class="match-cell-img-large" :src="cell.image" mode="aspectFill" /> <image v-if="cell.image" class="match-cell-img-large" :src="cell.image" mode="aspectFill" />
<view v-else class="match-cell-img-large"></view> <view v-else class="match-cell-img-large"></view>
<image v-if="cell.empty" class="match-cell-logo" src="/static/logo.png" mode="aspectFit" />
<text v-if="!cell.empty && cell.type" class="match-cell-type-large">{{ cell.type }}</text> <text v-if="!cell.empty && cell.type" class="match-cell-type-large">{{ cell.type }}</text>
</view> </view>
</view> </view>
@ -2337,7 +2338,11 @@ onLoad((opts) => {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
&.empty { &.empty {
background: rgba(255, 255, 255, 0.03); background-color: rgba(255, 255, 255, 0.03);
background-image: url('/static/logo.png');
background-size: 50%;
background-position: center;
background-repeat: no-repeat;
border-style: dashed; border-style: dashed;
border-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1);
} }
@ -2364,6 +2369,22 @@ onLoad((opts) => {
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
} }
.match-cell-logo {
width: 60%;
height: 60%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0.3;
pointer-events: none;
z-index: 1;
}
.match-cell-large.empty .match-cell-img-large {
background: transparent;
}
.match-cell-type-large { .match-cell-type-large {
position: absolute; position: absolute;
left: 12rpx; left: 12rpx;