homework.wxml
8.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!--pages/homework/homework.wxml-->
<import src="../../tabbar.wxml"/>
<template is="tabBar" data="{{tabBar}}"/>
<cover-view class="quitTestCount" wx:if='{{test}}' bindtap="quitTest">
退出体验
</cover-view>
<view class='homework'>
<!-- banner -->
<view class='banner'>
<swiper bindchange='swiperChange' circular="true" autoplay='true' interval="4000">
<block wx:for="{{banner}}" wx:key>
<swiper-item>
<image src='{{item.image}}' bindtap="navgate" data-src="{{item.url}}"></image>
</swiper-item>
</block>
</swiper>
<!-- 小点点 -->
<view class='dots'>
<block wx:for="{{banner}}" wx:key>
<view class="dot {{index == currentSwiper ? 'active' : ''}}"></view>
</block>
</view>
</view>
<!-- 我布置的作业 -->
<view class='title'>我布置的作业</view>
<view class='homeworkCon'>
<view class='homeworkTab'>
<view class="homeworkTabLi {{currentData == 2 ? 'tabBorer' : ''}}" data-current="2" bindtap='gay'>全部</view>
<view class="homeworkTabLi {{currentData == 1 ? 'tabBorer' : ''}}" data-current="1" bindtap='gay'>进行中</view>
<view class="homeworkTabLi {{currentData == 0 ? 'tabBorer' : ''}}" data-current="0" bindtap='gay'>已关闭</view>
<view class="view_more" bindtap="goRecord">查看更多 <image src='/image/7.png'></image></view>
</view>
<view class='homeworkTabCon' wx:if="{{currentData == 2}}">
<view class='homeworkTabConLi' wx:for="{{list}}" wx:key>
<view class='homeworkTabConTxt'>{{item.createtime}}</view>
<view class='homeworkTabConLi2' bindtap='goDetail' data-zid="{{item.id}}" data-classid="{{item.class_id}}">
<view class='hw_Top'>
<view class='hw_TopImg'>
<image src='/image/33.png'></image>
</view>
<view class='hw_TopTxt1'>{{item.work_name}}/{{item.class_name}}</view>
<view class='hw_TopTxt2' wx:if="{{item.status==1}}">{{item.status_text}}</view>
<view class='hw_TopTxt2_No' wx:if="{{item.status==0}}">{{item.status_text}}</view>
</view>
<view class='hw_Content'>
<view class='hw_center'>
<view class='hw_ContentTxt'>{{item.workdesc}}</view>
</view>
<view class='hw_Bottom'>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/59.png'></image>
</view>
<view class='hw_BottomTxt1'>剩余时间:</view>
<view class='hw_BottomTxt2'>{{item.endtime1}}</view>
</view>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/60.png'></image>
</view>
<view class='hw_BottomTxt1'>提交情况:</view>
<view class='hw_BottomPer1'>
<view class='hw_BottomPer2' style='width:{{item.jd}}'></view>
</view>
<view class='hw_BottomTxt3'>{{item.wanc.wannum}}/{{item.wanc.totalnum}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='homeworkTabCon' wx:if="{{currentData == 1}}">
<view class='homeworkTabConLi' wx:for="{{list}}" wx:key>
<view class='homeworkTabConTxt'>{{item.createtime}}</view>
<view class='homeworkTabConLi2' bindtap='goDetail' data-zid="{{item.id}}" data-classid="{{item.class_id}}">
<view class='hw_Top'>
<view class='hw_TopImg'>
<image src='/image/33.png'></image>
</view>
<view class='hw_TopTxt1'>{{item.work_name}}/{{item.class_name}}</view>
<view class='hw_TopTxt2'>{{item.status_text}}</view>
</view>
<view class='hw_Content'>
<view class='hw_center'>
<view class='hw_ContentTxt'>{{item.workdesc}}</view>
</view>
<view class='hw_Bottom'>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/59.png'></image>
</view>
<view class='hw_BottomTxt1'>剩余时间:</view>
<view class='hw_BottomTxt2'>{{item.endtime1}}</view>
</view>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/60.png'></image>
</view>
<view class='hw_BottomTxt1'>提交情况:</view>
<view class='hw_BottomPer1'>
<view class='hw_BottomPer2' style='width:{{item.jd}}'></view>
</view>
<view class='hw_BottomTxt3'>{{item.wanc.wannum}}/{{item.wanc.totalnum}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='homeworkTabCon' wx:if="{{currentData == 0}}">
<view class='homeworkTabConLi' wx:for="{{list}}" wx:key>
<view class='homeworkTabConTxt'>{{item.createtime}}</view>
<view class='homeworkTabConLi2' bindtap='goDetail' data-zid="{{item.id}}" data-classid="{{item.class_id}}">
<view class='hw_Top'>
<view class='hw_TopImg'>
<image src='/image/33.png'></image>
</view>
<view class='hw_TopTxt1'>{{item.work_name}}/{{item.class_name}}</view>
<view class='hw_TopTxt2_No'>{{item.status_text}}</view>
</view>
<view class='hw_Content'>
<view class='hw_center'>
<view class='hw_ContentTxt'>{{item.workdesc}}</view>
</view>
<view class='hw_Bottom'>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/59.png'></image>
</view>
<view class='hw_BottomTxt1'>剩余时间:</view>
<view class='hw_BottomTxt2'>00:00:00</view>
</view>
<view class='hw_BottomLi'>
<view class='hw_BottomImg1'>
<image src='/image/60.png'></image>
</view>
<view class='hw_BottomTxt1'>提交情况:</view>
<view class='hw_BottomPer1'>
<view class='hw_BottomPer2' style='width:{{item.jd}}'></view>
</view>
<view class='hw_BottomTxt3'>{{item.wanc.wannum}}/{{item.wanc.totalnum}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='footer_bottos'>
<view class='footer_li' bindtap='gonav1'>
<image class='footer_liImg' src='/image/2.png' mode='widthFix'></image>
<view class='footer_txt'>布置作业</view>
</view>
<view class='footer_li' bindtap='gonav2'>
<image class='footer_liImg' src='/image/39.png' mode='widthFix'></image>
<view class='footer_txt'>收作业</view>
</view>
<view class='footer_li' bindtap='gonav3'>
<image class='footer_liImg' src='/image/1.png' mode='widthFix'></image>
<view class='footer_txt'>我的</view>
</view>
</view>