|
|
@@ -11,12 +11,12 @@
|
|
|
<view class='item' :class='active == index ? "active" : ""'
|
|
|
v-for="(item, index) in addressList" @tap='tapAddress(index, item.id)' :key='index'>
|
|
|
<view class='address'>
|
|
|
- <view class='address-t'>{{ item.province }}{{ item.city }}{{ item.district }}{{ item.detail }}</view>
|
|
|
+ <view class='address-t'><text>{{ item.province }}{{ item.city }}{{ item.district }}{{ item.detail }}</text><view v-if="item.isDefault" class="default">默认</view></view>
|
|
|
<view class='name'>{{ item.realName }}<text class='phone'>{{
|
|
|
item.phone }}</text></view>
|
|
|
|
|
|
</view>
|
|
|
- <view v-if="active == index" class="default">默认</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 无地址 -->
|
|
|
@@ -186,6 +186,7 @@ function fetchAddressList() {
|
|
|
border-radius: 8rpx;
|
|
|
text-align: center;
|
|
|
line-height: 40rpx;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
.address-window .list .item .address .name {
|
|
|
@@ -200,6 +201,10 @@ function fetchAddressList() {
|
|
|
}
|
|
|
.address-t {
|
|
|
font-weight: bold;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: start;
|
|
|
+ flex-wrap: nowrap;
|
|
|
}
|
|
|
.addressBnt-btn {
|
|
|
padding: 22rpx 32rpx;
|