Commit 4c229510 by 李伟康

提交代码

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