<view class="tab">
  <text class="{{activeTab==1?'active-tab':''}}" data-index="1" bindtap="selectTab">获得</text>
  <text class="{{activeTab==0?'active-tab':''}}" data-index="0" bindtap="selectTab">使用</text>
</view>
<view class="modular modular-pad">
  <picker class="show-date" mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
    <!-- <view class="picker">{{viewDate}}</view> -->
    <view style="display:inline-block">
      <text>{{viewDate.year}}</text>年<text>{{viewDate.month}}</text>月
    </view>
  </picker>
  <view class="detail-list">
    <view class="list-item" wx:for="{{dateList}}" wx:key="index">
      <view class="item-left">
        {{item.reasonUser}}
      </view>
      <view class="item-right">
        <view class="quota subtitleColor">{{(item.addType==1?'+ ':'')+item.price}}</view>
        <view class="produce-time">{{item.date_time}}</view>
      </view>
    </view>
  </view>
  <view class="no-more" wx:if="{{noMore}}"><text>已经到底了</text></view>
</view>