<view><block tt:if="{{dataList.length==0}}"><view class="empty-data"><image src="/static/image/order_none.png" mode="widthFix"></image><view class="name">还没有地址信息</view></view></block><view class="address-list"><z-paging class="vue-ref" vue-id="0b473948-1" show-refresher-update-time="{{true}}" fixed="{{false}}" data-ref="paging" value="{{dataList}}" data-event-opts="{{[['^query',[['queryList']]],['^input',[['__set_model',['','dataList','$event',[]]]]]]}}" bind:query="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><block tt:for="{{dataList}}" tt:for-item="item" tt:for-index="index" tt:key="index"><view class="list-item"><view data-event-opts="{{[['tap',[['checkAddress',['$0'],[[['dataList','',index]]]]]]]}}" class="item-left" bindtap="__e"><view class="title"><block tt:if="{{item.is_default==1}}"><text>默认</text></block>{{''+item.region}}</view><view class="name">{{item.address}}</view><view class="mobile">{{item.username}}<text>{{item.mobile}}</text></view></view><view class="item-right"><view data-event-opts="{{[['tap',[['edit',['$0'],[[['dataList','',index]]]]]]]}}" class="icon" bindtap="__e"><image src="/static/image/edit.png"></image></view><view data-event-opts="{{[['tap',[['del',['$0'],[[['dataList','',index,'id']]]]]]]}}" class="icon" bindtap="__e"><image src="/static/image/del.png"></image></view></view></view></block></z-paging></view><view class="flx-footer"><view class="check-btn"><button class="btn" disabled="{{disabled}}" data-event-opts="{{[['tap',[['add',['$event']]]]]}}" bindtap="__e">{{disabled?'处理中...':'新增地址'}}</button></view><view class="footer-safe"></view></view><uni-popup class="vue-ref" vue-id="0b473948-2" type="bottom" borderRadius="10px 10px 0 0" backgroundColor="#F8F8F8" data-ref="popup" bind:__l="__l" vue-slots="{{['default']}}"><view class="time-select"><view class="title">{{(mode=='add'?'新增':'编辑')+'地址'}}<view data-event-opts="{{[['tap',[['close']]]]}}" class="close" bindtap="__e"><image src="/static/image/round_close.png"></image></view></view></view><view class="goods-body"><view class="goods-form"><view class="form-title">联系姓名</view><view class="form-input"><input class="input" placeholder="请输入联系姓名" data-event-opts="{{[['input',[['__set_model',['$0','username','$event',[]],['formData']]]]]}}" value="{{formData.username}}" bindinput="__e"/></view></view><view class="goods-form"><view class="form-title">联系电话</view><view class="form-input"><input class="input" placeholder="请输入联系电话" data-event-opts="{{[['input',[['__set_model',['$0','mobile','$event',[]],['formData']]]]]}}" value="{{formData.mobile}}" bindinput="__e"/></view></view><view class="goods-form"><view class="form-title">联系地区</view><view class="form-input"><picker mode="region" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><view class="region-name">{{regionName?regionName:'请选择'}}</view></picker></view></view><view class="goods-form"><view class="form-title">详细地址</view><view class="form-input"><input class="input" placeholder="请输入详细地址" data-event-opts="{{[['input',[['__set_model',['$0','address','$event',[]],['formData']]]]]}}" value="{{formData.address}}" bindinput="__e"/></view></view></view><view class="time-btn"><button class="btn" disabled="{{disabled}}" data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" bindtap="__e">{{disabled?'处理中...':'确认'}}</button></view></uni-popup></view>