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;