From 6ae771ecf0f9598c84f2615fca0a299ecf9c445d Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 23 Jun 2026 14:14:24 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E4=BA=91=E7=81=B5AI):[#5368]=E6=9C=AA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=80=89=E9=A1=B9=E5=8D=A1=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E7=82=B9=E5=87=BB=E2=80=9C=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E2=80=9D=EF=BC=8C=E7=BC=BA=E5=B0=91=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixinsV2.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index d88bf43..bfbc696 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -784,6 +784,25 @@ export const chatMixinsV2 = { } }, nextGiftStep() { + const currentStep = this.giftBuyOptions[this.currentGiftStepIndex] + let hasSelection = false + + // 校验是否已选择 + if (currentStep.type === 'option_card') { + const selectedIds = this.giftSelections[currentStep.id] || [] + hasSelection = selectedIds.length > 0 + } else if (currentStep.type === 'price_input') { + hasSelection = !!this.giftBudget + } + + if (!hasSelection) { + uni.showToast({ + title: '请完善信息后再点击下一步', + icon: 'none' + }) + return + } + if (this.currentGiftStepIndex < this.giftBuyOptions.length - 1) { this.currentGiftStepIndex++ } else {