12345678910111213141516171819202122 |
- <view class="address-container">
- <view class="address-list" wx:if="{{addressList.length > 0}}">
- <block wx:for="{{addressList}}" wx:for-index="index" wx:for-item="address" wx:key="addressId">
- <t-addritem isDrawLine="{{index+1 !== addressList.length}}" extra-space="{{selectMode}}" address="{{address}}" data-id="{{address.id}}" bind:onSelect="selectHandle" bind:onDelete="deleteAddressHandle" bind:onEdit="editAddressHandle" />
- </block>
- </view>
- <view wx:else class="no-address">
- <t-empty icon="" description="暂无收货地址,赶快添加吧" />
- </view>
- <view class="bottom-fixed">
- <view class="btn-wrap">
- <view />
- <view class="address-btn {{addressList.length >= 20 ? 'btn-default':''}}" bind:tap="addAddress">
- <t-icon name="add" size="32rpx" color="#fff" t-class="custom-class" />
- <view style="font-size: 30rpx;">新建收货地址</view>
- </view>
- </view>
- <view class="footer" wx:if="{{addressList.length >= 20}}">最多支持添加20个收货地址</view>
- </view>
- </view>
- <t-toast id="t-toast" />
- <n-wait loading="{{wait}}" />
|