Commit 4c229510 by 李伟康

提交代码

1 parent 39e481ff
......@@ -3,12 +3,14 @@ const pages = {
{
name: 'index',
meta: {
// keepAlive: true,
backgroundColor: '#F7F7F7'
},
},
{
name: 'success',
meta: {
// keepAlive: true,
backgroundColor: '#FFF',
noAuth: true,
title: '参团成功'
......@@ -17,6 +19,7 @@ const pages = {
{
name:'agreement',
meta:{
// keepAlive: true,
backgroundColor: '#FFF',
noAuth: true,
title: '隐私协议'
......
......@@ -236,10 +236,18 @@ export default {
videoUrl: ''
}
},
beforeDestroy(){
window.$AUDIO.stopVideo()
},
mounted () {
// activated () {
// let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage', 'launchMiniprogram', 'updateAppMessageShareData']
// wxConfig.init(jsApiList).then(() => {
// wxConfig.ready(() => {
// this.getActivityDetail()
// })
// })
// },
created () {
this.watchPageBack().then(() => {
window.location.reload()
})
let _this = this
let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage', 'launchMiniprogram', 'updateAppMessageShareData']
wxConfig.init(jsApiList).then(() => {
......@@ -251,6 +259,16 @@ export default {
_this.scrollY = window.scrollY
}, 1e3 / 2))
},
beforeDestroy () {
window.$AUDIO.stopVideo()
},
// deactivated () {
// window.$AUDIO.stopVideo()
// },
mounted () {
},
methods: {
refresh (activityStatus) {
this.updata = Date.now()
......@@ -348,7 +366,6 @@ export default {
let { audioFlag } = this
if (audioFlag) this.audioAutoPlay()
srcElement.pause()
// video.removeEventListener('webkitendfullscreen')
})
},
authLocation (data) {
......@@ -391,7 +408,7 @@ export default {
window.$AUDIO.toggleBGM()
},
playVideo (index) {
let{ audioFlag } = this
let { audioFlag } = this
this.currentVideoIndex = index
let video = this.$refs[`video-${index}`][0]
if (audioFlag) this.audioAutoPlay(true)
......
......@@ -39,6 +39,7 @@ export default {
}
},
mounted () {
window.$back = true
wxConfig.init()
let params = this.getLocalStorage('wx_scrm_link_params') || {}
const { miniprogramInfo } = window.$fetchConfig
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!