兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

68 lines
1.2 KiB

<template>
<view class="new-card flex justify-between" @click="seeDetail">
<view class="new-card-r">
<u--image :showLoading="true" :src="item.photo" width="256rpx" height="256rpx"></u--image>
</view>
<view class="new-card-l flex flex-column justify-between">
<view class="title">{{item.title}}</view>
<view>{{item.createTime}}</view>
</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: 40rpx;
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;
}
}
.new-card-r{
uni-image>img {
border-top-right-radius: 2rpx;
border-bottom-right-radius: 2rpx;
}
}
}
</style>