wordsPackage.wxml
2.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--pages/MemorizingWords/wordsPackage/wordsPackage.wxml-->
<scroll-view scroll-y='true' bindscrolltolower='onloading' style='max-height:{{scroll_height}}rpx'>
<view class='null_box'></view>
<view class='content_box'>
<view class='content_title'>
<view>单词量:
<text class='current_num'>{{total}}</text>
<text>/{{listdata.total_num}}</text> </view>
<view class='state_box'>
<view class='state_item'>
<view class='iconfont icon-yuan1'></view>
<view>没背</view>
</view>
<view class='state_item'>
<view class='iconfont icon-yuan1 blue'></view>
<view>认识</view>
</view>
<view class='state_item'>
<view class='iconfont icon-yuan1 gree'></view>
<view>不认识 </view>
</view>
<view class='state_item'>
<view class='iconfont icon-yuan1 yellow'></view>
<view>模糊</view>
</view>
</view>
</view>
<view class='content_item'>
<block wx:for='{{listdata.list}}' wx:key>
<view class="item_list" wx:if='{{item.status==0}}' >
<view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
</view>
<view>
<view>
<text>{{item.word}}</text>
<text class='phonetic_symbol' >{{item.yinbiao}}</text>
</view>
<view class='explain'>释义:{{item.explain}}</view>
</view>
</view>
<view class="item_list bgblue" wx:elif='{{item.status==1}}' >
<view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
</view>
<view>
<view>
<text>{{item.word}}</text>
<text class='phonetic_symbol' >{{item.yinbiao}}</text>
</view>
<view class='explain'>释义:{{item.explain}}</view>
</view>
</view>
<view class="item_list bggree" wx:elif='{{item.status==2}}' >
<view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
</view>
<view>
<view>
<text>{{item.word}}</text>
<text class='phonetic_symbol' >{{item.yinbiao}}</text>
</view>
<view class='explain'>释义:{{item.explain}}</view>
</view>
</view>
<view class="item_list bgyellow" wx:elif='{{item.status==3}}' >
<view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
</view>
<view>
<view>
<text>{{item.word}}</text>
<text class='phonetic_symbol' >{{item.yinbiao}}</text>
</view>
<view class='explain'>释义:{{item.explain}}</view>
</view>
</view>
</block>
</view>
</view>
</scroll-view>
<view class='bottom_btn' bindtap='startPlan'>开始背单词</view>