【BUG】修改结算页面选择地址后不计算订单金额的问题

pull/100/head
痴货 2024-09-10 20:18:51 +08:00
parent 82674b1104
commit dadc05da61
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,7 @@
default() {}, default() {},
} }
}); });
const emits = defineEmits(['update:modelValue']); const emits = defineEmits(['update:modelValue','change']);
// computed // computed
const state = computed({ const state = computed({
@ -106,12 +106,14 @@
if (state.value.deliveryType === 2){ if (state.value.deliveryType === 2){
state.value.pickUpInfo = addressInfo; state.value.pickUpInfo = addressInfo;
} }
emits('change')
} }
} }
// //
const switchDeliveryType = (type) =>{ const switchDeliveryType = (type) =>{
state.value.deliveryType = type; state.value.deliveryType = type;
emits('change')
} }
</script> </script>

View File

@ -1,7 +1,7 @@
<template> <template>
<s-layout title="确认订单"> <s-layout title="确认订单">
<!-- 头部地址选择配送地址自提地址 --> <!-- 头部地址选择配送地址自提地址 -->
<AddressSelection v-model="addressState" /> <AddressSelection v-model="addressState" @change="getOrderInfo()"/>
<!-- 商品信息 --> <!-- 商品信息 -->
<view class="order-card-box ss-m-b-14"> <view class="order-card-box ss-m-b-14">