123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!--pages/address/index.wxml-->
- <view class="container">
- <navigation-bar title="收货地址"></navigation-bar>
- <scroll-view class="record-list" type="list" scroll-y>
- <view class="address-list">
- <view class="empty-box" wx:if="{{ addressList.length <= 0 }}">
- <image src="https://oss.dayaedu.com/ktyq/1739864764800.png"></image>
- <view class="empty-text">暂无收货地址</view>
- </view>
- <view wx:for="{{ addressList }}" wx:key="index" class="address-item" bind:tap="onSelectAddress" data-id="{{ item.id }}">
- <view class="item-users">
- <image src="./image/icon-checked.png" wx:if="{{ item.id === id }}" class="iconChecked"></image>
- <view class="item-user">
- <text class="username">{{ item.name }}</text>
- <text>{{ item.phoneNumber }}</text>
- </view>
- </view>
- <view class="detailAddress">
- {{ item.provinceName }}{{ item.cityName }}{{ item.regionName }}{{ item.detailAddress }}
- </view>
- <view class="item-btn-group">
- <button class="btn del-btn" catch:tap="onRemoveAddress" data-id="{{ item.id }}">删除</button>
- <button class="btn update-btn" catch:tap="onUpdateAddress" data-id="{{ item.id }}">修改</button>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="pop-btn-list">
- <button class="submit-btn" bind:tap="onShowAddress">添加新地址</button>
- </view>
- <van-popup round lock-scroll="{{true}}" z-index="{{102}}" show="{{showDialog}}">
- <view class="dialog-section">
- <!-- <view class="dialog-title">删除地址</view> -->
- <view class="dialog-content">确认删除该地址吗?</view>
- <view class="dialog-btn-group">
- <view class="btn" bind:tap="onDialogClose">取消</view>
- <view class="btn del-btn" bind:tap="onDialogConfirm">删除</view>
- </view>
- </view>
- </van-popup>
- </view>
|