From d4c54ecbe5be111cd01c423290749042f80f3975 Mon Sep 17 00:00:00 2001 From: H1d3rOne Date: Sun, 8 Mar 2026 09:21:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=A2=85=E8=8A=B1?= =?UTF-8?q?=E6=98=93=E6=95=B0API=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在api.js中添加meihuaApi - 支持梅花易数排盘API调用 - 修复梅花易数模块点击测算报错问题 --- xuan-deduct-uniapp/src/utils/api.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/xuan-deduct-uniapp/src/utils/api.js b/xuan-deduct-uniapp/src/utils/api.js index c6dcb5a..4669c1b 100644 --- a/xuan-deduct-uniapp/src/utils/api.js +++ b/xuan-deduct-uniapp/src/utils/api.js @@ -173,6 +173,30 @@ const taLuoApi = { } } +const meihuaApi = { + paiPan: (data) => { + return request({ + url: '/meihua/paipan', + method: 'POST', + data: { + name: data.name || '某人', + occupy: data.occupy || '某事', + sex: data.sex || 1, + date: data.date, + dateType: data.dateType || 0, + leapMonthType: data.leapMonthType || 0, + xuShiSuiType: data.xuShiSuiType || 0, + jieQiType: data.jieQiType || 1, + yearGanZhiType: data.yearGanZhiType || 2, + monthGanZhiType: data.monthGanZhiType || 1, + dayGanZhiType: data.dayGanZhiType || 0, + paiPanType: data.paiPanType || 0, + shu: data.shu || 0 + } + }) + } +} + const recordApi = { save: (data) => { return request({ @@ -312,6 +336,7 @@ export default { ziweiApi, zhanxingApi, taLuoApi, + meihuaApi, recordApi, toolApi, userApi,