<view class='firstPage'>
  <view class='fix'>
    <image src='../../assets/images/bannerbg.png'></image>
    <view class='writeOff writeOff1'>
      <!-- <view class='topBox clearfix' tt:if="{{djArr.length>0||count > 0}}"  >
          <view class='left fl' >
            <text>待缴账单</text>
            <text>{{djArr.length}}</text>
            <text>￥{{djZmoney}}</text>
          </view>
          <view class='right fr'>
            <text>今日交易单数</text>
            <text>{{count}}</text>
            <text>￥{{amountMoney/100}}</text>
          </view>
        </view> -->
      <!-- tt:if="{{djArr.length == 0 && count == 0}}" -->
      <view class='topBox2 clearfix'>
        <view class='imgBox'>
          <image src='{{userInfo.merchant_img_url}}' mode='{{widthFix}}'></image>
        </view>
        <text class='name'>{{userInfo.mall_name}}({{userInfo.merchant_name}})</text>
      </view>
    </view>
  </view>
  <view class='location'>
    <view class='message' tt:if="{{billList.length>0}}">
      <image src='../../assets/images/mess.png' mode='widthFix'></image>
      <text>{{billList.length}}</text>
    </view>
    <swiper tt:if="{{billList.length>0}}" current='{{currentIndex}}' class="swiper_container" vertical="true"
      autoplay="true" circular="true" interval="3000">
      <block tt:for="{{billList}}" tt:key="index">
        <swiper-item bindtap="gotobill" data-data='{{item}}' data-id='{{item.id}}'>
          <view class="swiper_item clearfix">
            <text tt:if="{{item.status=='1'}}" class="state1 fl">欠缴</text>
            <text tt:if="{{item.status=='2'}}" class="state2 fl">待缴</text>
            <text class="fl billtype">{{item.name}}{{item.end}}</text>
            <text class="fl">{{item.owe/100}}元</text>
          </view>
        </swiper-item>
      </block>
    </swiper>
  </view>
  <view class='writeOff'>
    <view class='classification clearfix' tt:if="{{userInfoLoadIf&&userInfo.is_admin!=4}}">
      <view tt:for='{{classIfyList}}' tt:if="{{!(item.id==4&&userInfo.creditLocked==1)}}">
        <!-- <view tt:for='{{classIfyList}}' tt:if="{{false}}" tt:key='{{index}}'> -->
        <view hover-class='active' style='background:{{item.bg}}' bindtap='toWriteoff' data-id='{{item.id}}'>
          <icon class='{{item.icon}}'></icon>
        </view>
        <text>{{item.text}}</text>
      </view>


    </view>
    <view class='classification clearfix' tt:if="{{userInfoLoadIf&&userInfo.is_admin==4}}">
      <view tt:for='{{classIfyList2}}' tt:if="{{!(item.id==4&&userInfo.creditLocked==1)}}">
        <!-- <view tt:for='{{classIfyList}}' tt:if="{{false}}" tt:key='{{index}}'> -->
        <view hover-class='active' style='background:{{item.bg}}' bindtap='toWriteoff' data-id='{{item.id}}'>
          <icon class='{{item.icon}}'></icon>
        </view>
        <text>{{item.text}}</text>
      </view>
    </view>
  </view>
  <view tt:if="{{userInfo.is_admin!=4}}" class='jiaoyi jiaoyi1 jiaoyi2' hover-class='actives' bindtap='toTran'
    data-type='0'>
    <view class='toTransaction'>
      <view>
        <text>交易记录</text>
      </view>
      <view>今日交易额:{{amountMoney/100}}元
        <image class='iconfonts' src='../../assets/images/jian.png' mode="widthFix"></image>
      </view>
    </view>
    <!-- <view class='transaction' tt:if="{{ifShowChart!='show'}}">
        <ec-canvas id="mychart-jiaoyi" canvas-id="mychart-multi-bar" ec="{{ ecBar }}"></ec-canvas>
      </view> -->
    <view class='transaction' tt:if="{{ifShowChart=='show'}}">
      <image class='img' src='../../assets/images/nothave01.png' mode='widthFix'></image>
      <view class="nothave">暂无数据</view>
    </view>
  </view>
  <view tt:if="{{userInfo.is_admin!=4}}" class='jiaoyi' hover-class='actives' bindtap='toTran' data-type='1'>
    <view class='toTransaction'>
      <view>
        <text>核销记录</text>
      </view>
      <view>今日核销额:{{writeOffMoney/100}}元
        <image class='iconfonts' src='../../assets/images/jian.png' mode="widthFix"></image>
      </view>
    </view>
    <!-- <view class='transaction' tt:if="{{ifShowChart1!='show'}}">
        <ec-canvas id="mychart-hexiao" canvas-id="mychart-multi-scatter" ec="{{ ecScatter }}"></ec-canvas>
      </view>
      <view class='transaction' tt:if="{{ifShowChart1=='show'}}">
        <image class='img' src='../../assets/images/nothave02.png' mode='widthFix'></image>
        <view class="nothave1">暂无数据</view>
      </view> -->
  </view>

  <!-- <view class='jiaoyi jiaoyi1' hover-class='actives' bindtap='toRecord' data-type='0'>
      <view class='toTransaction'>
        <view>
          <text>收银记录</text>
        </view>
        <view>今日收银:{{recordMoney/100}}元
          <image class='iconfonts' src='../../assets/images/jian.png' mode="widthFix"></image>
        </view>
      </view>
      <view class='transaction' tt:if="{{ifShowChart2!='show'}}">
        <ec-canvas id="mychart-pament" canvas-id="mychart-pament-bar" ec="{{ ec }}"></ec-canvas>
      </view>
      <view class='transaction' tt:if="{{ifShowChart2=='show'}}">
        <image class='img' src='../../assets/images/nohave03.png' mode='widthFix'></image>
        <view class="nothave2">暂无数据</view>
      </view>
    </view> -->
</view>