<view class="section">
  <picker mode="date" value="{{date}}" start="2018-01-01" end="2037-12-31" bindchange="bindDateChange" fields='month'>
    <view class="picker">
      {{dates}}
    </view>
  </picker>
</view>

<view class='listContainer'>
  <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltolower="addOtherTenOrder">
    <block wx:for="{{list}}" wx:for-item="item" wx:for-index="idx">
      <template is="statementTemplate" data="{{item,idx}}" />
    </block>
  </scroll-view>
</view>

<!-- <view class='listContainer'>
  <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltolower="addOtherTenOrder">
    <block wx:for="{{list}}" wx:for-item="item" wx:for-index="idx">
      <template is="statementTemplate" data="{{item}}" />
    </block>
  </scroll-view>
</view> -->

<!-- 原界面 -->
<!-- <template name="statementTemplate">
  <view class='yonghu'>
    <view class='view1'>日期:{{item.GatheringTime}}</view>
    <view class='view2'>收款:{{item.GatheringMoney}}</view>
  </view>
</template> -->

<template name="statementTemplate">
  <view class="item">
    <view bindtouchstart="touchS" bindtouchmove="touchM" bindtouchend="touchE" data-index="{{idx}}" style="{{item.txtStyle}}" class="inner txt">
      <view class='view1'>日期:{{item.GatheringTime}}</view>
      <view class='view2'>收款:{{item.GatheringMoney}}</view>
    </view>
    <view data-index="{{idx}}" bindtap="delItem" class="inner del">删除</view>
  </view>
</template>