Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
9149bd88
Commit
9149bd88
authored
Oct 20, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 继续考试答题和剩余数量不对;feat: 问卷id改为首页传入
parent
c5abad0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
questionnaire.vue
src/pages/advertisement/questionnaire.vue
+7
-4
results.vue
src/pages/advertisement/results.vue
+6
-2
answer.vue
src/pages/learn/answer.vue
+2
-2
No files found.
src/pages/advertisement/questionnaire.vue
View file @
9149bd88
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
surveyId
:
1
,
surveyId
:
1
,
// 问卷id
list
:
[
list
:
[
{
{
title
:
'您通过什么渠道了解到模考大师?'
,
title
:
'您通过什么渠道了解到模考大师?'
,
...
@@ -131,8 +131,8 @@ export default {
...
@@ -131,8 +131,8 @@ export default {
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'问卷调查'
)
getApp
().
trackPage
(
'问卷调查'
)
if
(
e
&&
e
.
i
d
)
{
if
(
e
&&
e
.
surveyI
d
)
{
// this.queryQuestionWarehouseById(e.id)
this
.
surveyId
=
e
.
surveyId
}
}
},
},
methods
:
{
methods
:
{
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
}
}
let
params
=
{
let
params
=
{
options
:
options
,
options
:
options
,
surveyId
:
1
,
// 问卷id,暂时写死
surveyId
:
this
.
surveyId
,
// 问卷id
surveyName
:
"调查小问卷"
surveyName
:
"调查小问卷"
}
}
let
trackParams
=
{
let
trackParams
=
{
...
@@ -200,6 +200,9 @@ export default {
...
@@ -200,6 +200,9 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/advertisement/results'
,
url
:
'pages/advertisement/results'
,
type
:
'redirectTo'
,
type
:
'redirectTo'
,
params
:
{
surveyId
:
this
.
surveyId
,
},
})
})
})
})
...
...
src/pages/advertisement/results.vue
View file @
9149bd88
...
@@ -51,7 +51,8 @@ export default {
...
@@ -51,7 +51,8 @@ export default {
list
:
[],
// 已选题库列表
list
:
[],
// 已选题库列表
loading
:
false
,
loading
:
false
,
selectedData
:
{},
selectedData
:
{},
cardData
:
{}
cardData
:
{},
surveyId
:
1
,
// 问卷id
}
}
},
},
computed
:
{
computed
:
{
...
@@ -84,6 +85,9 @@ export default {
...
@@ -84,6 +85,9 @@ export default {
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'问卷结束-领取奖励'
)
getApp
().
trackPage
(
'问卷结束-领取奖励'
)
if
(
e
&&
e
.
surveyId
)
{
this
.
surveyId
=
e
.
surveyId
}
this
.
loadList
()
// 获取已选题库列表
this
.
loadList
()
// 获取已选题库列表
},
},
methods
:
{
methods
:
{
...
@@ -99,7 +103,7 @@ export default {
...
@@ -99,7 +103,7 @@ export default {
questionWarehouseId
:
this
.
selectedData
.
id
,
questionWarehouseId
:
this
.
selectedData
.
id
,
cardId
:
this
.
cardData
.
id
,
cardId
:
this
.
cardData
.
id
,
sourse
:
'SURVEY'
,
// 问卷调查
sourse
:
'SURVEY'
,
// 问卷调查
bizId
:
1
,
// bizId 问卷id,暂时写死
bizId
:
this
.
surveyId
,
// 问卷id
}
}
let
trackParams
=
{
let
trackParams
=
{
openId
:
this
.
openId
,
openId
:
this
.
openId
,
...
...
src/pages/learn/answer.vue
View file @
9149bd88
...
@@ -392,8 +392,8 @@ export default {
...
@@ -392,8 +392,8 @@ export default {
if
(
count
>
0
)
{
if
(
count
>
0
)
{
// 显示暂停弹窗
// 显示暂停弹窗
this
.
pauseData
=
{
this
.
pauseData
=
{
answered
:
count
,
answered
:
this
.
currentIndex
,
noStart
:
this
.
list
.
length
-
count
noStart
:
this
.
list
.
length
-
this
.
currentIndex
}
}
this
.
showPause
=
true
this
.
showPause
=
true
return
return
...
...
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