代码修改

This commit is contained in:
qiuyuan 2025-09-08 09:40:27 +08:00
parent f1c6910a2b
commit ef8a1bc2b4
2 changed files with 26 additions and 3 deletions

View File

@ -1,5 +1,10 @@
<template> <template>
<view class="chat-container"> <view class="chat-container">
<!-- AI生成内容提示 -->
<view class="ai-notice">
<text class="ai-notice-text">内容由AI生成仅供参考</text>
</view>
<!-- 聊天消息区域 --> <!-- 聊天消息区域 -->
<scroll-view scroll-y :scroll-top="scrollTop" class="chat-messages" :scroll-with-animation="true" <scroll-view scroll-y :scroll-top="scrollTop" class="chat-messages" :scroll-with-animation="true"
@scroll="onScroll"> @scroll="onScroll">
@ -85,7 +90,7 @@
<!-- 输入区域 --> <!-- 输入区域 -->
<view class="chat-bottom"> <view class="chat-bottom">
<view class="" style="padding: 10px;"> <!-- <view class="" style="padding: 10px;">
<view class="aiTag" v-if="aiName==='生活咨询'" @click="sendMessageCeshi(0)"> <view class="aiTag" v-if="aiName==='生活咨询'" @click="sendMessageCeshi(0)">
最近雨季来了家里总是很潮湿有什么简单有效的除湿防霉小妙招吗 最近雨季来了家里总是很潮湿有什么简单有效的除湿防霉小妙招吗
</view> </view>
@ -95,7 +100,7 @@
<view class="aiTag" v-if="aiName==='膳食管家'" @click="sendMessageCeshi(2)"> <view class="aiTag" v-if="aiName==='膳食管家'" @click="sendMessageCeshi(2)">
我想开始减脂能为我设计一份适合上班族操作简单营养均衡的晚餐食谱吗 我想开始减脂能为我设计一份适合上班族操作简单营养均衡的晚餐食谱吗
</view> </view>
</view> </view> -->
<view class="chat-input"> <view class="chat-input">
<view class="" style="flex: 1;"> <view class="" style="flex: 1;">
<input class="input-field" placeholder="输入消息..." v-model="inputMsg" @confirm="sendMessage" <input class="input-field" placeholder="输入消息..." v-model="inputMsg" @confirm="sendMessage"
@ -566,6 +571,20 @@
</script> </script>
<style> <style>
/* AI生成内容提示样式 */
.ai-notice {
background-color: #fffbe6; /* 浅黄色背景 */
border-bottom: 1px solid #ffe58f; /* 底部边框 */
padding: 8px 15px;
text-align: center;
}
.ai-notice-text {
font-size: 14px;
color: #faad14; /* 橙色文字 */
font-weight: 500;
}
.chat-container { .chat-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -734,3 +753,6 @@
font-weight: bold; font-weight: bold;
} }
</style> </style>

View File

@ -638,6 +638,7 @@
// A // A
const app = getApp() const app = getApp()
app.globalData.applyInfo = applyInfo app.globalData.applyInfo = applyInfo
this.applyInfo = applyInfo
this.readShow=true this.readShow=true
} }
// //