<view class="container">
  <view class="profile-info" bindtap="goLogin">
    <image class="avatar" src="{{userInfo.avatarUrl}}"></image>
    <view class="info">
      <text class="name">{{userInfo.nickName}}</text>
    </view>
  </view>

  <view class="user-menu">
    <view class="item">
      <view class="a" bindtap="goOrder">
        <text class="icon order"></text>
        <text class="txt">我的订单</text>
      </view>
    </view>
    <view class="item">
      <view class="a" bindtap="goCoupon">
        <text class="icon coupon"></text>
        <text class="txt">优惠券</text>
      </view>
    </view>
    <!-- <view class="item no-border">
      <view class="a">
        <text class="icon gift"></text>
        <text class="txt">礼品卡</text>
      </view>
    </view> -->
    <view class="item">
      <view class="a" bindtap="goCollect">
        <image class="user-menu .icon.collect" src="/static/images/icon_collect.png"></image>
        <text class="txt">我的收藏</text>
      </view>
    </view>
    <view class="item">
      <view class="a" bindtap="goFootprint">
        <image class="user-menu .icon.collect" src="/static/images/foot.png"></image>
        <text class="txt">我的足迹</text>
      </view>
    </view>
    <!-- <view class="item no-border">
      <view class="a">
        <text class="icon kefu"></text>
        <text class="txt">会员福利</text>
      </view>
    </view> -->
    <view class="item">
      <view class="a" bindtap="goAddress">
        <text class="icon address"></text>
        <text class="txt">地址管理</text>
      </view>
    </view>
    <!-- <view class="item">
      <view class="a">
        <text class="icon security"></text>
        <text class="txt">账号安全</text>
      </view>
    </view> -->
    <!-- 开发环境看不到效果，但是线上环境可以正常使用-->
    <!-- 开发者参考以下文档自行测试，建议直接采用文档中的网页版客服工具 -->
    <!-- https://developers.weixin.qq.com/miniprogram/introduction/custom.html#功能介绍 -->
    <button class="item" open-type="contact" size="20" session-from="weapp">
      <view class="a">
        <text class="icon kefu"></text>
        <text class="txt">联系客服</text>
      </view>
    </button>
    <button class="item" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
      <view class="a">
        <image class="user-menu .icon.phone" src="/static/images/mobile.png"></image>
        <text class="txt">绑定手机号码</text>
      </view>
    </button>
    <view class="item">
      <view class="a" bindtap="aboutUs">
        <image class="user-menu .icon.collect" src="/static/images/about_us.png"></image>
        <text class="txt">关于我们</text>
      </view>
    </view>
  </view>


  <!--<view class="logout" bindtap="exitLogin">退出登录</view>-->
</view>