Files
barter-app/手太欠/优迪尔-小程序/pages/publicChapter/index.wxml
张慢慢 1d6e2451a7 [上传]
2021-06-02 17:25:52 +08:00

48 lines
2.2 KiB
Plaintext

<!-- 头部 -->
<view class="chapterTop">
<image class="chapterTop-back" src="/static/img/banner.png"></image>
<view class="chapterTop-cont">
<view class="chapterTop-img">
<image src="{{chapterText.cover}}"></image>
</view>
<view class="chapterTop-text">
<view class="nowrap chapterTop-name">{{chapterText.title}}</view>
<navigator hover-class="none" url="/pages/publicDetails/index?id={{chapterText.course_id}}&type={{dataType}}" class="chapterTop-more">
<text>共{{chapterText.sectionCount}}节</text>
<image src="/static/img/stuChapter_row.png"></image>
</navigator>
</view>
</view>
</view>
<!-- 章节列表 -->
<view class="chapterFoot" wx:if="{{chapterData.length > 0}}">
<view class="chapterTitle">课程目录</view>
<view class="uni-border-top chapterList" wx:for="{{chapterData}}" wx:key="chapterData" data-id="{{item.teacher_learn_section_id}}" data-stuId="{{item.section_id}}" data-lock="{{item.is_lock}}" bindtap="videoUrl">
<image class="chapterList-icon" src="/static/img/chapterList_icon.png"></image>
<view class="chapterList-cont" wx:if="{{dataType == 'tea'}}">
<view class="nowrap chapterList-name">第{{item.order}}节 | {{item.title}}</view>
<view class="chapterList-tips">{{dataType == 'tea' ? '时间' + item.times : '拱桥'}}</view>
</view>
<view class="chapterList-cont" wx:else>
<view class="nowrap chapterList-name">第{{item.order}}节 | {{item.subtitle}}</view>
<view class="chapterList-tips">{{item.title}}</view>
</view>
<image class="chapterList-more" src="{{item.is_lock == 0 || item.is_lock != '' ? '/static/img/stuList_row.png' : '/static/img/stuList_lock.png'}}"></image>
</view>
<!-- 下拉加载 -->
<view class="pagesLoding" wx:if="{{lodingStats}}">
<block wx:if="{{page.has_more}}">
<image class="pagesLoding-icon" src="/static/img/refresh_loding.gif" mode="widthFix"></image>加载中...
</block>
<block wx:else>
没有更多了~
</block>
</view>
</view>
<view class="pack-center pages-hint" wx:else>
<image src="/static/img/null_icon.png"></image>
<view>暂无数据</view>
</view>