Feat(AI):用户提问增加复制按钮

This commit is contained in:
lifizer
2025-07-23 16:13:20 +08:00
parent 7984854b2b
commit 5ea0b9f994
3 changed files with 35 additions and 1 deletions
+10
View File
@@ -33,6 +33,16 @@
{{ item.prompt }}
</view>
</view>
<view class="item-right-tools">
<view class="btn" @click="copyContentHandle(item.prompt)">
<image
:src="webUrl + '/aiChat/icon-02.png'"
class="icon"
mode="widthFix"
/>
复制
</view>
</view>
</view>
<view v-if="item.type === -2" class="chat-message-body">
<view class="avatar">
+10
View File
@@ -173,6 +173,16 @@
{{ item.prompt }}
</view>
</view>
<view class="item-right-tools">
<view class="btn" @click="copyContentHandle(item.prompt)">
<image
:src="webUrl + '/aiChat/icon-02.png'"
class="icon"
mode="widthFix"
/>
复制
</view>
</view>
</view>
<view v-if="item.type === -2" class="chat-message-body">
<view class="avatar">
+15 -1
View File
@@ -471,7 +471,7 @@ page {
.txt {
max-width: 100%;
padding: 20rpx 32rpx;
border-radius: 40rpx 40rpx 0 40rpx;
border-radius: 40rpx 0 40rpx 40rpx;
box-sizing: border-box;
color: #fff;
font-size: 30rpx;
@@ -489,6 +489,20 @@ page {
}
}
}
.item-right-tools {
display: flex;
justify-content: flex-end;
padding: 20rpx 0 0 0;
.btn {
display: flex;
font-size: 24rpx;
.icon {
display: block;
width: 36rpx;
margin: 0 8rpx 0 0;
}
}
}
.bottom-btns {
position: relative;
display: flex;