Commit f8f90ae4 authored by marsandheart's avatar marsandheart

增加合同选择列表 中点击重置,清除已有的选择

parent 7c0a2003
......@@ -98,6 +98,10 @@ export default function(props) {
}
};
const reset = () => {
setProductId('');
}
const submit = () => {
const selectedProduct = productList.find((p) => p.id === productId);
if (selectedProduct) {
......@@ -117,7 +121,7 @@ export default function(props) {
<div className={styles.info}>
<span>被保险人出生日期:1974年08月07日</span>
<span>请谨慎选择以下产品的成人或儿童计划</span>
<TouchOpacity className={styles.btn}>重置</TouchOpacity>
<TouchOpacity className={styles.btn} onClick={reset}>重置</TouchOpacity>
</div>
<div className={styles.list}>
{productList.map((ele) => (
......
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