parentsDo.wxml 4.6 KB
<!--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>