addressList.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <page-meta page-style="{{ addAddressPopupShow ? 'overflow: hidden;' : '' }}" style="height: 100vh;">
  2. <view class="memberList">
  3. <navigation-bar title="选择收货信息"></navigation-bar>
  4. <view class="appBg"></view>
  5. <scroll-view scroll-y class="memberListCon">
  6. <block wx:if="{{ addressList.length }}">
  7. <view wx:for="{{ addressList }}" wx:key="index" bind:tap="onSelect" data-item="{{ item }}" class="memberInfo {{ item.id === id?'active':'' }}">
  8. <view class="infoCon">
  9. <image class="tip" src="../orders/images/member.png" />
  10. <text class="name">{{item.name}}</text>
  11. <text class="phone">{{item.phoneNumber}}</text>
  12. </view>
  13. <view class="schoolInfoCon">
  14. <text class="schoolInfo">收货地址</text><text class="schoolInfoDes">{{
  15. item.provinceName + item.cityName + item.regionName + item.detailAddress
  16. }}
  17. </text>
  18. </view>
  19. <view class="operateCon">
  20. <view class="radio">
  21. <image wx:if="{{item.id === id}}" src="../login/images/radio-active.png"></image>
  22. <image wx:else src="../login/images/radio-default.png"></image>
  23. <text>{{ item.id === id ? "当前选中" : "未选中"}}</text>
  24. </view>
  25. <view class="operate">
  26. <view catch:tap="onDel" data-id="{{ item.id }}">删除</view>
  27. <view catch:tap="onEdit" data-id="{{ item.id }}">编辑</view>
  28. </view>
  29. </view>
  30. </view>
  31. </block>
  32. <view wx:else class="empty-box">
  33. <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
  34. <view class="empty-text">暂无内容</view>
  35. </view>
  36. </scroll-view>
  37. <view class="submitCon">
  38. <view class="subBtn" bind:tap="onAdd">
  39. <image src="../member/images/user.png" />
  40. 新增收货信息
  41. </view>
  42. </view>
  43. <view class="popup-section" wx:if="{{popupShow}}">
  44. <view class="popup-mask" bind:tap="onDialogClose"></view>
  45. <view class="popup-container">
  46. <view class="tit">请确认是否删除该收货信息</view>
  47. <view class="btnCon">
  48. <view bind:tap="onDialogClose">取消</view>
  49. <view bind:tap="onDialogOk">确认</view>
  50. </view>
  51. </view>
  52. </view>
  53. <addAddress editId="{{editId}}" popupShow='{{addAddressPopupShow}}' bind:addAddress="onAddAddress"></addAddress>
  54. </view>
  55. </page-meta>