Commit b1a4a60e by xuzhenghua

push

parent e1663110
...@@ -35,16 +35,6 @@ class App extends Component { ...@@ -35,16 +35,6 @@ class App extends Component {
firstLoad = true firstLoad = true
componentWillMount() {
if (!getParam('version')) {
if (!cookie.get('qimoClientIdedu')) {
this.getqimoClientId()
} else {
window.qimoClientId = cookie.get('qimoClientIdedu')
}
}
}
componentDidMount() { componentDidMount() {
this.umengStatistic() this.umengStatistic()
//平台信息 //平台信息
...@@ -92,10 +82,6 @@ class App extends Component { ...@@ -92,10 +82,6 @@ class App extends Component {
this.removeShareCodeCookie() this.removeShareCodeCookie()
} }
}) })
if (!getParam('version')) {
this.QimoClient()
}
} }
umengStatistic = () => { umengStatistic = () => {
...@@ -278,42 +264,7 @@ class App extends Component { ...@@ -278,42 +264,7 @@ class App extends Component {
} }
} }
// 七陌客服代码 start
getqimoClientId = () => {
http.post(`${API['home']}/qiMoUserId`)
.then(res => {
if (res.data.code == 200) {
window.qimoClientId = res.data.data.userId
cookie.set('qimoClientIdedu', res.data.data.userId, {domain: '.julyedu.com'})
}
})
.catch(function () {
})
}
QimoClient = () => {
let zhihu_cb = getParam('cb')
var src = ''
// 知乎投放
if (zhihu_cb) {
src = 'https://webchat.7moor.com/javascripts/7moorInit.js?accessId=e2ca4f90-2d04-11ea-84c3-43908ae47640&autoShow=false&language=ZHCN'
} else {
// m端
src = 'https://webchat.7moor.com/javascripts/7moorInit.js?accessId=fbcf9aa0-2d03-11ea-84c3-43908ae47640&autoShow=false&language=ZHCN'
}
var script = document.createElement('script')
script.type = 'text/javascript'
script.src = src
script.async = 'async'
document.body.appendChild(script)
}
// 七陌客服代码 end
render() { render() {
return <> return <>
<Routes/> <Routes/>
......
...@@ -221,7 +221,7 @@ class YearCourse extends Component { ...@@ -221,7 +221,7 @@ class YearCourse extends Component {
toQQque = () => { toQQque = () => {
if (!getParam('version')) { if (!getParam('version')) {
qimoChatClick() location.href = 'http://q.url.cn/s/Vbkup6m?_type=wpa'
} else { } else {
SendMessageToApp("toQQ", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true') SendMessageToApp("toQQ", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')
} }
......
...@@ -221,7 +221,7 @@ class YearCourse extends Component { ...@@ -221,7 +221,7 @@ class YearCourse extends Component {
toQQque = () => { toQQque = () => {
if (!getParam('version')) { if (!getParam('version')) {
qimoChatClick() location.href = 'http://q.url.cn/s/Vbkup6m?_type=wpa'
} else { } else {
SendMessageToApp("toQQ", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true') SendMessageToApp("toQQ", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')
} }
......
...@@ -313,10 +313,6 @@ class BtnStatus extends Component { ...@@ -313,10 +313,6 @@ class BtnStatus extends Component {
}); });
} }
qimoChatClick = () => {
qimoChatClick()
}
render() { render() {
// data 课程信息;barInfo 砍价信息 // data 课程信息;barInfo 砍价信息
const {user = {}, toCart, country} = this.props; const {user = {}, toCart, country} = this.props;
...@@ -355,7 +351,7 @@ class BtnStatus extends Component { ...@@ -355,7 +351,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 0 && info.group_status !== 3 && info.is_baoming === 0 && info.group_status !== 3 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-s' onClick={() => this.qimoChatClick()}> <a className='consult consult-s' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -376,7 +372,7 @@ class BtnStatus extends Component { ...@@ -376,7 +372,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 0 && info.is_deposit != 0 && info.is_baoming === 0 && info.is_deposit != 0 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-m' onClick={() => this.qimoChatClick()}> <a className='consult consult-m' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'/> <i className='iconfont iconerji'/>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -390,7 +386,7 @@ class BtnStatus extends Component { ...@@ -390,7 +386,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 1 && info.is_baoming === 1 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-m' onClick={() => this.qimoChatClick()}> <a className='consult consult-m' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'/> <i className='iconfont iconerji'/>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -403,7 +399,7 @@ class BtnStatus extends Component { ...@@ -403,7 +399,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 0 && info.group_status === 3 && info.is_baoming === 0 && info.group_status === 3 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-s' onClick={() => this.qimoChatClick()}> <a className='consult consult-s' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -424,7 +420,7 @@ class BtnStatus extends Component { ...@@ -424,7 +420,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 0 && info.group_status === 4 && info.is_baoming === 0 && info.group_status === 4 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-s' onClick={() => this.qimoChatClick()}> <a className='consult consult-s' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -438,7 +434,7 @@ class BtnStatus extends Component { ...@@ -438,7 +434,7 @@ class BtnStatus extends Component {
{ {
info.is_baoming === 0 && this.props.data && this.props.data.is_bargain && info.is_baoming === 0 && this.props.data && this.props.data.is_bargain &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-s' onClick={() => this.qimoChatClick()}> <a className='consult consult-s' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -466,7 +462,7 @@ class BtnStatus extends Component { ...@@ -466,7 +462,7 @@ class BtnStatus extends Component {
{ {
this.state.isbuy === 20 && this.state.isbuy === 20 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult-l' onClick={() => this.qimoChatClick()}> <a className='consult-l' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -477,7 +473,7 @@ class BtnStatus extends Component { ...@@ -477,7 +473,7 @@ class BtnStatus extends Component {
{ {
(info.is_aist && (this.props.user.hasError || info.is_baoming === 0)) && (info.is_aist && (this.props.user.hasError || info.is_baoming === 0)) &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-m' onClick={() => this.qimoChatClick()}> <a className='consult consult-m' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -491,7 +487,7 @@ class BtnStatus extends Component { ...@@ -491,7 +487,7 @@ class BtnStatus extends Component {
{ {
info.is_aist && !this.props.user.hasError && info.is_baoming === 1 && info.is_aist && !this.props.user.hasError && info.is_baoming === 1 &&
<div className='btns-box'> <div className='btns-box'>
<a className='consult consult-m' onClick={() => this.qimoChatClick()}> <a className='consult consult-m' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
...@@ -531,7 +527,7 @@ class BtnStatus extends Component { ...@@ -531,7 +527,7 @@ class BtnStatus extends Component {
* limit_free_status: 0 未领取 1已领取未过期 2已过期 * limit_free_status: 0 未领取 1已领取未过期 2已过期
* */ * */
info.is_baoming === 0 && info.is_limit_free && info.limit_free_status == 0 && <div className='btns-box'> info.is_baoming === 0 && info.is_limit_free && info.limit_free_status == 0 && <div className='btns-box'>
<a className='consult consult-m' onClick={() => this.qimoChatClick()}> <a className='consult consult-m' href='http://q.url.cn/s/Vbkup6m?_type=wpa'>
<i className='iconfont iconerji'></i> <i className='iconfont iconerji'></i>
<span>课程咨询</span> <span>课程咨询</span>
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment