|
@ -62,7 +62,7 @@ |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
if (this.id && uni.getStorageSync('token')) { |
|
|
if (this.id && uni.getStorageSync('token')) { |
|
|
this.initData() |
|
|
|
|
|
|
|
|
this.detail.id ? this.refreshLockStatus() : this.initData() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async onLoad(option) { |
|
|
async onLoad(option) { |
|
@ -110,8 +110,6 @@ |
|
|
} |
|
|
} |
|
|
this.$fetch('addLogShareInfo', params) |
|
|
this.$fetch('addLogShareInfo', params) |
|
|
|
|
|
|
|
|
this.refreshLockStatus() |
|
|
|
|
|
|
|
|
|
|
|
return o |
|
|
return o |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -126,6 +124,8 @@ |
|
|
this.fetchCheckShare().then(result => { |
|
|
this.fetchCheckShare().then(result => { |
|
|
const { open } = result |
|
|
const { open } = result |
|
|
|
|
|
|
|
|
|
|
|
console.log('--open', open) |
|
|
|
|
|
|
|
|
this.isLocked = !open |
|
|
this.isLocked = !open |
|
|
}) |
|
|
}) |
|
|
await this.fetchDetails(this.id) |
|
|
await this.fetchDetails(this.id) |
|
@ -175,6 +175,7 @@ |
|
|
this.isLocked = false |
|
|
this.isLocked = false |
|
|
this.timeIsUp = false |
|
|
this.timeIsUp = false |
|
|
this.videoContext.play() |
|
|
this.videoContext.play() |
|
|
|
|
|
console.log('--play') |
|
|
} else { |
|
|
} else { |
|
|
this.videoContext.pause() |
|
|
this.videoContext.pause() |
|
|
this.timeIsUp = true |
|
|
this.timeIsUp = true |
|
|