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.
|
|
|
<view class="body">
|
|
|
|
<view class="flex-col course-display">
|
|
|
|
<view class="course-name">{{course.name}}</view>
|
|
|
|
<image class="round avatar" src="{{eduImgDir}}{{course.teacher_img}}"></image>
|
|
|
|
<view class="teacher-name">{{course.teacher_name}}</view>
|
|
|
|
<view class="school">{{course.teacher_school}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="flex-col invite-display">
|
|
|
|
<view class="invite-code" bindtap="onTapCode">邀请码:{{course.code_halt?'已停用':course.invite_code}}</view>
|
|
|
|
<view class="wxacode-wrap">
|
|
|
|
<image class="wxacode" mode="aspectFit" bindtap="preview" binderror="onImgError" show-menu-by-longpress="{{!course.code_halt}}" style="opacity:{{course.code_halt?0.26:1}}" src="{{invite_code_url}}"/>
|
|
|
|
<image wx:if="{{course.code_halt}}" class="code-halt" mode="aspectFit" src="{{imgDir}}code_halt.png"/>
|
|
|
|
</view>
|
|
|
|
<button open-type="share" size="mini" plain="1">发送分享</button>
|
|
|
|
</view>
|
|
|
|
<button wx:if="{{user.user_id!=2}}" class="join-button" bindtap="joinCourse">加入课堂</button>
|
|
|
|
<button wx:else class="join-button" bindtap="login">点击登陆</button>
|
|
|
|
</view>
|
|
|
|
<join-course hidden="{{!show_join_modal}}" show_code="0" invite_code="{{course.invite_code}}" opentype="redirectTo"></join-course>
|