From 671e4eedce45613a1c1f8383e50ddde9618fd413 Mon Sep 17 00:00:00 2001
From: yuanhao <yuanhao_2024>
Date: 星期五, 06 六月 2025 09:04:08 +0800
Subject: [PATCH] fix: 代码提交修改提示信息

---
 pages/aiQuestions/aiQuestions.vue |   58 +++++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 37 insertions(+), 21 deletions(-)

diff --git a/pages/aiQuestions/aiQuestions.vue b/pages/aiQuestions/aiQuestions.vue
index 5ecda57..3b04f89 100644
--- a/pages/aiQuestions/aiQuestions.vue
+++ b/pages/aiQuestions/aiQuestions.vue
@@ -54,18 +54,18 @@
 							<u-loading mode="circle" v-if="!item.aiLog" size="40" color="#0079FE"
 								class="u-m-r-10"></u-loading>
 							<u-collapse-item :open='true' :title="item.aiLog ? 'AI鎬濊�冨畬鎴�' : 'AI鎬濊�冧腑...'">
-								<view v-html="markdown.render(item.thinkLog)"></view>
+								<view style="font-size: 26rpx;"  v-html="markdown.render(item.thinkLog)"></view>
 							</u-collapse-item>
 						</u-collapse>
 						<view v-else-if="!item.aiLog" class="u-flex" style="color: #0079FE;">
 							<u-loading mode="circle" size="40" color="#0079FE" class="u-m-r-10"></u-loading>
 							AI鎬濊�冧腑路路路
 						</view>
-						<view v-html="markdown.render(item.aiLog)"></view>
+						<view style="font-size: 26rpx;"  v-html="markdown.render(item.aiLog)"></view>
 						<view class="file-list" v-if="item.docInfo.length&&item.isEnd">
-							<view class="one-file" v-for="(file,findex) in item.docInfo" :key='findex'>
+							<view class="one-file" @click="uploadFile(file)" v-for="(file,findex) in item.docInfo" :key='findex'>
 								<image :src="getImg(file.docFormat)" mode=""></image>
-								<text>{{file.docName}}</text>
+								<text style="font-size: 26rpx;">{{file.docName}}</text>
 							</view>
 						</view>
 						<view v-if="item.isEnd||item.logSound" class="u-flex u-p-h-10 function-box">
@@ -103,12 +103,12 @@
 			
 		<audio id="audio" src=""></audio>
 		<view class="btmbox" :class="{'isOn':showKnow}">
-			<view v-if="!voiceFlg" class="know-btn" :class="{'active-btn':showKnow}" @click="showKnow=true">
+			<!--  <view v-if="!voiceFlg" class="know-btn" :class="{'active-btn':showKnow}" @click="showKnow=true">
 				<view class="btn-box">
 					<image v-if="showKnow" src="/static/wd/book-open.png" mode=""></image>
 					<image v-else src="/static/wd/book.png" mode=""></image>
 				</view>
-			</view>
+			</view> -->
 			<view :class="['btm-btn',{'voice-btn':recording},{'voice-cancel-btn': voiceStop}]">
 				<block v-if="!recording">
 					<image v-if="voiceFlg" src="/static/wd/i03.png" mode="widthFix" class="btnimg2" @click="clickType"
@@ -130,8 +130,9 @@
 					<image src="/static/wd/i02.png" v-if="msg&&!isDisabled" class="btnimg" @click="tiWen"
 						mode="widthFix" alt=""></image>
 				</block>
-			</view>
+				</view>
 		</view>
+		<view class="tipsMsg"> 鍐呭鐢� AI 鐢熸垚锛屼粎渚涘弬鑰冿紝鎮ㄦ嵁姝ゆ墍浣滃垽鏂強鎿嶄綔鍧囩敱鎮ㄨ嚜琛屾壙鎷呰矗浠汇��</view>
 		<!--璁剧疆寮圭獥 -->
 		<u-popup v-model="showSet" mode='top' border-radius="20">
 			<view class='set-box'>
@@ -409,6 +410,9 @@
 			document.removeEventListener('contextmenu', this.noContextmenu)
 		},
 		methods: {
+			uploadFile(file) {
+				window.open(this.baseUrl + file.docPath)
+			},
 			chooseThisLLM(e) {
 				this.chooseLlm = e;
 			},
@@ -832,8 +836,9 @@
 				}
 				// 瑙g爜鏁版嵁鏁扮粍鐨勫墠鍗婇儴鍒嗭紝骞舵彁鍙栨枃妗D
 				const idStr = textDecoder.decode(dataArr.slice(0, idx)).trim()
