--地址管理去除冒泡
This commit is contained in:
parent
005cd3bc22
commit
090f7e7dfb
@ -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;
|
||||
|
@ -81,14 +81,14 @@ const AddressList = memo((props:Params)=>{
|
||||
return (
|
||||
<View className="address-scroll-view">
|
||||
<ScrollView scrollY refresherEnabled={props.refresherEnabled} enhanced refresherTriggered={refreshState} onRefresherRefresh={handleRefresh}>
|
||||
<View>
|
||||
<View className="address-scroll-view-content">
|
||||
{
|
||||
state?.data?.list?.length>0?
|
||||
state?.data?.list?.map((item,index)=>{
|
||||
// data.length>0?
|
||||
// data.map((item,index)=>{
|
||||
return(
|
||||
<View onLongPress={()=>handleDelete(item)} onClick={()=>handleSelect(item,index)} className={`address-list ${index+1==state?.data?.list?.length&&'address-list-last'} ${focusId==item.id&&'address-active'}`}>
|
||||
<View onLongPress={()=>handleDelete(item)} onClick={()=>handleSelect(item,index)} className={`address-list ${focusId==item.id&&'address-active'}`}>
|
||||
<View className="address-user">
|
||||
{item.name}
|
||||
{
|
||||
@ -105,7 +105,7 @@ const AddressList = memo((props:Params)=>{
|
||||
item.is_default&&<Text className="address-list-phone">{item.phone.replace(item.phone.substring(4,7), "****")}</Text>
|
||||
}
|
||||
</View>
|
||||
<Navigator url={`/pages/addressAdd/index?type=edit&id=${item.id}`} hoverClass="none" className="address-edit">
|
||||
<Navigator onClick={e=>e.stopPropagation()} url={`/pages/addressAdd/index?type=edit&id=${item.id}`} hoverClass="none" className="address-edit">
|
||||
<Text className="iconfont icon-bianji"></Text>
|
||||
</Navigator>
|
||||
</View>
|
||||
|
Loading…
x
Reference in New Issue
Block a user