Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
04807755
Commit
04807755
authored
Mar 03, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分数问题
parent
f1eda997
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
+32
-8
base_url.js
take-order/common/base_url.js
+2
-0
pages.json
take-order/pages.json
+6
-6
index.vue
take-order/pages/exam/index.vue
+24
-2
No files found.
take-order/common/base_url.js
View file @
04807755
/* --------------------------- prod begin --------------------------- */
let
ucenterUrl
=
{
let
ucenterUrl
=
{
apiUrl
:
'https://rest-u.banshouhui.com'
,
//php端域名请求头
apiUrl
:
'https://rest-u.banshouhui.com'
,
//php端域名请求头
xueUrl
:
'https://xue.banshouhui.com'
,
//学院
xueUrl
:
'https://xue.banshouhui.com'
,
//学院
...
...
take-order/pages.json
View file @
04807755
...
@@ -7,6 +7,12 @@
...
@@ -7,6 +7,12 @@
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"下单"
}
},{
"path"
:
"pages/settle/index"
,
"path"
:
"pages/settle/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
"navigationBarTitleText"
:
"充电桩安装招募"
...
@@ -18,12 +24,6 @@
...
@@ -18,12 +24,6 @@
"navigationBarTitleText"
:
"考试"
"navigationBarTitleText"
:
"考试"
}
}
},{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"下单"
}
},{
},{
"path"
:
"pages/settle/base"
,
"path"
:
"pages/settle/base"
,
"style"
:
{
"style"
:
{
...
...
take-order/pages/exam/index.vue
View file @
04807755
...
@@ -161,6 +161,7 @@
...
@@ -161,6 +161,7 @@
return
return
}
}
if
(
res
.
data
.
data
.
examStatus
==
1
){
if
(
res
.
data
.
data
.
examStatus
==
1
){
console
.
log
(
'111111111111111111111111111'
)
that
.
isComplete
=
true
that
.
isComplete
=
true
that
.
examScore
=
res
.
data
.
data
.
examScore
that
.
examScore
=
res
.
data
.
data
.
examScore
that
.
postResult
()
that
.
postResult
()
...
@@ -417,7 +418,14 @@
...
@@ -417,7 +418,14 @@
//下一题
//下一题
nextClick
:
function
()
{
nextClick
:
function
()
{
//判断有没有选
if
(
!
this
.
isSelect
){
return
}
clearTimeout
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
this
.
currentNumber
=
this
.
currentNumber
+
1
this
.
currentNumber
=
this
.
currentNumber
+
1
//this.getData()
//this.getData()
this
.
handleAnswer
()
this
.
handleAnswer
()
...
@@ -489,15 +497,21 @@
...
@@ -489,15 +497,21 @@
// var idList = []
// var idList = []
// idList.push(item.id)
// idList.push(item.id)
//每次清空
this
.
userAnswerIds
=
''
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
// if(this.currentItem.answerType == 2){//多选}
if
(
item
.
isSelect
)
{
if
(
item
.
isSelect
)
{
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
//answerType 题目类型,1单选,2多选,3简答,
if
(
this
.
currentItem
.
question
.
answerType
==
2
){
//多选
///*
///*
if
(
this
.
userAnswerIds
.
length
==
0
)
{
if
(
this
.
userAnswerIds
.
length
==
0
)
{
this
.
userAnswerIds
=
item
.
id
this
.
userAnswerIds
=
item
.
id
...
@@ -505,11 +519,19 @@
...
@@ -505,11 +519,19 @@
this
.
userAnswerIds
=
item
.
id
+
','
+
this
.
userAnswerIds
this
.
userAnswerIds
=
item
.
id
+
','
+
this
.
userAnswerIds
}
}
//*/
//*/
}
else
{
//单选
this
.
userAnswerIds
=
item
.
id
}
}
}
})
})
this
.
getNext
()
this
.
getNext
()
},
},
...
...
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