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