<view class="content">
    <!-- 封面 -->
    <view class="cover">
        <image class="cover-src" src="{{cover}}" mode="aspectFill"></image>
    </view>
    <!-- 课程信息 -->
    <view class="info">
        <view class="info-title">{{ title }}</view>
        <view class="info-subtitle">{{ subtitle }}</view>
        <view class="info-info">
            <view class="info-info-item">
                <label>总学期</label>
                <view class="info-value">{{count.all || '-'}}期</view>
            </view>
            <view class="info-info-item">
                <label>已结束</label>
                <view class="info-value">{{count.over || 0}}期</view>
            </view>
            <view class="info-info-item" wx:if="{{semester != null}}">
                <label>当期时间</label>
                <view class="info-value">{{semester.time.start || '-'}}</view>
            </view>
            <view class="info-info-item" wx:if="{{semester != null}}">
                <label>报名价格</label>
                <view class="info-value price">￥{{semester.price || '0.00'}}</view>
            </view>
        </view>
    </view>
    <!-- 课程介绍 -->
    <rich-text nodes="{{content}}"></rich-text>

    <!-- 报名信息 -->
    <view class="footer">
        <view class="footer-btn {{count.ing <= 0 ? 'in' : ''}}" bindtap="onBuy">立即购买</view>
    </view>
</view>