-				const idArr = idStr.substring(idStr.indexOf("锛�") + 1).match(/\d+/g)
-				const docIds = idArr.join(',')
+				// const idArr = idStr.substring(idStr.indexOf("锛�") + 1).match(/\d+/g)
+				const idArr = idStr.substring(idStr.indexOf("锛�") + 1)
+				const docIds = idArr.split(',')
 				// 濡傛灉鏂囨。ID鏈夋晥涓斾笉涓�'0'锛屽垯鏌ヨ鏂囨。
 				if (docIds && docIds !== '0' && !this.suspend) {
 					// 鏍规嵁鏂囨。ID鍒楄〃鑾峰彇鏂囨。淇℃伅
@@ -855,7 +860,7 @@
 							// lastMsgBot.scrollIntoView(false)
 						})
 					})
-					return idArr.join(',')
+					return idArr.split(',')
 				}
 				return docIds
 			},
@@ -1132,6 +1137,7 @@
 	}
 </style>
 <style lang="scss" scoped>
+
 	// 璁剧疆寮圭獥
 	.set-box {
 		padding: 0 34rpx;
@@ -1165,7 +1171,7 @@
 					}
 
 					text {
-						font-size: 32rpx;
+						font-size: 26rpx;
 						color: #000000;
 						font-weight: 400;
 					}
@@ -1182,7 +1188,7 @@
 					}
 
 					text {
-						font-size: 32rpx;
+						font-size: 26rpx;
 						color: #000000;
 						font-weight: 400;
 					}
@@ -1205,7 +1211,7 @@
 			display: flex;
 			align-items: center;
 			justify-content: space-between;
-			font-size: 34rpx;
+			font-size: 30rpx;
 			color: #000000;
 			font-weight: 700;
 			line-height: 50rpx;
@@ -1247,7 +1253,7 @@
 
 					.details {
 						.know-name {
-							font-size: 32rpx;
+							font-size: 28rpx;
 							color: #000000;
 							line-height: 50rpx;
 							font-weight: 500;
@@ -1262,6 +1268,7 @@
 							display: inline-block;
 							line-height: 42rpx;
 							border-radius: 8rpx;
+							font-size: 28rpx;
 						}
 					}
 				}
@@ -1363,10 +1370,17 @@
 			}
 		}
 	}
-
+	.tipsMsg{
+		position: fixed;
+		bottom: 0rpx;
+		text-align: center;
+		color: #c0c4cc;
+		height: 80rpx;
+		font-size: 26rpx;
+	}
 	.btmbox {
 		position: fixed;
-		bottom: 0;
+		bottom: 80rpx;
 		height: 120rpx;
 		background-color: #F3F5F9;
 		display: flex;
@@ -1447,7 +1461,7 @@
 		border-radius: 10rpx;
 		background: #0AAFB0;
 		padding: 10rpx 18rpx;
-		font-size: 30rpx;
+		font-size: 28rpx;
 		color: white;
 		text-align: center;
 	}
@@ -1457,7 +1471,7 @@
 		flex-direction: row;
 		justify-content: flex-end;
 		width: 100%;
-
+		font-size: 26rpx;
 		.div {
 			background: linear-gradient(273deg, #2F7AFA 0.22%, #226FF4 99.8%);
 			color: #fff;
@@ -1466,6 +1480,7 @@
 			max-width: 100%;
 			padding: 12px 16px;
 			white-space: pre-wrap;
+			font-size: 26rpx;
 		}
 	}
 
@@ -1506,6 +1521,7 @@
 		background: #fff;
 		border-radius: 24rpx;
 		margin: 40rpx;
+		font-size: 26rpx;
 	}
 	.msgbox1 {
 		margin-bottom: 20rpx;
@@ -1564,7 +1580,7 @@
 				}
 
 				text {
-					font-size: 30rpx;
+					font-size: 26rpx;
 					color: #101828;
 					line-height: 50rpx;
 					font-weight: 400;
@@ -1720,7 +1736,7 @@
 			position: relative;
 			z-index: 2;
 			padding-top: 70rpx;
-			font-size: 32rpx;
+			font-size: 28rpx;
 			text-indent: 4em;
 		}
 
@@ -1747,7 +1763,7 @@
 
 				.top {
 					color: #000000;
-					font-size: 32rpx;
+					font-size: 28rpx;
 					font-weight: bold;
 
 					span {

--
Gitblit v1.9.1