课程介绍页面调整
This commit is contained in:
@@ -56,9 +56,10 @@
|
||||
|
||||
// importScripts('@/static/aliplayer/aliplayer-min.js')
|
||||
export default {
|
||||
props: ["currentVideo", "currentVideoList"],
|
||||
props: ["currentVideo", "currentVideoList",'noRecored'],
|
||||
data() {
|
||||
return {
|
||||
// noRecored 为true时候不记录播放时长
|
||||
//当前是否是全屏模式
|
||||
isFullScreen: false,
|
||||
isfresh: false,
|
||||
@@ -75,6 +76,7 @@
|
||||
isSetFirstTime: false,
|
||||
screenType: null,
|
||||
videoUrl: null,
|
||||
num:0,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -98,7 +100,9 @@
|
||||
// plus.screen.lockOrientation("portrait-primary");
|
||||
// #endif
|
||||
this.timer = null;
|
||||
|
||||
await this.setVideoTime();
|
||||
|
||||
this.player.dispose();
|
||||
},
|
||||
|
||||
@@ -130,8 +134,8 @@
|
||||
this.timer = setInterval(() => {
|
||||
var that = this;
|
||||
if (this.currentTime) {
|
||||
|
||||
that.setVideoTime();
|
||||
console.log('我是onload定义的定时');
|
||||
}
|
||||
}, 60000);
|
||||
|
||||
@@ -218,7 +222,7 @@
|
||||
}
|
||||
}
|
||||
this.currentTime = this.firstTime;
|
||||
console.log(this.firstTime, "这是第一次播放时长222");
|
||||
console.log(this.firstTime, "这是第一次播放时长222",this.noRecored);
|
||||
await this.setVideoTime();
|
||||
uni.setStorageSync("videoOssList", JSON.stringify(list));
|
||||
|
||||
@@ -313,6 +317,11 @@
|
||||
this.timer = null;
|
||||
},
|
||||
setVideoTime(time) {
|
||||
let thisBlur = JSON.parse(this.noRecored)
|
||||
if(thisBlur){
|
||||
console.log('本条视频不记录播放记录,是未购买且试听章节',thisBlur);
|
||||
return
|
||||
}
|
||||
console.log("是否走了存储视屏," + this.videoData.id, this.currentTime, );
|
||||
var data = {
|
||||
videoId: this.videoData.id,
|
||||
@@ -768,7 +777,9 @@
|
||||
if (newValue) {
|
||||
if (this.player) {
|
||||
this.timer = null;
|
||||
|
||||
await this.setVideoTime();
|
||||
|
||||
this.player.dispose();
|
||||
// this.player.seek(newValue);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -360,6 +360,7 @@
|
||||
}
|
||||
|
||||
.jianjie {
|
||||
line-height: 30rpx; height: 60rpx; overflow: hidden;
|
||||
overflow: hidden!important;
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
|
||||
@@ -36,14 +36,14 @@
|
||||
VIP畅学
|
||||
</view>
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer" @click="onPageJump('/pages/course/myCourseLearn',item.id)">
|
||||
<view class="imgcontainer" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
<image v-if="item.image && item.image != ''" :src="item.image" mode="aspectFit"></image>
|
||||
<!-- <image :src="item.image" mode="" @click="goDetail(item.productId)"></image> -->
|
||||
<!-- <image v-else src="/static/nobg.jpg" mode="widthFix"></image> -->
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="txt555">
|
||||
<view class="" @click="onPageJump('/pages/course/myCourseLearn',item.id)">
|
||||
<view class="" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,7 +54,7 @@
|
||||
<!-- 收藏状态{{item.isStudying}} -->
|
||||
<text class="add citem" v-if="item.isStudying == 0" @click="addCollection(item,index)">加入在学习</text>
|
||||
<text class="del citem" v-else @click="delCollection(item,index)">取消在学习</text>
|
||||
<text class="citem btn_box" @click="onPageJump('/pages/course/myCourseLearn',item.id)">去学习</text>
|
||||
<text class="citem btn_box" @click="onPageJump('/pages/course/courseDetail',item.id)">去学习</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -76,11 +76,11 @@
|
||||
</view>
|
||||
<!-- {{userMsg}} -->
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer" @click="onPageJump('/pages/course/myCourseLearn',item.id)">
|
||||
<view class="imgcontainer" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="txt555" @click="onPageJump('/pages/course/myCourseLearn',item.id)">
|
||||
<view class="txt555" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="jianjie" v-html="item.content">
|
||||
@@ -88,7 +88,7 @@
|
||||
<view class="collection">
|
||||
<!-- <text class="add citem" v-if="item.isStudying == 0" @click="addCollection(item,index)">加入在学习</text> -->
|
||||
<text class="del citem" @click="delCollection(item,index)">取消在学习</text>
|
||||
<text class="citem btn_box" @click="onPageJump('/pages/course/myCourseLearn',item.id)">去学习</text>
|
||||
<text class="citem btn_box" @click="onPageJump('/pages/course/courseDetail',item.id)">去学习</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -854,6 +854,7 @@
|
||||
}
|
||||
|
||||
.jianjie {
|
||||
line-height: 30rpx; height: 60rpx; overflow: hidden;
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
@include bov();
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
},
|
||||
],
|
||||
iosPaylist: [{
|
||||
title: "apple pay支付",
|
||||
title: "IAP支付",
|
||||
id: 3,
|
||||
imgUrl: require("@/static/icon/pay_2.png"),
|
||||
}, ],
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<text>正在学习</text>
|
||||
</view>
|
||||
<view class="learn flexbox">
|
||||
<view class="item" v-for="(item, index) in learnList" :key="index" @click="onPageJump('/pages/course/myCourseLearn',item.id)">
|
||||
<view class="item" v-for="(item, index) in learnList" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
<view class="img" style="overflow: hidden;">
|
||||
<image v-if="item.image && item.image != ''" :src="item.image" mode="aspectFit"></image>
|
||||
<image v-else src="/static/nobg.jpg" mode="widthFix"></image>
|
||||
|
||||
@@ -110,6 +110,7 @@ var iap = {
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log('后台验证失败=>',e);
|
||||
// that.finishTransaction(result);
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user