增加入口

This commit is contained in:
unknown
2022-07-20 10:12:38 +08:00
parent 2bb91c7f76
commit d3f331ea60
3 changed files with 128 additions and 3 deletions

View File

@ -405,8 +405,8 @@ const Index: React.FC<{}> = () => {
})
}
const createHiddenForm = (record:any)=>{//智慧客服-创建临时表单
//const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=' + REACT_APP_CUSTOMERSERVICE_CLIENT_ID + '&redirect_uri=' + REACT_APP_CUSTOMERSERVICE_REDIRECT + '/redirect?page=home&mall3_token=';//智慧客服
const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=S00hFPxc&redirect_uri=http://localhost:3000/redirect?page=home&mall3_token=';//智慧客服
const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=' + REACT_APP_CUSTOMERSERVICE_CLIENT_ID + '&redirect_uri=' + REACT_APP_CUSTOMERSERVICE_REDIRECT + '/redirect?page=home&mall3_token=';//智慧客服
//const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=S00hFPxc&redirect_uri=http://localhost:3000/redirect?page=home&mall3_token=';//智慧客服
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
if(tempForm) document.body.removeChild(tempForm);
@ -517,6 +517,7 @@ const Index: React.FC<{}> = () => {
tempForm.appendChild(hideInput)
})
var input = document.createElement("input")
input.id = 'tempInput_CustomerService'
input.name= 'sceneUrl'
input.value= window.location.pathname
tempForm.appendChild(input)

View File

@ -218,6 +218,7 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
tempForm.appendChild(hideInput)
})
var input = document.createElement("input")
input.id = 'tempInput_CustomerService'
input.name= 'sceneUrl'
input.value= window.location.pathname
tempForm.appendChild(input)