<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.order_sn}}
           
          <wxs module="dateUtil" src="index.wxs"></wxs>

               <!-- 不指定格式则默认输出：yyyy-MM-dd hh:mm:ss 格式 -->
          <view class='time'>{{dateUtil.dateFormat(details.create_time)}}</view> 
          </view>
          </view>
        
        <view class="money" 
        style="color:{{details.type=='1'?'#6fd137':'#C4182E'}}">
      {{details.type==1?'-':'+'}}{{filter.getNum(details.money)}}</view>
   </view>
  </block>

</view>
