From d395295aa017ab45d81786c65e9616bfef2110de Mon Sep 17 00:00:00 2001 From: lihanqi <13868246742@163.com> Date: Tue, 5 Aug 2025 18:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=A9=E7=A5=A8=E7=8C=AA=E6=89=8B1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lottery-app/src/api/index.js | 4 +- lottery-app/src/views/Home.vue | 87 ++++------------------- lottery-app/src/views/LineAnalysis.vue | 16 +++-- lottery-app/src/views/Register.vue | 62 ++++++++-------- lottery-app/src/views/SurfaceAnalysis.vue | 39 ++++++++-- 5 files changed, 90 insertions(+), 118 deletions(-) diff --git a/lottery-app/src/api/index.js b/lottery-app/src/api/index.js index 7f71745..21e8967 100644 --- a/lottery-app/src/api/index.js +++ b/lottery-app/src/api/index.js @@ -2,8 +2,8 @@ import axios from 'axios' // 创建axios实例 const api = axios.create({ - baseURL: 'http://localhost:8123/api', - // baseURL: 'https://www.jingcaishuju.com/api', + // baseURL: 'http://localhost:8123/api', + baseURL: 'https://www.jingcaishuju.com/api', timeout: 300000, // 5分钟超时时间(300秒) withCredentials: true, // 关键:支持跨域携带cookie和session headers: { diff --git a/lottery-app/src/views/Home.vue b/lottery-app/src/views/Home.vue index cb8d1ba..11f5e63 100644 --- a/lottery-app/src/views/Home.vue +++ b/lottery-app/src/views/Home.vue @@ -38,7 +38,6 @@ @click="formData.level = pos.value" >
您的第{{ formData.predictDrawId }}期推测号码已成功提交,祝您好运!
+您的第{{ formData.predictDrawId }}期推测号码已完成,祝您好运!
| {{resultData[0]?.latestDrawId || '-'}}期 | ||||||||||||
| 两号接续性系数 | +两号接续系数 | {{resultData[0]?.lineCoefficient || '-'}} | ||||||||||
| 同号组最高系数球号及系数 | - {{resultData[0]?.highestBall || '--'}} + {{resultData[0]?.highestBall || '--'}} {{resultData[0]?.highestCoefficient || '-'}} | |||||||||||
| 同号组最低系数球号及系数 | - {{resultData[0]?.lowestBall || '--'}} + {{resultData[0]?.lowestBall || '--'}} {{resultData[0]?.lowestCoefficient || '-'}} | |||||||||||
| 同号组平均系数 | -{{resultData[0]?.averageCoefficient || '-'}} | +{{ (resultData[0]?.averageCoefficient && Number(resultData[0].averageCoefficient).toFixed(2)) || '-' }} | ||||||||||
| 建议 | @@ -689,10 +689,14 @@ export default { .highlight-ball { color: #e74c3c; - font-weight: normal; + font-weight: bold; margin-right: 8px; } +.highlight-ball.blue-text { + color: #3498db; /* 蓝色文字 */ +} + .coefficient-value { font-weight: normal; color: #333; diff --git a/lottery-app/src/views/Register.vue b/lottery-app/src/views/Register.vue index f93c4be..0299c34 100644 --- a/lottery-app/src/views/Register.vue +++ b/lottery-app/src/views/Register.vue @@ -14,45 +14,45 @@
| {{resultData[0]?.latestDrawId || '-'}}期 | ||
| 两号组合性系数 | +两号组合系数 | {{resultData[0]?.faceCoefficient || '-'}} |
| 同号组最高系数球号及系数 | - {{resultData[0]?.highestBall || '--'}} + {{resultData[0]?.highestBall || '--'}} {{resultData[0]?.highestCoefficient || '-'}} | |
| 同号组最低系数球号及系数 | - {{resultData[0]?.lowestBall || '--'}} + {{resultData[0]?.lowestBall || '--'}} {{resultData[0]?.lowestCoefficient || '-'}} | |
| 同号组平均系数 | -{{resultData[0]?.averageCoefficient || '-'}} | +{{ (resultData[0]?.averageCoefficient && Number(resultData[0].averageCoefficient).toFixed(2)) || '-' }} |
| 建议 | @@ -287,7 +295,8 @@ export default { slaveBall: null, loading: false, result: null, - error: null + error: null, + selectionError: null } }, computed: { @@ -331,6 +340,7 @@ export default { this.slaveBall = null this.result = null this.error = null + this.selectionError = null }, getSelectionTitle() { @@ -383,15 +393,25 @@ export default { }, selectMasterBall(num) { + if (this.analysisType === 'red-red' && num === this.slaveBall) { + this.selectionError = '主球和随球不能是同一个号码' + return + } this.masterBall = num this.result = null this.error = null + this.selectionError = null }, selectSlaveBall(num) { + if (this.analysisType === 'red-red' && num === this.masterBall) { + this.selectionError = '主球和随球不能是同一个号码' + return + } this.slaveBall = num this.result = null this.error = null + this.selectionError = null }, async performAnalysis() { @@ -765,7 +785,12 @@ export default { .highlight-ball { color: #e74c3c; /* 红色文字 */ - font-weight: normal; + font-weight: bold; + margin-right: 2px; +} + +.highlight-ball.blue-text { + color: #3498db; /* 蓝色文字 */ } .coefficient-value {