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

多选题 登录 提交审核版本

parent 51c585b1
......@@ -6,18 +6,24 @@
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
{
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
}
},{
"path": "pages/exam/start",
"style": {
"navigationBarTitleText": "考试"
}
},{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "下单"
}
},{
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
}
},{
"path": "pages/settle/base",
"style": {
......@@ -36,12 +42,6 @@
"navigationBarTitleText": "入驻考试"
}
},{
"path": "pages/exam/start",
"style": {
"navigationBarTitleText": "考试"
}
},
......
......@@ -366,17 +366,20 @@
itemClick: function(currentItem, ikey) {
this.isSelect = true
console.log('选点点击--处理前--this.currentItem.answerList:')
console.log(this.currentItem.answerList)
console.log('选点点击--处理前--ikey:')
console.log(ikey)
// console.log('选点点击--处理前--this.currentItem:')
// console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:')
// console.log(ikey)
// console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
//answerType 题目类型,1单选,2多选,3简答,
for (let i = 0; i < this.currentItem.answerList.length; i++) {
var item = this.currentItem.answerList[i]
if (this.currentItem.answerType == 2) { //多选
if (this.currentItem.question.answerType == 2) { //多选
if (ikey == i) {
item.isSelect = !item.isSelect
......@@ -405,8 +408,8 @@
//有选答案
this.isSelect = isSelect
console.log('选点点击--处理后--this.currentItem.answerList:')
console.log(this.currentItem.answerList)
// console.log('选点点击--处理后--this.currentItem.answerList:')
// console.log(this.currentItem.answerList)
......
......@@ -35,6 +35,7 @@
// if(!this.settledInfo){
// this.getBaseInfo()
// }
uni.hideLoading()
},
methods: {
async getBaseInfo(){
......
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