<!--shoppingGuid/page/pages/userInfo/userInfo.wxml-->
<view class='user-info-container'>
  <view class='user-info'>
    <view class='u-logo'>
      <image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
    </view>
    <view class='u-rg'>
      <view class='u-items'>
        <view class='u-item-lf'>
          <label>{{memberInfo.name}}</label>
          <image src='/assets/imgs/shoppingGuide/phone.png' 
          data-phone="{{memberInfo.mobile}}" 
          bindtap="handelPhoneCall" mode='widthFix'></image>
        </view>
        <view class='u-item-rg' bindtap='onTapReCall'>立即回访</view>
      </view>
      <view class='u-items'>
        <view class='u-item-lf'>
          <label class='color-pink mg-r-20'>{{memberInfo.sex}}</label>
          <text>{{memberInfo.age}}岁</text>
        </view>
      </view>
      <view class='u-items'>
        <view class='u-item-lf'>
          <label>{{memberInfo.memberWeixin.nickname}}</label>
        </view>
      </view>
      <view class='u-items'>
        <view class='u-item-lf'>
          <label>注册时间：</label>
          <text>{{memberInfo.registerTime}}</text>
        </view>
      </view>
    </view>
  </view>
</view>
<!-- 导购信息 -->
<view class='guider'>
  <view class='header'>
    <label>所属导购：</label>
    <text>{{guider.member.name ? guider.member.name : "暂无名称"}}</text>
  </view>

  <view class='month'>
    <view class='month-data'>
      <view class='data-item'>
        <text class='data-item-title'>累计消费（元）</text>
        <text class='data-item-number'>{{total.totalConsume}}</text>
      </view>
      <view class='data-item'>
        <text class='data-item-title'>当前积分</text>
        <text class='data-item-number'>{{total.totalPoint}}</text>
      </view>
      <view class='data-item'>
        <text class='data-item-title'>当前经验值</text>
        <text class='data-item-number'>{{total.totalExp}}</text>
      </view>
    </view>
  </view>
</view>
<!-- 标签信息 -->
<view class='u-info-filter'>
  <view class='info-items {{item.isActive ? "active" : ""}}'
  wx:for="{{navBar}}" 
  wx:key="topbar" 
  wx:for-index="idx"
  bindtap='onTopBarTap'
  data-index="{{idx}}"
  data-item="{{item}}" 
  wx:for-item="item"
  >{{item.name}}</view>
</view>

<!-- 会员标签 -->
<view class='auto-tips' wx:if="{{current == 1}}">
  <view class='tips-groups'>
    <!-- <view class='tip-group-name'>标签分组名称</view> -->
    <view class='tips'>
      <view class='tips-item' 
      wx:for="{{memberTags}}" 
      wx:key="memberTag" 
      wx:for-item="item">{{item.tag.name}}</view>
    </view>
  </view>
</view>
<!-- 手动标签 -->
<!-- <view class='auto-tips' wx:if="{{current == 2}}">
  <view class='tips-groups'>
    <view class='tip-group-name'>标签分组名称</view>
    <view class='tips'>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
    </view>
  </view>
  <view class='tips-groups'>
    <view class='tip-group-name'>标签分组名称</view>
    <view class='tips'>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
    </view>
  </view>
  <view class='tips-groups'>
    <view class='tip-group-name'>标签分组名称</view>
    <view class='tips'>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
      <view class='tips-item'>标签名称</view>
    </view>
  </view>
</view> -->
<!-- 订单信息 -->
<view wx:if="{{current == 3}}">
  <view class='order-filter'>
    <view 
      class='filter-item {{item.isActive ? "active" : ""}}'
      wx:for="{{onlineOrderStatus}}" 
      wx:key="topbar" 
      wx:for-index="idx"
      bindtap='onTapChangeOnlineOrderStatus'
      data-index="{{idx}}"
      data-item="{{item}}" 
      wx:for-item="item">{{item.name}}</view>
  </view>
  <!-- 订单列表信息 -->
  <view class='list online-order'>
    <!-- order item -->
    <view class='order-item'
      wx:for="{{orderList}}" 
      wx:key="onLineOrderList" 
      wx:for-item="item">
      <view class='order-status'>
        <text>订单号    {{item.orderNo}}</text>
        <text>{{item.statusText}}</text>
      </view>
      <view class='products-list'>
        <view class='pro-item' wx:for="{{item.products}}" wx:key="product" wx:for-item="pro">
          <image mode='aspectFit' src='{{pro.image}}'></image>
        </view>
      </view>
      <view class='order-pro-info'>
        <label>共{{item.count}}件商品</label>
        <view>
          实付 <label class='theme-text-color bolder'>￥{{item.payMoney}}</label>
        </view>
      </view>
    </view>
    <!-- 空 -->
    <view class='empty' wx:if="{{orderList.length == 0}}">暂无数据~</view>
  </view>
