Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tjty-app
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
王永飞
tjty-app
Commits
5d2102ab
Commit
5d2102ab
authored
Nov 24, 2022
by
刘鑫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
81ad2859
92e6eca3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
21 deletions
+30
-21
dailyAnswer.js
tjty-app/api/dailyAnswer.js
+5
-2
login.vue
tjty-app/pages/login/login.vue
+1
-1
tjty_dailyAnswer.vue
.../pages_daily_answer/tjty_dailyAnswer/tjty_dailyAnswer.vue
+21
-16
request.js
tjty-app/utils/request.js
+3
-2
No files found.
tjty-app/api/dailyAnswer.js
View file @
5d2102ab
...
...
@@ -30,10 +30,13 @@ export function getExamPapers(signupId,activityId,examTime) {
}
//新增每日答题分数
export
function
addScore
(
signupId
,
examId
,
score
,
activityId
,
examTime
)
{
// export function addScore(signupId,examId,score,activityId,examTime) {
export
function
addScore
(
data
)
{
return
request
({
url
:
`/tjt-race/answerQuestion/addScore/
${
signupId
}
/
${
examId
}
/
${
score
}
/
${
activityId
}
/
${
examTime
}
`
,
// url: `/tjt-race/answerQuestion/addScore/${signupId}/${examId}/${score}/${activityId}/${examTime}`,
url
:
`/tjt-race/answerQuestion/addScore`
,
method
:
'post'
,
data
:
data
})
}
...
...
tjty-app/pages/login/login.vue
View file @
5d2102ab
...
...
@@ -65,7 +65,7 @@
getToken
(
code
,
this
.
token
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
updateToken
(
res
.
data
.
token
)
this
.
updateUserInfo
(
res
.
data
.
user
Info
)
this
.
updateUserInfo
(
res
.
data
.
user
)
uni
.
redirectTo
({
url
:
this
.
url
})
...
...
tjty-app/pages_daily_answer/tjty_dailyAnswer/tjty_dailyAnswer.vue
View file @
5d2102ab
...
...
@@ -174,8 +174,18 @@
this
.
getFinishSituation
().
then
(()
=>
{
console
.
log
(
"finishSituationList"
,
this
.
finishSituationList
);
let
i
=
0
;
if
(
i
===
this
.
day
-
1
)
{
console
.
log
(
"所有答题已完成"
);
uni
.
showToast
({
title
:
'所有答题已完成,请退出答题页面'
,
icon
:
'none'
})
return
}
for
(
i
=
0
;
i
<
this
.
day
;
i
++
)
{
if
(
i
<
this
.
day
)
{
console
.
log
(
'i'
,
i
);
console
.
log
(
'this.day'
,
this
.
day
);
if
(
i
<
this
.
day
-
1
)
{
if
(
this
.
finishSituationList
[
i
].
flag
===
false
)
{
console
.
log
(
this
.
finishSituationList
[
i
]);
this
.
getNotFinish
(
this
.
finishSituationList
[
i
].
date
,
i
)
...
...
@@ -184,13 +194,6 @@
}
}
}
if
(
i
===
this
.
day
)
{
console
.
log
(
"所有答题已完成"
);
uni
.
showToast
({
title
:
'所有答题已完成,请退出答题页面'
,
icon
:
'none'
})
}
})
}
},
...
...
@@ -250,14 +253,16 @@
clearInterval
(
this
.
timer
)
// this.timer = null
}
// let addScoreData = {
// signupId:this.signupId,
// examId:this.examId,
// score:this.score,
// activityId:this.activityId,
// flagTime:this.flagTime
// }
addScore
(
this
.
signupId
,
this
.
examId
,
this
.
score
,
this
.
activityId
,
this
.
flagTime
).
then
(
res
=>
{
let
addScoreData
=
{
signupId
:
this
.
signupId
,
examId
:
this
.
examId
,
score
:
this
.
score
,
activityId
:
this
.
activityId
,
examTime
:
this
.
flagTime
}
console
.
log
(
addScoreData
);
// addScore(this.signupId, this.examId, this.score, this.activityId, this.flagTime).then(res => {
addScore
(
addScoreData
).
then
(
res
=>
{
console
.
log
(
'成绩录入'
,
res
);
this
.
scoreFlag
=
false
})
...
...
tjty-app/utils/request.js
View file @
5d2102ab
...
...
@@ -20,10 +20,11 @@ const url_all = {
// 'DEV': 'http://127.0.0.1:8080', // 开发
// 'DEV': 'http://192.168.1.11:8080'
// 开发版
develop
:
'https://www.aiwanyundong.com/api'
,
develop
:
'https://www.aiwanyundong.com/stage-api'
,
// develop: 'https://www.aiwanyundong.com/api',
// develop: 'http://192.168.0.63:8080',
// 体验版
trial
:
'https://www.aiwanyundong.com/api'
,
trial
:
'https://www.aiwanyundong.com/
stage-
api'
,
// 正式版
release
:
'https://www.aiwanyundong.com/api'
// 'DEV': 'https://www.aiwanyundong.com/api/'
...
...
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