<!--pages/addScore/addScore.wxml-->
<view class="all">
  <view class="choose">
    <view class="hotSell" data-index="1" bindtap="chooseFn" style="color:{{chooseWhich==1?'#333333':'#999999'}}">积分增长记录</view>
    <view class="replace" data-index="2" bindtap="chooseFn" style="color:{{chooseWhich==2?'#333333':'#999999'}}">积分使用记录</view>
    <view class="yellow" style="left:{{chooseWhich==1?'105rpx':'412rpx'}}"></view>
  </view>

  <view class="menu">
    <text class="timeDate">时间</text>
    <text class="matter" wx:if="{{chooseWhich==2}}">事项</text>
    <text class="scoreNum">积分</text>
  </view>

  <scroll-view class="scroll" scroll-y bindscrolltolower="getBot" style="height:{{scrollHig}}px">
    <view wx:if="{{chooseWhich==1}}" class="scrollCont" wx:for="{{scoreData}}">
      <text>{{item.add_date}}</text>
      <text>+{{item.point_add}}</text>
    </view>
    
    <view wx:if="{{chooseWhich==2}}" class="scrollCont" wx:for="{{scoreData}}">
      <text>{{item.check_date}}</text>
      <text class="cash_exchange">{{item.cash_exchange}}</text>
      <text>-{{item.point_check}}</text>
    </view>
  </scroll-view>
</view>
