consumer模块完成度95%,完成部署消费者端(外网可访问consumer.meitizs.com),消费者小程序能正常运行在微信开发者工具上
This commit is contained in:
@@ -433,6 +433,8 @@ const sendMessage = async () => {
|
||||
|
||||
// 清空输入框
|
||||
inputMessage.value = ''
|
||||
// 发送消息时确保收起表情面板
|
||||
showEmoji.value = false
|
||||
|
||||
// 发送到 Supabase
|
||||
if (merchantId.value != '') {
|
||||
@@ -461,12 +463,17 @@ const simulateCustomerReply = async () => {
|
||||
// 插入表情
|
||||
function insertEmoji(emoji: string): void {
|
||||
inputMessage.value += emoji
|
||||
showEmoji.value = false // 选中表情后收起表情列表
|
||||
inputFocus.value = true
|
||||
}
|
||||
|
||||
// 显示表情选择器
|
||||
function showEmojiPicker(): void {
|
||||
showEmoji.value = !showEmoji.value
|
||||
if (showEmoji.value) {
|
||||
// 如果打开表情,通常需要收起键盘
|
||||
uni.hideKeyboard()
|
||||
}
|
||||
}
|
||||
|
||||
// 显示图片选择器
|
||||
|
||||
Reference in New Issue
Block a user