From 53ca1cd851388fb71a1fee2d2c0355cd40485dd5 Mon Sep 17 00:00:00 2001 From: YiLin <482244139@qq.com> Date: Thu, 6 Aug 2026 18:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E4=B8=AD=E7=9A=84=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E3=80=82=E4=B8=8D=E8=BF=87=E6=BB=A4=E8=A1=A8=E5=8D=95=E5=B7=A5?= =?UTF-8?q?=E5=85=B7yxd=5Ftool=5Fname":=20"sendFrom"=EF=BC=8C=E6=B0=94?= =?UTF-8?q?=E6=B3=A1=E6=B8=B2=E6=9F=93=E8=A1=A8=E5=8D=95=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Chat/Chat.css | 88 ++++++ pages/Chat/Chat.vue | 153 ++++++++-- unpackage/dist/dev/app-plus/app-service.js | 286 ++++++++++++++---- .../dist/dev/app-plus/pages/Chat/Chat.css | 76 +++++ .../dist/dev/app-plus/pages/text/text.css | 76 +++++ utils/cloud-api.js | 2 +- 6 files changed, 596 insertions(+), 85 deletions(-) diff --git a/pages/Chat/Chat.css b/pages/Chat/Chat.css index ee07b11..204e5b3 100644 --- a/pages/Chat/Chat.css +++ b/pages/Chat/Chat.css @@ -755,6 +755,94 @@ color: rgba(255, 255, 255, 0.7); } +/* sendFrom 工具表单卡片 */ +.chat-content-assistant .tool-form-card { + margin: -8rpx -12rpx; +} + +.tool-form-card { + background: #f8f9fc; + border-radius: 20rpx; + padding: 32rpx 24rpx; + border: 1rpx solid #e8ecf2; +} + +.tool-form-title { + font-size: 34rpx; + font-weight: 600; + color: #2c3e50; + margin-bottom: 16rpx; +} + +.tool-form-desc { + font-size: 28rpx; + color: #909399; + margin-bottom: 20rpx; +} + +.tool-form-fields { + display: flex; + flex-direction: column; + gap: 20rpx; +} + +.tool-form-text { + font-size: 28rpx; + color: #606266; + padding: 8rpx 0; +} + +.tool-form-field { + display: flex; + flex-direction: column; + gap: 10rpx; +} + +.tool-form-label { + font-size: 28rpx; + color: #303133; + font-weight: 500; +} + +.tool-form-input { + font-size: 28rpx; + color: #303133; + padding: 40rpx 20rpx; + background: #fff; + border-radius: 12rpx; + border: 1rpx solid #e4e7ed; + width: 100%; + box-sizing: border-box; +} + +.tool-form-textarea { + font-size: 28rpx; + color: #303133; + padding: 18rpx 20rpx; + background: #fff; + border-radius: 12rpx; + border: 1rpx solid #e4e7ed; + width: 100%; + box-sizing: border-box; + min-height: 100rpx; +} + +.tool-form-submit { + margin-top: 24rpx; + padding: 18rpx 0; + text-align: center; + background: linear-gradient(135deg, #667eea, #764ba2); + color: #fff; + font-size: 30rpx; + font-weight: 500; + border-radius: 14rpx; +} + +.tool-form-submitted { + background: #c0c4cc; + color: #fff; +} + /* ==========聊天输入容器部分========== */ .chat-interactive-container { diff --git a/pages/Chat/Chat.vue b/pages/Chat/Chat.vue index 3be88c3..003e919 100644 --- a/pages/Chat/Chat.vue +++ b/pages/Chat/Chat.vue @@ -140,8 +140,8 @@