bhd-components 0.7.23 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{20de8af6.esm.es5.production.js → ddbb8964.esm.es5.production.js} +1 -1
- package/dist/{1188cc4c.esm.es5.development.js → ddd8b36f.esm.es5.development.js} +1 -1
- package/dist/index.esm.es5.development.css +505 -493
- package/dist/index.esm.es5.development.js +19 -13
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +16 -8
- package/es2017/customerService/index2.module.less +14 -1
- package/es2017/customerService/teacherList.js +1 -3
- package/esm/customerService/index.js +16 -8
- package/esm/customerService/index2.module.less +14 -1
- package/esm/customerService/teacherList.js +1 -3
- package/package.json +1 -1
|
@@ -255,7 +255,17 @@ const CustomerService = (props)=>{
|
|
|
255
255
|
useEffect(()=>{
|
|
256
256
|
//老师的聊天窗口不发送打招呼信息
|
|
257
257
|
let roomList = contactsList;
|
|
258
|
-
|
|
258
|
+
//发送打招呼信息
|
|
259
|
+
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
260
|
+
sendGreetingMessage(1);
|
|
261
|
+
scrollToBottom();
|
|
262
|
+
}
|
|
263
|
+
}, [
|
|
264
|
+
greetingMessage
|
|
265
|
+
]);
|
|
266
|
+
//默认有消息时,展示聊天窗口
|
|
267
|
+
useEffect(()=>{
|
|
268
|
+
let roomList = contactsList;
|
|
259
269
|
let count = 0;
|
|
260
270
|
roomList.map((item)=>{
|
|
261
271
|
count += item.unreadCount;
|
|
@@ -263,14 +273,9 @@ const CustomerService = (props)=>{
|
|
|
263
273
|
if (count > 0) {
|
|
264
274
|
setShowContacts(true);
|
|
265
275
|
}
|
|
266
|
-
//发送打招呼信息
|
|
267
|
-
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
268
|
-
sendGreetingMessage(1);
|
|
269
|
-
scrollToBottom();
|
|
270
|
-
}
|
|
271
276
|
}, [
|
|
272
|
-
|
|
273
|
-
]);
|
|
277
|
+
contactsList
|
|
278
|
+
]);
|
|
274
279
|
//查找需要复制的代码
|
|
275
280
|
const findCopyContent = (e)=>{
|
|
276
281
|
let source = findParent(e.target, styles.copyCode);
|
|
@@ -2555,6 +2560,9 @@ const CustomerService = (props)=>{
|
|
|
2555
2560
|
//发送截图信息
|
|
2556
2561
|
const sendScreenshotData = (message)=>{
|
|
2557
2562
|
if (contactsList.length > 0 && contactsList[0].roomId == roomId) {
|
|
2563
|
+
setKeyWord("");
|
|
2564
|
+
setCitationContent({});
|
|
2565
|
+
setBottomRecommendationQuestions([]);
|
|
2558
2566
|
setHistoryMessageList((historyMessageList)=>{
|
|
2559
2567
|
let newHistoryMessageList = historyMessageList.concat({
|
|
2560
2568
|
id: 'p' + new Date().getTime(),
|
|
@@ -428,6 +428,10 @@
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
.find_teacher_con{
|
|
432
|
+
color: @color-text-primary;
|
|
433
|
+
cursor: pointer;
|
|
434
|
+
}
|
|
431
435
|
}
|
|
432
436
|
.sign{
|
|
433
437
|
background-color: #1890ff;
|
|
@@ -1871,7 +1875,16 @@
|
|
|
1871
1875
|
}
|
|
1872
1876
|
}
|
|
1873
1877
|
}
|
|
1874
|
-
|
|
1878
|
+
//老师列表
|
|
1879
|
+
.teacher_list{
|
|
1880
|
+
.name{
|
|
1881
|
+
margin-bottom: 0!important;
|
|
1882
|
+
font-weight: 400 !important;
|
|
1883
|
+
.sign{
|
|
1884
|
+
color: @color-text-primary;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1875
1888
|
//截图功能
|
|
1876
1889
|
.screenshot_Modal{
|
|
1877
1890
|
position: fixed;
|
|
@@ -257,7 +257,17 @@ var CustomerService = function(props) {
|
|
|
257
257
|
useEffect(function() {
|
|
258
258
|
//老师的聊天窗口不发送打招呼信息
|
|
259
259
|
var roomList = contactsList;
|
|
260
|
-
|
|
260
|
+
//发送打招呼信息
|
|
261
|
+
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
262
|
+
sendGreetingMessage(1);
|
|
263
|
+
scrollToBottom();
|
|
264
|
+
}
|
|
265
|
+
}, [
|
|
266
|
+
greetingMessage
|
|
267
|
+
]);
|
|
268
|
+
//默认有消息时,展示聊天窗口
|
|
269
|
+
useEffect(function() {
|
|
270
|
+
var roomList = contactsList;
|
|
261
271
|
var count = 0;
|
|
262
272
|
roomList.map(function(item) {
|
|
263
273
|
count += item.unreadCount;
|
|
@@ -265,14 +275,9 @@ var CustomerService = function(props) {
|
|
|
265
275
|
if (count > 0) {
|
|
266
276
|
setShowContacts(true);
|
|
267
277
|
}
|
|
268
|
-
//发送打招呼信息
|
|
269
|
-
if (!(roomList.length > 0 && roomList[0].roomId != roomId && greetingMessage)) {
|
|
270
|
-
sendGreetingMessage(1);
|
|
271
|
-
scrollToBottom();
|
|
272
|
-
}
|
|
273
278
|
}, [
|
|
274
|
-
|
|
275
|
-
]);
|
|
279
|
+
contactsList
|
|
280
|
+
]);
|
|
276
281
|
//查找需要复制的代码
|
|
277
282
|
var findCopyContent = function(e) {
|
|
278
283
|
var source = findParent(e.target, styles.copyCode);
|
|
@@ -2604,6 +2609,9 @@ var CustomerService = function(props) {
|
|
|
2604
2609
|
//发送截图信息
|
|
2605
2610
|
var sendScreenshotData = function(message) {
|
|
2606
2611
|
if (contactsList.length > 0 && contactsList[0].roomId == roomId) {
|
|
2612
|
+
setKeyWord("");
|
|
2613
|
+
setCitationContent({});
|
|
2614
|
+
setBottomRecommendationQuestions([]);
|
|
2607
2615
|
setHistoryMessageList(function(historyMessageList) {
|
|
2608
2616
|
var newHistoryMessageList = historyMessageList.concat({
|
|
2609
2617
|
id: "p" + new Date().getTime(),
|
|
@@ -428,6 +428,10 @@
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
.find_teacher_con{
|
|
432
|
+
color: @color-text-primary;
|
|
433
|
+
cursor: pointer;
|
|
434
|
+
}
|
|
431
435
|
}
|
|
432
436
|
.sign{
|
|
433
437
|
background-color: #1890ff;
|
|
@@ -1871,7 +1875,16 @@
|
|
|
1871
1875
|
}
|
|
1872
1876
|
}
|
|
1873
1877
|
}
|
|
1874
|
-
|
|
1878
|
+
//老师列表
|
|
1879
|
+
.teacher_list{
|
|
1880
|
+
.name{
|
|
1881
|
+
margin-bottom: 0!important;
|
|
1882
|
+
font-weight: 400 !important;
|
|
1883
|
+
.sign{
|
|
1884
|
+
color: @color-text-primary;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1875
1888
|
//截图功能
|
|
1876
1889
|
.screenshot_Modal{
|
|
1877
1890
|
position: fixed;
|