<!--packageD/energy/familyMember/familyMember.wxml-->
<view class="is_none" wx:if="{{!list}}">
	<view class="box">
		<view class="none">
			<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_blank@2x.png"></image>
		</view>
		<view style="margin:0 auto;color: #999999;text-align: center;font-size: 28rpx;">暂无家庭成员</view>
	</view>
	<view class="addUser" catchtap="goAdd" data-id="{{list.id}}">添加家庭成员</view>
</view>

<view wx:else>
	<view class="userList">
		<view class="member" wx:for="{{list.family_member}}" wx:key="index">
			<image src="{{item.avatar_image}}"></image>
			<view style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:center;">{{item.nickname}}</view>
			<view class="pos" catchtap="deluser" data-id="{{item}}">
				<icon class="iconfont icon-guanbi" style="margin-top:-8rpx;font-size: 15px;color:#fff;"></icon>
			</view>
		</view>
		<view class="member"  catchtap="goAdd" data-id="{{list.id}}">
			<view class="addimg">
				<van-icon name="plus" />
			</view>
			<view style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:center;">添加</view>
		</view>

	</view>

</view>