视频
This commit is contained in:
@@ -116,7 +116,11 @@ export default {
|
||||
},
|
||||
},
|
||||
//
|
||||
mounted() {},
|
||||
mounted() { this.platform = this.$platform;
|
||||
this.show = false;
|
||||
if (uni.getStorageSync("videoOssList")) {
|
||||
this.videoOssList = JSON.parse(uni.getStorageSync("videoOssList"));
|
||||
}},
|
||||
//子组件销毁前
|
||||
beforeDestroy() {
|
||||
this.handleEnd();
|
||||
@@ -128,15 +132,7 @@ export default {
|
||||
// console.log("触发了更新");
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.platform = this.$platform;
|
||||
this.show = false;
|
||||
if (uni.getStorageSync("videoOssList")) {
|
||||
this.videoOssList = JSON.parse(uni.getStorageSync("videoOssList"));
|
||||
}
|
||||
|
||||
// this.checkVideo();
|
||||
},
|
||||
emitDispose1(status) {
|
||||
this.$emit("handleSuccessDispose", status);
|
||||
},
|
||||
@@ -152,15 +148,6 @@ export default {
|
||||
this.show = false;
|
||||
this.isChange = false;
|
||||
},
|
||||
//父组件调用切换视频方法
|
||||
async changeVideo(data) {
|
||||
this.currentTime = "";
|
||||
this.firstTime = 0;
|
||||
this.isSetFirstTime = false;
|
||||
this.isChange = false;
|
||||
await this.init(data, true);
|
||||
},
|
||||
|
||||
screenChange(data) {
|
||||
this.isFullScreen = !data.status;
|
||||
this.$emit("changeScreen", this.isFullScreen);
|
||||
|
||||
Reference in New Issue
Block a user