</view>
<!-- 退单信息 -->
<view wx:if="{{current == 4}}">
  <view class='order-filter'>
    <view 
      class='filter-item {{item.isActive ? "active" : ""}}'
      wx:for="{{returnOrderStatus}}" 
      wx:key="topbar" 
      wx:for-index="idx"
      bindtap='onTapChangeReturnOrderStatus'
      data-index="{{idx}}"
      data-item="{{item}}" 
      wx:for-item="item">{{item.name}}</view>
  </view>
  <!-- 退单列表信息 -->
  <view class='list online-order'>
    <!-- order item -->
    <view class='order-item' 
    wx:for="{{returnOrderList}}"
    wx:key="returnOrder"
    wx:for-item="item">
      <view class='order-status'>
        <text>退单号    {{item.orderNo}}</text>
        <text>{{item.statusText}}</text>
      </view>
      <view class='products-list'>
        <view class='pro-item'  wx:for="{{item.products}}" wx:key="returnProduct" wx:for-item="returnPro">
          <image mode='aspectFit' src='{{returnPro.image}}'></image>
        </view>
      </view>
      <view class='order-pro-info'>
        <label>共{{item.count}}件商品</label>
        <view>
          实付 <label class='theme-text-color bolder'>￥{{item.payMoney}}</label>
        </view>
      </view>
    </view>

    <!-- 空 -->
    <view class='empty' wx:if="{{returnOrderList.length == 0}}">暂无数据~</view>
  </view>
</view>
<!-- 优惠券 -->
<view class='coupons' wx:if="{{current == 5}}">
  <!-- items -->
  <view class='coupon-item'
  wx:for="{{coupons}}"
  wx:key="coupon"
  wx:for-item="item"
  style='background-image:url({{item.bg}})'>
    <view class='coupon-item-lf'>
      <!-- <view class='coupon-price'>
        ￥ <text>5</text>
      </view>
      <view>抵用券</view> -->
    </view>
    <view class='coupon-item-rg'>
      <!-- cant-use -->
      <view class='qrcode {{item.status == 1 ? "can-use" : "cant-use"}}'>{{item.statusDesc}}</view>
      <view class='coupon-title {{item.status == 1 ? "can-use" : "cant-use"}}'>{{item.title}}</view>
      <view class='op'>
        <view class='text-btn'>有效期： {{item.startTime}} 至 {{item.endTime}}</view>
      </view>
      <view class='op'>
        <view class='text-btn'>{{item.useChannelDesc}}</view>
      </view>
    </view>
  </view>
  <!-- 空 -->
  <view class='empty' wx:if="{{coupons.length == 0}}">暂无数据~</view>
</view>
<!-- 积分 -->
<view class='integrate-list' wx:if="{{current == 6}}">
  <!-- <view class='lf-history'>
    <label></label>
    <view class='line'></view>
  </view> -->
  <view class='rg-list'>
    <view class='rg-list-item' wx:for="{{pointHistory}}" wx:key="point" wx:for-item="item">
      <view class='integrate-type'>
        <view class='title'>{{item.changeTypeDesc}}</view>
        <view>{{item.changeTime}}</view>
      </view>
      <view class='time'>{{item.operation == 1 ? "+" : "-"}}{{item.changeValue}}</view>
    </view>
    <!-- 空 -->
    <view class='empty' wx:if="{{pointHistory.length == 0}}">暂无数据~</view>
  </view>
</view>
<!-- 经验值 -->
<view class='integrate-list' wx:if="{{current == 7}}">
  <!-- <view class='lf-history'>
    <label></label>
    <view class='line'></view>
  </view> -->
  <view class='rg-list'>
    <view class='rg-list-item' wx:for="{{expHistory}}" wx:key="exp" wx:for-item="item">
      <view class='integrate-type'>
        <view class='title'>{{item.sourceName}}</view>
        <view>{{item.createTime}}</view>
      </view>
      <view class='time'>{{item.type == 0 ? "-" : "+"}}{{item.exp}}</view>
    </view>
    <!-- 空 -->
    <view class='empty' wx:if="{{expHistory.length == 0}}">暂无数据~</view>
  </view>
</view>