Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-wx-app
Project
Overview
Details
Activity
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
姜雷
cdsf-wx-app
Commits
7ad10835
Commit
7ad10835
authored
Oct 15, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用车类型选择方式
parent
562de120
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
PublicCarApply.js
src/containers/PublicCar/PublicCarApply.js
+20
-13
No files found.
src/containers/PublicCar/PublicCarApply.js
View file @
7ad10835
...
...
@@ -40,10 +40,15 @@ class PublicCarApply extends Component {
});
}
selectCategory
=
id
=>
{
this
.
setState
({
categoryId
:
id
,
showAllCategory
:
false
,
});
const
{
showAllCategory
}
=
this
.
state
;
if
(
!
showAllCategory
)
{
this
.
toggleCategoryOptions
();
}
else
{
this
.
setState
({
categoryId
:
id
,
showAllCategory
:
false
,
});
}
};
toggleCategoryOptions
=
()
=>
{
this
.
setState
(({
showAllCategory
})
=>
({
...
...
@@ -149,15 +154,17 @@ class PublicCarApply extends Component {
<
div
className
=
{
styles
.
listItemAutoHeight
}
>
<
div
className
=
{
styles
.
itemLabel
}
>
用车类型
<
/div
>
<
div
className
=
{
styles
.
itemValue
}
>
<
div
className
=
{
styles
.
selectInput
}
onClick
=
{
this
.
toggleCategoryOptions
}
>
请选择
<
span
className
=
{
styles
.
arrow
}
>
<
img
src
=
{
arrIcon
}
alt
=
""
/>
<
/span
>
<
/div
>
{
categoryId
?
null
:
(
<
div
className
=
{
styles
.
selectInput
}
onClick
=
{
this
.
toggleCategoryOptions
}
>
请选择
<
span
className
=
{
styles
.
arrow
}
>
<
img
src
=
{
arrIcon
}
alt
=
""
/>
<
/span
>
<
/div
>
)}
{
showAllCategory
?
categoryList
.
map
(
i
=>
(
<
div
...
...
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