|
|
@@ -17,7 +17,7 @@
|
|
|
@playEnd="playEnd"></videoPlayVue>
|
|
|
<videoPlayVue2 ref="c2" v-show="videoId2 && showB" :key="2" :videoId1="videoId2"
|
|
|
:progressMarkers1="progressMarkers2" :playAuth1="playAuth2" :hideFlag1="hideFlag2"
|
|
|
- :seek-time1="seekTime2" class="ksp-video-box" @playEnd="playEnd"></videoPlayVue2>
|
|
|
+ :seek-time1="seekTime2" class="ksp-video-box" @playEnd="playEnd2"></videoPlayVue2>
|
|
|
<view class="ksp-scroll-view">
|
|
|
<view class="ksp-item-list" v-for="(item,index) in jieInfo.jiedianList1" :key="index" v-show="showA">
|
|
|
<view class="list-head">
|
|
|
@@ -56,7 +56,6 @@
|
|
|
</view>
|
|
|
<!-- 弹窗 -->
|
|
|
<tishiDlVue ref="popupRef"></tishiDlVue>
|
|
|
- <tishiDlVue2 ref="popupRef2"></tishiDlVue2>
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
@@ -81,7 +80,6 @@
|
|
|
import cacheManager from "@/utils/cacheManager.js";
|
|
|
import * as httpApi from "@/api/chanpinShuxue.js";
|
|
|
import tishiDlVue from './components/tishiDl.vue';
|
|
|
- import tishiDlVue2 from './components/tishiDl2.vue';
|
|
|
import videoPlayVue from './components/videoPlay.vue';
|
|
|
import videoPlayVue2 from './components/videoPlay2.vue';
|
|
|
import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
|
|
|
@@ -124,7 +122,6 @@
|
|
|
},
|
|
|
components: {
|
|
|
tishiDlVue,
|
|
|
- tishiDlVue2,
|
|
|
videoPlayVue,
|
|
|
videoPlayVue2,
|
|
|
ezyActiveVue
|
|
|
@@ -156,12 +153,7 @@
|
|
|
this.$refs.c2 && this.$refs.c2.handleStop()
|
|
|
},
|
|
|
// 当前节学习完成
|
|
|
- saveJieWancheng(data) {
|
|
|
- if (data) {
|
|
|
- console.log('增加videoPlay2 用于判断能力提升视频学习完不作为本节已学完的标准');
|
|
|
- this.$refs.popupRef2.open();
|
|
|
- return false
|
|
|
- }
|
|
|
+ saveJieWancheng() {
|
|
|
httpApi.getShuxueChanpinWancheng({
|
|
|
jieId: this.jieInfo.jieId
|
|
|
}).then(res => {
|
|
|
@@ -213,12 +205,16 @@
|
|
|
this.getDataInfo()
|
|
|
},
|
|
|
playEnd(data) {
|
|
|
- console.log('data', data);
|
|
|
// #ifdef APP-PLUS
|
|
|
plus.screen.lockOrientation('portrait-primary');
|
|
|
// #endif
|
|
|
- this.saveJieWancheng(data);
|
|
|
+ this.saveJieWancheng();
|
|
|
},
|
|
|
+ playEnd2(data) {
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ plus.screen.lockOrientation('portrait-primary');
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
getLive() {
|
|
|
if (!this.videoId) {
|
|
|
toast("video缺失!")
|