feat: 选品广场购买结算返回原位
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user