1、所有列表的展示图的格式为aspectFill

2、分类页面的活动列表的发布者名的省略
This commit is contained in:
wangzimeng 2025-08-11 16:26:20 +08:00
parent f8ef0a190c
commit 102480ea99
5 changed files with 1136 additions and 1133 deletions

View File

@ -28,7 +28,7 @@
</view>
<span class="line"></span>
<view style="margin:30rpx;" class="flex" @click="toDetail(item.id, item.order_no, item.status)">
<image class="tut" :src="item.detail.images[0]"></image>
<image class="tut" :src="item.detail.images[0]" mode="aspectFill"></image>
<view style="margin-left: 20rpx;width: 80%;">
<view>
<span style="font-weight: 600;">{{ item.detail.title }}</span>

View File

@ -43,10 +43,10 @@
<view class="item-img">
<image v-if="item.images.length>0"
style="width: 170rpx;height: 170rpx;border-radius: 20rpx;" :src="item.images[0]"
mode=""></image>
mode="aspectFill"></image>
<image v-else style="width: 170rpx;height: 170rpx;border-radius: 20rpx;"
src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/draftImgNo.png"
mode=""></image>
mode="aspectFill"></image>
</view>
<view class="item-con">
<view class="itenCon-actName" style="">{{item.title !='' ? item.title:'描述待补充' }}
@ -134,7 +134,7 @@
<view class="imgs_con_div"
v-for="(items_img, index) in item.images.slice(0, 3)" :key="index">
<image class="imgs_con" :src="items_img"></image>
<image class="imgs_con" :src="items_img" mode="aspectFill"></image>
</view>
</view>

View File

@ -42,12 +42,12 @@
</image>
<image v-else :src="item.headimage"
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
<span v-if="cate_ids != 1"
style="color: #9C9C9C;margin-left: 10rpx;">{{ item.user.nickname }}</span>
<span v-else
style="color: #9C9C9C;margin-left: 10rpx;">{{ item.teacher.name }}</span>
<view>
<span style="color:#0CA013;margin-left: 20rpx;"
<span v-if="cate_ids != 1" class="white-space"
style="color: #9C9C9C;margin-left: 10rpx;width: 192rpx;">{{ item.user.nickname }}</span>
<span v-else class="white-space"
style="color: #9C9C9C;margin-left: 10rpx;width: 192rpx;">{{ item.teacher.name }}</span>
<view class="white-space" style="width: 43%;">
<span style="color:#0CA013;margin-left: 10rpx;"
v-for="items_t in item.classes_cate.slice(0, 1)">#{{ items_t}}</span>
</view>
</view>
@ -56,10 +56,10 @@
<view class="time flex align-items white-space">
<!-- <span class="time_tex" v-if="item.status == 2">{{ '报名中' }}</span> -->
<!-- <span class="time_tex time_texs" v-if="item.status == 4">{{ '进行中' }}</span> -->
<span style="margin-right:20rpx;">{{ dateWeeks(item.start_time) }}</span><span
<span style="margin-right:12rpx;">{{ dateWeeks(item.start_time) }}</span><span
style="width: 1rpx;height: 22rpx;background: #323232;"></span>
<span class="white-space"
style="margin-left: 20rpx;width: 260rpx;">{{ item.address }}{{ item.address_detail }}</span>
style="margin-left: 12rpx;width: 260rpx;">{{ item.address }}{{ item.address_detail }}</span>
</view>
</view>
@ -68,7 +68,7 @@
style="margin-top: 20rpx;margin-bottom: 32rpx;">
<view class="imgs_con_div" v-for="(items_img, index) in item.images.slice(0, 3)"
:key="index">
<image class="imgs_con" :src="items_img"></image>
<image class="imgs_con" :src="items_img" mode="aspectFill"></image>
</view>
</view>
</view>
@ -402,7 +402,7 @@
page: this.page,
limit: this.limit,
order: "normal",
status: "2", //5
status: "2,3,4,5", //5
auth_status: 1 //
},
})

View File

@ -20,7 +20,9 @@
<image src="/static/index/schoolNight.png" mode="widthFix" class="imgstop_ye" @click="toshool"></image>
</view>
<scroll-view @scrolltolower="onScrolltolower" :refresher-enabled="true" :refresher-triggered="homrS" @refresherrefresh="onS" scroll-y="true" class="flex align-items" style="height: 1250rpx;box-sizing: border-box;">
<scroll-view @scrolltolower="onScrolltolower" :refresher-enabled="true" :refresher-triggered="homrS"
@refresherrefresh="onS" scroll-y="true" class="flex align-items"
style="height: 1250rpx;box-sizing: border-box;">
<view class="swiper-box">
<!-- <MySwiper :list="swiperList"></MySwiper> -->
<view class="swiper_s">
@ -78,7 +80,8 @@
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
<image v-else :src="item.headimage"
style="width: 36rpx;height: 36rpx;border-radius: 80rpx;"></image>
<span v-if="cate_ids != 1" class="white-space" style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{
<span v-if="cate_ids != 1" class="white-space"
style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{
item.user.nickname }}</span>
<span v-else class="white-space"
style="color: #9C9C9C;margin-left: 10rpx;width: 210rpx;">{{
@ -107,7 +110,7 @@
style="margin-top: 20rpx;margin-bottom: 32rpx;">
<view class="imgs_con_div" v-for="(items_img, index) in item.images.slice(0, 3)"
:key="index">
<image class="imgs_con" :src="items_img"></image>
<image class="imgs_con" :src="items_img" mode="aspectFill"></image>
</view>
</view>
</view>
@ -751,7 +754,7 @@ export default {
page: this.page,
limit: this.limit,
order: "normal",
status: "2", //5
status: "2,3,4,5", //5
auth_status: 1 //
},
})

View File

@ -117,7 +117,7 @@
<view class="flex align-items" style="margin-top: 20rpx;">
<image class="imgs_con" v-for="(items_img, index) in item.images.slice(0, 3)"
:key="index" :src="items_img"></image>
:key="index" :src="items_img" mode="aspectFill"></image>
</view>
</view>
</view>