+
{
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