| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 | <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 list">	 <view class="linetop">		 <view class="name">{{item.wxNickName?item.wxNickName:''}}</view>		 <view class="nickNameBox">			 <view class="nickName" v-if="tabindex==1">一级人脉</view>			 <view class="nickName" v-if="tabindex==2">二级人脉</view>			 <view class="nickName" v-if="tabindex==3">三级人脉</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">{{item.mobilePhone}}</view>		 	</view>			<view class="lineTIme">{{item.createTime}}</view>		 </view>			 </view> </view> <nodata v-if="list.length==0"></nodata></view></template><script>	import nodata from '../../components/nodata/nodata.vue'	export default {		components: {			nodata		},				data() {			return {				tabindex:1,				themeColor:'',				userInfo:'',				list:'',			}		},		onLoad(opt) {			this.themeColor = uni.getStorageSync("themeColor");			this.userInfo = uni.getStorageSync("userInfo");			this.getList()		},		onShow() {					},		methods: {			tabcl(num){				this.tabindex=num;				this.getList()			},			getList(){				uni.showLoading({					title: '加载中'				})				this.$http('openMCustomer/getContactsList', {				   type:this.tabindex				}, 'GET').then(res => {					uni.hideLoading();					this.list = res.data;					//var data=res.data.Items;					//this.list=this.list.concat(data);					//console.log('list+=', this.queryShopList);								})			}					},		onPullDownRefresh(){		  			this.getList();			setTimeout(() => {					uni.stopPullDownRefresh(); // 关闭下拉刷新 			}, 2000);		}	}</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: #EC0F0A;	line-height: 42rpx;	}.tabTxt{	padding-top: 23rpx;padding-bottom: 8rpx;}.tabActive{	color: #EC0F0A !important;}.tabkk{	width: 40rpx;	height: 4rpx;	background: #EC0F0A;	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: #EC0F0A;}.nickNameImg{	width: 30rpx;	height: 30rpx;}</style>
 |