<template>
<view class="box">
 <view class="tabBob">
	 <view class="tabline" @click="tabcl(1)">
		<view class="tabTxt" :class="{tabActive:tabindex==1}">一级人脉</view>	<view class="tabkk" v-if="tabindex==1"></view>
	 </view>
	 <view class="tabline" @click="tabcl(2)">
	 	<view class="tabTxt" :class="{tabActive:tabindex==2}">二级人脉</view>	<view class="tabkk" v-if="tabindex==2"></view>
	 </view>
	 <view class="tabline" @click="tabcl(3)">
	 	<view class="tabTxt" :class="{tabActive:tabindex==3}">三级人脉</view>	<view class="tabkk" v-if="tabindex==3"></view>
	 </view>
 </view>	


 <view style="height: 100rpx;"></view>
 <view class="line" v-for="(item,index) in 3">
	 <view class="linetop">
		 <view class="name">李瑞</view>
		 <view class="nickNameBox">
			 <view class="nickName">E三级人脉</view>
		 </view>
	 </view>
	 <view class="lineCOnt">
		 <view class="lineline">
		 	<view class="lineContLeft">
				 <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
				 <view class="lineContLeftMs">17891011123</view>
		 	</view>
			<view class="lineTIme">2020-09-20 12:13:23</view>
		 </view>
		
	 </view>
 </view>
</view>
</template>

<script>
	export default {
		components: {
			
		},
		
		data() {
			return {
				tabindex:1,
				themeColor:'',
				userInfo:'',
			}
		},
		onLoad(opt) {
			this.themeColor = uni.getStorageSync("themeColor");
			this.userInfo = uni.getStorageSync("userInfo");
			
		},
		onShow() {
			
		},
		methods: {
			tabcl(num){
				this.tabindex=num;
			}
			
		}
	}
</script>

<style scoped lang="less">
.box {
	width: 100vw;
	min-height: 100vh;
	background: #F4F5F7;
}
.tabBob{
	display: flex;
	justify-content: space-around;
	background: #FFFFFF;
	padding-bottom: 10rpx;
	width: 100%;
	position: fixed;
	left: 0;
	top: 0;
}
.nickNameBox{
	display: flex;
	font-size: 30rpx;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: 500;
	color: #FF0000;
	line-height: 42rpx;
	
}
.tabTxt{
	padding-top: 23rpx;padding-bottom: 8rpx;
}
.tabActive{
	color: #FF0000 !important;
}
.tabkk{
	width: 40rpx;
	height: 4rpx;
	background: #FF0000;
	margin: 0 auto;
}
.nickName{
	font-weight: 400;
	color: #999999;
	font-size: 24rpx;
	line-height: 30rpx;
	padding-left: 10rpx;
}
.lineContLeftImg{
	width: 30rpx;
	height: 30rpx;
	margin-right: 10rpx;
}
.line{
	width: 702rpx;
	background: #FFFFFF;
	border-radius: 10rpx;
	margin-bottom: 20rpx;
	margin-left: 24rpx;
}
.linetop{
	display: flex;
	justify-content: space-between;
	font-size: 30rpx;
	padding: 20rpx;
	padding-bottom: 0;
}
.lineline{
	display: flex;
	justify-content: space-between;
	padding: 20rpx;
	font-weight: 400;
	color: #999999;
	font-size: 24rpx;
	line-height: 30rpx;
}
.lineContLeft{
	display: flex;
}
.name{
	font-weight: 500;
	color: #3C3C3C;
}
.amount{
	color: #FF0000;
}
.nickNameImg{
	width: 30rpx;
	height: 30rpx;
}
</style>
