<wxs module="filter" src="../filter.wxs"></wxs>
<wxs module="dateUtil" src="index.wxs"></wxs>
<view class="eject-frame">
<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 wx:if="{{details.lenght==0}}">
  <view class="mysj">没有数据</view>
</view>
<view wx:else>
  <block wx:for="{{details}}"wx:for-index="idx" wx:for-item="detail">
      <view class="data" bindtap="submit" data-ordersn="{{detail.order_sn}}"
      data-time="{{dateUtil.dateFormat(detail.create_time)}}"data-status="{{detail.status}}"
      data-money="{{detail.money}}" data-accountname="{{detail.account_name}}"
      data-bankname="{{detail.bank_name}}"
      data-accountbank="{{detail.account_bank}}" >
     
      <view class="left">
         <view class='left-test'>
         提现
          <view class='type'>
          状态:{{detail.status=="0"?"申请中":(detail.status=="1"?"申请成功":"申请失败")}} </view>
          </view> 
          </view>
          <view class="right-rim">
        <view class="time">{{dateUtil.dateFormat(detail.create_time)}}</view>
        <view class="money">
      {{detail.status=="1"?'-':'-'}}{{filter.getNum(detail.money)}}</view>
      </view>
   </view>
  </block>

</view>
<!-- 蒙层 -->

 <view class="mask"bindtap="close" catchtouchmove="preventTouchMove"  wx:if="{{showModal}}">
 </view>
 <!-- 弹出框 -->

  <view class="big-rims" bindtap="close" wx:if="{{showModal}}">
    <view class="bk">
    <view class="parameter-name"><view class="name">流水号</view><view class="parameter">{{ordersn}} </view></view>
    <view class="parameter-name"><view class="name">类型</view><view class="parameter">提现</view></view>
    <view class="parameter-name"><view class="name">支出</view><view class="parameter green">{{money}}</view></view>
    <view class="parameter-name"><view class="name">时间</view><view class="parameter">{{time}}</view></view>
    <view class="parameter-name"><view class="name">银行</view><view class="parameter">{{bankname}}</view></view>
    <view class="parameter-name"><view class="name">银行卡号</view><view class="parameter">{{accountbank}}</view></view>
    <view class="parameter-name"><view class="name">账户名称</view><view class="parameter">{{accountname}}</view></view>
    <view class="parameter-name"><view class="name">状态</view><view class="parameter">
    {{status=="0"?"申请中":(status=="1"?"申请成功":"申请失败")}}</view></view>
    
    </view>
  </view>
  </view>