You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.3 KiB
22 lines
1.3 KiB
<view class="my-course">
|
|
<require-login/>
|
|
<nav-bar list="{{categories}}" current="{{current_cate}}" bindchange="onCategoryChange"/>
|
|
<scroll-view scroll-y="1" refresher-enabled="1" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" lower-threshold="120" bindrefresh="onPullDownRefresh" class="body">
|
|
<view class="nav-wrap">
|
|
<nav-bar list="{{statuses}}" width="300" itemWidth="140" cancellable="1" current="-1" type="plain" bg='' bindchange="onStatusChange"/>
|
|
</view>
|
|
<view wx:if="{{courses.length==0&&!loading}}" class="none-content">
|
|
<image class="none-image" src="{{attachDir}}908959" mode="aspectFit"></image>
|
|
<text class="none-text">{{user_id==2?'登陆后查看课堂':'暂时没有课堂'}}</text>
|
|
<button bindtap="onTapButton" wx:if="{{user_id==2||current_cate==0}}" type="main" class="login-button">{{user_id==2?'登录':'加入课堂'}}</button>
|
|
</view>
|
|
<view wx:for="{{courses}}" wx:key="id" class="course-wrap">
|
|
<course-item data="{{item}}" category="{{categories[current_cate].value}}"/>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="add-course" bindtap="addCourse">
|
|
<mp-icon icon="add" type="field" color="#0080f0" size="32"/>
|
|
</view>
|
|
|
|
<join-course-modal show="{{showModal}}"/>
|
|
</view> |