index.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='address-management {{addressList.length < 1 && page > 1 ? "fff":""}}'>
  3. <!-- <view class='line'><image src='/images/line.jpg' wx:if="{{addressList.length}}"></image></view> -->
  4. <view class="addressa">
  5. <radio-group class="radio-group" bindchange="radioChange" wx:if="{{addressList.length}}">
  6. <view class='item' wx:for="{{addressList}}" data-index="{{index}}" wx:key>
  7. <view class='address' data-id="{{item.id}}" bindtap='goOrder'>
  8. <view class='consignee'>收货人:{{item.real_name}}<text class='phone'>{{item.phone}}</text></view>
  9. <view>收货地址:{{item.province}}{{item.city}}{{item.district}}{{item.detail}}</view>
  10. </view>
  11. <view class='operation acea-row row-between-wrapper'>
  12. <radio class="radio" value="{{index}}" checked="{{item.is_default ? true : false}}">
  13. <text>设为默认</text>
  14. </radio>
  15. <view class='acea-row row-middle'>
  16. <view data-id="{{item.id}}" bindtap='editAddress'><text class='iconfont icon-bianji'></text>编辑</view>
  17. <view data-index="{{index}}" bindtap='delAddress'><text class='iconfont icon-shanchu'></text>删除</view>
  18. </view>
  19. </view>
  20. </view>
  21. </radio-group>
  22. </view>
  23. <view class='loadingicon acea-row row-center-wrapper' wx:if="{{addressList.length}}">
  24. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  25. </view>
  26. <view class='noCommodity' wx:if="{{addressList.length < 1 && page > 1}}">
  27. <view class='pictrue'><image src='/images/noAddress.png'></image></view>
  28. </view>
  29. <view style='height:120rpx;'></view>
  30. <view class='footer acea-row row-between-wrapper'>
  31. <view class='addressBnt wxbnt' bindtap='getWxAddress'>导入微信地址</view>
  32. <view class='addressBnt bgcolora' bindtap='addAddress'>添加收货地址</view>
  33. </view>
  34. </view>
  35. <authorize bind:onLoadFun="onLoadFun"></authorize>