From 579cbf7412e44465d4a601653909a6eebe8ae5fd Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 12 Mar 2025 09:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPage/chat/index.js | 8 +++++++- subPage/chat/index.wxml | 8 ++++++-- subPage/chat/index.wxss | 11 ++++++++--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/subPage/chat/index.js b/subPage/chat/index.js index 8bfb273..e2301fa 100644 --- a/subPage/chat/index.js +++ b/subPage/chat/index.js @@ -6,6 +6,7 @@ Page({ */ data: { eventType:'input',// 底部事件类型 input 键盘输入,voice 语音输入 + sendText:'',// 发送的输入框内容 list:[ { id:-1, @@ -152,7 +153,12 @@ Page({ let that = this; that.animate(); }, - + handleInput(e){ + let that = this; + that.setData({ + sendText:e.detail.value + }); + }, animate($type='light') { wx.vibrateShort({ diff --git a/subPage/chat/index.wxml b/subPage/chat/index.wxml index 93b1efb..12d8e70 100644 --- a/subPage/chat/index.wxml +++ b/subPage/chat/index.wxml @@ -74,7 +74,11 @@ - + 按住 说话 @@ -82,7 +86,7 @@ - + diff --git a/subPage/chat/index.wxss b/subPage/chat/index.wxss index dcdcde1..adca825 100644 --- a/subPage/chat/index.wxss +++ b/subPage/chat/index.wxss @@ -203,7 +203,12 @@ textarea { .chat-card{ padding: 0 10px; - margin-bottom: 10px; +} +.chat-card:nth-child(2n+1){ + margin-bottom: 2px; +} +.chat-card:nth-child(2n){ + margin-bottom: 12px; } .chat-card:last-child{ margin-bottom: 24px; @@ -233,13 +238,13 @@ textarea { margin-right: 12px; } .icon-active{ - color: #3578f6; + color: #3578f6 !important; } .g_w_all{ width: 100%; } .min80{ - min-width: 80vw; + min-width: calc(100vw - 44px); } .max80{ max-width: 80vw;