rm
yj
2024-12-05 e1d6142f80466747b3614bf8f26a583c9c7b1e87
1
<view class="content b-t"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkAddress',['$0'],[[['addressList','',index]]]]]],['longpress',[['deleteShow',['$0'],[[['addressList','',index]]]]]]]}}" class="list b-b" bindtap="__e" bindlongpress="__e"><view class="wrapper"><view class="u-box"><text class="name">{{''+item.consignee+''}}</text><text class="mobile">{{''+item.phone+''}}</text></view><view class="address-box"><block wx:if="{{item.defaultAddress}}"><text class="tag">默认</text></block><text class="address">{{''+item.province+" "+item.city+" "+item.county+" "+item.address+''}}</text></view></view><text data-event-opts="{{[['tap',[['toUpsert',['edit','$0'],[[['addressList','',index]]]]]]]}}" class="yticon icon-bianji" catchtap="__e"></text></view></block><button data-event-opts="{{[['tap',[['toUpsert',['add']]]]]}}" class="add-btn" bindtap="__e">新增地址</button></view>