<!-- 积分明细 -->
<scroll-view scroll-y="{{!showPop}}" style="height: 100%;">
  <view class="integral-detail">
    <view class="number-box">
      <image src="../../images/icon/integral-detail-bg1.png" class="bg1" />
      <image src="../../images/icon/integral-detail-bg2.png" class="bg2" />
      <view class="my-integral">
        <view class="number">{{userInfo.score}}</view>
        <view class="text">积分</view>
      </view>
      <view class="explain" bindtap="clikcPop">积分攻略</view>
    </view>
    <view class="detail-list">
      <view class="item" wx:for="{{scoreDetails}}" wx:key="logId">
        <view class="text-box">
        <!-- ioType 1. 购物 2.会员等级提升加积分 3.签到加积分 4购物抵扣使用积分 -->
          <view class="tit" wx:if="{{item.source == 0 && item.ioType == 1}}">注册获赠积分</view>
          <view class="tit" wx:if="{{item.source == 1 && item.ioType == 1}}">购买商品获赠积分</view>
          <view class="tit" wx:if="{{item.source == 1 && item.ioType == 0}}">退款扣除购物获赠积分</view>
          <view class="tit" wx:if="{{item.source == 2}}">等级提升获赠积分</view>
          <view class="tit" wx:if="{{item.source == 3}}">签到获赠积分</view>
          <view class="tit" wx:if="{{item.source == 4 && item.ioType == 1}}">商品退款退回抵现积分</view>
          <view class="tit" wx:if="{{item.source == 4 && item.ioType == 0}}">购买商品抵现积分</view>
          <view class="tit" wx:if="{{item.source == 5 && item.ioType == 0}}">积分过期</view>
          <view class="time">{{item.createTime}}</view>
        </view>
        <view class="score {{item.ioType == 0 ? 'reduce':'add'}}">{{item.ioType == 0 ? "-":"+"}}{{item.score}}</view>
      </view>
    </view>
    <view class="empty" wx:if="{{!scoreDetails.length}}">暂无数据</view>
    <view class="empty all" wx:if="{{current==pages}}">已经到底啦~</view>
  </view>
</scroll-view>
<!-- 积分攻略弹框 -->
<view class="score-strategy" wx:if="{{showPop}}">
  <view class="mask"></view>
  <view class="explain-card">
    <view class="pop-tit">
      <view class="cont-title">积分攻略</view>
      <view class="close-box" bindtap="clikcPop">
        <image class="close-icon" src="../../../images/icon/close.png"></image>
      </view>
    </view>
    <view class="content-wrap">
      <view class="cont-det">
        <rich-text nodes="{{scoreExplain.paramValue}}"></rich-text>
      </view>
    </view>
  </view>
</view>
<!-- /积分攻略弹框 -->

<!-- /积分明细 -->

