提交 a5b93508 编写于 作者: DCloud_JSON's avatar DCloud_JSON

1.2.8

上级 acf15f83
## 1.2.8(2023-07-07)
- 优化 部分图标样式在,不同平台下,大小不一致的问题
## 1.2.7(2023-07-03) ## 1.2.7(2023-07-03)
- 【重要】修复 部分情况下 客户端未正确带上ai总结的内容的问题 - 【重要】修复 部分情况下 客户端未正确带上ai总结的内容的问题
## 1.2.6(2023-07-03) ## 1.2.6(2023-07-03)
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
</view> </view>
<view v-else>{{msgContent}}</view> <view v-else>{{msgContent}}</view>
<view class="menu-box" :class='{"menu-box-ai":msg.isAi}'> <view class="menu-box" :class='{"menu-box-ai":msg.isAi}'>
<text v-if="isLastMsg && msg.isAi" title="换一个答案" @click="changeAnswer" class="pointer change-answer"></text> <uni-icons v-if="isLastMsg && msg.isAi" title="换一个答案" @click="changeAnswer" color="#ccc" class="pointer change-answer" type="reload" size="16"></uni-icons>
<view @click="showMoreMenu = !showMoreMenu" class="more-icon-box"> <view @click="showMoreMenu = !showMoreMenu" class="more-icon-box">
<text class="more-icon pointer">...</text> <uni-icons class="more-icon pointer" size="12px" type="more-filled" color="#ccc"></uni-icons>
</view> </view>
<template v-if="showMoreMenu"> <template v-if="showMoreMenu">
<view class="more-menu"> <view class="more-menu">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<view class="copy-icon-a"></view> <view class="copy-icon-a"></view>
<view class="copy-icon-b"></view> <view class="copy-icon-b"></view>
</view> </view>
<uni-icons class="remove-msg pointer" @click="removeMsg" type="trash" size="20" color="#bbb"></uni-icons> <uni-icons class="remove-msg pointer" @click="removeMsg" type="trash" size="20" color="#ccc"></uni-icons>
</view> </view>
<view class="more-menu-mask" @click="showMoreMenu = false"></view> <view class="more-menu-mask" @click="showMoreMenu = false"></view>
</template> </template>
...@@ -236,7 +236,6 @@ ...@@ -236,7 +236,6 @@
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
} }
/* #endif */ /* #endif */
.userInfo { .userInfo {
...@@ -294,6 +293,8 @@ ...@@ -294,6 +293,8 @@
flex-direction: column; flex-direction: column;
height: 40px; height: 40px;
justify-content: flex-end; justify-content: flex-end;
/* #ifndef APP-NVUE */
/* #endif */
} }
.menu-box-ai { .menu-box-ai {
...@@ -302,14 +303,19 @@ ...@@ -302,14 +303,19 @@
} }
.change-answer { .change-answer {
font-size: 26px;
color: #d4d4d4;
height: 25px;
line-height: 15px;
margin-bottom: 5px; margin-bottom: 5px;
position: relative; position: relative;
left: 2px; transform: rotate(90deg);
} }
/* #ifdef H5 */
.uni-icons {
opacity: 0.6;
}
.uni-icons:hover{
opacity: 1;
}
/* #endif */
.pointer { .pointer {
cursor: pointer; cursor: pointer;
...@@ -326,19 +332,11 @@ ...@@ -326,19 +332,11 @@
.more-icon { .more-icon {
color: #d4d4d4; color: #d4d4d4;
transform: rotate(270deg); transform: rotate(90deg);
padding-top: 2px;
position: relative; position: relative;
left: -8px;
font-size: 16px; font-size: 16px;
z-index: 999; z-index: 999;
padding-bottom: 5px;
height: 10px;
}
.menu-box-ai .more-icon{
left: 7px;
top: -2px;
transform: rotate(90deg);
} }
.more-menu { .more-menu {
...@@ -398,17 +396,6 @@ ...@@ -398,17 +396,6 @@
.copy-icon:hover .copy-icon-b,{ .copy-icon:hover .copy-icon-b,{
border-color:#bbb; border-color:#bbb;
} }
.remove-msg {
position: relative;
opacity: 0.7;
}
.remove-msg:hover{
opacity: 1;
}
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
.content ::v-deep rich-text { .content ::v-deep rich-text {
......
{ {
"id": "uni-ai-chat", "id": "uni-ai-chat",
"name": "uni-ai-chat", "name": "uni-ai-chat",
"version": "1.2.7", "version": "1.2.8",
"description": "基于uni-ai的聊天示例项目,支持流式、支持前文总结,云端一体", "description": "基于uni-ai的聊天示例项目,支持流式、支持前文总结,云端一体",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
......
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
this.msgList.pop() this.msgList.pop()
this.updateLastMsg({ this.updateLastMsg({
// 防止 偶发答案涉及敏感,重复回答时。提问内容 被卡掉无法重新问 // 防止 偶发答案涉及敏感,重复回答时。提问内容 被卡掉无法重新问
illegal: false, illegal: false
}) })
// 多设备登录时其他设备看广告后点击重新回答,insufficientScore应当设置为 false // 多设备登录时其他设备看广告后点击重新回答,insufficientScore应当设置为 false
this.insufficientScore = false this.insufficientScore = false
......
static/remove.png

2.6 KB | W: | H:

static/remove.png

2.8 KB | W: | H:

static/remove.png
static/remove.png
static/remove.png
static/remove.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册