招租列表的主图加圆角

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;
bottom: 18rpx;
z-index: 1;
border-radius: 12rpx;
}
}

View File

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

View File

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

View File

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