From 437144f41c74505d362a5214a18cec3d01b3ce4b Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 10 十月 2022 17:51:30 +0800
Subject: [PATCH] 2022.10.10
---
pages/m_consult/consultonline/consultonline.js | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/pages/m_consult/consultonline/consultonline.js b/pages/m_consult/consultonline/consultonline.js
index 1ffaf9f..4ff59c9 100644
--- a/pages/m_consult/consultonline/consultonline.js
+++ b/pages/m_consult/consultonline/consultonline.js
@@ -28,7 +28,9 @@
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
*/
onLoad(options) {
-
+ this.setData({
+ userId: app.globalData.accessToken.userId
+ })
},
clearInput() {
@@ -54,6 +56,9 @@
type: 0,
text: this.data.value,
})
+ console.log('-----------chat------------------');
+ console.log(record);
+ console.log(this.data.userId);
this.lastKeyword = this.data.value
this.setData({
record,
@@ -110,7 +115,7 @@
userId: 'system',
userName: '鏅鸿兘瀹㈡湇',
type: 0,
- text: '涓嶅ソ鎰忔�濓紝鏆傛棤鐩稿叧瑙g瓟锛岃璇曡瘯鍏朵粬鍏抽敭璇�'
+ text: '鎶辨瓑锛屾垜杩樹笉鐞嗚В鎮ㄧ殑鎰忔�濄�傝灏濊瘯閲嶆柊鍜ㄨ銆�'
})
} else {
record.push({
@@ -119,9 +124,12 @@
userId: 'system',
userName: '鏅鸿兘瀹㈡湇',
type: 0,
- text: '灏忕櫧缁欐偍鎻愪緵鍙傝�冨涓�'
+ text: '灏忕櫧缁欐偍鎻愪緵鍙傝�冨涓嬶細'
})
const map = new Map()
+ results.sort((a, b) => {
+ return b.typeId - a.typeId
+ })
results.forEach(r => {
if (!map.has(r.typeName)) {
r.keyword = this.lastKeyword
--
Gitblit v1.9.3