<view class="container clearfix"><block wx:if="{{isEmpty}}"><view class="empty-container"><image class="empty-container-image" src="{{StaticUrl+'icon-empty-address.png'}}" mode="aspectFit"></image><view class="txt">您还没有收货地址</view><view class="txt">点击底部按钮添加收货地址吧~~</view><view data-event-opts="{{[['tap',[['addAddress',['add']]]]]}}" class="login-btn" bindtap="__e">添加新地址</view></view></block><block wx:else><view class="address-list" style="{{'height:'+(scrollHeight+'px')+';'}}"><scroll-view style="{{'height:'+(scrollHeight+'px')+';'}}" scroll-y="true"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['checkAddress',['$0'],[[['addressList','',index]]]]]]]}}" class="list" bindtap="__e"><view class="wrapper"><view class="u-box"><text class="name">{{item.shouHuoRen}}</text><text class="mobile">{{item.mobile}}</text><block wx:if="{{item.defaultFlag==1}}"><text class="default-tags">默认</text></block></view><view class="u-box b-b"><text class="address"><text class="label">收货地址：</text>{{item.provinceName+item.cityName+item.townName+item.address}}</text></view><view class="u-box b-t"><block wx:if="{{item.defaultFlag==1}}"><view class="tag-left"><view class="tag"><text class="iconfont icon-xuanze"></text><text>已设为默认地址</text></view></view></block><block wx:else><view class="tag-left"><view data-event-opts="{{[['tap',[['setDefaultAddress',['$0'],[[['addressList','',index,'addressId']]]]]]]}}" class="tag" catchtap="__e"><text class="iconfont icon-weixuanze"></text><text>设为默认地址</text></view></view></block><view class="tag-right"><view data-event-opts="{{[['tap',[['deleteAddress',['$0'],[[['addressList','',index,'addressId']]]]]]]}}" class="t-b" catchtap="__e"><text class="iconfont icon-shanchu"></text><text class="txt">删除</text></view><view data-event-opts="{{[['tap',[['addAddress',['edit','$0'],[[['addressList','',index]]]]]]]}}" class="t-b" catchtap="__e"><text class="iconfont icon-bianji"></text><text class="txt">编辑</text></view></view></view></view></view></block></scroll-view><view data-event-opts="{{[['tap',[['addAddress',['add']]]]]}}" class="add-btn" catchtap="__e">添加新地址</view></view></block><tui-modal vue-id="15303eb8-1" show="{{modal}}" content="{{contentModalText}}" color="#333" size="{{32}}" shape="circle" maskClosable="{{false}}" data-event-opts="{{[['^click',[['handleClick']]],['^cancel',[['hideMobel']]]]}}" bind:click="__e" bind:cancel="__e" bind:__l="__l"></tui-modal></view>