homework.wxml 8.7 KB
<!--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>