阿里云视频
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
此设备暂不支持观看当前视频<br />请移步到安卓手机进行学习!
|
||||
</view>
|
||||
<view v-else>
|
||||
<!-- <view style="color: #fff">组件index页面{{ showAliYunPlayer }}</view> -->
|
||||
<common-list-aliyun
|
||||
id="AliPlayer"
|
||||
:showAliYunPlayer="showAliYunPlayer"
|
||||
@@ -114,9 +113,6 @@ export default {
|
||||
// if (!this.isfresh) {
|
||||
this.videoData = {};
|
||||
this.showAliYunPlayer = false;
|
||||
|
||||
// this.destory();
|
||||
// } else {
|
||||
this.platform = this.$platform;
|
||||
this.show = false;
|
||||
this.isOnLoad = false;
|
||||
@@ -128,11 +124,6 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.checkVideo();
|
||||
});
|
||||
// }
|
||||
|
||||
// if (this.showAliYunPlayer) {
|
||||
// this.$refs.commonVideoAliyun.destory();
|
||||
// }
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -141,8 +132,6 @@ export default {
|
||||
mounted() {},
|
||||
//子组件销毁前
|
||||
beforeDestroy() {
|
||||
// this.$refs.commonVideoAliyun.$destroy();
|
||||
console.log("index页面触发销毁");
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
},
|
||||
beforeUpdate() {},
|
||||
@@ -262,9 +251,7 @@ export default {
|
||||
|
||||
created() {
|
||||
|
||||
|
||||
if (typeof window.Aliplayer === 'function') {
|
||||
// this.initEcharts()
|
||||
} else {
|
||||
// 动态引入较大类库避免影响页面展示
|
||||
this.loadWebPlayerSDK(); //引入播放器sdk、css
|
||||
@@ -274,15 +261,11 @@ export default {
|
||||
|
||||
mounted() {
|
||||
if (typeof window.Aliplayer === 'function') {
|
||||
// this.initEcharts()
|
||||
|
||||
this.initAliPlayer();
|
||||
|
||||
}
|
||||
},
|
||||
destroyed(){
|
||||
$("#Aliyun").empty();
|
||||
console.log('index页面触发onUnload:', 2222)
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -292,11 +275,7 @@ export default {
|
||||
initAliPlayer() {
|
||||
this.$refs.AliyunFresh.click()
|
||||
},
|
||||
receiveMsg(newValue, oldValue, ownerVm, vm) {
|
||||
|
||||
|
||||
|
||||
}, //是否刚开始设置播放时间
|
||||
receiveMsg(newValue, oldValue, ownerVm, vm) {}, //是否刚开始设置播放时间
|
||||
//引入播放器sdk、css
|
||||
loadWebPlayerSDK() {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user