address.wxml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <view class="container">
  2. <view style="background: #B8E3F9;overflow:hidden;">
  3. <view class="dz">当前地址:{{addressName}}</view>
  4. <view class="sx" bindtap="shaxin">点击刷新</view>
  5. </view>
  6. <view class="xzwz" wx:if="{{isShowServiceAddress}}">请选择你的服务地址</view>
  7. <view class="address-list" wx:if="{{ addressList.length > 0 }}">
  8. <view class="item" wx:for="{{addressList}}" wx:key="id">
  9. <view class="l">
  10. <image src="/static/images/address/dingwei.png"></image>
  11. <!-- <view class="name">{{item.name}}</view>
  12. <view class="default" wx:if="{{item.isDefault}}">默认</view> -->
  13. </view>
  14. <view class="c" bindtap="addressAddOrUpdate" data-address-id="{{item.id}}" data-address-detail="{{item.addressDetail}}">
  15. <view class="address">{{item.province}} {{item.city}} {{item.county}} {{item.addressDetail}}</view>
  16. <view class="mobile"> {{item.name}} {{item.tel}}</view>
  17. <view class="default" wx:if="{{item.isDefault}}">默认</view>
  18. </view>
  19. <view class="r">
  20. <!-- <van-icon catchtap="deleteAddress" data-address-id="{{item.id}}" class="del" name="delete"/> -->
  21. <image src="/static/images/address/xiugai.png" data-address-id="{{item.id}}" bindtap="updateAddress" class="update" />
  22. </view>
  23. </view>
  24. </view>
  25. <view class="empty-view" wx:if="{{ addressList.length <= 0 }}">
  26. <text class="text">收货地址还没有~~~</text>
  27. </view>
  28. <view class="add-address" bindtap="addressAddOrUpdate" data-address-id="0">新建</view>
  29. </view>