From f3bdf96f8c83957b0d49e58e801e56589805a246 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 9 Jul 2025 23:47:41 +0800 Subject: [PATCH] 2025-07-09 --- src/pages/MyAllowanceForm.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/pages/MyAllowanceForm.vue b/src/pages/MyAllowanceForm.vue index f942b78..4507992 100644 --- a/src/pages/MyAllowanceForm.vue +++ b/src/pages/MyAllowanceForm.vue @@ -5,6 +5,7 @@
+ { showToast('缺少补贴ID参数'); console.warn('补贴ID未找到,请检查路由参数'); } - await getGuideInfo() + await getGuideInfo(); + await getMobile(subsidyId.value); }); // API方法定义 - +const getMobile = async (subsidyId) => { + try { + const response = await api.get('/auto/ucenter/couponDetail', { id:subsidyId }); + if (response.code === 200) { + form.mobile = response.data.mobile; + } + } catch (error) { + console.error(error); + } +}; /** * 获取门店列表 * @param {number} cityId - 城市ID