<view class="user">
  <view class='bannerbg'>
    <image src='./../../assets/img/banner.png' mode="widthFix"></image>
  </view>
  <view class="user-title">
    <view class="user-avatar" bindtap='gotograde'>
      <open-data class="open" type="userAvatarUrl"></open-data>
    </view>
    <view class="user-phone" bindtap='gotograde'>
      <open-data type="userNickName"></open-data>
      <text class='chengzhang'>{{levelName}}</text>
      <view class="view">成长值{{score}}
        <image src='./../../assets/img/redirect.png' mode='widthFix'></image>
      </view>
    </view>
    <view class='chengzhang1' bindtap='gotoedit'>
      <view wx:if="{{showEdit}}" class='clearfix'>
        <image class='fr' class='edit' src="./../../assets/img/edit.png" mode='widthFix'></image><text style="color:#01bffe;display:inline-block;margin-left:16rpx;">编辑</text>
      </view>
      <image class='fr' wx:if="{{!showEdit}}" class='activeimg' src='./../../assets/img/active.gif' mode='widthFix'></image>
    </view>
  </view>
  <view class="user-btns">
    <navigator url="/pages/order/index/index?id=all">
      <view class="user-btn app-border-bottom">
        <view>
          <image class='icons' src="./../../assets/img/ding.png" mode='widthFix'></image>我的订单</view>
        <view>
          <text class='look'>查看全部</text>
          <text class="iconfont icon-right"></text>
        </view>
      </view>
    </navigator>
    <navigator url="/pages/order/index/index?id=0">
      <view class="user-btn app-border-bottom">
        <view style='padding-left:64rpx;color:#666;'>待付款</view>
        <view>
          <text class="iconfont icon-right"></text>
        </view>
      </view>
    </navigator>
    <navigator url="/pages/order/index/index?id=1">
      <view class="user-btn app-border-bottom">
        <view style='padding-left:64rpx;color:#666;'>已完成</view>
        <view>
          <text class="iconfont icon-right"></text>
        </view>
      </view>
    </navigator>
    <navigator url="/pages/couponorder/index/index">
      <view class="user-btn app-border-bottom">
        <view>
          <image class='icons' src="./../../assets/img/quans.png" mode='widthFix'></image>券包</view>
        <view>
          <text class="couponnum" wx:if="{{couponNum=='couponNum'}}"></text>
          <text class="iconfont icon-right"></text>
        </view>
      </view>
    </navigator>
    <navigator url="/pages/passCar/passCar" open-type="switchTab">
      <view class="user-btn app-border-bottom">
        <view>
          <image class='icons' src="./../../assets/img/che.png" mode='widthFix'></image>智能停车</view>
        <view>
          <text class="iconfont icon-right"></text>
        </view>
      </view>
    </navigator>
  </view>
  <view class="margin"></view>
  <!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> -->
  <view bindlongtap='showVersion' class='version'>
    <view wx:if="{{flag=='show'}}">版本号：2.2.6</view>
    <view wx:if="{{flag=='hidden'}}"></view>
  </view>
</view>

<view class='of'>
  <official-account wx:if="{{canIUse}}" class="gzh"></official-account>
</view>