招租列表的主图加圆角

This commit is contained in:
wangzimeng 2025-08-06 15:34:01 +08:00
parent e96d67023b
commit 2de4c5fbb2
4 changed files with 20 additions and 15 deletions

View File

@ -470,6 +470,7 @@
right: 0rpx; right: 0rpx;
bottom: 18rpx; bottom: 18rpx;
z-index: 1; z-index: 1;
border-radius: 12rpx;
} }
} }

View File

@ -619,7 +619,7 @@
right: 0rpx; right: 0rpx;
bottom: 18rpx; bottom: 18rpx;
z-index: 1; z-index: 1;
border-radius: 12rpx;
} }
} }

View File

@ -20,6 +20,9 @@
<image v-if="item.recommend == 1" <image v-if="item.recommend == 1"
style="width: 77rpx;height: 36rpx;z-index: 100;position: relative;top: 34rpx;left: 0rpx;" style="width: 77rpx;height: 36rpx;z-index: 100;position: relative;top: 34rpx;left: 0rpx;"
src="https://jiangxiaoxian.0rui.cn/hot.png"></image> src="https://jiangxiaoxian.0rui.cn/hot.png"></image>
<image v-if="item.recommend != 1"
style="width: 77rpx;height: 36rpx;z-index: 100;position: relative;top: 34rpx;left: 0rpx;"
src=""></image>
<image class="iamges-mainImg" :src="item.images[0]"></image> <image class="iamges-mainImg" :src="item.images[0]"></image>
</view> </view>
<!-- 右侧内容 --> <!-- 右侧内容 -->
@ -71,7 +74,8 @@
<view class="exchangeBtn" v-if="item.is_collect == 1" @click="classCollect(item,index)"> <view class="exchangeBtn" v-if="item.is_collect == 1" @click="classCollect(item,index)">
取消收藏 取消收藏
</view> </view>
<view class="exchangeBtn1" v-if="item.is_collect == 0" @click="classCollect(item,index)"> <view class="exchangeBtn1" v-if="item.is_collect == 0"
@click="classCollect(item,index)">
收藏 收藏
</view> </view>
</view> </view>
@ -301,9 +305,9 @@
}) })
} }
} }
// //
function classCollect(item,index) { function classCollect(item, index) {
console.log('收藏', item.is_collect); console.log('收藏', item.is_collect);
if (item.is_collect == 1) { if (item.is_collect == 1) {
collectSchoolList.value[index].is_collect = 0 collectSchoolList.value[index].is_collect = 0
@ -312,10 +316,10 @@
is_collect: item.is_collect is_collect: item.is_collect
} }
sheep.$api.school.classesCollect(data).then((res) => { sheep.$api.school.classesCollect(data).then((res) => {
if(res.code == 1) { if (res.code == 1) {
uni.showToast({ uni.showToast({
title:'已取消收藏', title: '已取消收藏',
icon:'none', icon: 'none',
duration: 2000, duration: 2000,
}) })
} }
@ -327,10 +331,10 @@
is_collect: item.is_collect is_collect: item.is_collect
} }
sheep.$api.school.classesCollect(data1).then((res) => { sheep.$api.school.classesCollect(data1).then((res) => {
if(res.code == 1) { if (res.code == 1) {
uni.showToast({ uni.showToast({
title:'已收藏', title: '已收藏',
icon:'none', icon: 'none',
duration: 2000, duration: 2000,
}) })
} }
@ -409,9 +413,9 @@
height: 190rpx; height: 190rpx;
position: relative; position: relative;
right: 0rpx; right: 0rpx;
bottom: 0rpx; bottom: 18rpx;
z-index: 1; z-index: 1;
border-radius: 12rpx;
} }
} }
@ -542,7 +546,7 @@
line-height: 30rpx; line-height: 30rpx;
font-weight: 400; font-weight: 400;
} }
.exchangeBtn1 { .exchangeBtn1 {
margin-top: 30rpx; margin-top: 30rpx;
background-color: #fcc74e; background-color: #fcc74e;
@ -558,7 +562,7 @@
line-height: 30rpx; line-height: 30rpx;
font-weight: 400; font-weight: 400;
} }
} }
} }

View File

@ -294,7 +294,7 @@
right: 0rpx; right: 0rpx;
bottom: 18rpx; bottom: 18rpx;
z-index: 1; z-index: 1;
border-radius: 12rpx;
} }
} }