Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-vote
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
84db41e0
authored
Dec 23, 2024
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复跳转
parent
bcba9699
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/store/modules/vote.js
+9
-9
No files found.
src/store/modules/vote.js
View file @
84db41e0
...
...
@@ -45,7 +45,7 @@ export const state = () => ({
voteRankState
:
false
,
// 排行开启开关 1开启 0关闭
isShowInvite
:
false
,
// 是否显示马上拉票
shareTitle
:
''
,
// 分享标题
refer
U
rl
:
''
,
// 回跳地址
refer
_u
rl
:
''
,
// 回跳地址
bind_service
:
''
,
// 绑定服务
bind_service_force_open
:
0
,
// 绑定服务强制开启
bind_service_id
:
0
// 绑定服务id
...
...
@@ -143,10 +143,10 @@ export const actions = {
isShowInvite
:
Number
(
is_invite
)
===
1
,
shareTitle
,
shareImg
:
share_img
,
refer
U
rl
,
bind
S
ervice
,
bind
ServiceForceO
pen
,
bind
ServiceI
d
refer
_u
rl
,
bind
_s
ervice
,
bind
_service_force_o
pen
,
bind
_service_i
d
}
// 设置网页标题
document
.
title
=
topic
||
'投票'
...
...
@@ -225,13 +225,13 @@ export const actions = {
setVote
(
params
).
then
(
res
=>
{
const
{
code
,
errorCode
,
errorMessage
,
data
}
=
res
if
(
code
===
200
&&
errorCode
===
0
)
{
const
refer
U
rl
=
voteInfo
.
referUrl
if
(
refer
U
rl
)
{
const
refer
_u
rl
=
voteInfo
.
referUrl
if
(
refer
_u
rl
)
{
Toast
.
success
({
message
:
'投票成功,正在跳转'
,
onClose
:
()
=>
{
if
(
refer
U
rl
)
{
window
.
location
.
href
=
state
.
questionnaireInfo
.
referU
rl
if
(
refer
_u
rl
)
{
window
.
location
.
href
=
refer_u
rl
}
},
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment