<!-- <navbar back home text="积分详情"></navbar>
<view style="height:{{navigationBarHeight}} "></view> -->
<view class='head' >
  <text>当前</text>
  <text>{{creditAmount+'分'}}</text>
  <!-- <view class='rule' bindtap='gotorule'>规则</view> -->
  <image class='bg' src='{{bgg}}' mode='widthFix'></image>
</view>
<view class=''>
  <text class='title'>积分明细</text>
  <view tt:if="{{list.length>0}}">
    <view class='content clearfix' tt:for="{{list}}" tt:key="{{index}}">
      <view class='le'>
        <text>{{item.changePurpose?item.changePurpose:item.creditTypeName}}</text>
        <text>{{item.createDate}}</text>
      </view>
      <view class='fr'>
        <text tt:if="{{item.creditNum>0}}" style="color:#fc5b24;">+{{item.creditNum}}分</text>
        <text tt:if="{{item.creditNum<0}}">{{item.creditNum}}分</text>
      </view>
    </view>
  </view>
  <view class='nonecontent' tt:if="{{list.length==0}}">
    暂无数据
  </view>
</view>