123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <view class="container">
- <!-- 作业内容 -->
- <view class="task-head">
- <view class="task-title">{{entity.title}}</view>
- <view class="task-time">{{entity.receiveDate}}</view>
- </view>
- <view class="task-teacher">
- <view class="taskImg">
- <image src="{{teacherFace}}"></image>
- </view>
- <view class="teacher-name">授课教师: {{entity.teacherName}}</view>
- </view>
- <view class="task-desc">
- {{entity.homeworkContent}}
- </view>
- <view class="task-content">
- <view class="title">图片</view>
- <view class="img-list">
- <image src="{{item.url}}" mode="aspectFill" wx:for="{{entity.images}}" wx:key="index" bindtap="showImg" data-url="{{item.url}}" ></image>
- </view>
- <view class="title">视频</view>
- <view class="video-list">
- <view wx:for="{{entity.videos}}" wx:key="index" class="video-img-view" data-url="{{item.playUrl}}" bindtap="videoShow">
- <image class="videoImg" src="{{item.imgUrl}}" mode="aspectFill" ></image>
- <image class="playImg" src="/images/play.png"></image>
- </view>
- </view>
- <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo != ''}}" autoplay="true" src="{{curVideo}}" controls="true" downloadlist></video>
- <view class="title">语音</view>
- <view class="audio-list">
- <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}" class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}" wx:for="{{entity.records}}" wx:key="index" data-index="{{index}}" data-url="{{item.url}}"></image>
- </view>
- <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
- </view>
- <!-- end -->
- <!-- 作业完成情况 -->
- <view class="done-view" wx:if="{{entity.status > 0}}">
- <view class="done-title">作业完成情况</view>
- <view class="task-content">
- <view class="task-desc">
- {{entity.done.content}}
- </view>
- <view class="title">图片</view>
- <view class="img-list">
- <image src="{{item.url}}" mode="aspectFill" wx:for="{{entity.done.images}}" wx:key="index" bindtap="showDoneImg" data-url="{{item.url}}" ></image>
- </view>
- <view class="title">视频</view>
- <view class="video-list">
- <view wx:for="{{entity.done.videos}}" wx:key="index" class="video-img-view" data-url="{{item.playUrl}}" bindtap="videoShow">
- <image class="videoImg" src="{{item.imgUrl}}" mode="aspectFill" ></image>
- <image class="playImg" src="/images/play.png"></image>
- </view>
- </view>
- <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo != ''}}" autoplay="true" src="{{curVideo}}" controls="true" downloadlist></video>
- <view class="title">语音</view>
- <view class="audio-list">
- <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}" class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}" wx:for="{{entity.done.records}}" wx:key="index" data-index="{{index}}" data-url="{{item.url}}"></image>
- </view>
- <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
- </view>
- </view>
- <!-- end -->
- <!-- 作业批改情况 -->
- <view class="done-view" wx:if="{{entity.markResult && entity.markResult.length > 0}}">
- <view class="done-title">作业批阅情况</view>
- <view class="task-content">
- <view class="title">得分: {{entity.mark.score}}</view>
- <view class="task-desc">
- {{entity.mark.content}}
- </view>
- <view class="title">图片</view>
- <view class="img-list">
- <image src="{{item.url}}" mode="aspectFill" wx:for="{{entity.mark.images}}" wx:key="index" bindtap="showMarkImg" data-url="{{item.url}}" ></image>
- </view>
- <view class="title">视频</view>
- <view class="video-list">
- <view wx:for="{{entity.mark.videos}}" wx:key="index" class="video-img-view" data-url="{{item.playUrl}}" bindtap="videoShow">
- <image class="videoImg" src="{{item.imgUrl}}" mode="aspectFill" ></image>
- <image class="playImg" src="/images/play.png"></image>
- </view>
- </view>
- <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo != ''}}" autoplay="true" src="{{curVideo}}" controls="true" downloadlist></video>
- <view class="title">语音</view>
- <view class="audio-list">
- <image bindtap="showAudio" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}" class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}" wx:for="{{entity.mark.records}}" wx:key="index" data-index="{{index}}" data-url="{{item.url}}"></image>
- </view>
- <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
- </view>
- </view>
- <!-- end -->
- <view class="toTask" bindtap="toTask">
- 做作业
- </view>
- </view>
|