index.wxml 2.1 KB

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