From ada0bc0ee9161e4f47fe9f1444893571c3a4ca56 Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Mon, 10 Mar 2025 15:09:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=95=E5=85=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dialog/index.vue | 120 +++++++++++++++++------ src/uni_modules/tmui/locale/zh-Hans.json | 3 +- 2 files changed, 94 insertions(+), 29 deletions(-) diff --git a/src/pages/dialog/index.vue b/src/pages/dialog/index.vue index b08a70c..aebfa4a 100644 --- a/src/pages/dialog/index.vue +++ b/src/pages/dialog/index.vue @@ -187,7 +187,7 @@
+
+ + {{ + state?.quoteInfo?.nickname + + ':' + + state?.quoteInfo?.extra?.content + }} + + + {{ + state?.quoteInfo?.nickname + + ':' + + '[' + + $t('msg.type') + + ']' + }} + + +
+
+
+ + +
- - -
@@ -401,6 +432,7 @@ const state = ref({ onfocusItem: null, sessionId: '', localPageLoadDone: true, //分页加载缓存中的聊天记录是否完毕 + quoteInfo: null, //引用信息 }) uniOnload((options) => { @@ -739,6 +771,12 @@ const multipleChoose = (item) => { const actionCite = (item) => { console.log('引用') + state.value.quoteInfo = item +} + +//清除引用信息 +const clearQuoteInfo = () => { + state.value.quoteInfo = null } const actionWithdraw = (item) => { @@ -938,6 +976,27 @@ onUnmounted(() => { .footBox { min-height: 162rpx; background-color: #fff; + + .quote-area { + margin: 4rpx 0 0 0; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + overflow: hidden; + width: 100%; + span { + display: -webkit-inline-box; + text-overflow: ellipsis; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + width: 100%; + } + img { + margin: 0 0 0 30rpx; + flex-shrink: 0; + } + } } .load-toolbar { @@ -1084,6 +1143,7 @@ onUnmounted(() => { text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical; + overflow: hidden; } } @@ -1140,6 +1200,10 @@ onUnmounted(() => { } .quillBox { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; :deep(.ql-clipboard) { position: relative; opacity: 0; diff --git a/src/uni_modules/tmui/locale/zh-Hans.json b/src/uni_modules/tmui/locale/zh-Hans.json index e2d6866..ad991eb 100644 --- a/src/uni_modules/tmui/locale/zh-Hans.json +++ b/src/uni_modules/tmui/locale/zh-Hans.json @@ -149,5 +149,6 @@ "button.multiple.choice": "多选", "button.text.close": "关闭", "choose.deps.all": "全部", - "choose.deps.current": "当前" + "choose.deps.current": "当前", + "msg.type": "图片" }