123456789101112131415161718192021222324252627282930313233 |
- <view class="content b-t">
- <view bindtap="__e" class="list" data-event-opts="{{[ [ 'tap',[ [ 'checkAddress',['$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}" wx:for="{{addressList}}" wx:key="index">
- <view class="wrapper">
- <view class="address-box">
- <text class="name">{{item.real_name}}</text>
- <text class="mobile">{{item.phone}}</text>
- </view>
- <view class="u-box">
- <text class="address">{{item.province+item.city+item.district+' '+item.detail}}</text>
- </view>
- </view>
- <view class="buttom">
- <view catchtap="__e" class="default-buttom" data-event-opts="{{[ [ 'tap',[ [ 'defaultUp',['$0',index],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
- <view class="{{['iconfont iconroundcheckfill checkbox',item.is_default==1?'checked':'']}}"></view>
- <text class="text">设为默认地址</text>
- </view>
- <view class="operation">
- <view catchtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'addAddress',['edit','$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
- <text class="iconfont iconedit"></text>
- <text class="text">编辑</text>
- </view>
- <view class="blank"></view>
- <view catchtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'delAddress',['$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
- <text class="iconfont icondelete"></text>
- <text class="text">删除</text>
- </view>
- </view>
- </view>
- </view>
- <view class="flex add-btn">
- <button bindtap="__e" class="add-btn" data-event-opts="{{[ [ 'tap',[ [ 'addAddress',['add'] ] ] ] ]}}">新增地址</button>
- </view>
- </view>
|