<wxs module="filter" src="../filter.wxs"></wxs>
<view class="big-rim">
 <form bindsubmit='Gettime'> 
  <view class="min-rim">
    <view class="rq">日期：</view>
    <picker mode="date" value='{{datet}}'start="2019/1/1" end="" 
    bindchange='bindDateChenge'>
   <view calss="kspicker">
   <view class='kssj'>
      <text name="datat" class='kstext' value='{{datet}}'bindinput='watchPassWord' >{{datet}}</text></view>
        <view class="empty"hidden='{{isBind}}'>
       <button class="ksqc" catchtap="eliminate">x</button>
       </view>
       </view>
    </picker>
    
    <view class="zi">至 </view>
    <picker  mode="date" value='{{dates}}' start="2019/1/1" end="" bindchange='bindDateChenges'>
    <view class="jspicker">
    <view class='jssj'>
      <text name="datas" class='jstext' value='{{dates}}'>{{dates}}</text></view>
      <view  class="jspc"hidden="{{isBinds}}">
       <button class="end" catchtap="eliminates">x</button>
       </view>
       </view>
    </picker>
  </view>
  <button class="botton" form-type='submit'>查询明细</button> 
  </form> 
  <view class="zs">注： 读取时段内近10笔记录</view>
</view>
<view class="db">
  <view class="xm">项目</view>
  <view class="je">金额</view>
</view>
<view wx:if="{{details.lenght==0}}">
  <view class="mysj">没有数据</view>
</view>

<view wx:else>
  <block wx:for="{{details}}"wx:for-index="idx" wx:for-item="details">
      <view class="data">
      <view class="left">
         <view class='left-test'>
           {{(details.type==0?"分成":(details.type==1?"提现-":(details.type==2?"退款-":(details.type==3?"购买-":(details.type==4||details.type==5?"返利-":(details.type==6?"转入-":""))))))}}单号<view class="card">{{details.order_sn}}</view>
              </view>
          <wxs module="dateUtil" src="index.wxs"></wxs>
 
               <!-- 不指定格式则默认输出：yyyy-MM-dd hh:mm:ss 格式 -->
          <view class='time'>{{dateUtil.dateFormat(details.time)}}</view> 
       
          </view>
        
        <view class="money" 
        style="color:{{details.type==2||details.type==0?'#C4182E':'#6fd137'}}">
      {{details.type==1||details.type==3?'-':'+'}}{{filter.getNum(details.money)}}</view>
   </view>
  </block>

</view>