<view class="container">
  <view class='content'>
    <view class='user'>
      <!-- <view class="userHead">
        <open-data  type="userAvatarUrl"></open-data>
      </view> -->
      <!-- <image src='{{userHeadUrl}}' catchtap='imgClickShow'></image> -->
      <!-- <view class='username'>
        <open-data type="userNickName" lang="zh_CN"></open-data>
      </view> -->
      <block wx:if="{{userInfo.avatarUrl}}">
        <image class="userHead" src="{{userInfo.avatarUrl}}" mode="cover"></image>
      </block>
      <block wx:else>
        <image class="userHead" src="../../images/userhead.png" mode="cover"/>
      </block>
      <block wx:if="{{userInfo.nickName}}">
        <text class='username'>{{userInfo.nickName}}</text>
      </block>
      <block wx:else>
        <text class='username'>微信用户</text>
      </block>
    
      <button open-type="getUserInfo" bindtap="getUserProfile" wx:if="{{bangding}}">立即绑定帐号</button>
      <button open-type="getUserInfo" bindtap="getUserProfile" >刷新头像</button>
      <view class="mobile">{{mobile}}</view>
      <!-- <navigator class='binding' url="wxml/Connect/Connect" wx:if="{{bangding}}">
          绑定手机号
      </navigator> -->
    </view>
  </view>
    <navigator url="wxml/redpackrule/redpackrule" class='title'>
      <text>红包余额</text>
      <text style="float:right;color:#999;">红包规则></text>
    </navigator> 
  <view class="redpack">
    <text>{{balance}}</text> 元
  </view>
  <view class='title'>
    <text>我的竞买</text> 
    <!-- <image src="../../images/arrow.png"></image>  -->
  </view>
  <view class='clickingbar'>
    <navigator class='whole' url='wxml/beingphotographed/beingphotographed'>
      <image src='images/icon_1.png'></image>
      <view>
        待付款
      </view>
      <view wx:if='{{pay_money>0}}' class='count'>{{pay_money}}</view>
    </navigator>
    <navigator class='whole' url='wxml/pendingdelivery/pendingdelivery'>
      <image src='images/icon_2.png'></image>
      <view>
        待发货
      </view>
      <view wx:if='{{deliver>0}}' class='count'>{{deliver}}</view>
    </navigator>
    <navigator class='whole' url='wxml/goodstobereceived/goodstobereceived'>
      <image src='images/icon_3.png'></image>
      <view>
        待收货
      </view>
      <view wx:if='{{receive>0}}' class='count'>{{receive}}</view>
    </navigator>
    <navigator class='whole' url='wxml/biddersrecord/biddersrecord'>
     <!-- open-type='switchTab' -->
      <image src='images/icon_4.png'></image>
      <view>
        竞买记录
      </view>
    </navigator>
    <button open-type="contact" session-from="weapp"  class='whole'>
      <image  id='btnno' src='images/icon_5.png'></image>
      <view>
        售后服务
      </view>
    </button>
  </view>
  <view class='title'>
     <text>更多功能</text> 
    </view>
  <view class='footer'>
    <navigator class='whole' url='wxml/myredpacket/myredpacket'> 
      <image src='images/hongbao.png'></image>
      <view>
        我的红包
      </view>
    </navigator>
    <navigator class='whole' url='wxml/bond/bond'> 
      <image src='images/bill.png'></image>
      <view>
        保证金管理
      </view>
    </navigator>
    <navigator class='whole' url='wxml/receivingaddress/receivingaddress'>
      <image src='images/address.png'></image>
      <view>
        收货地址
      </view>
    </navigator>
     <navigator class='whole'url='wxml/feedback/feedback'>
           <!-- bindtap='modalcnt'  -->
      <image src='images/news.png'></image>
      <view>
        意见反馈
      </view>
    </navigator>
     <!-- <navigator class='whole' url='../mine/wxml/shopregistration/shopregistration'>
      <image src='images/bill.png'></image>
      <view>
        
      </view>
    </navigator>  -->
    <!-- <navigator class='whole'>
      <image src='images/camera.png'></image>
      <view>
        
      </view>
    </navigator> -->
  </view>
  <view class="seller" bindtap='shop'>
    <view class='footimg'>
      <image src='images/conveniencstore.png'></image>
      <view>
        {{shop?'入驻店铺':shopName}}
      </view>
    </view>
    <view class="tips">
      <text>{{storestate}}</text>
    </view>
  </view>
  <!-- <navigator class="seller" url="../mine/wxml/certification/certification" >
    <view class='footimg'>
      <image src='images/conveniencstore.png'></image>
      <view>
        拍卖师认证-邀您入驻
      </view>
    </view>
    <image src="../../images/arrow.png"></image>
  </navigator> -->
</view>