user_address.wxml 3.1 KB

1
  1. <view class="user-address"><block wx:if="{{!hasAddress}}"><view class="no-address flex-col col-center"><image class="img-null mt20" src="/static/images/address_null.png"></image><view class="sm muted">暂无添加地址,请添加~</view></view></block><block wx:else><view class="address-list"><u-radio-group class="radio-group" vue-id="a7c256fe-1" active-color="{{colorConfig.primary}}" value="{{currentId}}" data-event-opts="{{[['^change',[['radioChange']]],['^input',[['__set_model',['','currentId','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onSelect',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="item bg-white m-b-20" bindtap="__e"><view class="address"><view class="consignee md bold">{{''+item.$orig.contact+''}}<text class="phone m-l-10">{{item.$orig.telephone}}</text></view><view class="lighter sm m-t-10">{{''+item.$orig.province+" "+item.$orig.city+" "+item.$orig.district+" "+item.$orig.address+''}}</view></view><view class="operation flex row-between"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" catchtap="__e"><u-radio class="radio flex" vue-id="{{('a7c256fe-2-'+index)+','+('a7c256fe-1')}}" name="{{item.$orig.id}}" bind:__l="__l" vue-slots="{{['default']}}"><text class="xs">{{currentId==item.$orig.id?'默认':'设为默认'}}</text></u-radio></view><view class="flex row-center"><router-link vue-id="{{('a7c256fe-3-'+index)+','+('a7c256fe-1')}}" to="{{item.a0}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex m-r-20"><image class="icon-md m-r-10" src="/static/images/icon_edit.png"></image>编辑</view></router-link><view data-event-opts="{{[['tap',[['showSurePop',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="flex m-l-20" catchtap="__e"><image class="icon-md m-r-10" src="/static/images/icon_del_1.png"></image>删除</view></view></view></view></block></u-radio-group></view></block><u-modal vue-id="a7c256fe-4" id="delete-dialog" show-cancel-button="{{true}}" confirm-text="狠心删除" confirm-color="{{colorConfig.primary}}" show-title="{{false}}" value="{{deleteSure}}" data-event-opts="{{[['^confirm',[['delAddressFun']]],['^input',[['__set_model',['','deleteSure','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex-col col-center tips-dialog p-t-40"><image class="icon-lg" src="/static/images/icon_warning.png"></image><view style="margin-top:30rpx;">确认删除该地址吗?</view></view></u-modal><view class="footer flex row-between fixed bg-white"><block wx:if="{{isWeixin}}"><view data-event-opts="{{[['tap',[['getWxAddressFun',['$event']]]]]}}" class="btn flex row-center bg-gray br60 m-r-20" bindtap="__e"><image class="icon-lg m-r-10" src="/static/images/icon_wechat.png"></image><text class="md">微信导入</text></view></block><router-link class="flex-1" vue-id="a7c256fe-5" to="{{({path:'/bundle/pages/address_edit/address_edit'})}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="btn bg-primary white md flex row-center br60">新增收货地址</view></router-link></view></view>