课程详情
This commit is contained in:
@@ -300,6 +300,7 @@
|
|||||||
this.videoUrl =
|
this.videoUrl =
|
||||||
// "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
|
// "https://ehh-private-01.oss-cn-beijing.aliyuncs.com/video/taiHuClass/" +
|
||||||
res.video.videoUrl;
|
res.video.videoUrl;
|
||||||
|
console.log('这是常规视频');
|
||||||
// this.$nextTick(async () => {
|
// this.$nextTick(async () => {
|
||||||
// await this.getData();
|
// await this.getData();
|
||||||
// });
|
// });
|
||||||
@@ -322,6 +323,7 @@
|
|||||||
console.log('本条视频不记录播放记录,是未购买且试听章节',thisBlur);
|
console.log('本条视频不记录播放记录,是未购买且试听章节',thisBlur);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log('本条视频需要记录播放时长',thisBlur);
|
||||||
console.log("是否走了存储视屏," + this.videoData.id, this.currentTime, );
|
console.log("是否走了存储视屏," + this.videoData.id, this.currentTime, );
|
||||||
var data = {
|
var data = {
|
||||||
videoId: this.videoData.id,
|
videoId: this.videoData.id,
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
isFullScreen ? 'background:#000' : ''
|
isFullScreen ? 'background:#000' : ''
|
||||||
}`"
|
}`"
|
||||||
>
|
>
|
||||||
|
<!-- 加密视频 -->
|
||||||
<view :style="`background:#000`">
|
<view :style="`background:#000`">
|
||||||
<common-video
|
<common-video
|
||||||
@changeScreen="changeScreen"
|
@changeScreen="changeScreen"
|
||||||
@@ -336,8 +337,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
plus.screen.lockOrientation("default");
|
plus.screen.lockOrientation("default");
|
||||||
|
// #endif
|
||||||
this.options = options;
|
this.options = options;
|
||||||
this.noRecored = options.noRecored
|
this.noRecored = options.noRecored
|
||||||
console.log('this.noRecored=>',this.noRecored)
|
console.log('this.noRecored=>',this.noRecored)
|
||||||
@@ -349,6 +351,7 @@ export default {
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
plus.screen.unlockOrientation(); //解除锁定屏幕方向
|
plus.screen.unlockOrientation(); //解除锁定屏幕方向
|
||||||
plus.screen.lockOrientation("portrait-primary");
|
plus.screen.lockOrientation("portrait-primary");
|
||||||
|
|
||||||
this.getCourseDescriptionData();
|
this.getCourseDescriptionData();
|
||||||
|
|
||||||
// this.getUserInfo()
|
// this.getUserInfo()
|
||||||
|
|||||||
@@ -81,32 +81,30 @@
|
|||||||
v-for="(item, index) in librayList" :key="index" @click="clicklib(item,index)">
|
v-for="(item, index) in librayList" :key="index" @click="clicklib(item,index)">
|
||||||
<view class=""><text>{{item.title}}</text></view>
|
<view class=""><text>{{item.title}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
<template v-if="librayList[curIndex]">
|
<template v-if="librayList[curIndex]">
|
||||||
<view :class="['endBox',userMsg.vip != 0 ? 'vipBgColor':'']"
|
<view :class="['endBox',userMsg.vip != 0 ? 'vipBgColor':'']"
|
||||||
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip != 0">
|
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip != 0">
|
||||||
<!-- 已经可以观看的情况 -->
|
<!-- 已经可以观看的情况 -->
|
||||||
<view class="">
|
<view class="box">
|
||||||
<view class="flexbox" v-if="librayList[curIndex].startTime == null">
|
<view class="flexbox" v-if="userMsg.vip != 0">
|
||||||
<text>当前目录还未开始学习</text>
|
<!-- vip到期时间 -->
|
||||||
|
<text>VIP畅学权益有效期截止到:{{userMsg.userVip.endTime}} </text>
|
||||||
<!-- <uni-tag type="warning" text="去学习"></uni-tag> -->
|
<!-- <uni-tag type="warning" text="去学习"></uni-tag> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="flexbox" v-else>
|
<view class="flexbox" v-else>
|
||||||
<template v-if="userMsg.vip != 0">
|
<template v-if="librayList[curIndex].startTime == null">
|
||||||
<!-- vip到期时间 -->
|
<text>当前目录还未开始学习</text>
|
||||||
<text>vip课程有效期截止到:{{userMsg.userVip.endTime}} </text>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
||||||
<!-- 实际购买课程到期时间 -->
|
<!-- 实际购买课程到期时间 -->
|
||||||
<text style="line-height: 50rpx;">课程有效期截止到:{{librayList[curIndex].endTime}} </text>
|
<text style="line-height: 50rpx;">课程有效期截止到:{{librayList[curIndex].endTime}} </text>
|
||||||
<!-- 自己买的可以续费 -->
|
<!-- 自己买的可以续费 -->
|
||||||
<text class="xufeiBtn"
|
<text class="xufeiBtn"
|
||||||
@click="handleClickGetGoodsList(librayList[curIndex])">续费</text>
|
@click="handleClickGetGoodsList(librayList[curIndex])">续费</text>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<!-- <uni-tag type="primary" text="继续学习" @click="onPageJump('')"></uni-tag> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -1380,12 +1378,13 @@
|
|||||||
}
|
}
|
||||||
.endBox {
|
.endBox {
|
||||||
// @include theme("vipbtnbg");
|
// @include theme("vipbtnbg");
|
||||||
background-color: #258feb;
|
color: #333;
|
||||||
color: #fff;
|
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
// margin: 20rpx 0;
|
// margin: 20rpx 0;
|
||||||
padding: 10rpx 20rpx;
|
padding: 10rpx 20rpx;
|
||||||
|
.box{
|
||||||
|
// background-color: #258feb;
|
||||||
|
}
|
||||||
.flexbox {
|
.flexbox {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
@@ -1482,9 +1481,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.xufeiBtn {
|
.xufeiBtn {
|
||||||
display: inline-block;
|
display: block; line-height: 50rpx; height: 50rpx;
|
||||||
padding: 4rpx 10rpx;
|
padding: 0 10rpx;
|
||||||
border: 1px solid #fff;
|
border: 1px solid #333;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1976,7 +1975,7 @@
|
|||||||
.buyBox {}
|
.buyBox {}
|
||||||
|
|
||||||
.vipBgColor {
|
.vipBgColor {
|
||||||
background-color: #8265f9 !important;
|
// background-color: #8265f9 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.coursePart {
|
.coursePart {
|
||||||
@@ -1985,11 +1984,11 @@
|
|||||||
border-radius: 20rpx 20rpx 0 0;
|
border-radius: 20rpx 20rpx 0 0;
|
||||||
@include pleft_right(10px);
|
@include pleft_right(10px);
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
@include mshadow(10px, 1);
|
// @include mshadow(10px, 1);
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
background-color: $themeColor;
|
// background-color: $themeColor;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -2014,8 +2013,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item.active {
|
.item.active {
|
||||||
background-color: #fbfbff;
|
// background-color: #fbfbff;
|
||||||
color: $themeColor;
|
background-color: $themeColor;
|
||||||
|
color: #fff;
|
||||||
padding: 20rpx 0 !important;
|
padding: 20rpx 0 !important;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
<view class="learnBox" >
|
<view class="learnBox" >
|
||||||
<view class="titleBox flexbox">
|
<view class="titleBox flexbox">
|
||||||
<image src="../../static/learing.png" mode="aspectFit"></image>
|
<image src="../../static/learing.png" mode="aspectFit"></image>
|
||||||
<text>正在学习</text>
|
<text>观看记录</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="learn flexbox">
|
<view class="learn flexbox">
|
||||||
<view class="item" v-for="(item, index) in learnList" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
<view class="item" v-for="(item, index) in learnList" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||||
|
|||||||
Reference in New Issue
Block a user