Browse Source

fix: 🧩 活动图片去除黑边

pull/23/head
liyongle 3 years ago
parent
commit
062b76dbe8
  1. 7
      src/views/Activity/ActivityItem.vue

7
src/views/Activity/ActivityItem.vue

@ -2,7 +2,7 @@
<div v-if="showThis" :key="actInfo.id" class="act-item">
<!-- 图片 -->
<div class="img-container" @click="clickActItem">
<img :style="{ backgroundImage: `url(${getBackGround()})` }" alt="" />
<img :src="getBackGround()" alt="" />
<img v-if="actInfo.fileUrl.length === 0" src="@/assets/images/empty_big.svg" alt="" />
</div>
<!-- 标题 -->
@ -114,9 +114,8 @@ onMounted(() => {
background: #ebebeb00;
img {
width: inherit;
height: inherit;
background-size: cover;
width: 880px;
height: 495px;
border-radius: 16px;
}
}

Loading…
Cancel
Save