bhd-components 0.7.24 → 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.
@@ -255,7 +255,17 @@ const CustomerService = (props)=>{
255
255
  useEffect(()=>{
256
256
  //老师的聊天窗口不发送打招呼信息
257
257
  let roomList = contactsList;
258
- // console.log(roomList,'dkfvdfkjvndfkjvdfv')
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
- greetingMessage
273
- ]); //hotQuestionsList
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;
@@ -56,9 +56,7 @@ const TeacherList = (props)=>{
56
56
  }
57
57
  http.get(`${urllocation}/chat-service/public/v1.0/teachers`, {
58
58
  params: {
59
- name: val,
60
- page: page.current,
61
- maxPageSize: 100000
59
+ name: val
62
60
  }
63
61
  }).then((res)=>{
64
62
  console.log(res);
@@ -257,7 +257,17 @@ var CustomerService = function(props) {
257
257
  useEffect(function() {
258
258
  //老师的聊天窗口不发送打招呼信息
259
259
  var roomList = contactsList;
260
- // console.log(roomList,'dkfvdfkjvndfkjvdfv')
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
- greetingMessage
275
- ]); //hotQuestionsList
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;
@@ -57,9 +57,7 @@ var TeacherList = function(props) {
57
57
  }
58
58
  http.get("".concat(urllocation, "/chat-service/public/v1.0/teachers"), {
59
59
  params: {
60
- name: val,
61
- page: page.current,
62
- maxPageSize: 100000
60
+ name: val
63
61
  }
64
62
  }).then(function(res) {
65
63
  console.log(res);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.7.24",
3
+ "version": "0.7.25",
4
4
  "description": "组件功能描述",
5
5
  "files": [
6
6
  "esm",