index.vue 2.2 KB
<template>
	<view class="">
		<!-- 顶部标签 -->
		<u-tabs :list="list1" :lineColor="lineColor" :lineWidth="lineWidth" :itemStyle="itemStyle"></u-tabs>
		<!-- 版心 -->
		<view class="mainBox">
			<!-- 卖家信息 -->
			<view class="sellerBox flexA" v-for="item in 5">
				<view class="rightBox">
					<view class="nameBox">村镇资源标题如何高效快速的提高农作物的产量的方...</view>
					<view class="timeBox">
						2022-05-08
					</view>
				</view>
				<view class="leftBox">
					<img src="../../static/ic_29@2x.png" alt="">
				</view>
			</view>
			<view class="emptyBox"></view>
		<view class="">
			<Tabbar :idx="1"></Tabbar>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [{
					name: '村镇资源',
				}, {
					name: '资源科普',
				}],
				lineColor: "#62CDCE",
				lineWidth: "80rpx",
				itemStyle: {
					color: "#000000",
					fontSize: "28rpx",
					fontWeight: "700",
					width: "325rpx",
					height: "88rpx",
				}
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FAFAFA;
	}

	.mainBox {
		width: 686rpx;
		margin: 0 auto;
	}

	.minBox {
		width: 686rpx;
		margin: 0 auto;
	}

	.sellerBox {
		padding: 16rpx 57rpx 16rpx 49rpx;
		margin-top: 30rpx;
		width: 586rpx;
		// height: 232rpx;
		border-radius: 16rpx;
		background: #fff;
	}

	.leftBox {
		img {
			width: 240rpx;
			height: 180rpx;
		}
	}

	.rightBox {
		padding-right: 16rpx;

		.nameBox {
			color: rgba(0, 0, 0, 0.9);
			font-size: 28rpx;
			font-weight: 400;
			padding-top: 20rpx;
		}

		.addressBox {
			padding-top: 16rpx;
			color: rgba(0, 0, 0, 0.4);
			font-size: 24rpx;
			font-weight: 400;
		}

		.addressBox>img {
			width: 32rpx;
			height: 32rpx;
		}
	}

	.emptyBox {
		height: 150rpx;
	}

	.timeBox {
		padding-top: 24rpx;
		color: rgba(0, 0, 0, 0.26);
		font-size: 22rpx;
		font-weight: 400;
	}

	.detailsBox {
		img {
			width: 750rpx;
			height: 421rpx;
		}
	}

	.titleBox {
		color: rgba(0, 0, 0, 0.9);
		font-size: 32rpx;
		font-weight: 500;
	}

	.timeBoxone {
		color: rgba(0, 0, 0, 0.4);
		font-size: 24rpx;
		font-weight: 400;
	}

	.richText {
		color: rgba(0, 0, 0, 0.6);
		font-size: 28rpx;
		font-weight: 400;
	}
</style>