JMApp/pages/myAddress/myAddress.wxml
2025-04-05 23:47:00 +08:00

28 lines
1.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<page-loding wx:if="{{showLoding}}"></page-loding>
<view class="{{types=='voucher'?'container voucher-container':'container'}}">
<view class="list-box">
<view catchtap="select" class="item" data-id="{{item.id}}" data-index="{{index}}" wx:for="{{data}}" wx:key="index">
<view class="text">
<view class="name">{{item.username}}{{item.telnumber}}</view>
<view class="address"> {{item.provincename+item.cityname+item.countryname+' '+item.detailinfo}} </view>
</view>
<view class="footer">
<view catchtap="setDefault" class="btn" data-id="{{item.id}}" data-index="{{index}}" data-isdefault="{{item.isdefault}}">
<icon color="#ff6600" size="18" type="success" wx:if="{{item.isdefault}}"></icon>
<view class="icon" wx:if="{{!item.isdefault}}"></view> 设为默认 </view>
<view class="r">
<view catchtap="openEdit" class="btn" data-uniqid="{{item.id}}">
<image src="/img/edit.png"></image> 编辑 </view>
<view catchtap="delAddress" class="btn" data-id="{{item.id}}" data-index="{{index}}">
<image src="/img/delete.png"></image> 删除 </view>
</view>
</view>
</view>
</view>
<view class="no-content" wx:if="{{data.length==0&&!loading}}">
<image src="/img/nocontent.png"></image>
<view>赶紧新增地址吧</view>
</view>
<view bindtap="openEdit" class="scan-btn"> 新增地址 </view>
</view>