<view
  a:for="{{list}}"
  a:if="{{list.length}}"
>
  <view class="adc-list-content">
    <swipe-action
      data-index="{{index}}"
      autoClose="{{false}}"
      right="{{rightBtn}}"
      disabled="{{isChoose}}"
      speed="{{20}}"
      onRightButtonTap="onRightItemClick"
    >
      <view class="address-list-item" onTap="itemTap" data-index="{{index}}">
        <view class="item-row" style="aligin-item: space-between">
          <!-- 头部信息 -->
          <view class="item-info">
            {{(item.name || '') + ' ' + (item.mobile || '')}}
          </view>
          <!-- 默认标签 -->
          <view class="item-tag-container" a:if="{{item.isDefault}}">
            <view class="item-tag">
              默认
            </view>
          </view>
          <!-- 距离 -->
          <view class="item-distance" a:if="{{showDistance}}">
            距门店<text style="{{item.flag ? 'color: #ea0000' : ''}}">{{item.distance}}</text>
          </view>
          <!-- 编辑按钮 -->
          <view class="item-distance" data-index="{{index}}" catchTap="editItem" a:if="{{!isChoose}}">
            <am-icon type="EditSOutline" color="#333" size="x-small" />
          </view>
        </view>
        <view class="item-row">
          <view class="item-address">
            {{item.region.join('-') + ' ' + (item.address || '') + (item.addressNumber || '')}}
          </view>
        </view>
        <view class="item-row" a:if="{{showDistance && item.flag}}">
          <view class="item-warning">
            (可能超出配送距离)
          </view>
        </view>
      </view>
    </swipe-action>
  </view>
</view>