From 8dc6e8052606d7bed856f47fbdd773640d8cdc16 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 30 Jul 2025 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=20&&=20=E5=A2=9E=E5=8A=A0=E9=A2=86=E5=88=B8=E4=BC=A0?= =?UTF-8?q?=E5=9F=8E=E5=B8=82=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PopGetAllowance.vue | 4 +++- src/pages/Home.vue | 6 +++--- src/pages/Item.vue | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/PopGetAllowance.vue b/src/components/PopGetAllowance.vue index 2ebf996..c261d12 100644 --- a/src/components/PopGetAllowance.vue +++ b/src/components/PopGetAllowance.vue @@ -75,6 +75,7 @@ const props = defineProps({ showPop: { type: Boolean, default: false }, // 控制弹窗的显示和隐藏 coupons: { type: Object, default: () => ({}) }, // 补贴信息 detail: { type: Object, default: () => ({}) }, // 补贴信息 + cityInfo: { type: Object, default: () => ({})}, // 城市信息 }) // Ensure slot 'value' is called inside template/render function const mobile = ref(''); @@ -165,7 +166,8 @@ const bindPostCoupon = async () => { const result = await api.post('/auto/car/coupon', { mobile: mobile.value, code: code.value, - couponId: props.coupons.coupon_id + couponId: props.coupons.coupon_id, + cityId: props.cityInfo.cityId }); if (result.code === 200) { diff --git a/src/pages/Home.vue b/src/pages/Home.vue index fe5c3af..a77e62c 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -43,7 +43,7 @@