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
db32e9f4
Commit
db32e9f4
authored
Feb 27, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上优化
parent
38c2625c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
App.vue
take-order/App.vue
+8
-6
index.vue
take-order/pages/exam/index.vue
+8
-4
No files found.
take-order/App.vue
View file @
db32e9f4
...
...
@@ -18,7 +18,7 @@
//domain_Name: 'https://system.banshouhui.com',
//测试环境
domain_Name
:
'https://system.
dev.
banshouhui.com'
,
domain_Name
:
'https://system.banshouhui.com'
,
//http://192.168.0.208:8192
//小青本地环境
...
...
@@ -122,12 +122,14 @@
uni
.
showLoading
({
title
:
'加载中……'
})
const
res
=
await
vm
.
$u
.
api
.
getSettleBaseInfo
()
const
res
=
await
vm
.
$u
.
api
.
getSettleBaseInfo
()
if
(
!
res
||
!
res
.
status
)
{
uni
.
showToast
({
title
:
res
&&
res
.
message
||
'获取基本信息错误'
,
icon
:
'none'
});
if
(
res
&&
res
.
message
){
uni
.
showToast
({
title
:
res
&&
res
.
message
||
'获取基本信息错误'
,
icon
:
'none'
});
}
return
false
;
}
this
.
globalData
.
settledInfo
=
res
.
data
...
...
take-order/pages/exam/index.vue
View file @
db32e9f4
...
...
@@ -87,6 +87,7 @@
examScore
:
0
,
alphaArr
:[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
],
timer
:
null
,
scoreStatus
:
false
,
isComplete
:
false
,
// 是否已经考试完成判定
}
},
...
...
@@ -157,17 +158,22 @@
if
(
res
.
data
.
code
==
200
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if
(
res
.
data
.
data
.
examStatus
==
2
)
{
that
.
scoreStatus
=
true
that
.
applyExam
()
return
}
if
(
res
.
data
.
data
.
examStatus
==
1
){
that
.
isComplete
=
true
that
.
examScore
=
res
.
data
.
data
.
examScore
that
.
postResult
()
if
(
that
.
scoreStatus
){
that
.
scoreStatus
=
false
that
.
postResult
()
}
return
}
if
(
res
.
data
.
data
.
examStatus
==
0
)
{
that
.
userExamId
=
res
.
data
.
data
.
id
that
.
scoreStatus
=
true
that
.
getNext
()
}
...
...
@@ -305,11 +311,9 @@
that
.
startCounting
()
}
else
{
that
.
isSelect
=
true
th
is
.
getUserExamInfo
()
th
at
.
getUserExamInfo
()
clearTimeout
(
this
.
timer
)
this
.
isComplete
=
true
// that.bottomTitle = '完成考试,现在签约'
}
...
...
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