This commit is contained in:
2024-08-08 13:18:31 +08:00
parent 25069ac340
commit 75412f2954
10 changed files with 34 additions and 36 deletions

View File

@@ -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);