addressList.wxml 1.9 KB

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