<!--packageCourse/components/baseClass/index.wxml-->
|
<view class="baseContent">
|
<view class="pubCss">
|
<view class="title">班级概览</view>
|
<view class="statics">
|
<view class="classCout">
|
<text>班级人数</text>
|
<text style="color: #ff6d00">{{ detailInfo.memberCount }} / {{ detailInfo.maxUserCount }}</text>
|
</view>
|
<view class="classCout">
|
<text>作业次数</text>
|
<text style="color: #ff6d00">{{homeworkCount}}</text>
|
</view>
|
</view>
|
</view>
|
<view class="pubCss">
|
<view class="roleInfo">
|
<text class="title" wx:if="{{userData.role == 'Teacher'}}">班级助教</text>
|
<text class="title" wx:else>班级学生</text>
|
<t-button style="margin: 0;" size="large" bindtap="copyCode" size="extra-small" variant="outline">邀请码</t-button>
|
</view>
|
<view class="userInfo">
|
<t-avatar wx:if="{{userData.icon}}" class="avatar-example" size="small" image="{{userData.icon}}" />
|
<text class="user">{{userData.name}}</text>
|
</view>
|
</view>
|
<view class="pubCss">
|
<view class="title">课程教材</view>
|
<view class="bookData">
|
<view class="bookText">
|
<text>{{detailInfo.bookName}}</text>
|
<text>作者:{{bookData.author}}</text>
|
<text>ISBN:{{bookData.isbn}}</text>
|
</view>
|
<image wx:if="{{detailInfo.bookIcon}}" class="bookIcon" src="{{detailInfo.bookIcon}}" mode="" />
|
<image wx:else class="bookIcon" src="/static/images/default-book-img.png" mode="" />
|
</view>
|
</view>
|
<view class="pubCss">
|
<view class="title">开课时间</view>
|
<view class="courseTime">{{detailInfo.classTime}}</view>
|
</view>
|
<view class="pubCss">
|
<view class="title">班级通知</view>
|
<view class="notice" wx:if="{{noticeList.length > 0}}">
|
<view class="notice-title" wx:for="{{noticeList}}" wx:key="index">{{item.name}}</view>
|
</view>
|
<view class="noData" wx:else>
|
<empty />
|
</view>
|
</view>
|
</view>
|