  <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'>
        <view class='qrcode' bindtap='qrcode' wx:if="{{ismember}}">
          <image src='./../../assets/img/qrcode.png' mode='widthFix'></image>
        </view>
        <view wx:if="{{showEdit}}" class='edits' bindtap='gotoedit'>
          <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}}"  bindtap='gotoedit' 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' style='width:36rpx;' 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' style='width:44rpx;' 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/cardorder/index/index">
        <view class="user-btn app-border-bottom">
          <view>
            <image class='icons' style='width:44rpx;' src="./../../assets/img/cardicon.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 style='width:44rpx;' class='icons' src="./../../assets/img/che.png" mode='widthFix'></image>智能停车</view>
          <view>
            <text class="iconfont icon-right"></text>
          </view>
        </view>
      </navigator>
      <!-- 当商场开启使用折扣按钮的时候， -->
      <navigator url="/pages/specialcourtesy/specialcourtesy" wx:if="{{discountEnable}}">
        <view class="user-btn app-border-bottom">
          <view>
            <image style='width:50rpx;' class='icons' src="./../../assets/img/gift.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'}}">版本号：3.2.1</view>
      <view wx:if="{{flag=='hidden'}}"></view>
    </view>
  </view>

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

  <view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}">
    <view class="canvas-box">
      <canvas hidden="{{canvasHidden}}" style="width: 500rpx;height:500rpx;background:0 0 0 .6;margin-top:10rpx;" canvas-id="mycanvas1" />
      <text class='memberIds'>会员号:{{memberId}}</text>
    </view>
  </view>
