<!--pages/familyDoc/familyDoc.wxml-->
<nav navName="家庭成员"></nav>
<view class="page">
  <view class="hasdata">
    <scroll-view scroll-y="true" bindrefresherrefresh="handleRefresher" class="scrollbox" refresher-triggered="{{isTriggered}}"	refresher-threshold="100"	refresher-enabled="true"  class="namebox" wx:if="{{list.length>0}}">
   
        <view class="namecell" bindtap="goMember" wx:for="{{list}}" wx:key="family_id" data-id="{{item.family_id}}">
        <view class="name">{{item.card_name}}(<text wx:if="{{item.sex==1}}">男</text><text wx:elif="{{item.sex==2}}">女</text><text wx:else>未知</text>，{{item.age}}岁)</view>
        <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
      </view>
   
     
 
    </scroll-view>
    <view class="nodata" wx:else>
      <image src="{{img_host+'/member.png'}}"  class="memberimg"></image>
      <view class="tips">当前暂未添加任何家庭成员哦~</view>
      <view class="btnbox add nobtn">
        <view class="btn" bindtap="goInfo">立即添加</view>
      </view>
    </view>
    <view class="btnbox add" wx:if="{{list.length>0}}">
      <view class="btn" bindtap="goInfo">+添加家庭成员</view>
    </view>
  </view>
</view>