Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
b1a4a60e
Commit
b1a4a60e
authored
Apr 16, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
e1663110
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
66 deletions
+13
-66
src/App.js
+1
-50
src/components/activity/newyear-2019/preheat/YearCourse/index.js
+1
-1
src/components/activity/treasure-box/preheat/YearCourse/index.js
+1
-1
src/components/detail/btnstatus/index.js
+10
-14
No files found.
src/App.js
View file @
b1a4a60e
...
...
@@ -35,16 +35,6 @@ class App extends Component {
firstLoad
=
true
componentWillMount
()
{
if
(
!
getParam
(
'version'
))
{
if
(
!
cookie
.
get
(
'qimoClientIdedu'
))
{
this
.
getqimoClientId
()
}
else
{
window
.
qimoClientId
=
cookie
.
get
(
'qimoClientIdedu'
)
}
}
}
componentDidMount
()
{
this
.
umengStatistic
()
//平台信息
...
...
@@ -92,10 +82,6 @@ class App extends Component {
this
.
removeShareCodeCookie
()
}
})
if
(
!
getParam
(
'version'
))
{
this
.
QimoClient
()
}
}
umengStatistic
=
()
=>
{
...
...
@@ -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
()
{
return
<>
<
Routes
/>
...
...
src/components/activity/newyear-2019/preheat/YearCourse/index.js
View file @
b1a4a60e
...
...
@@ -221,7 +221,7 @@ class YearCourse extends Component {
toQQque
=
()
=>
{
if
(
!
getParam
(
'version'
))
{
qimoChatClick
()
location
.
href
=
'http://q.url.cn/s/Vbkup6m?_type=wpa'
}
else
{
SendMessageToApp
(
"toQQ"
,
'https://q.url.cn/AB8aue?_type=wpa&qidian=true'
)
}
...
...
src/components/activity/treasure-box/preheat/YearCourse/index.js
View file @
b1a4a60e
...
...
@@ -221,7 +221,7 @@ class YearCourse extends Component {
toQQque
=
()
=>
{
if
(
!
getParam
(
'version'
))
{
qimoChatClick
()
location
.
href
=
'http://q.url.cn/s/Vbkup6m?_type=wpa'
}
else
{
SendMessageToApp
(
"toQQ"
,
'https://q.url.cn/AB8aue?_type=wpa&qidian=true'
)
}
...
...
src/components/detail/btnstatus/index.js
View file @
b1a4a60e
...
...
@@ -313,10 +313,6 @@ class BtnStatus extends Component {
});
}
qimoChatClick
=
()
=>
{
qimoChatClick
()
}
render
()
{
// data 课程信息;barInfo 砍价信息
const
{
user
=
{},
toCart
,
country
}
=
this
.
props
;
...
...
@@ -355,7 +351,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
!==
3
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -376,7 +372,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
is_deposit
!=
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'
/>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -390,7 +386,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
1
&&
<
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'
/>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -403,7 +399,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
===
3
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -424,7 +420,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
===
4
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -438,7 +434,7 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
this
.
props
.
data
&&
this
.
props
.
data
.
is_bargain
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -466,7 +462,7 @@ class BtnStatus extends Component {
{
this
.
state
.
isbuy
===
20
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -477,7 +473,7 @@ class BtnStatus extends Component {
{
(
info
.
is_aist
&&
(
this
.
props
.
user
.
hasError
||
info
.
is_baoming
===
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -491,7 +487,7 @@ class BtnStatus extends Component {
{
info
.
is_aist
&&
!
this
.
props
.
user
.
hasError
&&
info
.
is_baoming
===
1
&&
<
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
@@ -531,7 +527,7 @@ class BtnStatus extends Component {
* limit_free_status: 0 未领取 1已领取未过期 2已过期
* */
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
>
<
span
>
课程咨询
<
/span
>
<
/a
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment