<template>
|
|
<view class="new-card flex justify-between" @click="seeDetail">
|
|
<view class="new-card-l flex flex-column justify-between">
|
|
<view class="title">{{item.title}}/{{item.payType}}</view>
|
|
<view class="titleText">{{item.titleText}}</view>
|
|
<view>{{item.address}}</view>
|
|
<view class="price">{{item.price}}/月</view>
|
|
</view>
|
|
<view class="new-card-r">
|
|
<u--image :showLoading="true" :src="item.image" width="216rpx" height="216rpx"></u--image>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default{
|
|
props:{
|
|
item:{
|
|
type:Object,
|
|
}
|
|
},
|
|
data(){
|
|
return{
|
|
|
|
}
|
|
},
|
|
methods:{
|
|
seeDetail(){
|
|
this.$emit('seeDetail',this.item)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.new-card {
|
|
background: #ffffff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
|
|
overflow: hidden;
|
|
padding-bottom: 10rpx;
|
|
margin-bottom: 20rpx;
|
|
|
|
.new-card-l {
|
|
font-size: 28rpx;
|
|
color: #C8C8C8;
|
|
padding: 16rpx 16rpx;
|
|
|
|
.title {
|
|
font-size: 32rpx;
|
|
color: #000000;
|
|
line-height: 40rpx;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
font-family: SimSun;
|
|
}
|
|
.titleText{
|
|
font-size: 22rpx;
|
|
color: #000000;
|
|
line-height: 40rpx;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
font-family: SimSun;
|
|
}
|
|
.price{
|
|
font-size: 32rpx;
|
|
color: #FF0000;
|
|
line-height: 40rpx;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
font-family: SimSun;
|
|
}
|
|
}
|
|
|
|
.new-card-r{
|
|
uni-image>img {
|
|
border-top-right-radius: 4rpx;
|
|
border-bottom-right-radius: 4rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|