55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
<!--pages/VideoDetails/VideoDetails.wxml-->
|
|
|
|
<!-- 已拥有:正常浏览 -->
|
|
<block wx:if="{{owned}}">
|
|
<video hidden="{{HiddenVideoControl}}" class="videoplayer" src="{{VideoPlayerSrc}}" />
|
|
<scroll-view class="scrollarea" scroll-y type="list" style="top:{{top}}rpx;">
|
|
<view class="jieshao">
|
|
<text decode class="video_biaoti"> {{VideoTitle}}</text>
|
|
<text decode class="video_miaoshu"> {{VideoDetails}}</text>
|
|
<text decode class="video_info"> {{updatedText}}</text>
|
|
</view>
|
|
|
|
<view class="videolistcontainer" bind:tap="onTapLesson"
|
|
wx:for="{{playdata}}" wx:for-item="item" wx:for-index="index" wx:key="index" data-index="{{index}}">
|
|
<view class="videoimage">
|
|
<image class="coverimage" src="{{item.coverUrl}}" mode="aspectFill" />
|
|
</view>
|
|
<view class="videoinfo">
|
|
<text class="videotitle">{{item.chapterTitle}}</text>
|
|
<text class="videodetails">{{item.lessonTitle}}</text>
|
|
<view class="videoinfo2">
|
|
<text class="videodata">{{item.publishedAt}}</text>
|
|
<text class="videotime">{{item.duration}}min</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</block>
|
|
|
|
<!-- 购买入口 -->
|
|
<block wx:else>
|
|
<scroll-view class="scrollarea" scroll-y type="list">
|
|
<view class="jieshao">
|
|
<text decode class="video_biaoti"> {{VideoTitle}}</text>
|
|
<text decode class="video_miaoshu"> {{VideoDetails}}</text>
|
|
</view>
|
|
|
|
<view style="padding: 0 40rpx;">
|
|
<image style="width: 100%; border-radius: 16rpx;" src="{{coverUrl}}" mode="widthFix" />
|
|
</view>
|
|
|
|
<view class="fixed-btn-wrapper">
|
|
<view class="btn-group">
|
|
<button class="DianJiXiangQing1" bind:tap="goBuy">
|
|
<text class="DianJiXiangQing2">{{buyText}}</text>
|
|
</button>
|
|
<button class="DianJiXiangQing1" open-type="contact">
|
|
<text class="DianJiXiangQing2">{{contactText}}</text>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</block>
|
|
|