Commit 39e481ff by 李伟康

提交代码

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