diff --git a/src/pages/customerservice/support/conversation/components/RatePopover/RatePopover.jsx b/src/pages/customerservice/support/conversation/components/RatePopover/RatePopover.jsx index b10429e..bb5dc26 100644 --- a/src/pages/customerservice/support/conversation/components/RatePopover/RatePopover.jsx +++ b/src/pages/customerservice/support/conversation/components/RatePopover/RatePopover.jsx @@ -12,7 +12,7 @@ export default function RatePopover(props) { return ( <> -
setRateModal(true)} className={style.customer_service_btn}/> +
setRateModal(true)} className={style.customer_service_content}/> {rateModal && { setRateModal(false) diff --git a/src/pages/customerservice/support/conversation/components/RatePopover/style.module.css b/src/pages/customerservice/support/conversation/components/RatePopover/style.module.css index 8a2b54c..4162967 100644 --- a/src/pages/customerservice/support/conversation/components/RatePopover/style.module.css +++ b/src/pages/customerservice/support/conversation/components/RatePopover/style.module.css @@ -1,4 +1,4 @@ -.customer_service_btn { +/* .customer_service_btn { width: 12px; height: 12px; line-height: 12px; @@ -25,4 +25,21 @@ } .customer_service_btn:hover{ cursor: pointer; -} \ No newline at end of file +} */ + +.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; +} diff --git a/src/pages/customerservice/support/conversation/image/rate_black.png b/src/pages/customerservice/support/conversation/image/rate_black.png new file mode 100644 index 0000000..907dfae Binary files /dev/null and b/src/pages/customerservice/support/conversation/image/rate_black.png differ diff --git a/src/pages/customerservice/support/conversation/image/rate_light.png b/src/pages/customerservice/support/conversation/image/rate_light.png new file mode 100644 index 0000000..f5070c8 Binary files /dev/null and b/src/pages/customerservice/support/conversation/image/rate_light.png differ diff --git a/src/pages/customerservice/support/conversation/index.jsx b/src/pages/customerservice/support/conversation/index.jsx index 99c6dfd..85b8faf 100644 --- a/src/pages/customerservice/support/conversation/index.jsx +++ b/src/pages/customerservice/support/conversation/index.jsx @@ -239,6 +239,7 @@ const getProject = (params)=>{ getToken() }else if(show && isModalVisible && !isCloseWs && wsObj==null){ //websocket已经创建过了 console.log('websocket断开,重新连接') + setConversationId('') connect() } }, [isModalVisible, wsObj]) @@ -321,6 +322,7 @@ const getProject = (params)=>{ supplierNo={kfType==1?'EMPTY':agentNumber} conversationId={conversationId} closeWin={()=>{ + setConversationId('') closeWin && closeWin() }} hideWin={()=>{