|
@@ -10,7 +10,7 @@
|
|
<!-- 信息模块 -->
|
|
<!-- 信息模块 -->
|
|
<view class="info-box">
|
|
<view class="info-box">
|
|
<view class="flex-box" style="width: 70%;height: 100%;">
|
|
<view class="flex-box" style="width: 70%;height: 100%;">
|
|
- <view style="display: flex;align-items: center;">
|
|
|
|
|
|
+ <view class="flex">
|
|
<view class="info-name">{{classInfo.title}}</view>
|
|
<view class="info-name">{{classInfo.title}}</view>
|
|
</view>
|
|
</view>
|
|
<view style="display: flex;align-items: baseline;">
|
|
<view style="display: flex;align-items: baseline;">
|
|
@@ -48,16 +48,39 @@
|
|
<!-- 正文 -->
|
|
<!-- 正文 -->
|
|
<view class="class-block">
|
|
<view class="class-block">
|
|
<view class="content-box">
|
|
<view class="content-box">
|
|
- <view style="display: flex;align-items: center;">
|
|
|
|
- <view :class="index<classCurrent-1? 't-icon t-icon-tick-square-svgrepo-com':(index===classCurrent-1? 't-icon t-icon-a-play-svgrepo-com1':'t-icon t-icon-time-square-svgrepo-com')">
|
|
|
|
|
|
+ <view
|
|
|
|
+ :class="index<classCurrent-1? 't-icon t-icon-chenggong':(index===classCurrent-1? 't-icon t-icon-bofang1':'t-icon t-icon-yuyue-lishi-shijian')">
|
|
|
|
+ </view>
|
|
|
|
+ <view class="flex" style="flex-direction: column;">
|
|
|
|
+ <!-- 上 -->
|
|
|
|
+ <view style="display: flex;align-items: center;width: 460rpx;margin-left: 20rpx;">
|
|
|
|
+ <view class="content-info" style="font-size: 34rpx;line-height: 50rpx;">
|
|
|
|
+ {{item.title}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="block-tag-box" style="margin-left: 40rpx;">
|
|
|
|
+ <view class="block-tag">{{item.name}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="block-tag-box" style="margin-left: 10rpx;">
|
|
|
|
+ <view class="block-tag">{{item.teacher}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 下 -->
|
|
|
|
+ <view style="display: flex;align-items: center;width: 460rpx; margin:10rpx 0 0 20rpx;">
|
|
|
|
+ <view style="display: flex;align-items: baseline;">
|
|
|
|
+ <view class="info-time" style="font-size: 30rpx;">
|
|
|
|
+ {{item.timeFrame.replace('午','午-').split('-')[0]}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="info-time" style="margin-left: 10rpx;">
|
|
|
|
+ {{item.timeFrame.replace('午','午-').split('-')[1]}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="info-time" style="font-size: 30rpx;margin-left: 40rpx;">
|
|
|
|
+ {{item.time.split('-')[0]}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="info-time" style="margin-left: 10rpx;">开始</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="content-info" style="margin-left: 10rpx;font-size: 34rpx;line-height: 50rpx;">{{item.name}}</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="block-tag-box">
|
|
|
|
- <view class="block-tag">{{item.teacher}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="info-time">{{item.time}}</view>
|
|
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
<view class="btn" v-if="index<classCurrent-1" :style="{backgroundColor:'#23b46c'}"
|
|
<view class="btn" v-if="index<classCurrent-1" :style="{backgroundColor:'#23b46c'}"
|
|
@click="showVideo(index)">
|
|
@click="showVideo(index)">
|
|
@@ -92,7 +115,7 @@
|
|
</view>
|
|
</view>
|
|
</u-action-sheet>
|
|
</u-action-sheet>
|
|
<!-- 下载 -->
|
|
<!-- 下载 -->
|
|
- <u-action-sheet :show="downLoadShow" @close="downLoadShow = false" title="视频下载" :round="10">
|
|
|
|
|
|
+ <u-action-sheet :show="downLoadShow" @close="downLoadShow = false" title="下载视频" :round="10">
|
|
<view class="flex-icon" style="padding: 50rpx 60rpx 70rpx 60rpx;">
|
|
<view class="flex-icon" style="padding: 50rpx 60rpx 70rpx 60rpx;">
|
|
<view class="confirm" @click="downLoadShow = false" style="background-color: #aaa;">
|
|
<view class="confirm" @click="downLoadShow = false" style="background-color: #aaa;">
|
|
<view class="subtitle">取消</view>
|
|
<view class="subtitle">取消</view>
|
|
@@ -117,15 +140,15 @@
|
|
return {
|
|
return {
|
|
classInfo: '',
|
|
classInfo: '',
|
|
today: '',
|
|
today: '',
|
|
- //正在播放第几个视频
|
|
|
|
- tempIndex: '',
|
|
|
|
actionShow: false,
|
|
actionShow: false,
|
|
downLoadShow: false,
|
|
downLoadShow: false,
|
|
- noClick: true
|
|
|
|
|
|
+ noClick: true,
|
|
|
|
+ tempIndex: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.classInfo = this.classList[options.info]
|
|
this.classInfo = this.classList[options.info]
|
|
|
|
+ this.tempIndex = options.info
|
|
this.getToday()
|
|
this.getToday()
|
|
this.videoContext = uni.createVideoContext('classVideo')
|
|
this.videoContext = uni.createVideoContext('classVideo')
|
|
},
|
|
},
|
|
@@ -205,16 +228,19 @@
|
|
},
|
|
},
|
|
//切换播放课程
|
|
//切换播放课程
|
|
showVideo(index) {
|
|
showVideo(index) {
|
|
- if (index === this.tempIndex) {
|
|
|
|
|
|
+ if (index == this.tempIndex) {
|
|
uni.$showMsg('当前正在播放此课程')
|
|
uni.$showMsg('当前正在播放此课程')
|
|
} else {
|
|
} else {
|
|
- this.classInfo = this.classList[index]
|
|
|
|
- this.tempIndex = index
|
|
|
|
|
|
+ // this.classInfo = this.classList[index]
|
|
|
|
+ // this.tempIndex = index
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: `/subpkg/video/videopage?info=${index}`
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//切换直播
|
|
//切换直播
|
|
showLive(index) {
|
|
showLive(index) {
|
|
- uni.navigateTo({
|
|
|
|
|
|
+ uni.redirectTo({
|
|
url: `/subpkg/video/livepage?info=${index}`
|
|
url: `/subpkg/video/livepage?info=${index}`
|
|
})
|
|
})
|
|
}
|
|
}
|