address.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <!-- 地址列表 -->
  2. <view class='address-box c-333'>
  3. <view class='address-list bg-white mar-b20' wx:for="{{addressList}}">
  4. <view class='mar-l20 mar-r20 pad-t20 pad-b20 f-s28'>
  5. <view data-item='{{item}}' bindtap='selectAddress'>
  6. <view>{{item.consignee}} {{item.phone}}</view>
  7. <view>{{item.province}} {{item.city}} {{item.area}} {{item.adress}}</view>
  8. </view>
  9. <view class='address-icon f-box mar-t20'>
  10. <view class='f-item f-box f-s24 f-align-items-center' wx:if="{{item.adress_flag == '0'}}">
  11. <icon type="success" size="16" class='f-box f-align-items-center' color="green" />
  12. <text class='icon-font'>默认地址</text>
  13. </view>
  14. <view class='f-item f-box f-s24 f-align-items-center' wx:if="{{item.adress_flag == '1'}}">
  15. <!-- <icon type="success" size="16" class='f-box f-align-items-center' color="#999" />
  16. <text class='icon-font'>设为默认地址</text> -->
  17. </view>
  18. <view>
  19. <icon class='icon-bianji iconfont mar-r20' data-item='{{item}}' bindtap='editAddress'/>
  20. <icon class='icon-tuanduicankaoxian- iconfont' data-id='{{item.id}}' bindtap='delAddress'/>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <data-none wx:if="{{addressList.length === 0}}"></data-none>
  27. <view class='footer'>
  28. <view class='footer-box add-address'>
  29. <view class='c-white bg-green f-box f-justify-content-center f-s32' bindtap='addAddress'>新增</view>
  30. </view>
  31. </view>