diff --git a/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx b/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx
index 217a695..e77160a 100644
--- a/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx
+++ b/src/pages/customerservice/support/conversation/components/ChatHeader/ChatHeader.jsx
@@ -11,25 +11,25 @@ export default function ChatHeader(props) {
className={style.customer_service_content}
id="chatHeader"
onMouseOver={(e)=>{
- if(e.target.id=='chatHeader'){
+ if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan' || e.target.id=='chatHeaderAvatar'){
mouseOverHandle(e,props.chatUI)
}
}}
onMouseMove={(e)=>{
- if(e.target.id=='chatHeader'){
+ if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan'|| e.target.id=='chatHeaderAvatar'){
mouseMoveHandle(e,props.chatUI)
}
}}
onMouseDown={(e)=>{
- if(e.target.id=='chatHeader'){
+ if(e.target.id=='chatHeader' || e.target.id=='chatHeaderTitle'|| e.target.id=='chatHeaderSologan'|| e.target.id=='chatHeaderAvatar'){
mouseDrag(e,150,props.chatUI,null,null)
}
}}
>
-
+
- 中国联通供应链智慧客服
- 客户至上 产品至上
+
+
diff --git a/src/pages/customerservice/support/conversation/utils/utils.jsx b/src/pages/customerservice/support/conversation/utils/utils.jsx
index 8a8e701..6ec7741 100644
--- a/src/pages/customerservice/support/conversation/utils/utils.jsx
+++ b/src/pages/customerservice/support/conversation/utils/utils.jsx
@@ -149,7 +149,7 @@ export function mouseOverHandle(e,chatUI){
clickBox.style.cursor="auto"
}
}else if(direction == "move"){
- clickBox.style.cursor="move"
+ clickBox.style.cursor="auto"
}else{
clickBox.style.cursor="auto"
}
@@ -188,7 +188,7 @@ export function mouseMoveHandle(e,chatUI){
}else if(direction=="top" || direction=="bottom"){
clickBox.style.cursor='s-resize'
}else if(direction == "move"){
- clickBox.style.cursor="move"
+ clickBox.style.cursor="auto"
}else {
clickBox.style.cursor="auto"
}
@@ -228,7 +228,7 @@ export function mouseDrag(e,selfHeight,chatUI,changeHeight,setPostion){
direction = 'top';
}
}
- if(clickBox.id=="chatHeader" ){
+ if(clickBox.id=="chatHeader" || clickBox.id=="chatHeaderAvatar" || clickBox.id=="chatHeaderTitle" || clickBox.id=="chatHeaderSologan"){
e=e||event; //兼容ie和其他浏览器的写法
if ((mouseDownY > clickBoxTop && mouseDownY < clickBoxBottom) || (mouseDownX > clickBoxLeft && mouseDownX < clickBoxRight)){
direction = 'move';
@@ -250,7 +250,7 @@ export function mouseDrag(e,selfHeight,chatUI,changeHeight,setPostion){
if(changeHeight && changeHeight!=undefined) changeHeight(Math.min(record_maxHeight,(topHeight - mouseDownY + yy) < 20 ? 20:(topHeight - mouseDownY + yy)))
}
- if (clickBox.id=="chatHeader" && direction==='move'){
+ if ((clickBox.id=="chatHeader" || clickBox.id=="chatHeaderAvatar" || clickBox.id=="chatHeaderTitle" || clickBox.id=="chatHeaderSologan") && direction==='move'){
var l = xx - mouseDownX + ll
var t = yy - mouseDownY + tt