|
|
@ -43,7 +43,7 @@ |
|
|
|
headTitle: null, |
|
|
|
indexImage: null, |
|
|
|
vio: null, |
|
|
|
mins: 10, |
|
|
|
timeNum: 10, |
|
|
|
num: 10, |
|
|
|
wxCodeImage: null, |
|
|
|
textDetails: null, |
|
|
@ -87,24 +87,24 @@ |
|
|
|
}, |
|
|
|
async fetchCheckShare(id) { |
|
|
|
try { |
|
|
|
return await this.$fetch('checkVideoShare', { id }, false) |
|
|
|
return await this.$fetch('checkVideoShare', { id }) |
|
|
|
} catch (err) { |
|
|
|
return {} |
|
|
|
} |
|
|
|
}, |
|
|
|
async refreshLockStatus() { |
|
|
|
const res = await this.fetchCheckShare() |
|
|
|
const { result, message } = res |
|
|
|
const result = await this.fetchCheckShare() |
|
|
|
const { title, open } = result |
|
|
|
|
|
|
|
if (result) { |
|
|
|
if (open) { |
|
|
|
this.isLocked = false |
|
|
|
this.$refs.popupUnlock.close(); |
|
|
|
this.$refs.popupQrCode.open() |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
message && uni.showToast({ |
|
|
|
title: message, |
|
|
|
title && uni.showToast({ |
|
|
|
title, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}, |
|
|
@ -114,11 +114,10 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
const res = await this.fetchCheckShare() |
|
|
|
const result = await this.fetchCheckShare() |
|
|
|
const { open } = result |
|
|
|
|
|
|
|
const { result, message } = res |
|
|
|
|
|
|
|
if (result) { // 转发已达标 |
|
|
|
if (open) { // 转发已达标 |
|
|
|
this.isLocked = false |
|
|
|
this.$refs.popupQrCode.open() |
|
|
|
} else { |
|
|
@ -129,7 +128,7 @@ |
|
|
|
const { currentTime } = e.target |
|
|
|
|
|
|
|
// todo: check |
|
|
|
if (currentTime >= (this.detail.mins || 5)) { |
|
|
|
if (currentTime >= this.detail.timeNum) { |
|
|
|
this.videoContext.pause() |
|
|
|
this.timeIsUp = true |
|
|
|
this.onPlay() |
|
|
|