<!--pages/user/user.wxml-->
<view class='container'>
  <!-- 用户信息 -->
  <view class='userinfo-none' wx:if="{{isAuthInfo}}">
    <view class='default-pic' bindtap="toPersonalInfo">
      <image src="{{loginResult.pic? loginResult.pic : '../../images/icon/head04.png'}}"></image>
    </view>
    <view class='none-login'>
      <view class="nick-con">
        <text class="nick-name">{{loginResult.nickName}}</text>
        <!-- <button class="update-info-btn" open-type="getUserInfo" bindgetuserinfo="toPersonalInfo">更新用户信息</button> -->
      </view>
      <view class="canpany" wx:if="{{shopName}}">
        {{shopName}}
      </view>
      <!-- <view class="level">
        <image class="l-bg" src="{{userLevelInfo.levelType==1?'../../images/icon/integral-icon.png':'../../images/icon/normal-icon.png'}}" role="img"></image>
        <view class="text">{{userLevelInfo.levelType==1?userLevelInfo.levelName:'普通会员'}}</view>
      </view> -->
      <!-- <view class="member-integral" bindtap="toMemberInteral">
        <image src="../../images/icon/jifen@2x.png"></image>
        <text class="score-amount">积分：{{userLevelInfo.score?userLevelInfo.score:'0'}} <text class="arrow"></text> </text>
      </view> -->
      <!-- <view class="buy-member" bindtap="toBuyMember">
        <image src="../../images/icon/goumaihuiyuan@2x.png"></image>
        <text>购买会员</text>
      </view> -->
    </view>
  </view>

  <view class='userinfo-none' wx:if="{{!isAuthInfo}}" bindtap="onGotUserInfo">
    <view class="default-pic">
      <image src="../../images/icon/head04.png"></image>
    </view>
    <view class="none-login">
      <!-- <button class="unlogin">未登录</button> -->
      <view class="click-login">请登录后使用完整功能</view>
    </view>
  </view>
  <!-- end 用户信息 -->

  <view class='list-cont'>

    <!-- 订单状态 -->
    <view class='total-order box'>
      <view class='order-tit'>
        <text style='font-weight:bold'>我的订单</text>
        <view class='checkmore' bindtap='toOrderListPage' data-sts="9">
          <text>查看全部 </text>
          <text class='arrowhead'></text>
        </view>
      </view>
      <view class='procedure'>
        <view class='items' bindtap='toOrderListPage' data-sts="0">
          <image src='../../images/icon/toPay.png'></image>
          <text>待支付</text>
          <text class='num-badge' wx:if="{{orderAmount.unPay>0}}">{{orderAmount.unPay}}</text>
        </view>
        <!-- <view class='items' bindtap='toOrderListPage' data-sts="2">
          <image src='../../images/icon/toDelivery.png'></image>
          <text>待发货</text>
          <text class='num-badge' wx:if="{{orderAmount.payed>0}}">{{orderAmount.payed}}</text>
        </view> -->
        <view class='items' bindtap='toOrderListPage' data-sts="20">
          <image src='../../images/icon/toTake.png'></image>
          <text>待收货</text>
          <text class='num-badge' wx:if="{{orderAmount.consignment>0}}">{{orderAmount.consignment}}</text>
        </view>
        <view class='items' bindtap='toOrderListPage' data-sts="80">
          <image src='../../images/icon/toComment.png'></image>
          <text>已完成</text>
          <text class='num-badge' wx:if="{{orderAmount.success>0}}">{{orderAmount.success}}</text>
        </view>
        <view class='items' bindtap='toAfterSalesPage'>
          <image src='../../images/icon/refund.png'></image>
          <text>退款/售后</text>
          <text class='num-badge' wx:if="{{orderAmount.refund>0}}">{{orderAmount.refund}}</text>
        </view>
      </view>
    </view>
    <!--end 订单状态 -->

    <!-- <view class="prod-col">
      <view class="col-item" bindtap='myCollectionHandle'>
        <view class="num">{{collectionCount}}</view>
        <view class="tit">我的收藏</view>
      </view>
      <view class="col-item">
        <view class="num">5</view>
        <view class="tit">我的消息</view>
      </view>
      <view class="col-item">
        <view class="num">3</view>
        <view class="tit">我的足迹</view>
      </view>
    </view> -->

    <view class='my-menu box'>
      <!--  wx:if="{{canDistribution}}" -->
      <!-- <view class='memu-item' bindtap='toCouponCenter'>
        <view class="i-name">
          <image src='../../images/icon/getCoupon.png'></image>
          <text>领券中心</text>
        </view>
        <view class='arrowhead'></view>
      </view>
      <view class='memu-item' bindtap='toMyCouponPage'>
        <view class="i-name">
          <image src='../../images/icon/myCoupon.png'></image>
          <text>我的优惠券</text>
        </view>
        <view class='arrowhead'></view>
      </view> -->
      <view class='memu-item' bindtap='toAddressList'>
        <view class="i-name">
          <image src='../../images/icon/myAddr.png'></image>
          <text>收货地址</text>
        </view>
        <view class='arrowhead'></view>
      </view>
      <!-- <view class='memu-item' bindtap='myCollectionHandle'>
        <view class="i-name">
          <image src='../../images/icon/myCol.png'></image>
          <text>我的收藏</text>
        </view>
        <view class='arrowhead'></view>
      </view> -->
      <button open-type="contact" class='memu-btn memu-item'>
        <view class="i-name">
          <image src='../../images/icon/customer-service.png'></image>
          <text>联系平台客服</text>
        </view>
        <view class='arrowhead'></view>
      </button>
    </view>

    <view class='my-menu box'>
      <view class='memu-item' bindtap='toMemberInteral'>
        <view class="i-name">
          <image src='../../images/icon/jifen.png'></image>
          <text>积分</text>
        </view>
        <view class='arrowhead'></view>
      </view>

      <view class='memu-item' bindtap='toReview'>
        <view class="i-name">
          <image src='../../images/icon/pingjia.png'></image>
          <text>评价</text>
        </view>
        <view class='arrowhead'></view>
      </view>
    </view>


    <!--end 列表项 -->
    <view class="log-out" bindtap="logout" wx:if="{{isAuthInfo}}">
        <text>退出登录</text>
    </view>
  </view>

  <tabbar active="3"></tabbar>


</view>