diff --git a/config/config.UAT.ts b/config/config.UAT.ts index bca21d4..6c4715d 100644 --- a/config/config.UAT.ts +++ b/config/config.UAT.ts @@ -29,10 +29,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服文档中心查看图片地址 // REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/', diff --git a/config/config.dev.ts b/config/config.dev.ts index dede5a4..2b07069 100644 --- a/config/config.dev.ts +++ b/config/config.dev.ts @@ -26,10 +26,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service', diff --git a/config/config.prod.ts b/config/config.prod.ts index bbf3343..f45c8e0 100644 --- a/config/config.prod.ts +++ b/config/config.prod.ts @@ -25,10 +25,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service', diff --git a/config/config.sim.ts b/config/config.sim.ts index 436155e..2538565 100644 --- a/config/config.sim.ts +++ b/config/config.sim.ts @@ -25,10 +25,10 @@ export default defineConfig({ REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code', //智慧客服client_id - REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc', + REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx', //智慧客服地址 - REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000', + REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632', // //智慧客服ws地址 // REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service', diff --git a/src/components/Promenu/index.tsx b/src/components/Promenu/index.tsx index 0615e2c..dd03d98 100644 --- a/src/components/Promenu/index.tsx +++ b/src/components/Promenu/index.tsx @@ -194,6 +194,24 @@ const Promenu: React.FC<{}> = () => { const handlePopoverClose = () => { setAnchorEl(null); }; + const initChatUI = () => { //智慧客服 + var pathname = window.location.pathname + var consultType = pathname.substring(pathname.lastIndexOf('/')+1) + var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement + if(tempForm){ + var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement + if(hideInput){ + hideInput.value= consultType + }else{ + hideInput = document.createElement("input") + hideInput.id = 'tempInput_CustomerService' + hideInput.type="hidden" + hideInput.name= 'consultType' + tempForm.appendChild(hideInput) + } + tempForm.submit(); + } + } return (