Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
addInsured-AIA-POC
Project
Project
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
liujianghai
addInsured-AIA-POC
Commits
f8f90ae4
Commit
f8f90ae4
authored
Mar 08, 2020
by
marsandheart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加合同选择列表 中点击重置,清除已有的选择
parent
7c0a2003
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ProductListModal.jsx
src/pages/insuredsInfo.components/ProductListModal.jsx
+5
-1
No files found.
src/pages/insuredsInfo.components/ProductListModal.jsx
View file @
f8f90ae4
...
@@ -98,6 +98,10 @@ export default function(props) {
...
@@ -98,6 +98,10 @@ export default function(props) {
}
}
};
};
const
reset
=
()
=>
{
setProductId
(
''
);
}
const
submit
=
()
=>
{
const
submit
=
()
=>
{
const
selectedProduct
=
productList
.
find
((
p
)
=>
p
.
id
===
productId
);
const
selectedProduct
=
productList
.
find
((
p
)
=>
p
.
id
===
productId
);
if
(
selectedProduct
)
{
if
(
selectedProduct
)
{
...
@@ -117,7 +121,7 @@ export default function(props) {
...
@@ -117,7 +121,7 @@ export default function(props) {
<
div
className=
{
styles
.
info
}
>
<
div
className=
{
styles
.
info
}
>
<
span
>
被保险人出生日期:1974年08月07日
</
span
>
<
span
>
被保险人出生日期:1974年08月07日
</
span
>
<
span
>
请谨慎选择以下产品的成人或儿童计划
</
span
>
<
span
>
请谨慎选择以下产品的成人或儿童计划
</
span
>
<
TouchOpacity
className=
{
styles
.
btn
}
>
重置
</
TouchOpacity
>
<
TouchOpacity
className=
{
styles
.
btn
}
onClick=
{
reset
}
>
重置
</
TouchOpacity
>
</
div
>
</
div
>
<
div
className=
{
styles
.
list
}
>
<
div
className=
{
styles
.
list
}
>
{
productList
.
map
((
ele
)
=>
(
{
productList
.
map
((
ele
)
=>
(
...
...
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