addressList.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <view wx:for="{{ addressList }}" wx:key="index" bind:tap="onSelect" data-item="{{ item }}" class="memberInfo {{ item.id === id?'active':'' }}">
  7. <view class="infoCon">
  8. <image class="tip" src="../orders/images/member.png" />
  9. <text class="name">{{item.name}}</text>
  10. <text class="phone">{{item.phoneNumber}}</text>
  11. </view>
  12. <view class="schoolInfoCon">
  13. <text class="schoolInfo">收货地址</text><text class="schoolInfoDes">{{
  14. item.provinceName + item.cityName + item.regionName + item.detailAddress
  15. }}
  16. </text>
  17. </view>
  18. <view class="operateCon">
  19. <view class="radio">
  20. <image wx:if="{{item.id === id}}" src="../login/images/radio-active.png"></image>
  21. <image wx:else src="../login/images/radio-default.png"></image>
  22. <text>{{ item.id === id ? "当前选中" : "未选中"}}</text>
  23. </view>
  24. <view class="operate">
  25. <view catch:tap="onDel" data-id="{{ item.id }}">删除</view>
  26. <view catch:tap="onEdit" data-id="{{ item.id }}">编辑</view>
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. <view class="submitCon">
  32. <view class="subBtn" bind:tap="onAdd">
  33. <image src="../member/images/user.png" />
  34. 新增收货信息
  35. </view>
  36. </view>
  37. <view class="popup-section" wx:if="{{popupShow}}">
  38. <view class="popup-mask" bind:tap="onDialogClose"></view>
  39. <view class="popup-container">
  40. <view class="tit">请确认是否删除该收货信息</view>
  41. <view class="btnCon">
  42. <view bind:tap="onDialogClose">取消</view>
  43. <view bind:tap="onDialogOk">确认</view>
  44. </view>
  45. </view>
  46. </view>
  47. <addAddress editId="{{editId}}" popupShow='{{addAddressPopupShow}}' bind:addAddress="onAddAddress"></addAddress>
  48. </view>
  49. </page-meta>