<!--packageF/storeManagement/storeManagementIndex/storeManagementIndex.wxml-->

<view class="top-info">
  <view class="left-img">
    <image src="{{memberInfo.avatar}}" />
  </view>
  <view class="right-identity">
    <view class="nick-name text-overHide">{{memberInfo.nickname}}</view>
    <view class="admin">
      <i class="iconfont icon-fontclass-daili"></i>
      <span>管理员</span>
    </view>
  </view>
</view>


<view class="containe">
  <view class="tool-box">
    <view class="manage" data-name="storeGoodsManagement" bindtap="gotoPage">
      <view class="icon-font yingyongshichang1">
        <i class="iconfont icon-fontclass-yingyongshichang1"></i>
      </view>
      <view>商品管理</view>
    </view>
    <view class="manage" data-name="storeGoodsManagement" bindtap="gotoOrder">
      <view class="icon-font shangpindingdan"><i class="iconfont icon-fontclass-shangpindingdan"></i></view>
      <view>订单管理</view>
    </view>
    <view class="manage" data-name="memberManagement" bindtap="gotoPage">
      <view class="icon-font fx_haoyou"><i class="iconfont icon-fx_haoyou"></i></view>
      <view>会员管理</view>
    </view>
    <view class="manage" data-name="financeManagement" bindtap="gotoPage">
      <view class="icon-font fufeijilu"><i class="iconfont icon-fontclass-fufeijilu"></i></view>
      <view>财务管理</view>
    </view>
  </view>

  <view class="amount-statistics module-style">
    <view class="top">
      <view class="completion-amount">
        <view>成交额</view>
        <view class="num">{{statistics.turnover}}</view>
      </view>
      <view class="time-tab">
        <van-tabs active="{{active}}" type="card" color="#28b2fa" bindchange="changeTab">
          <van-tab name="1" title="今日" title-class="tab"></van-tab>
          <van-tab name="2" title="昨日" title-class="tab"></van-tab>
          <van-tab name="0" title="全部" title-class="tab"></van-tab>
        </van-tabs>
      </view>
    </view>
    <view class="statistics">
      <view class="items">
        <view class="statistical-name">已支付订单数</view>
        <view class="statistical-num">{{statistics.pay_count ? statistics.pay_count : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">商品成交数</view>
        <view class="statistical-num">{{statistics.goods_total ? statistics.goods_total : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">支付人数</view>
        <view class="statistical-num">{{statistics.pay_member_count ? statistics.pay_member_count : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">下单人数</view>
        <view class="statistical-num">{{statistics.member_count ? statistics.member_count : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">新增会员数</view>
        <view class="statistical-num">{{statistics.new_member_count ? statistics.new_member_count : 0}}</view>
      </view>

    </view>
  </view>

  <view class="order-statistics module-style">
    <view class="title">数据统计</view>
    <view class="statistics">
      <view class="items">
        <view class="statistical-name">待发货订单</view>
        <view class="statistical-num">{{statistics.wait_send ? statistics.wait_send : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">待付款订单</view>
        <view class="statistical-num">{{statistics.wait_pay ? statistics.wait_pay : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">售后订单</view>
        <view class="statistical-num">{{statistics.refund_count ? statistics.refund_count : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">在售商品数</view>
        <view class="statistical-num">{{statistics.on_shelf ? statistics.on_shelf : 0}}</view>
      </view>
      <view class="items">
        <view class="statistical-name">下架商品数</view>
        <view class="statistical-num">{{statistics.un_shelf ? statistics.un_shelf : 0}}</view>
      </view>
    </view>
  </view>

  <view class="manage-box module-style">
    <view class="title">店铺管理</view>
    <view class="manage-tool">
      <view data-name="storeGoodsCatgory" bindtap="gotoPage">
        <i class="iconfont icon-fontclass-yingyongzhongxin"></i>
        <view>商品分类</view>
      </view>
      <view data-name="withdrawalList" bindtap="gotoPage">
        <i class="iconfont icon-ht_content_tixian"></i>
        <view>提现记录</view>
      </view>
    </view>
  </view>
</view>