address.wxml 1.4 KB
<view class="content">
  <view class="item" wx:for="{{list}}" wx:key data-id="{{item.id}}" data-n="{{item.name}}" data-tel="{{item.tel}}" data-a="{{item.area}}" data-ad="{{item.address}}" bindtap="selectAdddressFun">
    <view class="user_info">
      <view class="name">{{item.name}}</view>
      <view class="tel">{{item.tel}}</view>
      <view class="tel">{{item.b_tel||''}}</view>
      <view class="type" wx:if="{{item.mo == 1}}">默认</view>
    </view>
    <view class="address">
      {{item.area}} {{item.address}}
    </view>
    <view class="btn_box">
      <view class="check" data-id="{{item.id}}" data-index="{{index}}" wx:if="{{item.mo != 1}}" catchtap="mrAddressFun">
        <image wx:if="{{!item.check}}" src="/images/check.png" />
        <image wx:else src="/images/check@.png" /> 设为默认地址
      </view>
      <block>
        <view class="btn_item" data-id="{{item.id}}" catchtap="editAddressFun" data-item="{{item}}">
          <image src="/images/icon_60.png" style="width: 26rpx;height: 26rpx;" />编辑
        </view>
        <view class="btn_item" data-id="{{item.id}}" catchtap="delAddressFun">
          <image src="/images/icon_48.png" />删除
        </view>
      </block>
    </view>
  </view>
  <view class="empty" wx:if="{{list.length==0}}">暂无地址信息,请去添加</view>

</view>

<view class="add_btn_box">
  <view class="add_btn" bindtap="addFun">+ 添加收货地址</view>
</view>