Commit 5d2102ab authored by 刘鑫鹏's avatar 刘鑫鹏

Merge remote-tracking branch 'origin/dev' into dev

parents 81ad2859 92e6eca3
...@@ -30,10 +30,13 @@ export function getExamPapers(signupId,activityId,examTime) { ...@@ -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({ 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', method: 'post',
data:data
}) })
} }
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
getToken(code, this.token).then(res => { getToken(code, this.token).then(res => {
console.log(res); console.log(res);
this.updateToken(res.data.token) this.updateToken(res.data.token)
this.updateUserInfo(res.data.userInfo) this.updateUserInfo(res.data.user)
uni.redirectTo({ uni.redirectTo({
url: this.url url: this.url
}) })
......
...@@ -174,8 +174,18 @@ ...@@ -174,8 +174,18 @@
this.getFinishSituation().then(() => { this.getFinishSituation().then(() => {
console.log("finishSituationList", this.finishSituationList); console.log("finishSituationList", this.finishSituationList);
let i = 0; let i = 0;
if (i === this.day-1) {
console.log("所有答题已完成");
uni.showToast({
title: '所有答题已完成,请退出答题页面',
icon: 'none'
})
return
}
for (i = 0; i < this.day; i++) { 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) { if (this.finishSituationList[i].flag === false) {
console.log(this.finishSituationList[i]); console.log(this.finishSituationList[i]);
this.getNotFinish(this.finishSituationList[i].date, i) this.getNotFinish(this.finishSituationList[i].date, i)
...@@ -184,13 +194,6 @@ ...@@ -184,13 +194,6 @@
} }
} }
} }
if (i === this.day) {
console.log("所有答题已完成");
uni.showToast({
title: '所有答题已完成,请退出答题页面',
icon: 'none'
})
}
}) })
} }
}, },
...@@ -250,14 +253,16 @@ ...@@ -250,14 +253,16 @@
clearInterval(this.timer) clearInterval(this.timer)
// this.timer = null // this.timer = null
} }
// let addScoreData = { let addScoreData = {
// signupId:this.signupId, signupId:this.signupId,
// examId:this.examId, examId:this.examId,
// score:this.score, score:this.score,
// activityId:this.activityId, activityId:this.activityId,
// flagTime:this.flagTime examTime:this.flagTime
// } }
addScore(this.signupId, this.examId, this.score, this.activityId, this.flagTime).then(res => { console.log(addScoreData);
// addScore(this.signupId, this.examId, this.score, this.activityId, this.flagTime).then(res => {
addScore(addScoreData).then(res => {
console.log('成绩录入', res); console.log('成绩录入', res);
this.scoreFlag = false this.scoreFlag = false
}) })
......
...@@ -20,10 +20,11 @@ const url_all = { ...@@ -20,10 +20,11 @@ const url_all = {
// 'DEV': 'http://127.0.0.1:8080', // 开发 // 'DEV': 'http://127.0.0.1:8080', // 开发
// 'DEV': 'http://192.168.1.11: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', // 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' release: 'https://www.aiwanyundong.com/api'
// 'DEV': 'https://www.aiwanyundong.com/api/' // 'DEV': 'https://www.aiwanyundong.com/api/'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment