Browse Source

优化思考过程,增添时间用时

wangyi/feature-20251022162725-启动页登录注册
Ethereal 4 weeks ago
parent
commit
f954ec4130
  1. 95
      pages/deepMate/deepMate.vue

95
pages/deepMate/deepMate.vue

@ -138,31 +138,31 @@
class="loading-dots" class="loading-dots"
v-if="message.isThinking || !message.isUser" v-if="message.isThinking || !message.isUser"
> >
<div class="thinking-process">
<div class="thinking-header">
<div class="thinking-icon"></div>
<div class="thinking-title">深度思考 正在思考</div>
<div class="thinking-count">25 个结果</div>
<div class="thinking-toggle" @click="toggleThinking">
<span v-if="showThinking"></span>
<view class="thinking-process">
<view class="thinking-header">
<view class="thinking-icon"></view>
<view class="thinking-title">深度思考 正在思考</view>
<view class="thinking-count"></view>
<view class="thinking-toggle" @click="message.isThinking = !message.isThinking">
<span v-if=" message.isThinking"></span>
<span v-else></span> <span v-else></span>
</div>
</div>
<div v-show="showThinking" class="thinking-content">
<div class="thinking-item">
<div class="item-status">
</view>
</view>
<view v-show=" message.isThinking" class="thinking-content">
<view class="thinking-item">
<view class="item-status">
<span class="checkmark"></span> <span class="checkmark"></span>
</div>
<div class="item-text">问题分析完成</div>
</div>
<div class="thinking-item">
<div class="item-status">
</view>
<view class="item-text">问题分析完成</view>
</view>
<view class="thinking-item">
<view class="item-status">
<span class="checkmark"></span> <span class="checkmark"></span>
</div>
<div class="item-text">收集相关信息</div>
</div>
</div>
</div>
</view>
<view class="item-text">收集相关信息</view>
</view>
</view>
</view>
</view> </view>
<!-- 使用 rich-text 渲染 Markdown 内容 --> <!-- 使用 rich-text 渲染 Markdown 内容 -->
<rich-text <rich-text
@ -379,19 +379,21 @@ const simulateBotResponse = async (userMessage) => {
content: "", content: "",
isUser: false, isUser: false,
isTyping: true, isTyping: true,
isThinking: false,
isThinking: true,
}; };
messages.value.push(botMsg); messages.value.push(botMsg);
//
await new Promise(resolve => setTimeout(resolve, 10000));
const toDataInfo = await getDataInfo(); const toDataInfo = await getDataInfo();
console.log(toDataInfo); console.log(toDataInfo);
// dataInfo.value = toDataInfo.data; // dataInfo.value = toDataInfo.data;
// console.log(dataInfo.value); // console.log(dataInfo.value);
messages.value[messages.value.length - 1].isThinking = false;
setTimeout(() => {
}, 10000);
@ -402,43 +404,7 @@ const simulateBotResponse = async (userMessage) => {
// //
let responseText = `我已经收到您的消息: "${userMessage}" + "${toDataInfo.data}"`; let responseText = `我已经收到您的消息: "${userMessage}" + "${toDataInfo.data}"`;
// let responseText = `: "${userMessage}"
// ##
// ### : Tesla Inc. (TSLA)
// - ****: 448.980
// - ****: 23/10/2025
// - ****
// ###
// - **CFTL**: 线线绿
// - ****:
// - : 413.364
// - : 426.636
// - : 421.670
// - : 448.314
// - ****: AI线
// ###
// - ****:
// 1. 356.036 406.429 439.322
// 2.
// 3.
// ###
// - ****:
// -
// - ****:
// -
// -
// - ****:
// - ****: 60%
// - ****:
// - ****: 432.671~458.057
// - ****: 427.995~440.835`;
let index = 0; let index = 0;
const typeWriter = () => { const typeWriter = () => {
@ -1068,5 +1034,4 @@ function getDataInfo() {
.item-text { .item-text {
font-size: 24rpx; font-size: 24rpx;
color: #333; color: #333;
}
</style>
}</style>
Loading…
Cancel
Save