<!--center.wxml-->
<import src="../../template/weather/weather.wxml" />
<!-- <view class="user_info">
  <view class="user_avatar">
    <image mode="aspectFill" src="{{userInfo.avatarUrl}}"></image>
  </view>
  <view class="user_name">{{userInfo.nickName}}</view>
  <view class='mine_integral'>
     我的积分：{{integralData}}
  </view>
</view> -->

<view class='center_content'>

  <view class='center_content_top'>
    <view class='top_left'>
      <view class='user_img'><image mode='aspectFill' src='{{userInfo.avatarurl}}'></image></view>
      <view class='user_name'> {{userInfo.nickname}}</view>
    </view>
    <view class='top_right' bindtap='sign'>
      <view class='top_sign'>{{isSign ? 'Checked-in' : 'Check-in'}}</view>
    </view>
  </view>

  <view class='center_content_bottom'>
    <view class='bottom_row'>
      <view class='my_intergral'>
        <view class='intergral_top'>{{integralData}}</view>
        <view class='intergral_bottom'>Point</view>  
      </view>
      <view class='my_intergral'>
        <view class='intergral_top'>{{balanceInfo.balance}}</view>
        <view class='intergral_bottom'>Credit Balance</view>  
      </view>
      <view class='my_intergral'>
        <view class='intergral_top'>{{balanceInfo.money}}</view>
        <view class='intergral_bottom'>Accumulated Spending</view>  
      </view>
    </view>
  </view>
</view>

<!-- <text class="phone">{{storeInfo.business_address}}</text> -->
<!-- <text class="phone">0755-32812636</text> -->

  <view class='use_box'>
  <view class='use_row' bindtap="navOrder">
      <view class='use_box1'><image src='/images/icon/my_order.png'></image></view>
      <view class='use_text'>My Order</view>  
    </view>

    <view class='use_row' bindtap='seeDownLine' wx:if="{{storeInfo.business_address}}"data-share_status="{{userInfo.status}}" data-index="0">
      <view class='use_box1'><image src='/images/icon/sales.png'></image></view>
      <view class='use_text'>{{userInfo.status != 1 ? ' Distribution Register' : 'Distribution Center'}}</view>  
    </view>

    <view class='use_row' bindtap="navrecharge">
      <view class='use_box1'><image src='/images/icon/vip_active.png'></image></view>
      <view class='use_text'>Member Top Up</view>  
    </view>

    <view class='use_row' bindtap="navcoupon">
      <view class='use_box1'><image src='/images/icon/coupon2.png'></image></view>
      <view class='use_text'>E-Voucher</view>  
    </view>

    <view class='use_row' bindtap="navgames">
      <view class='use_box1'><image src='/images/icon/games.png'></image></view>
      <view class='use_text'>Mini Game</view>  
    </view>

    <!-- <view class='use_row' bindtap="goPointsMall">
      <view><image src='/images/icon/store_active.png'></image></view>
      <view class='use_text'>积分商城</view>  
    </view> -->

    <view class='use_row' bindtap="navintegral">
      <view class='use_box1'><image src='/images/icon/integraltion.png'></image></view>
      <view class='use_text'>Redeem Record</view>  
    </view>

    <view class='use_row' bindtap="navreferer">
      <view class='tuike_img'><image src='/images/icon/referrer.png'></image></view>
      <view class='use_text2'>C2C Record</view>  
    </view>

    <!-- <view class='use_row' bindtap="navAddressCenter">
      <view class='use_box1'><image src='/images/icon/info2.png'></image></view>
      <view class='use_text'>地址管理</view>  
    </view> -->

    <!-- <view class='use_row' bindtap="navOrder">
      <view><image src='/images/icon/order_active.png'></image></view>
      <view class='use_text'>我的订单</view>  
    </view> -->

    <!-- <view class='use_row' bindtap="contactStore">
      <view><image src='/images/icon/phone.png'></image></view>
      <view class='use_text'>联系我们</view>  
    </view> -->

    <view class='use_row' bindtap="navAbout">
      <view class='use_box1'><image src='/images/icon/league1.png'></image></view>
      <view class='use_text'>About us</view>  
    </view>

    <view class='use_row' bindtap="navProcedure">
      <view class='use_box2'><image src='/images/icon/procedure.png'></image></view>
      <view class='use_text'>I Want To Do Mini Program Also</view>  
    </view>

    <!-- <view class='use_row' bindtap="navAddress">
      <view><image src='/images/icon/address.png'></image></view>
      <view class='use_text'>地址导航</view>  
    </view> -->
    



  </view>

   
   <!--底部 S1  -->
 <view class="foot" wx:if="{{footImg.length==0}}">
  <image src="https://ypx.shenmikj.com/canyin/Uploads/canyin/canyin.png" mode="aspectFill"></image>
</view> 
<view class="foot" wx:if="{{footImg.length!=0}}">
  <image src="{{ imgBefore + footImg }}" mode="aspectFill"></image>
</view> 

<!--底部 E 1 -->

<!--底部 S 2 -->
<!-- <view class="foot">
  <image src="/images/footer.png" mode="aspectFill"></image>
</view> -->
<!--底部 E 2 -->



<!--  分销弹窗  -->
<view class='modal' wx:if="{{showApply}}">
    <view class='apply-wrap white-bg rpx28'>
        <view class='apply-item-wrap'>
            <view class='flex-row a-center apply-item'>
                <view class='apply-item-left'>Name:</view>
                <input type='text' placeholder='Enter your name' bindinput='getName'></input>
            </view>
            <view class='flex-row a-center apply-item'>
                <view class='apply-item-left'>Phone:</view>
                <input type='text' placeholder='Enter your phone' bindinput='getPhone'></input>
            </view>
        </view>
        <view class='flex-row a-center'>
            <button class='cancle-apply-btn' data-kind="cancle" bindtap='whetherApply'>Cancel</button>
            <button class='sure-apply-btn main-bg white' data-kind="sure" bindtap='whetherApply'>Submit</button>
        </view>
    </view>
</view>

