feat: 选品广场购买结算返回原位

This commit is contained in:
2026-09-08 11:10:52 +08:00
parent a573a61be7
commit 34b2ac37b8
8 changed files with 1039 additions and 630 deletions
+11 -2
View File
@@ -62,8 +62,8 @@
>{{ state.pickUpInfo.name }}
<text class="phone">{{ state.pickUpInfo.phone }}</text>
</view>
<view class="line1">
{{ state.pickUpInfo.district }}{{ ', ' + state.pickUpInfo.description }}
<view class="line1 line2">
{{ formatPickUpAddress(state.pickUpInfo) }}
</view>
</view>
<view class="addressCon" v-else>
@@ -145,6 +145,15 @@
}
}
// 格式化自提门店地址,优先使用 address 字段
function formatPickUpAddress(info = {}) {
const address = info?.address || '';
if (address) return address;
const district = info?.district || '';
const description = info?.description || '';
return `${district}${description ? `, ${description}` : ''}`.trim();
}
// 收货方式切换
const switchDeliveryType = (type) => {
state.value.deliveryType = type;