Commit 39e481ff by 李伟康

提交代码

1 parent 95c3773f
...@@ -8,6 +8,7 @@ export default { ...@@ -8,6 +8,7 @@ export default {
}, },
methods: { methods: {
launchMiniprogram () { launchMiniprogram () {
alert('12335')
const ISWXWORK = window.$ISWXWORK const ISWXWORK = window.$ISWXWORK
const { appid } = window.$fetchConfig.miniprogramInfo const { appid } = window.$fetchConfig.miniprogramInfo
if (!ISWXWORK) return if (!ISWXWORK) return
......
...@@ -3,14 +3,12 @@ const pages = { ...@@ -3,14 +3,12 @@ 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: '参团成功'
...@@ -19,7 +17,6 @@ const pages = { ...@@ -19,7 +17,6 @@ const pages = {
{ {
name:'agreement', name:'agreement',
meta:{ meta:{
keepAlive: true,
backgroundColor: '#FFF', backgroundColor: '#FFF',
noAuth: true, noAuth: true,
title: '隐私协议' title: '隐私协议'
......
...@@ -17,6 +17,7 @@ export function Audio (url, callBack) { ...@@ -17,6 +17,7 @@ export function Audio (url, callBack) {
if (this.isPlayingBGM) { if (this.isPlayingBGM) {
this.sourceNode.stop() this.sourceNode.stop()
this.isPlayingBGM = false this.isPlayingBGM = false
console.log('暂停——————————————', this.sourceNode)
} }
} }
} }
......
...@@ -236,19 +236,17 @@ export default { ...@@ -236,19 +236,17 @@ export default {
videoUrl: '' videoUrl: ''
} }
}, },
activated () { beforeDestroy(){
window.$AUDIO.stopVideo()
},
mounted () {
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(() => {
wxConfig.ready(() => { wxConfig.ready(() => {
this.getActivityDetail() this.getActivityDetail()
}) })
}) })
},
deactivated () {
window.$AUDIO.stopVideo()
},
mounted () {
let _this = this
window.addEventListener('scroll', _this.debounce(() => { window.addEventListener('scroll', _this.debounce(() => {
_this.scrollY = window.scrollY _this.scrollY = window.scrollY
}, 1e3 / 2)) }, 1e3 / 2))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!