Commit 04807755 authored by 和慭琛's avatar 和慭琛

分数问题

parent f1eda997
/* --------------------------- 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', //学院
......
...@@ -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": {
......
...@@ -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()
}, },
......
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