<template>
	<view>
		<view class="data" v-for="(item,index) in 6" :key="index" >
			<view class="top">
				<view class="left">
					<u-icon name="hourglass-half-fill" :size="28" top="4" color="rgb(94,94,94)"></u-icon>
					<view class="title text-cut-1">标题：<text >代拿一个滑板到二楼,代拿一个滑板到二楼</text></view>
				</view>
				<view class="right">
					2020-10-27
				</view>
			</view>
			<view class="item">
				<view class="left">
					<image src="https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg" mode="aspectFill"></image>
					<view class="desc">
						<text>宁夏冬美小区</text>
						<text>发布人：19124812874</text>
						<text>价格：4元</text>
					</view>
				</view>
				<view @click="goDetail(item)" class="right">
					<view  class="cu-btn bg-red-btn sm round">
						查看详情
					</view>
				</view>
			</view>
		</view>
		
		
		<navigator url="./publish" class="cu-btn cuIcon round lg bg-red-btn add" >
			<text class="cuIcon-add"></text>
		</navigator>
		<u-divider height="80"  bg-color="#f1f1f1">没有更多了</u-divider>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetail(item){
				console.log("111")
				uni.navigateTo({
					url:"./detail"
				})
			}
		}
	}
</script>

<style lang="scss">
	.add{
		position: fixed;
		bottom: 20%;
		right: 4%;
		color: #FFFFFF;
		text{
			font-size: 50rpx;
		}
	}
	.data:first-child{
		margin-top: 20rpx;
	}
	.data {
		border-bottom: 1rpx solid #b6b6b6;
		background-color: #FFFFFF;
		width: 700rpx;
		margin:10rpx auto;
		border-radius: 10rpx;
		box-sizing: border-box;
		padding: 20rpx;
		font-size: 28rpx;
		.top {
			display: flex;
			justify-content: space-between;
			padding-bottom: 20rpx;
			border-bottom: 1rpx solid #e2e2e2;
			.left {
				flex: 3;
				display: flex;
				align-items: center;
				.title {
					margin: 0 10rpx;
					font-size: 28rpx;
					font-weight: bold;
					text{
						font-weight: 500;
					}
				}
			}
			.right{
				flex: 1;
				text-align: right;
				margin-top: 6rpx;
				font-size: 28rpx;
				color: #a1a1a1;
			}
		}
		.item {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			margin: 30rpx 0 20rpx 0;
			.left{
				display: flex;
				image{
					margin: 10rpx 24rpx 10rpx 30rpx ;
					width: 116rpx;
					height: 116rpx;
					border-radius: 50%;
				}
				.desc{
					 display: flex;
					 flex-direction: column;
					 text{
						 font-size: 26rpx;
						 color: #a1a1a1;
						 margin-bottom: 10rpx;
					 }
					 text:first-child{
						 font-size: 30rpx;
						 color: #333;
						 font-weight: 800;
					 }
				}
			}
			.right {
				display: flex;
				flex-direction: column;
				justify-content: center;
			}
			
		}

	}
</style>
