@@ -323,7 +323,8 @@ Page({ | |||
wx.closeSocket(); | |||
console.log('连接断开'); | |||
}, | |||
emotionChange: function () { | |||
emotionChange() { | |||
console.log(`测试打开表情`) | |||
this.setData({ | |||
emotionVisible: !this.data.emotionVisible | |||
}) |
@@ -87,7 +87,7 @@ | |||
placeholder="" | |||
bindconfirm="send" | |||
/> | |||
<image class="expression-msg-img" src="/images/home/expression-msg-icon.png" /> | |||
<image class="expression-msg-img" src="/images/home/expression-msg-icon.png" bind:tap="emotionChange"/> | |||
<image class="img-msg-img" src="/images/home/img-msg-icon.png" /> | |||
</view> | |||
<view class="emotions" wx:if="{{emotionVisible}}"> |