Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
ddh-equity
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 96feb027
authored
Jun 23, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
'提交'
1 parent
c66d28d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
src/App.vue
src/store/commonStore.js
src/views/equity/index.vue
src/App.vue
View file @
96feb02
...
...
@@ -36,6 +36,8 @@ export default {
created
()
{},
mounted
()
{
// window.vConsole = new VConsole()
//解决ios下history.back后不刷新
var
isPageHide
=
false
;
window
.
addEventListener
(
"pageshow"
,
function
()
{
if
(
isPageHide
)
{
...
...
src/store/commonStore.js
View file @
96feb02
...
...
@@ -19,7 +19,7 @@ export default {
let
route
=
state
.
lastPath
.
replace
(
'.'
,
'/'
)
if
(
route
==
'common/marketing'
)
{
route
=
''
history
.
back
()
history
.
back
()
//去掉历史记录,重复页面
//router.replace({ name: 'common.marketing' })
//window.location.replace(`${window.location.href.split('?')[0]}#/${route}`)
return
...
...
src/views/equity/index.vue
View file @
96feb02
...
...
@@ -207,19 +207,22 @@ export default {
const
urlObj
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'URL_PARAM'
))
let
URLParams
=
{}
if
(
urlObj
&&
urlObj
.
merchantId
)
{
equity
.
getFissionInfo
({
merchantId
:
urlObj
.
merchantId
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
this
.
hideLoading
()
if
(
code
==
0
)
{
this
.
inviteUrl
=
data
.
posterUrl
this
.
jiangliUrl
=
data
.
commissionUrl
}
else
{
this
.
showToast
(
message
)
}
})
URLParams
.
merchantId
=
urlObj
.
merchantId
}
equity
.
getFissionInfo
(
URLParams
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
this
.
hideLoading
()
if
(
code
==
0
)
{
this
.
inviteUrl
=
data
.
posterUrl
this
.
jiangliUrl
=
data
.
commissionUrl
}
else
{
this
.
showToast
(
message
)
}
})
equity
.
getOrderCount
().
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
...
...
@@ -251,10 +254,18 @@ export default {
this
.
openWindows
(
'https://www.wjx.cn/m/89882107.aspx'
)
},
jumpJiangli
()
{
this
.
jiangliUrl
&&
this
.
openWindows
(
this
.
jiangliUrl
)
if
(
this
.
jiangliUrl
)
{
this
.
openWindows
(
this
.
jiangliUrl
)
}
else
{
this
.
showToast
(
'尚未配置活动参数'
)
}
},
jumpInvite
()
{
this
.
inviteUrl
&&
this
.
openWindows
(
this
.
jiangliUrl
)
if
(
this
.
inviteUrl
)
{
this
.
openWindows
(
this
.
inviteUrl
)
}
else
{
this
.
showToast
(
'尚未配置活动参数'
)
}
},
willComeDialog
()
{
this
.
showToast
(
'即将上线,敬请期待'
)
...
...
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