workRecord.wxml
2.8 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
<!--pages/workRecord/workRecord.wxml-->
<view class='workBox'>
<!-- 查询 -->
<view class='workSearch'>
<view class='workSearchLeft'>
<view class='workSearchImg'>
<image src='/image/19.png'></image>
</view>
<picker mode="date" value="{{date}}" start="2015-09-01" bindchange="bindDateChange">
<view class='picker'>{{date}}</view>
</picker>
<!-- <input class='workSearchInput' placeholder='输入查询日期' placeholder-style='color:#C3C9CF;'></input> -->
</view>
<button class='workSearchBtn' bindtap='{{type=="teach"?"dataFun":"searchFun"}}'>查询</button>
</view>
<!-- 查询内容 -->
<view class='workList' wx:if='{{type=="student"}}'>
<view class='doConLi' wx:for="{{list}}" wx:key bindtap='goDetail' data-id="{{item.id}}" data-classid="{{item.class_id}}">
<view class='doConLitop'>
<view class='doConLiTxt1'>{{item.create}}</view>
<view class='doConLiTxt2' wx:if="{{item.status == 0}}">未完成</view>
<view class='doConLiTxt2_yes' wx:if="{{item.status == 1}}">已完成</view>
</view>
<!-- <view class='doConLiTxt3'>{{item.day}}{{item.subject_name}}当日作业/{{item.class_name}}</view> -->
<view class='doConLiTxt3'>{{item.work_name}}/{{item.class_name}}</view>
</view>
</view>
<view class='homeworkTabCon workList' wx:if='{{type=="teach"}}'>
<view class='homeworkTabConLi' wx:for="{{Worklist}}" 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>