1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <view class="tab">
- <text data-id='0' bindtap="tabChange" class="{{tab==0?'act':''}}">视频课程</text>
- <text data-id='1' bindtap="tabChange" class="{{tab==1?'act':''}}">在线学习</text>
- </view>
- <!-- <view class="section">
- <picker bindchange="bindPickerChange" value="{{index1}}" range="{{array1}}">
- <view class="picker">
- {{array1[index1]}}
- <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
- </view>
- </picker>
- <picker bindchange="bindPickerChange" value="{{index1}}" range="{{array1}}">
- <view class="picker">
- {{array1[index1]}}
- <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
- </view>
- </picker>
- <picker bindchange="bindPickerChange" value="{{index1}}" range="{{array1}}">
- <view class="picker">
- {{array1[index1]}}
- <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
- </view>
- </picker>
- </view> -->
- <view wx:if='{{tab==0}}' class="content">
- <navigator wx:for="{{videos}}" wx:key="*this" url="../video/video?title={{item.title}}&&url={{item.url}}&&time={{item.finished_time}}" class="list">
- <view class="img">
- <image src="{{item.image}}" mode="scaleToFill"></image>
- <image class="play" src="../../images/play.png" mode="widthFix"></image>
- </view>
- <view class="info">
- <view class="title">{{item.title}}</view>
- <view>{{item.class_hour}}学时</view>
- <text>{{item.finished_time}}/{{item.total_time}}</text>
- <view class="check" style="color:#FF5E4E;" wx:if='{{item.status == 1}}'>未完成</view>
- <view class="check" wx:else><image src="../../images/gou.png" mode="widthFix"></image>已完成</view>
- </view>
- </navigator>
- </view>
- <view wx:if='{{tab==1}}' class="content">
- <view class="test" wx:for="{{papers}}" wx:key="*this">
- <view class="title">{{item.title}}</view>
- <text>{{item.class_hour}}学时/{{item.full_mark}}分/{{item.time_limit}}分钟</text>
- <view class="score" wx:if='{{item.status == 1}}'>
- <image src="../../images/score.png" mode="widthFix"></image> <text> {{item.mark}}分</text>
- <image src="../../images/gou.png" mode="widthFix"></image> 已完成
- </view>
- <navigator wx:else url="../subject/subject?id={{item.id}}">开始练习</navigator>
- </view>
- </view>
|