mineAddress.wxml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <!--index.wxml 我的地址 -->
  2. <view class="container {{hidden}}">
  3. <block wx:for="{{addressList}}" wx:key="index" wx:for-index="i">
  4. <view class="address_wrap">
  5. <view class="each_address" bindtap="editAddress" data-id="{{i}}" data-province="{{item.province}}" data-city="{{item.city}}" data-area="{{item.area}}" data-adress="{{item.adress}}" data-consignee="{{item.consignee}}" data-phone="{{item.phone}}">
  6. <!-- <block wx:if="{{selectnum == i}}">
  7. <image class="select_address" src="/images/address_pre.png"></image>
  8. </block> -->
  9. <block wx:if="{{item.adress_flag == 1}}">
  10. <image class="select_address" src="/images/address_pre.png"></image>
  11. </block>
  12. <view class="user_name">{{item.consignee}}<text>{{item.phone}}</text></view>
  13. <view class="user_addr">{{item.province}}{{item.city}}{{item.area}}{{item.adress}}</view>
  14. </view>
  15. <image data-deleteid="{{item.id}}" data-index="{{i}}" bindtap="deleteAddress" class="delete_address" src="/images/address_delete.png"></image>
  16. </view>
  17. </block>
  18. <navigator url="/pages/addAddress/addAddress" class="add_btn">+添加新地址</navigator>
  19. </view>