address.wxml 1.2 KB

12345678910111213141516171819202122
  1. <view class="container">
  2. <view class="address-list" wx:if="{{ addressList.length > 0 }}">
  3. <view class="item" wx:for="{{addressList}}" wx:key="{{item.id}}" bindtap="selectAddress" data-address-id="{{item.id}}">
  4. <view class="l">
  5. <view class="name">{{item.name}}</view>
  6. <view class="default" wx:if="{{item.is_default}}">默认</view>
  7. </view>
  8. <view class="c">
  9. <view class="mobile">{{item.mobile}}</view>
  10. <view class="address">{{item.full_region + item.address}}</view>
  11. </view>
  12. <view class="r">
  13. <image catchtap="addressAddOrUpdate" data-address-id="{{item.id}}" class="del" src="http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/address-edit-7fee7b0d63.png"></image>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="empty-view" wx:if="{{ addressList.length <= 0 }}">
  18. <image class="icon" src="http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/noAddress-26d570cefa.png"></image>
  19. <text class="text">收货地址在哪里</text>
  20. </view>
  21. <view class="add-address" bindtap="addressAddOrUpdate" data-address-id="0">新建</view>
  22. </view>