Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 39e481ff
authored
Aug 01, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
95c3773f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
src/mixins/miniprogramMixin.js
src/router/routes.js
src/utils/audio.js
src/views/crowdfunding/index.vue
src/mixins/miniprogramMixin.js
View file @
39e481f
...
@@ -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
...
...
src/router/routes.js
View file @
39e481f
...
@@ -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
:
'隐私协议'
...
...
src/utils/audio.js
View file @
39e481f
...
@@ -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
)
}
}
}
}
}
}
...
...
src/views/crowdfunding/index.vue
View file @
39e481f
...
@@ -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
}
,
1
e3
/
2
))
}
,
1
e3
/
2
))
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment