address.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--pages/checkAddress/handleAddCheck.wxml-->
  2. <view class="address-content">
  3. <view class="main-content" wx:if="{{allAddressList.length != 0}}">
  4. <block wx:for="{{addressList}}" wx:key="index">
  5. <view class="addrss-item">
  6. <view class="top userinfo" data-info="{{item}}" bindtap="handleAddressChose">
  7. <view class="username ittflex-jcs">
  8. <text class="name">{{item.contactName}}</text>
  9. <text class="phone">{{item.contactPhone}}</text>
  10. </view>
  11. <view class="address-detail">{{item.province}}{{item.city}}{{item.county}}{{item.detailAddress}}</view>
  12. </view>
  13. <view class="actions button ittflex">
  14. <view class="edit-btn btn ittflex" data-item="{{item}}" bindtap="handleEdit">
  15. <image class="btn-icon" src="./../../imaes/bianji@2x.png"></image>
  16. <text class="btn-text" >编辑</text>
  17. </view>
  18. <view class="delete-btn btn ittflex" data-addressid="{{item.addressId}}" bindtap="handleDelAddres">
  19. <image class="btn-icon" src="./../../imaes/shanchu@2x.png"></image>
  20. <text class="btn-text">删除</text>
  21. </view>
  22. </view>
  23. </view>
  24. </block>
  25. <block wx:if="{{outRangAddresList.length != 0}}" wx:key="index">
  26. <view class="outrang-text">超预约范围地址:</view>
  27. <view class="addrss-item out-rang-address-item addrss-item-disabled" wx:for="{{outRangAddresList}}" wx:key="index">
  28. <view class="top userinfo">
  29. <view class="username ittflex-jcs">
  30. <text class="name">{{item.contactName}}</text>
  31. <text class="phone">{{item.contactPhone}}</text>
  32. </view>
  33. <view class="address-detail">{{item.province}}{{item.city}}{{item.county}}{{item.detailAddress}}</view>
  34. </view>
  35. <view class="actions button ittflex">
  36. <view class="edit-btn btn ittflex" data-item="{{item}}" bindtap="handleEdit">
  37. <image class="btn-icon" src="./../../imaes/bianji@2x.png"></image>
  38. <text class="btn-text" >编辑</text>
  39. </view>
  40. <view class="delete-btn btn ittflex" data-addressid="{{item.addressId}}" bindtap="handleDelAddres">
  41. <image class="btn-icon" src="./../../imaes/shanchu@2x.png"></image>
  42. <text class="btn-text">删除</text>
  43. </view>
  44. </view>
  45. </view>
  46. </block>
  47. </view>
  48. <block wx:if="{{allAddressList.length == 0}}">
  49. <view class="nodate" >
  50. <van-empty description="暂无数据" />
  51. </view>
  52. </block>
  53. <view class="add-address-btn itt-btn" bindtap="handleAddressAdd">新增检测地址</view>
  54. </view>