workRecord.wxml 2.8 KB
<!--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>