addNewFamily.wxml 2.2 KB
<view class='content_box' wx:if='{{familyid!=undefined}}'>
  <view class='item_list' wx:for='{{user_list}}' wx:key=''>
    <view class='list_content_box'>
      <view>{{item.name}}</view>
      <view class='edit_btn' bindtap='editInfo' data-id='{{item.id}}'>编辑资料</view>
    </view>
    <view class="choose_box" data-id='{{item.id}}' bindtap='sethost' wx:if='{{!is_del}}'>
      <view class="iconfont icon-artboard61 {{item.user_family==1?'icon-xuanze':''}}" data-id='{{item.id}}' bindtap='sethost'></view>
      <view>设置为联络人</view>
    </view>
    <view class="choose_box" wx:else=''>
      <view class="iconfont icon-artboard61 {{item.choose_state?'icon-xuanze':''}}" data-index='{{index}}' data-id='{{item.id}}' bindtap='choose'></view>
      <view>删除</view>
    </view>
  </view>
</view>
<view class='bottom_box'>
  <block wx:if="{{flag}}">
    <view class='add_btn' bindtap='addPerson'>
      <view class='iconfont icon-tianjia '></view>
      <view>添加成员</view>
    </view>
  </block>
  <block wx:else>
    <view class='add_btn' bindtap='addPerson' wx:if="{{user_list.length<1}}">
      <view class='iconfont icon-tianjia '></view>
      <view>添加成员</view>
    </view>
    <view class='add_btn_box' wx:else>
      <view class='' bindtap='addPerson'>
        <view class='iconfont icon-tianjia '></view>
        <view>添加成员</view>
      </view>

      <view class='' bindtap='setDel' wx:if='{{del_icon}}'>
        <view class='iconfont icon-bianji '></view>
        <view>删除</view>
      </view>
      <view class='' bindtap='delMak' wx:else>
        <view class='iconfont icon-bianji '></view>
        <view>删除</view>
      </view>
    </view>
  </block>
  <!-- <view class='null_box'></view> -->
  <view class='bottom_btn' bindtap='goManage'>返回客户管理</view>
</view>

<!-- 弹窗 -->
<view class='mask_box' wx:if='{{popup_state}}' bindtap='cancleMask'>
  <view class='popup_box' catchtap='viods '>
    <view>删除成员</view>
    <view class='popup_title'>确认删除已选成员?</view>
    <view class='popup_btn_box'>
      <view class="popup_btn" catchtap='cancleMask'>取消</view>
      <view class="popup_btn popup_btn_active" catchtap='delUser'>删除</view>
    </view>
  </view>
</view>