| 
						 | 
						- <template>
 - 	<view class="postList">
 - 		<view class="item" v-for="(item, index) in list"
 - 		@click="$utils.navigateTo('/pages_order/activity/activityDetail?id=' + item.id)"
 - 		:key="index">
 - 			<image 
 - 			:src="item.image &&
 - 			item.image.split(',')[0]" mode="aspectFill"></image>
 - 			<view class="text">
 - 				<view class="title">
 - 					{{ item.title }}
 - 				</view>
 - 				<view class="createBy">
 - 					<view class="">
 - 						发布人:{{ item.userName }}
 - 					</view>
 - 					<view class="">
 - 						<!-- <uv-icon 
 - 						size="26rpx"
 - 						name="thumb-up"></uv-icon> -->
 - 						浏览
 - 						{{ item.browseNum }}
 - 					</view>
 - 				</view>
 - 				<view class="createTime">
 - 					{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
 - 				</view>
 - 			</view>
 - 		</view>
 - 	</view>
 - </template>
 - 
 - <script>
 - 	export default {
 - 		name:"postList",
 - 		props : ['list'],
 - 		data() {
 - 			return {
 - 				
 - 			};
 - 		}
 - 	}
 - </script>
 - 
 - <style lang="scss" scoped>
 - .postList{
 - 	.item{
 - 		height: 200rpx;
 - 		width: 100%;
 - 		background-color: #fff;
 - 		overflow: hidden;
 - 		border-radius: 10rpx;
 - 		color: #777;
 - 		display: flex;
 - 		font-size: 24rpx;
 - 		margin: 30rpx 0;
 - 		image{
 - 			width: 50%;
 - 			height: 100%;
 - 		}
 - 		.text{
 - 			display: flex;
 - 			flex-direction: column;
 - 			padding: 16rpx;
 - 			width: 50%;
 - 			.title{
 - 				font-size: 30rpx;
 - 				font-weight: 600;
 - 				color: #000;
 - 			}
 - 			.createBy{
 - 				display: flex;
 - 				margin-top: auto;
 - 				margin-bottom: 10rpx;
 - 				justify-content: space-between;
 - 				&>view{
 - 					display: flex;
 - 					align-items: center;
 - 					justify-content: center;
 - 				}
 - 			}
 - 		}
 - 	}
 - }
 - </style>
 
 
  |