Files
YelayMaths/yelaymaths/pages/kecheng/kecheng.wxml
T

32 lines
1.2 KiB
Plaintext

<scroll-view class="container" scroll-y enable-flex type="custom">
<block wx:if="{{blocked}}">
<view class="blocked-tip">
<text wx:if="{{blockedTitle}}" class="blocked-title">{{blockedTitle}}</text>
<text wx:if="{{blockedDesc}}" class="blocked-desc">{{blockedDesc}}</text>
</view>
</block>
<block wx:elif="{{!hasCourse}}">
<view style="width: 100%;height: 400rpx;">
<image style="margin-top: 30rpx; margin-left: 20rpx; height: 350rpx; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); width: 710rpx; border-radius: 20rpx; background-color: rgb(0, 255, 255);"
src="{{staticBase}}/Images/Banner/BGbanner.png" mode="aspectFill" />
</view>
<Parser html="{{tipsHtml}}" />
</block>
<block wx:elif="{{hasCourse}}">
<view wx:for="{{ownedCourses}}" wx:for-item="item" wx:for-index="index" wx:key="courseId"
class="kecheng" bind:tap="toMyCourse" data-code="{{item.code}}">
<view class="kecheng_video_up">
<image class="kecheng_img" src="{{item.coverUrl}}" mode="aspectFit" />
</view>
<view class="kecheng_video_right">
<text class="kecheng_title">{{item.title}}</text>
<text class="kecheng_details">{{item.intro}}</text>
</view>
</view>
</block>
</scroll-view>