Commit a1f9bc1d authored by lvtz's avatar lvtz

fix

parent b0948efa
......@@ -9,6 +9,7 @@
"w-cell-group": "/dist/w-cell-group/index",
"w-checkbox": "/dist/w-checkbox/index",
"w-pane": "/dist/w-pane/index",
"empty-content": "../../../components/emptycontent",
"expiredTip": "../../components/expiredTip"
}
}
\ No newline at end of file
......@@ -6,20 +6,23 @@
<view class="themetypeitem {{type==2 ? 'active' : ''}}" data-type="2" bindtap="tabChange">只看我的</view>
</view>
</view>
<view class="courseitem" wx:for="{{courseList}}" wx:for-item="course" wx:key="id">
<view class="coursetitle">{{course.title}}</view>
<view class="listbox">
<view class="listitem" hover-class="none" hover-stop-propagation="false" wx:for="{{course.classes}}" wx:key="id" data-item="{{item}}" bindtap="chooseClass">
<view class="classtitle">{{item.title}}</view>
<view class="rightbox">
<view class="teachername">
<text wx:for="{{item.school_teachers}}" wx:key="id" wx:for-item="teacher" wx:if="{{teacherId == teacher.id}}" wx:for-index="tindex" class="{{teacherId == teacher.id ? 'my' : ''}}">{{teacher.nickname}}{{item.school_teachers.length > 1 ? '、': ''}}</text>
<text wx:for="{{item.school_teachers}}" wx:key="id" wx:for-item="teacher" wx:if="{{teacherId != teacher.id}}" wx:for-index="tindex" class="{{teacherId == teacher.id ? 'my' : ''}}">{{teacher.nickname}}{{item.school_teachers.length > 1 ? '、': ''}}</text>
<block wx:if="{{courseList.length>0}}">
<view class="courseitem" wx:for="{{courseList}}" wx:for-item="course" wx:key="id">
<view class="coursetitle">{{course.title}}</view>
<view class="listbox">
<view class="listitem" hover-class="none" hover-stop-propagation="false" wx:for="{{course.classes}}" wx:key="id" data-item="{{item}}" bindtap="chooseClass">
<view class="classtitle">{{item.title}}</view>
<view class="rightbox">
<view class="teachername">
<text wx:for="{{item.school_teachers}}" wx:key="id" wx:for-item="teacher" wx:if="{{teacherId == teacher.id}}" wx:for-index="tindex" class="{{teacherId == teacher.id ? 'my' : ''}}">{{teacher.nickname}}{{item.school_teachers.length > 1 ? '、': ''}}</text>
<text wx:for="{{item.school_teachers}}" wx:key="id" wx:for-item="teacher" wx:if="{{teacherId != teacher.id}}" wx:for-index="tindex" class="{{teacherId == teacher.id ? 'my' : ''}}">{{teacher.nickname}}{{item.school_teachers.length > 1 ? '、': ''}}</text>
</view>
<image class="selectedicon" src="{{imageRoot}}2b/common/{{filter.indexOf(classes, item.id) == -1 ? 'notselect' : 'select'}}.png"></image>
</view>
<image class="selectedicon" src="{{imageRoot}}2b/common/{{filter.indexOf(classes, item.id) == -1 ? 'notselect' : 'select'}}.png"></image>
</view>
</view>
</view>
</view>
</block>
<empty-content text="暂无数据~" emptyimg="" wx:else></empty-content>
<view class="savebtn" hover-class="none" hover-stop-propagation="false" bindtap="saveClass">保存</view>
</view>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment