scoreDetail.wxml
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!--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>