|
@ -23,14 +23,12 @@ |
|
|
<uv-overlay :show="timeIsUp" @click="onPlay" zIndex="998"> |
|
|
<uv-overlay :show="timeIsUp" @click="onPlay" zIndex="998"> |
|
|
<popupUnlock ref="popupUnlock" src="../static/sharing/unlock-video.png"></popupUnlock> |
|
|
<popupUnlock ref="popupUnlock" src="../static/sharing/unlock-video.png"></popupUnlock> |
|
|
<popupQrCode ref="popupQrCode" :src="detail.wxCodeImage"></popupQrCode> |
|
|
<popupQrCode ref="popupQrCode" :src="detail.wxCodeImage"></popupQrCode> |
|
|
<loginPopup ref="loginPopup" @login="initData"/> |
|
|
|
|
|
</uv-overlay> |
|
|
</uv-overlay> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { mapState } from 'vuex' |
|
|
import { mapState } from 'vuex' |
|
|
import loginPopup from '@/components/config/loginPopup.vue' |
|
|
|
|
|
import popupUnlock from '../components/popupUnlock.vue' |
|
|
import popupUnlock from '../components/popupUnlock.vue' |
|
|
import popupQrCode from '../components/popupQrCode.vue' |
|
|
import popupQrCode from '../components/popupQrCode.vue' |
|
|
|
|
|
|
|
@ -38,7 +36,6 @@ |
|
|
components: { |
|
|
components: { |
|
|
popupUnlock, |
|
|
popupUnlock, |
|
|
popupQrCode, |
|
|
popupQrCode, |
|
|
loginPopup, |
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -67,6 +64,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async onLoad(option) { |
|
|
async onLoad(option) { |
|
|
|
|
|
console.log('--onLoad', option) |
|
|
const { id, state, shareId } = option |
|
|
const { id, state, shareId } = option |
|
|
|
|
|
|
|
|
if (shareId) { |
|
|
if (shareId) { |
|
@ -86,7 +84,9 @@ |
|
|
if(uni.getStorageSync('token')){ |
|
|
if(uni.getStorageSync('token')){ |
|
|
this.initData() |
|
|
this.initData() |
|
|
}else{ |
|
|
}else{ |
|
|
this.$refs.loginPopup.open() |
|
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: '/pages_order/auth/wxLogin' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -128,15 +128,12 @@ |
|
|
}, |
|
|
}, |
|
|
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) |
|
|
console.log('--open', open) |
|
|
|
|
|
|
|
|
this.$refs.popupUnlock.close(); |
|
|
this.$refs.popupUnlock.close(); |
|
|
console.log('--close') |
|
|
|
|
|
|
|
|
|
|
|
if (open) { |
|
|
if (open) { |
|
|
this.isLocked = false |
|
|
this.isLocked = false |
|
@ -149,10 +146,6 @@ |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
|
console.log('--err', err) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
async onPlay() { |
|
|
async onPlay() { |
|
|
if (!this.isLocked) { |
|
|
if (!this.isLocked) { |
|
@ -163,6 +156,8 @@ |
|
|
const result = await this.fetchCheckShare() |
|
|
const result = await this.fetchCheckShare() |
|
|
const { open, need_num, num } = result |
|
|
const { open, need_num, num } = result |
|
|
|
|
|
|
|
|
|
|
|
console.log('--open', open) |
|
|
|
|
|
|
|
|
if (open) { // 转发已达标 |
|
|
if (open) { // 转发已达标 |
|
|
this.isLocked = false |
|
|
this.isLocked = false |
|
|
this.$refs.popupQrCode.open() |
|
|
this.$refs.popupQrCode.open() |
|
|