<template>
	<view>
		<lf-nav :spreadOut="true" :showIcon="true" title="发现"></lf-nav>
		<view>
			<u-tabs :list="tab_list" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="current" @change="tabChange"></u-tabs>
		</view>
		<view v-for="i of 6">
			<view class="lf-p-32">
				<view class="lf-flex">
					<view class="tag-father">
						<image src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill" class="head-img"></image>
						<view class="head-tag">V</view>
					</view>
					<view class="lf-flex-column lf-m-l-20">
						<view class="lf-font-32 lf-color-black lf-font-bold">最新FUEJFEI</view>
						<view class="lf-font-24 lf-color-777 lf-m-t-15">08-28 18:39</view>
					</view>
				</view>
				<view class="lf-font-28 lf-color-333 lf-m-t-20">
					在售商品在售商品在售商品在售商品在售商品在售商品在售商品在售
				</view>
				<view class="lf-flex-wrap lf-m-t-20">
					<image v-for="item in 9" class="qzone-img" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill"></image>
				</view>
				<view class="lf-m-t-30 lf-row-between lf-p-l-50 lf-p-r-50">
					<view class="lf-row-center">
						<text class="lf-iconfont icon-shoucang"></text>
						<text class="lf-font-24 lf-color-777 lf-m-l-10">379</text>
					</view>
					<view class="lf-row-center">
						<text class="lf-iconfont icon-fabu"></text>
						<text class="lf-font-24 lf-color-777 lf-m-l-10">3579</text>
					</view>
					<view class="lf-row-center">
						<text class="lf-iconfont icon-fenxiang"></text>
						<text class="lf-font-24 lf-color-777 lf-m-l-10">63</text>
					</view>
				</view>
			</view>
			<self-line/>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tab_list: [
					{name: '最新',id: 1},
					{name: '最热',id: 2},
					{name: '已关注',id: 3},
					{name: '消息',id: 4}
				],
				current: 0,
			}
		},
		methods: {
			tabChange(index){
				this.current = index;
			},
		}
	}
</script>

<style>
	page {
		background-color: white;
	}
</style>

<style lang="scss" scoped>
	.tag-father {
		position: relative;
	}
	.head-tag {
		color: white;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		font-size: 24rpx;
		width: 36rpx;
		height: 36rpx;
		border-radius: 50%;
		background-color: #15716E;
		border: 1rpx solid #FFFFFF;
		position: absolute;
		left: 66rpx;
		top: 70rpx;
		z-index: 99;
	}
	.qzone-img {
		width: 220rpx;
		height: 220rpx;
		border-radius: 10rpx;
		margin-right: 12rpx;
		&:nth-child(3n) {
			margin-right: 0;
		}
		&:nth-child(n + 4) {
			margin-top: 12rpx;
		}
	}
	.head-img {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50%;
	}
	// tab样式
	/deep/.u-scroll-box {
		display: flex;
		justify-content: center;
		align-items: center;
		border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
	}
	/deep/.u-scroll-box .u-tab-bar {
		background-color: #15716E!important;
		width: 80rpx!important;
		position: absolute;
		left: 0;
		bottom: -14rpx;
	}
	/deep/ .u-tab-item {
		font-size: 28rpx!important;
	}
</style>
