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" >
{{ pos.label }}
-
{{ pos.desc }}
@@ -176,31 +175,12 @@
- - 推测期号: + - - -
@@ -247,7 +227,7 @@
@@ -396,7 +376,7 @@
@@ -571,7 +551,7 @@
-

您的第{{ formData.predictDrawId }}期推测号码已成功提交,祝您好运!

+

您的第{{ formData.predictDrawId }}期推测号码已完成,祝您好运!

{{ String(formData.firstBall).padStart(2, '0') }} @@ -845,9 +825,9 @@ export default { showFinalBlueBallSelector: false, // 最终蓝球选择弹窗显示状态 steps: ['推测准备', '推测首球', '推测随球', '推测蓝球', '确定推测'], positions: [ - { value: 'H', label: '高位值', desc: '高位投注算法' }, - { value: 'M', label: '中位值', desc: '中位投注算法' }, - { value: 'L', label: '低位值', desc: '低位投注算法' } + { value: 'H', label: '高区位', desc: '高位投注算法' }, + { value: 'M', label: '中区位', desc: '中位投注算法' }, + { value: 'L', label: '低区位', desc: '低位投注算法' } ], formData: { level: '', @@ -868,7 +848,6 @@ export default { agreeToTerms: false, // 用户服务协议勾选状态 recentDrawIds: [], // 存储近10期开奖期号 drawIdOptions: [], // 用于el-select的选项 - predictDrawIdOptions: [], // 推测期号选项 latestDrawId: null // 最新开奖期号 } }, @@ -882,25 +861,13 @@ export default { this.loadFormDataFromCache() }, computed: { - predictDrawIdError() { - if (this.formData.predictDrawId && this.latestDrawId) { - if (parseInt(this.formData.predictDrawId, 10) <= parseInt(this.latestDrawId, 10)) { - return `推测期号必须晚于最新开奖期号 ${this.latestDrawId}`; - } - } - return ''; - }, canProceedStep1() { - const isPredictDrawIdValid = this.formData.predictDrawId && - this.latestDrawId && - parseInt(this.formData.predictDrawId, 10) > parseInt(this.latestDrawId, 10); - return this.userVerified && this.formData.level && this.formData.drawId && this.formData.lastRedBalls.every(ball => ball !== '') && this.formData.lastBlueBall && - isPredictDrawIdValid; + this.formData.predictDrawId; }, canProceedStep2() { return this.formData.firstBall && this.formData.followBalls.every(ball => ball !== '') @@ -1407,11 +1374,8 @@ export default { if (this.recentDrawIds.length > 0) { this.latestDrawId = this.recentDrawIds[0] const latestId = parseInt(this.latestDrawId, 10) - const options = [] - for (let i = 1; i <= 11; i++) { - options.push(String(latestId + i)) - } - this.predictDrawIdOptions = options + // 自动设置推测期号为最新一期的下一期 + this.formData.predictDrawId = String(latestId + 1) } } else { this.showMessage('获取期号失败', response.message, 'error') @@ -1682,7 +1646,6 @@ export default { .position-title { font-weight: 600; - margin-bottom: 8px; font-size: 16px; color: #333; transition: all 0.3s; @@ -1754,11 +1717,6 @@ export default { box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important; } -.blue-ball-display.selected { - background: linear-gradient(135deg, #4caf50, #66bb6a) !important; - box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3) !important; -} - .blue-option { background: #e3f2fd !important; color: #1976d2 !important; @@ -1799,11 +1757,6 @@ export default { box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4); } -.ball-number-display.selected { - background: linear-gradient(135deg, #4caf50, #66bb6a); - box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3); -} - .ball-number-display.disabled { background: linear-gradient(135deg, #e0e0e0, #bdbdbd); color: #999; @@ -1826,16 +1779,6 @@ export default { box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3) !important; } -/* 红球选中状态 */ -.red-balls-selector .ball-number-display.selected, -.first-ball-selector .ball-number-display.selected, -.follow-balls-selector .ball-number-display.selected, -.first-ball-display .ball-number-display.selected, -.selected-balls-selector .ball-number-display.selected { - background: linear-gradient(135deg, #4caf50, #66bb6a) !important; - box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3) !important; -} - /* 首球选择器样式 */ .first-ball-selector { display: flex; diff --git a/lottery-app/src/views/LineAnalysis.vue b/lottery-app/src/views/LineAnalysis.vue index 0fd8f0f..304e7fe 100644 --- a/lottery-app/src/views/LineAnalysis.vue +++ b/lottery-app/src/views/LineAnalysis.vue @@ -168,7 +168,7 @@
- {{masterBall}}号{{isMasterRed() ? '红' : '蓝'}}球与{{slaveBall}}号{{isSlaveRed() ? '红' : '蓝'}}球接续性分析报告 + {{masterBall}}号{{isMasterRed() ? '红' : '蓝'}}球与{{slaveBall}}号{{isSlaveRed() ? '红' : '蓝'}}球接续性分析报告
@@ -178,26 +178,26 @@ - + - + @@ -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 @@
+ />
{{ errors.username }}
+ />
{{ errors.nickname }}
+ />
{{ errors.phone }}
请输入11位手机号码
@@ -60,19 +60,19 @@
@@ -82,32 +82,32 @@
+ autocomplete="new-password" + @blur="validatePassword" + />
{{ errors.password }}
+ autocomplete="new-password" + @blur="validateConfirmPassword" + />
{{ errors.confirmPassword }}
diff --git a/lottery-app/src/views/SurfaceAnalysis.vue b/lottery-app/src/views/SurfaceAnalysis.vue index 66f2edd..b5330ea 100644 --- a/lottery-app/src/views/SurfaceAnalysis.vue +++ b/lottery-app/src/views/SurfaceAnalysis.vue @@ -65,6 +65,14 @@ +

{{ getSelectionTitle() }}

@@ -153,7 +161,7 @@
- {{masterBall}}号{{isMasterRed() ? '红' : '蓝'}}球与{{slaveBall}}号{{isSlaveRed() ? '红' : '蓝'}}球组合性分析报告 + {{masterBall}}号{{isMasterRed() ? '红' : '蓝'}}球与{{slaveBall}}号{{isSlaveRed() ? '红' : '蓝'}}球组合性分析报告
{{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)) || '-' }}
建议
@@ -163,26 +171,26 @@ - + - + @@ -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 {
{{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)) || '-' }}
建议