Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-questionnaire
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
2ad6f63e
authored
Feb 24, 2025
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 适配活动绑定
parent
35184cca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
src/store/modules/questionnaire.js
+15
-18
No files found.
src/store/modules/questionnaire.js
View file @
2ad6f63e
...
...
@@ -49,24 +49,21 @@ export const actions = {
const
{
title
,
intro
,
question
,
isJoined
,
status
,
referUrl
}
=
data
// 设置网页标题
document
.
title
=
title
||
'调查问卷'
// 如果不是iframe内嵌模式则弹窗
if
(
!
isIframe
)
{
// 鉴权成功则转跳接口返回的对应网址
if
(
referUrl
&&
Number
(
status
)
===
ACTIVITY_STATE
.
end
)
{
Dialog
.
alert
({
message
:
'活动已结束,点击“确认”可以直接观看直播'
,
}).
then
(()
=>
{
window
.
location
.
href
=
referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if
(
referUrl
&&
!!
isJoined
&&
Number
(
status
)
===
ACTIVITY_STATE
.
start
)
{
Dialog
.
alert
({
message
:
'您已提交过问卷,点击“确认”可以直接观看直播'
,
}).
then
(()
=>
{
window
.
location
.
href
=
referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if
(
referUrl
&&
Number
(
status
)
===
ACTIVITY_STATE
.
end
)
{
Dialog
.
alert
({
message
:
'活动已结束,点击“确认”可以直接返回'
,
}).
then
(()
=>
{
window
.
location
.
href
=
referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if
(
referUrl
&&
!!
isJoined
&&
Number
(
status
)
===
ACTIVITY_STATE
.
start
)
{
Dialog
.
alert
({
message
:
'您已提交过问卷,点击“确认”可以直接返回'
,
}).
then
(()
=>
{
window
.
location
.
href
=
referUrl
})
}
commit
(
'SET_QUESTIONNAIREINFO'
,
data
)
const
formatQuestion
=
question
.
map
((
item
)
=>
{
...
...
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