修改评级图标

This commit is contained in:
unknown
2022-05-13 18:33:58 +08:00
parent 7a8dd04f8b
commit d7d18f0fea
5 changed files with 22 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export default function RatePopover(props) {
return ( return (
<> <>
<Tooltip title="点击评价"><div onClick={()=>setRateModal(true)} className={style.customer_service_btn}/></Tooltip> <Tooltip title="点击评价"><div onClick={()=>setRateModal(true)} className={style.customer_service_content}/></Tooltip>
{rateModal && {rateModal &&
<Modal title="请您对本次服务做出评价,谢谢!" visible={rateModal} onCancel={()=>{ <Modal title="请您对本次服务做出评价,谢谢!" visible={rateModal} onCancel={()=>{
setRateModal(false) setRateModal(false)

View File

@ -1,4 +1,4 @@
.customer_service_btn { /* .customer_service_btn {
width: 12px; width: 12px;
height: 12px; height: 12px;
line-height: 12px; line-height: 12px;
@ -25,4 +25,21 @@
} }
.customer_service_btn:hover{ .customer_service_btn:hover{
cursor: pointer; cursor: pointer;
} */
.customer_service_content {
width: 20px;
height: 20px;
margin-right: 10px;
background-image: url('../../image/rate_black.png');
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
}
.customer_service_content:hover {
background-image: url('../../image/rate_light.png');
cursor: pointer;
}
.customer_service_content > input {
display: none;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -239,6 +239,7 @@ const getProject = (params)=>{
getToken() getToken()
}else if(show && isModalVisible && !isCloseWs && wsObj==null){ //websocket已经创建过了 }else if(show && isModalVisible && !isCloseWs && wsObj==null){ //websocket已经创建过了
console.log('websocket断开重新连接') console.log('websocket断开重新连接')
setConversationId('')
connect() connect()
} }
}, [isModalVisible, wsObj]) }, [isModalVisible, wsObj])
@ -321,6 +322,7 @@ const getProject = (params)=>{
supplierNo={kfType==1?'EMPTY':agentNumber} supplierNo={kfType==1?'EMPTY':agentNumber}
conversationId={conversationId} conversationId={conversationId}
closeWin={()=>{ closeWin={()=>{
setConversationId('')
closeWin && closeWin() closeWin && closeWin()
}} }}
hideWin={()=>{ hideWin={()=>{