From 090f7e7dfb03aaead121d49b89319eb618d8a136 Mon Sep 17 00:00:00 2001 From: li tong bao <2903733959@qq.com> Date: Wed, 8 Jun 2022 19:23:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?--=E5=9C=B0=E5=9D=80=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=86=92=E6=B3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AddressList/index.scss | 5 ++--- src/components/AddressList/index.tsx | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/AddressList/index.scss b/src/components/AddressList/index.scss index 88fbb0a..e7c7124 100644 --- a/src/components/AddressList/index.scss +++ b/src/components/AddressList/index.scss @@ -6,10 +6,9 @@ height: 100%; box-sizing: border-box; } - scroll-view>view{ - display: flex;flex-direction: column; + .address-scroll-view-content{ + padding-bottom: 300px; } - .address-list{ width: 704px; height: 156px; diff --git a/src/components/AddressList/index.tsx b/src/components/AddressList/index.tsx index c3db685..b2066a0 100644 --- a/src/components/AddressList/index.tsx +++ b/src/components/AddressList/index.tsx @@ -81,14 +81,14 @@ const AddressList = memo((props:Params)=>{ return ( - + { state?.data?.list?.length>0? state?.data?.list?.map((item,index)=>{ // data.length>0? // data.map((item,index)=>{ return( - handleDelete(item)} onClick={()=>handleSelect(item,index)} className={`address-list ${index+1==state?.data?.list?.length&&'address-list-last'} ${focusId==item.id&&'address-active'}`}> + handleDelete(item)} onClick={()=>handleSelect(item,index)} className={`address-list ${focusId==item.id&&'address-active'}`}> {item.name} { @@ -105,7 +105,7 @@ const AddressList = memo((props:Params)=>{ item.is_default&&{item.phone.replace(item.phone.substring(4,7), "****")} } - + e.stopPropagation()} url={`/pages/addressAdd/index?type=edit&id=${item.id}`} hoverClass="none" className="address-edit"> From 996777341c0c6b76345174ffe02495c19d14e86f Mon Sep 17 00:00:00 2001 From: li tong bao <2903733959@qq.com> Date: Wed, 8 Jun 2022 19:28:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?--=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AddressList/index.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AddressList/index.scss b/src/components/AddressList/index.scss index e7c7124..71c2eba 100644 --- a/src/components/AddressList/index.scss +++ b/src/components/AddressList/index.scss @@ -68,7 +68,7 @@ width: 100%; } .address-list-info view{ - width: 50%; + max-width: 60%; text-overflow: ellipsis; overflow: hidden;white-space: nowrap; }