|
|
@@ -8,25 +8,24 @@
|
|
|
<image src="https://oss.dayaedu.com/ktyq/1731839238916.png"></image>
|
|
|
<view class="empty-text">暂无收货地址</view>
|
|
|
</view>
|
|
|
- <view wx:for="{{ addressList }}" wx:key="index">
|
|
|
- <view class="address-item {{ item.id === id ? 'active' : '' }}" bind:tap="onSelectAddress" data-id="{{ item.id }}">
|
|
|
- <view class="item-title">
|
|
|
- {{ item.provinceName }}{{ item.cityName }}{{ item.regionName }}
|
|
|
- </view>
|
|
|
- <view class="detailAddress">
|
|
|
- {{ item.detailAddress }}
|
|
|
- </view>
|
|
|
- <view class="item-users">
|
|
|
- <view class="item-user">
|
|
|
- <text>{{ item.name }}</text>
|
|
|
- <text>{{ item.phoneNumber }}</text>
|
|
|
- </view>
|
|
|
- </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 wx:for="{{ addressList }}" wx:key="index" class="address-item {{ item.id === id ? 'active' : '' }}" bind:tap="onSelectAddress" data-id="{{ item.id }}">
|
|
|
+ <view class="item-title">
|
|
|
+ {{ item.provinceName }}{{ item.cityName }}{{ item.regionName }}
|
|
|
+ </view>
|
|
|
+ <view class="detailAddress">
|
|
|
+ {{ item.detailAddress }}
|
|
|
+ </view>
|
|
|
+ <view class="item-users">
|
|
|
+ <view class="item-user">
|
|
|
+ <text>{{ item.name }}</text>
|
|
|
+ <text>{{ item.phoneNumber }}</text>
|
|
|
</view>
|
|
|
</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>
|
|
|
@@ -48,7 +47,7 @@
|
|
|
<van-field model:value="{{ name }}" label="收货人" placeholder="请填写收货人姓名" placeholder-style="color: #bbb" maxlength="50" />
|
|
|
<van-field model:value="{{ phoneNumber }}" label="电话号码" type="number" placeholder-style="color: #bbb" placeholder="请输入手机号码" maxlength="11" />
|
|
|
<van-field value="{{ provinceName ? provinceName + '/' + cityName + (regionName ? '/' + regionName : '' ) : '' }}" label="选择地区" placeholder-style="color: #bbb" placeholder="请选择省/市/区" readonly is-link bind:tap="onShowAreaList" />
|
|
|
- <van-field wx:if="{{ showTextarea }}" model:value="{{ detailAddress }}" label="详细地址" type="textarea" placeholder-style="color: #bbb" placeholder="请填写小区/楼号/单元/门牌号" cursor="{{ cursor }}" autosize maxlength="100" border="{{ false }}" />
|
|
|
+ <van-field wx:if="{{ showTextarea }}" model:value="{{ detailAddress }}" label="详细地址" type="textarea" placeholder-style="color: #bbb" placeholder="请填写小区/楼号/单元/门牌号" cursor="{{ cursor }}" autosize="{{ { maxHeight: 80, minHeight: 30 } }}" maxlength="100" border="{{ false }}" />
|
|
|
</van-cell-group>
|
|
|
|
|
|
<view class="pop-btn-group">
|