parentsDo.wxml
4.6 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
<!--pages/parentsDo/parentsDo.wxml-->
<import src="../../tabbar.wxml" />
<template is="tabBar" data="{{tabBar}}" />
<cover-view class="quitTestCount" wx:if='{{test}}' bindtap="quitTest">
退出体验
</cover-view>
<view class='DoBox'>
<!-- banner -->
<view class='banner'>
<swiper bindchange='swiperChange' circular="true" autoplay='true' interval="4000">
<block wx:for="{{banner}}" wx:key='index' >
<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='index'>
<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>
<!-- 待完成的作业 -->
<view class='homeworkCon' wx:if='{{currentData == 2}}'>
<view class='Nohomework' wx:if="{{dcomplete ==''}}">暂无待完成作业</view>
<view class='homeworkTabConLi' wx:for="{{dcomplete}}" wx:key='index' wx:if="{{dcomplete !=''}}">
<view class='homeworkTabConTxt'>{{item.create}}</view>
<view class='homeworkTabConLi2' bindtap='goDetail' data-id="{{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>
<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/82.png'></image>
</view>
<view class='hw_BottomTxt1'>提交情况:</view>
<view class='hw_BottomTxt2'>{{item.count}}人已打卡</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 已关闭的作业 -->
<view class='doCon' wx:else>
<view class='Nohomework' wx:if="{{ycomplete ==''}}">暂无已关闭作业</view>
<block wx:if='{{currentData ==1}}'>
<view class='doConLi' wx:for="{{ycomplete}}" wx:key='index' wx:if="{{ycomplete !='' && item.status == 1}}" bindtap='goDetail2' data-id="{{item.id}}" data-classid="{{item.class_id}}">
<view class='doConLitop' >
<view class='doConLiTxt1'>{{item.create}}</view>
<view class='doConLiTxt2_yes'>已完成</view>
</view>
<view class='doConLiTxt3'>{{item.work_name}}/{{item.class_name}}</view>
</view>
</block>
<block wx:if='{{currentData ==0}}'>
<view class='doConLi' wx:for="{{ycomplete}}" wx:key='index' wx:if="{{ycomplete !=''&& item.status == 0}}" bindtap='goDetail2' data-id="{{item.id}}" data-classid="{{item.class_id}}">
<view class='doConLitop' >
<view class='doConLiTxt1'>{{item.create}}</view>
<view class='doConLiTxt2_yes'>已过期</view>
</view>
<view class='doConLiTxt3'>{{item.work_name}}/{{item.class_name}}</view>
</view>
</block>
</view>
</view>
<view class='footer_bottos'>
<view class='footer_li' bindtap='gonav1'>
<image class='footer_liImg' src='/image/52.png' mode='widthFix'></image>
<view class='footer_txt'>写作业</view>
</view>
<view class='footer_li' bindtap='gonav2'>
<image class='footer_liImg' src='/image/51.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>