address.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="content b-t">
  2. <view bindtap="__e" class="list" data-event-opts="{{[ [ 'tap',[ [ 'checkAddress',['$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}" wx:for="{{addressList}}" wx:key="index">
  3. <view class="wrapper">
  4. <view class="address-box">
  5. <text class="name">{{item.real_name}}</text>
  6. <text class="mobile">{{item.phone}}</text>
  7. </view>
  8. <view class="u-box">
  9. <text class="address">{{item.province+item.city+item.district+' '+item.detail}}</text>
  10. </view>
  11. </view>
  12. <view class="buttom">
  13. <view catchtap="__e" class="default-buttom" data-event-opts="{{[ [ 'tap',[ [ 'defaultUp',['$0',index],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
  14. <view class="{{['iconfont iconroundcheckfill checkbox',item.is_default==1?'checked':'']}}"></view>
  15. <text class="text">设为默认地址</text>
  16. </view>
  17. <view class="operation">
  18. <view catchtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'addAddress',['edit','$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
  19. <text class="iconfont iconedit"></text>
  20. <text class="text">编辑</text>
  21. </view>
  22. <view class="blank"></view>
  23. <view catchtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'delAddress',['$0'],[ [ ['addressList','',index] ] ] ] ] ] ]}}">
  24. <text class="iconfont icondelete"></text>
  25. <text class="text">删除</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="flex add-btn">
  31. <button bindtap="__e" class="add-btn" data-event-opts="{{[ [ 'tap',[ [ 'addAddress',['add'] ] ] ] ]}}">新增地址</button>
  32. </view>
  33. </view>