From b65ffcdb1ed5ef8ccb980d7772de24ebb931cc3a Mon Sep 17 00:00:00 2001 From: H1d3rOne Date: Sat, 7 Mar 2026 18:42:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E6=89=80=E6=9C=89=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=B7=BB=E5=8A=A0=E8=BE=93=E5=85=A5=E6=A1=86=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 八字模块:姓名、日期、时间、性别校验 - 六爻模块:姓名、占事、日期、时间校验 - 梅花模块:姓名、占事、日期、时间校验 - 奇门模块:姓名、占事、日期、时间校验 - 大六壬模块:姓名、占事、日期、时间校验 - 占星模块:姓名、日期、时间、出生地点校验 - 塔罗模块:问题校验 --- .../src/pages/daliuren/daliuren.vue | 36 +++++++++++++++++++ .../src/pages/liuyao/liuyao.vue | 36 +++++++++++++++++++ .../src/pages/meihua/meihua.vue | 36 +++++++++++++++++++ xuan-deduct-uniapp/src/pages/qimen/qimen.vue | 36 +++++++++++++++++++ xuan-deduct-uniapp/src/pages/taluo/taluo.vue | 9 +++++ .../src/pages/zhanxing/zhanxing.vue | 36 +++++++++++++++++++ 6 files changed, 189 insertions(+) diff --git a/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue b/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue index 4c57f1c..7b24220 100644 --- a/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue +++ b/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue @@ -139,6 +139,42 @@ export default { async calculate() { if (this.loading) return + if (!this.name || this.name.trim() === '') { + uni.showToast({ + title: '请输入姓名', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.occupy || this.occupy.trim() === '') { + uni.showToast({ + title: '请输入占事', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.solarDate) { + uni.showToast({ + title: '请选择占卜日期', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthTime) { + uni.showToast({ + title: '请选择占卜时间', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({ diff --git a/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue b/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue index 487c580..dd5d779 100644 --- a/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue +++ b/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue @@ -135,6 +135,42 @@ export default { async calculate() { if (this.loading) return + if (!this.name || this.name.trim() === '') { + uni.showToast({ + title: '请输入姓名', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.occupy || this.occupy.trim() === '') { + uni.showToast({ + title: '请输入占事', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.solarDate) { + uni.showToast({ + title: '请选择占卜日期', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthTime) { + uni.showToast({ + title: '请选择占卜时间', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({ diff --git a/xuan-deduct-uniapp/src/pages/meihua/meihua.vue b/xuan-deduct-uniapp/src/pages/meihua/meihua.vue index 3be1e3e..460e696 100644 --- a/xuan-deduct-uniapp/src/pages/meihua/meihua.vue +++ b/xuan-deduct-uniapp/src/pages/meihua/meihua.vue @@ -153,6 +153,42 @@ export default { async calculate() { if (this.loading) return + if (!this.name || this.name.trim() === '') { + uni.showToast({ + title: '请输入姓名', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.occupy || this.occupy.trim() === '') { + uni.showToast({ + title: '请输入占事', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.solarDate) { + uni.showToast({ + title: '请选择占卜日期', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthTime) { + uni.showToast({ + title: '请选择占卜时间', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({ diff --git a/xuan-deduct-uniapp/src/pages/qimen/qimen.vue b/xuan-deduct-uniapp/src/pages/qimen/qimen.vue index 2794b9b..242813e 100644 --- a/xuan-deduct-uniapp/src/pages/qimen/qimen.vue +++ b/xuan-deduct-uniapp/src/pages/qimen/qimen.vue @@ -171,6 +171,42 @@ export default { async calculate() { if (this.loading) return + if (!this.name || this.name.trim() === '') { + uni.showToast({ + title: '请输入姓名', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.occupy || this.occupy.trim() === '') { + uni.showToast({ + title: '请输入占事', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.solarDate) { + uni.showToast({ + title: '请选择占卜日期', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthTime) { + uni.showToast({ + title: '请选择占卜时间', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({ diff --git a/xuan-deduct-uniapp/src/pages/taluo/taluo.vue b/xuan-deduct-uniapp/src/pages/taluo/taluo.vue index 95950ee..0807b35 100644 --- a/xuan-deduct-uniapp/src/pages/taluo/taluo.vue +++ b/xuan-deduct-uniapp/src/pages/taluo/taluo.vue @@ -78,6 +78,15 @@ export default { async startDivine() { if (this.loading) return + if (!this.question || this.question.trim() === '') { + uni.showToast({ + title: '请输入您的问题', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({ diff --git a/xuan-deduct-uniapp/src/pages/zhanxing/zhanxing.vue b/xuan-deduct-uniapp/src/pages/zhanxing/zhanxing.vue index 1d92336..4621eb6 100644 --- a/xuan-deduct-uniapp/src/pages/zhanxing/zhanxing.vue +++ b/xuan-deduct-uniapp/src/pages/zhanxing/zhanxing.vue @@ -91,6 +91,42 @@ export default { async calculate() { if (this.loading) return + if (!this.name || this.name.trim() === '') { + uni.showToast({ + title: '请输入姓名', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.solarDate) { + uni.showToast({ + title: '请选择出生日期', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthTime) { + uni.showToast({ + title: '请选择出生时间', + icon: 'none', + duration: 2000 + }) + return + } + + if (!this.birthPlace || this.birthPlace.trim() === '') { + uni.showToast({ + title: '请输入出生地点', + icon: 'none', + duration: 2000 + }) + return + } + this.loading = true uni.showLoading({