<template>
	<view class="container">
		<view v-if="list.length>0" class="item" v-for="item in list">
			<view class="avatar">
				<img :src="item.avatar" alt="">
			</view>
			<view class="item_l">
				<view class="mobile">{{item.mobile}}</view>
				<view class="remark">昵称：{{item.username}}&nbsp; 会员等级：{{item.level_name}}</view>
				<view class="rdate">{{item.created_at}}</view>
				
			</view>
			
		</view>
		<view v-if="list.length==0" class="nonedata" >
			当前没有数据
		</view>
	</view>
</template>

<script>
		import * as UserApi   from '@/api/user'
	export default {
		data() {
			return {
				list:[
					
				],
			}
		},
		onLoad(options)
		{
			UserApi.myTeamList()
			  .then(result => {
				  this.list = result.data.list;
				  console.log(this.list);
			  })
			
			
		},
		methods: {
			
		}
	}
</script>

<style>
	.container
	{
		padding:20rpx 0;
	}
	
	.item
	{
		display: flex;
		align-items: center;
		background-color: #fff;
		border-bottom: 1px solid rgba(0,0,0,0.1);
		padding:20rpx 30rpx;
	}
	
	
	.avatar
	{
		margin-right: 20rpx;
	}
	
	

	
	.avatar,.avatar img
	{
		height: 120rpx;
		width: 120rpx;
		border-radius: 20rpx;
		
	}
	
	.item_l,.item_r
	{
		display: flex;
		justify-content: space-between;
		flex-direction: column;
		height: 120rpx;
	}
	
	.mobile
	{
		font-size: 34rpx;
		font-weight: bold;
	}
	
	.remark
	{
		font-size: 26rpx;
		color: #aaa;
	}
	
	.rdate
	{
		font-size: 26rpx;
		color: #aaa;
	}
	
	.nonedata
	{
		width: 100%;;
		padding:20rpx;
		text-align: center;
		font-size: 30rpx;
		color:#aaa;
	}
</style>
