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
f1eda997
Commit
f1eda997
authored
Mar 03, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多选题 登录 提交审核版本
parent
51c585b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
20 deletions
+24
-20
pages.json
take-order/pages.json
+13
-13
index.vue
take-order/pages/exam/index.vue
+10
-7
index.vue
take-order/pages/settle/index.vue
+1
-0
No files found.
take-order/pages.json
View file @
f1eda997
...
@@ -6,18 +6,24 @@
...
@@ -6,18 +6,24 @@
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
}
},{
"path"
:
"pages/exam/start"
,
"style"
:
{
"navigationBarTitleText"
:
"考试"
}
},{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"下单"
"navigationBarTitleText"
:
"下单"
}
}
},{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
}
},{
},{
"path"
:
"pages/settle/base"
,
"path"
:
"pages/settle/base"
,
"style"
:
{
"style"
:
{
...
@@ -36,12 +42,6 @@
...
@@ -36,12 +42,6 @@
"navigationBarTitleText"
:
"入驻考试"
"navigationBarTitleText"
:
"入驻考试"
}
}
},{
"path"
:
"pages/exam/start"
,
"style"
:
{
"navigationBarTitleText"
:
"考试"
}
},
},
...
...
take-order/pages/exam/index.vue
View file @
f1eda997
...
@@ -366,17 +366,20 @@
...
@@ -366,17 +366,20 @@
itemClick
:
function
(
currentItem
,
ikey
)
{
itemClick
:
function
(
currentItem
,
ikey
)
{
this
.
isSelect
=
true
this
.
isSelect
=
true
console
.
log
(
'选点点击--处理前--this.currentItem.answerList:'
)
// console.log('选点点击--处理前--this.currentItem:')
console
.
log
(
this
.
currentItem
.
answerList
)
// console.log(this.currentItem)
console
.
log
(
'选点点击--处理前--ikey:'
)
// console.log('选点点击--处理前--ikey:')
console
.
log
(
ikey
)
// console.log(ikey)
// console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
//answerType 题目类型,1单选,2多选,3简答,
//answerType 题目类型,1单选,2多选,3简答,
for
(
let
i
=
0
;
i
<
this
.
currentItem
.
answerList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
currentItem
.
answerList
.
length
;
i
++
)
{
var
item
=
this
.
currentItem
.
answerList
[
i
]
var
item
=
this
.
currentItem
.
answerList
[
i
]
if
(
this
.
currentItem
.
answerType
==
2
)
{
//多选
if
(
this
.
currentItem
.
question
.
answerType
==
2
)
{
//多选
if
(
ikey
==
i
)
{
if
(
ikey
==
i
)
{
item
.
isSelect
=
!
item
.
isSelect
item
.
isSelect
=
!
item
.
isSelect
...
@@ -405,8 +408,8 @@
...
@@ -405,8 +408,8 @@
//有选答案
//有选答案
this
.
isSelect
=
isSelect
this
.
isSelect
=
isSelect
console
.
log
(
'选点点击--处理后--this.currentItem.answerList:'
)
//
console.log('选点点击--处理后--this.currentItem.answerList:')
console
.
log
(
this
.
currentItem
.
answerList
)
//
console.log(this.currentItem.answerList)
...
...
take-order/pages/settle/index.vue
View file @
f1eda997
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
// if(!this.settledInfo){
// if(!this.settledInfo){
// this.getBaseInfo()
// this.getBaseInfo()
// }
// }
uni
.
hideLoading
()
},
},
methods
:
{
methods
:
{
async
getBaseInfo
(){
async
getBaseInfo
(){
...
...
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