This commit is contained in:
2025-05-06 20:03:17 +08:00
parent 957a156ec4
commit d227e8fe6e
4 changed files with 19 additions and 11 deletions
+6 -6
View File
@@ -55,9 +55,8 @@
<t-swiper-item v-for="(item, index) in actList" :key="index" style="height: 192px">
<view class="activity-list" @click="navigateTo('/pages/activity/detail/index?id=' + item.id)">
<view class="activity-item">
<image class="activity-image"
:src="item.cover"
mode="widthFix"></image>
<t-image :src=config.fileDomain+item.cover shape="round"
class="activity-image" fit="fill"/>
<view class="activity-info">
<view class="activity-title">{{ item.title }}</view>
<view class="activity-meta">
@@ -84,9 +83,8 @@
<view class="activity-list" v-if="wonderfulMomentList.length > 0">
<view class="moment-item" v-for="item in wonderfulMomentList" :key="item.id"
@click="handleWonderfulMoment(item)">
<image class="moment-image"
:src="item.cover"
mode="widthFix"></image>
<t-image :src=config.fileDomain+item.cover shape="round"
class="moment-image" fit="fill"/>
<view class="moment-content">
<view class="moment-title">{{ item.title }}</view>
<view class="moment-sub-content">
@@ -111,6 +109,7 @@ import {onMounted, ref} from "vue";
import {Toast} from "tdesign-mobile-vue";
import {useRequest} from "@/utils/request";
import moment from "moment";
import {config} from "@/utils/config";
const request = useRequest()
@@ -332,6 +331,7 @@ uni-page-body {
}
.activity-image {
height: 200px;
width: 100%;
}