bhd-components 0.6.7 → 0.6.8
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/dist/{4fa3313f.esm.es5.development.js → 12224038.esm.es5.development.js} +1 -1
- package/dist/{0acf50ef.esm.es5.production.js → 600075bb.esm.es5.production.js} +1 -1
- package/dist/index.esm.es5.development.css +730 -722
- package/dist/index.esm.es5.development.js +10 -14
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/es2017/customerService/index.js +7 -11
- package/es2017/customerService/index.module.less +6 -20
- package/es2017/customerService/index2.module.less +6 -20
- package/esm/customerService/index.js +7 -11
- package/esm/customerService/index.module.less +6 -20
- package/esm/customerService/index2.module.less +6 -20
- package/package.json +1 -1
|
@@ -100,7 +100,6 @@ const CustomerService = (props)=>{
|
|
|
100
100
|
const scrollHeight = container.scrollHeight;
|
|
101
101
|
// console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
|
|
102
102
|
if (clientHeight + scrollTop + 0.5 >= scrollHeight && pageNumHistory > 1) {
|
|
103
|
-
console.log("到底部了22222");
|
|
104
103
|
// if (pageNumHistory > 1) {
|
|
105
104
|
// console.log(pageNumHistory,'pageNumpageNumpageNum')
|
|
106
105
|
let number = pageNumHistory - 1;
|
|
@@ -110,26 +109,22 @@ const CustomerService = (props)=>{
|
|
|
110
109
|
if (number > 0) {
|
|
111
110
|
setBottomLoading(true);
|
|
112
111
|
getHistoryMessage(number, 4);
|
|
112
|
+
setLastId("");
|
|
113
113
|
} else {
|
|
114
114
|
setPageNumHistory(0);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, 1000);
|
|
117
117
|
// } else {
|
|
118
|
-
// setLastId("");
|
|
119
118
|
// }
|
|
120
119
|
}
|
|
121
120
|
if (scrollTop == 0 && pageCount > pageNum && pageCount > 0) {
|
|
122
121
|
console.log("到顶了", pageNum);
|
|
123
|
-
// if(pageNum == 1){
|
|
124
|
-
// setFirstpage(true);//代表是否存在第一页
|
|
125
|
-
// }
|
|
126
122
|
setLoading(true);
|
|
127
123
|
let number = pageNum + 1;
|
|
128
124
|
setPageNum((pageNum)=>{
|
|
129
125
|
return pageNum + 1;
|
|
130
126
|
});
|
|
131
127
|
listTimer.current = setTimeout(()=>{
|
|
132
|
-
console.log("下拉加载下一页", number);
|
|
133
128
|
getHistoryMessage(number, 2);
|
|
134
129
|
}, 1000);
|
|
135
130
|
}
|
|
@@ -793,9 +788,9 @@ const CustomerService = (props)=>{
|
|
|
793
788
|
return newHistoryMessageList2;
|
|
794
789
|
}
|
|
795
790
|
});
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
791
|
+
setTimeout(()=>{
|
|
792
|
+
scrollToBottom();
|
|
793
|
+
}, 10);
|
|
799
794
|
};
|
|
800
795
|
//问题记录到实验报告中
|
|
801
796
|
const testLabQuestion = (title, content, teachId)=>{
|
|
@@ -986,6 +981,7 @@ const CustomerService = (props)=>{
|
|
|
986
981
|
if (!lastId && originList != newList) {
|
|
987
982
|
setTimeout(()=>{
|
|
988
983
|
scrollToBottom();
|
|
984
|
+
readMessage(roomId, urllocation, userData, http);
|
|
989
985
|
}, 100);
|
|
990
986
|
}
|
|
991
987
|
}
|
|
@@ -2077,7 +2073,7 @@ const CustomerService = (props)=>{
|
|
|
2077
2073
|
let placeholder = "";
|
|
2078
2074
|
let disabled = false;
|
|
2079
2075
|
if (voiceRecordingStatus == 2) {
|
|
2080
|
-
placeholder = "
|
|
2076
|
+
placeholder = "正在录制语音,再次点击麦克风结束录制。";
|
|
2081
2077
|
} else if (voiceRecordingStatus == 1) {
|
|
2082
2078
|
placeholder = "正在语音识别文字,请稍后...";
|
|
2083
2079
|
} else if (!finished) {
|
|
@@ -181,12 +181,10 @@
|
|
|
181
181
|
width: 100%;
|
|
182
182
|
.main {
|
|
183
183
|
max-width: 80%;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
// }
|
|
189
|
-
// }
|
|
184
|
+
|
|
185
|
+
.main_content_flag{
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
190
188
|
.main_content_flag:hover{
|
|
191
189
|
.operate_modal {
|
|
192
190
|
// display: block;
|
|
@@ -195,21 +193,9 @@
|
|
|
195
193
|
}
|
|
196
194
|
.main_content {
|
|
197
195
|
position: relative;
|
|
198
|
-
|
|
199
|
-
// .operate_modal {
|
|
200
|
-
// // display: block;
|
|
201
|
-
// visibility: visible;
|
|
202
|
-
// }
|
|
203
|
-
// }
|
|
204
|
-
|
|
196
|
+
|
|
205
197
|
.content {
|
|
206
|
-
|
|
207
|
-
// .operate_modal {
|
|
208
|
-
// // display: block;
|
|
209
|
-
// visibility: visible;
|
|
210
|
-
// }
|
|
211
|
-
// }
|
|
212
|
-
|
|
198
|
+
|
|
213
199
|
max-width: 100%;
|
|
214
200
|
// width: 100%;
|
|
215
201
|
//以下优化ai返回的内容的样式
|
|
@@ -183,12 +183,10 @@
|
|
|
183
183
|
width: 100%;
|
|
184
184
|
.main {
|
|
185
185
|
max-width: 80%;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// }
|
|
191
|
-
// }
|
|
186
|
+
|
|
187
|
+
.main_content_flag{
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
192
190
|
.main_content_flag:hover{
|
|
193
191
|
.operate_modal {
|
|
194
192
|
// display: block;
|
|
@@ -197,21 +195,9 @@
|
|
|
197
195
|
}
|
|
198
196
|
.main_content {
|
|
199
197
|
position: relative;
|
|
200
|
-
|
|
201
|
-
// .operate_modal {
|
|
202
|
-
// // display: block;
|
|
203
|
-
// visibility: visible;
|
|
204
|
-
// }
|
|
205
|
-
// }
|
|
206
|
-
|
|
198
|
+
|
|
207
199
|
.content {
|
|
208
|
-
|
|
209
|
-
// .operate_modal {
|
|
210
|
-
// // display: block;
|
|
211
|
-
// visibility: visible;
|
|
212
|
-
// }
|
|
213
|
-
// }
|
|
214
|
-
|
|
200
|
+
|
|
215
201
|
max-width: 100%;
|
|
216
202
|
// width: 100%;
|
|
217
203
|
//以下优化ai返回的内容的样式
|
|
@@ -95,7 +95,6 @@ var CustomerService = function(props) {
|
|
|
95
95
|
var scrollHeight = container.scrollHeight;
|
|
96
96
|
// console.log(scrollTop,clientHeight,scrollHeight,'333dfkvmdfv')
|
|
97
97
|
if (clientHeight + scrollTop + 0.5 >= scrollHeight && pageNumHistory > 1) {
|
|
98
|
-
console.log("到底部了22222");
|
|
99
98
|
// if (pageNumHistory > 1) {
|
|
100
99
|
// console.log(pageNumHistory,'pageNumpageNumpageNum')
|
|
101
100
|
var number = pageNumHistory - 1;
|
|
@@ -105,26 +104,22 @@ var CustomerService = function(props) {
|
|
|
105
104
|
if (number > 0) {
|
|
106
105
|
setBottomLoading(true);
|
|
107
106
|
getHistoryMessage(number, 4);
|
|
107
|
+
setLastId("");
|
|
108
108
|
} else {
|
|
109
109
|
setPageNumHistory(0);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, 1000);
|
|
112
112
|
// } else {
|
|
113
|
-
// setLastId("");
|
|
114
113
|
// }
|
|
115
114
|
}
|
|
116
115
|
if (scrollTop == 0 && pageCount > pageNum && pageCount > 0) {
|
|
117
116
|
console.log("到顶了", pageNum);
|
|
118
|
-
// if(pageNum == 1){
|
|
119
|
-
// setFirstpage(true);//代表是否存在第一页
|
|
120
|
-
// }
|
|
121
117
|
setLoading(true);
|
|
122
118
|
var number1 = pageNum + 1;
|
|
123
119
|
setPageNum(function(pageNum) {
|
|
124
120
|
return pageNum + 1;
|
|
125
121
|
});
|
|
126
122
|
listTimer.current = setTimeout(function() {
|
|
127
|
-
console.log("下拉加载下一页", number1);
|
|
128
123
|
getHistoryMessage(number1, 2);
|
|
129
124
|
}, 1000);
|
|
130
125
|
}
|
|
@@ -812,9 +807,9 @@ var CustomerService = function(props) {
|
|
|
812
807
|
return newHistoryMessageList2;
|
|
813
808
|
}
|
|
814
809
|
});
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
810
|
+
setTimeout(function() {
|
|
811
|
+
scrollToBottom();
|
|
812
|
+
}, 10);
|
|
818
813
|
};
|
|
819
814
|
//问题记录到实验报告中
|
|
820
815
|
var testLabQuestion = function(title, content, teachId) {
|
|
@@ -1014,6 +1009,7 @@ var CustomerService = function(props) {
|
|
|
1014
1009
|
if (!lastId && originList != newList) {
|
|
1015
1010
|
setTimeout(function() {
|
|
1016
1011
|
scrollToBottom();
|
|
1012
|
+
readMessage(roomId, urllocation, userData, http);
|
|
1017
1013
|
}, 100);
|
|
1018
1014
|
}
|
|
1019
1015
|
}
|
|
@@ -2153,7 +2149,7 @@ var CustomerService = function(props) {
|
|
|
2153
2149
|
var placeholder = "";
|
|
2154
2150
|
var disabled = false;
|
|
2155
2151
|
if (voiceRecordingStatus == 2) {
|
|
2156
|
-
placeholder = "
|
|
2152
|
+
placeholder = "正在录制语音,再次点击麦克风结束录制。";
|
|
2157
2153
|
} else if (voiceRecordingStatus == 1) {
|
|
2158
2154
|
placeholder = "正在语音识别文字,请稍后...";
|
|
2159
2155
|
} else if (!finished) {
|
|
@@ -181,12 +181,10 @@
|
|
|
181
181
|
width: 100%;
|
|
182
182
|
.main {
|
|
183
183
|
max-width: 80%;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
// }
|
|
189
|
-
// }
|
|
184
|
+
|
|
185
|
+
.main_content_flag{
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
190
188
|
.main_content_flag:hover{
|
|
191
189
|
.operate_modal {
|
|
192
190
|
// display: block;
|
|
@@ -195,21 +193,9 @@
|
|
|
195
193
|
}
|
|
196
194
|
.main_content {
|
|
197
195
|
position: relative;
|
|
198
|
-
|
|
199
|
-
// .operate_modal {
|
|
200
|
-
// // display: block;
|
|
201
|
-
// visibility: visible;
|
|
202
|
-
// }
|
|
203
|
-
// }
|
|
204
|
-
|
|
196
|
+
|
|
205
197
|
.content {
|
|
206
|
-
|
|
207
|
-
// .operate_modal {
|
|
208
|
-
// // display: block;
|
|
209
|
-
// visibility: visible;
|
|
210
|
-
// }
|
|
211
|
-
// }
|
|
212
|
-
|
|
198
|
+
|
|
213
199
|
max-width: 100%;
|
|
214
200
|
// width: 100%;
|
|
215
201
|
//以下优化ai返回的内容的样式
|
|
@@ -183,12 +183,10 @@
|
|
|
183
183
|
width: 100%;
|
|
184
184
|
.main {
|
|
185
185
|
max-width: 80%;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// }
|
|
191
|
-
// }
|
|
186
|
+
|
|
187
|
+
.main_content_flag{
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
192
190
|
.main_content_flag:hover{
|
|
193
191
|
.operate_modal {
|
|
194
192
|
// display: block;
|
|
@@ -197,21 +195,9 @@
|
|
|
197
195
|
}
|
|
198
196
|
.main_content {
|
|
199
197
|
position: relative;
|
|
200
|
-
|
|
201
|
-
// .operate_modal {
|
|
202
|
-
// // display: block;
|
|
203
|
-
// visibility: visible;
|
|
204
|
-
// }
|
|
205
|
-
// }
|
|
206
|
-
|
|
198
|
+
|
|
207
199
|
.content {
|
|
208
|
-
|
|
209
|
-
// .operate_modal {
|
|
210
|
-
// // display: block;
|
|
211
|
-
// visibility: visible;
|
|
212
|
-
// }
|
|
213
|
-
// }
|
|
214
|
-
|
|
200
|
+
|
|
215
201
|
max-width: 100%;
|
|
216
202
|
// width: 100%;
|
|
217
203
|
//以下优化ai返回的内容的样式
|