<wxs module="filter" src="../filter.wxs"></wxs>

<view class="big-rim">
  <form bindsubmit='Gettime'>
    <view class="min-rim">
      <view class="rq">日期:</view>

      <picker class='pi' mode="date" value='{{datet}}' start="2019/1/1" bindchange='bindDateChenge'>
      <view class="rq-rim">
       <view class='kssj'><text class="wz"name="datat"value='{{datet}}'bindinput='watchPassWord'>{{datet}}</text></view>
         <!-- 清除输入框中的内容-->
        <view hidden='{{isBind}}' class="qc-rim">
          <button class="empty" catchtap="eliminate">x</button>
        </view>
      </view>
      </picker>

      <view class="zi">至 </view>
      <picker class="pis"mode="date" value='{{dates}}' start="2019/1/1" end="" bindchange='bindDateChenges'>
        <view class="kssj">
        <text class='wz' name="datas" value='{{dates}}'>{{dates}}</text>
        </view>
        <!-- 清除输入框中的内容 -->
        <view class="end-rim" hidden="{{isBinds}}">
          <button class="end" catchtap="eliminates">x</button>
        </view>
      </picker>
    </view>
    <view class="xknr-rim">
      <view class="cxnr">查询内容 </view>
      <view class='top'>
        <!-- 下拉框 -->
        <view class='top-selected' bindtap='bindShowMsg'>
          <input name="grade_name" class="texts" value='{{grade_name}}'>{{grade_name}}</input>
          <view class="rim-images">
            <image class="images" src='{{iurl}}/miniapp/images/usermoney/ico-pt4.png'></image>
          </view>
        </view>
        <!-- 下拉需要显示的列表 -->
        <view class="select-box" wx:if="{{select}}">
          <view wx:for="{{grades}}" wx:key="unique">
            <view class="select_one" bindtap="mySelect" data-name="{{item}}">{{item}}</view>
          </view>
        </view>
      </view>
    </view>
    <button class="botton" form-type='submit' data-query='{{item}}'>查询明细</button>
  </form>
 <view class="zs">注：读取时段内近10笔记录</view> 
</view>

<view class="db">
  <view class="xm">项目</view>
  <view class="je">积分</view>
</view>


<view wx:if="{{details.length!=0}}">
  <block wx:for="{{details}}" wx:for-index="idx" wx:for-item="details">
   <view class="data">
        <view class="left">
          <view class='left-test'>{{details.Remark}}
            <view class='time'>{{details.BillDate}}</view>
          </view>
        </view>
        <view class="val" style='color:{{(details.InOutInt>0)?"green":""}}'>
           {{(details.InOutInt>0)?"+":""}}{{filter.getNum(details.InOutInt)}}积分  </view>
      </view>
  </block>

</view>