|
@ -102,7 +102,6 @@ |
|
|
query: `id=${this.id}&state=1&shareId=${this.userInfo.id}`, |
|
|
query: `id=${this.id}&state=1&shareId=${this.userInfo.id}`, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// todo: get times and check is unlocked |
|
|
|
|
|
this.refreshLockStatus() |
|
|
this.refreshLockStatus() |
|
|
|
|
|
|
|
|
return o |
|
|
return o |
|
@ -128,12 +127,19 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async refreshLockStatus() { |
|
|
async refreshLockStatus() { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
console.log('--refreshLockStatus') |
|
|
const result = await this.fetchCheckShare() |
|
|
const result = await this.fetchCheckShare() |
|
|
const { title, open } = result |
|
|
const { title, open } = result |
|
|
|
|
|
|
|
|
|
|
|
console.log('--open', open) |
|
|
|
|
|
this.$refs.popupUnlock.close(); |
|
|
|
|
|
console.log('--close') |
|
|
|
|
|
|
|
|
if (open) { |
|
|
if (open) { |
|
|
this.isLocked = false |
|
|
this.isLocked = false |
|
|
this.$refs.popupUnlock.close(); |
|
|
|
|
|
this.$refs.popupQrCode.open() |
|
|
this.$refs.popupQrCode.open() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@ -142,6 +148,11 @@ |
|
|
title, |
|
|
title, |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
|
console.log('--err', err) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
async onPlay() { |
|
|
async onPlay() { |
|
|
if (!this.isLocked) { |
|
|
if (!this.isLocked) { |
|
|