scoreDetail.wxml 1.2 KB
<!--pages/scoreDetail/scoreDetail.wxml-->
<view class="score_detail">
  <view>
    <view class="allScore">{{score}}积分</view>
    <text class="score_rule" wx:if='{{ident==1}}' >积分规则:成功推荐1名教师获得1000积分;
    <text>发布1个作业获得20积分;</text></text>
    <text class="score_rule" wx:else>积分规则:1朵小红花=1积分</text>
  </view>
  

  <view class="score_list"> 
  <block  wx:if='{{ident==1}}' >
    <view class="scoreItem" wx:for='{{list}}' wx:key='{{index}}'>
      <view class="left_content">
        <view class="top_title">
          {{item.type==1?"成功发布作业":'成功邀请老师'}}
        </view>
        <view class="score_time">
          {{item.createtime}}
        </view>
      </view>
      <view class="right_content">
        +{{item.score}}
      </view>
    </view>
  </block>
  <block wx:else>
        <view class="scoreItem" wx:for='{{list}}'  wx:key='{{index}}'>
      <view class="left_content">
        <view class="top_title">
          {{item.desc}}
        </view>
        <view class="score_time">
          {{item.createtime}}
        </view>
      </view>
      <view class="right_content">
        +{{item.reward}}
      </view>
    </view>
  </block>
    

  </view>
</view>