<view class='location'>
    <image src='../../static/images/bannerbg.png'></image>
  </view>
  <text class='txt'>{{dateTime}}</text>
  <view class='transaction'>
    <view>
      <view class='hide' tt:if='{{list.length==0}}'>
        <image class='jiaoyi' src='../../static/images/jiaoyi.png' mode='widthFix'></image>
        <text>暂无数据</text>
      </view>
      <view class='transaction_msg' tt:for='{{list}}' tt:key='{{index}}'>
        <view tt:if='{{item.couponOrderStatus==0}}'>
          <text>券状态</text>
          <text style='color:#FFAE00!important'>未核销</text>
        </view>
  
        <view tt:if='{{item.couponOrderStatus==1}}'>
          <text>券状态</text>
          <text style='color:#52A0FD!important'>已核销</text>
        </view>
  
        <view tt:if='{{item.couponOrderStatus==2}}'>
          <text>券状态</text>
          <text style='color:#FF5700!important'>已过期</text>
        </view>
  
        <view tt:if='{{item.couponOrderStatus==3}}'>
          <text>券状态</text>
          <text style='color:#FF5700!important'>已退款</text>
        </view>
        <view>
          <text>券名称</text>
          <text>{{item.title}}</text>
        </view>
        <view>
          <text>券码</text>
          <text>{{item.ids}}</text>
        </view>
        <view tt:if='{{flag}}'>
          <text>{{timeName}}</text>
          <text>{{item.createDate}}</text>
        </view>
        <view tt:if='{{item.couponOrderStatus==1}}'>
          <text>核销时间</text>
          <text>{{item.updateDate}}</text>
        </view>
        <view tt:if='{{item.couponOrderStatus==3}}'>
          <text>退款时间</text>
          <text>{{item.updateDate}}</text>
        </view>
        <view>
          <text>购买用户</text>
          <text>{{item.cuserPhone}}</text>
        </view>
        <view tt:if='{{!flag}}'>
          <text>核销员</text>
          <text>{{item.buserName}}</text>
        </view>
  
  
        <view>
          <text tt:if="{{item.type != 8}}">券面额</text>
          <text tt:if="{{item.type == 8}}">原价</text>
          <text>{{item.price/100}}元</text>
        </view>
        <view>
          <text tt:if="{{item.type != 8}}">券售价</text>
          <text tt:if="{{item.type == 8}}">底价</text>
          <text>{{item.couponPrice/100}}元</text>
        </view>
  
        <view tt:if='{{item.couponOrderStatus==0 && item.salePrice > 0}}'>
          <button id='refund' bindtap='refund' data-id='{{item.id}}'>退款</button>
        </view>
      </view>
  
      <view class='date' hover-class='active'>
        <view class='picker'  style="margin: auto;">
          <picker mode="date" value="{{time}}" start="2018-01-01" end="{{nowDateTime}}" bindchange="bindDateChange">
            <view class="picker">
              <icon class='iconfont icon-riliriqi'></icon>
            </view>
          </picker>
        </view>
      </view>
      <view class='hide' tt:if='{{hide&&list.length!=0}}'>
        <text>已经加载完成喽</text>
      </view>
    </view>
  </view>