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 4c229510
authored
Aug 01, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
39e481ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
src/router/routes.js
src/views/crowdfunding/index.vue
src/views/crowdfunding/success.vue
src/router/routes.js
View file @
4c22951
...
@@ -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
:
'隐私协议'
...
...
src/views/crowdfunding/index.vue
View file @
4c22951
...
@@ -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
}
,
1
e3
/
2
))
}
,
1
e3
/
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
)
...
...
src/views/crowdfunding/success.vue
View file @
4c22951
...
@@ -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
...
...
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