course.wxml 1.0 KB
<view class="content"><block wx:if="{{courselist.length==0}}"><view class="nodatabox"><view class="noimg"><image src="../../static/nodata.png" mode></image></view><view class="zanwushu">暂无内容</view><view data-event-opts="{{[['tap',[['goindex',['$event']]]]]}}" class="gocourse" bindtap="__e">快前往首页解锁课程添加内容吧</view></view></block><block wx:else><view class="courselist"><block wx:for="{{courselist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="courseitem"><view class="itemtopname flexone"><text class="itemtitle">{{item.title}}</text></view><view class="textcontent flexone"><view class="textcontentk textcontentleft flexone">总课时<text class="kejie">{{item.lesson}}</text>课</view><view class="textcontentk textcontentleft youtext flexone">已完成<text class="kejie">{{item.user_lesson}}</text>课</view><block wx:if="{{item.state==2}}"><view class="finishimg"><image src="../../static/finish.png" mode></image></view></block></view></view></block></view></block></view>