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
443dde02
Commit
443dde02
authored
Mar 05, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
pull
parents
be08c70b
f9d730d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
43 deletions
+10
-43
package-lock.json
+3
-3
src/App.js
+7
-20
src/components/activity/newyear-2019/landing/index.js
+0
-20
No files found.
package-lock.json
View file @
443dde02
...
@@ -3099,9 +3099,9 @@
...
@@ -3099,9 +3099,9 @@
"integrity"
:
"sha1-c5JncZI7Whl0etZmqlzUv5xunOg="
"integrity"
:
"sha1-c5JncZI7Whl0etZmqlzUv5xunOg="
},
},
"base64-js"
:
{
"base64-js"
:
{
"version"
:
"1.3.
0
"
,
"version"
:
"1.3.
1
"
,
"resolved"
:
"https://registry.npmjs.org/base64-js/-/base64-js-1.3.
0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/base64-js/-/base64-js-1.3.
1
.tgz"
,
"integrity"
:
"sha512-
ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw
=="
"integrity"
:
"sha512-
mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g
=="
},
},
"base64id"
:
{
"base64id"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
...
src/App.js
View file @
443dde02
...
@@ -139,23 +139,14 @@ class App extends Component {
...
@@ -139,23 +139,14 @@ class App extends Component {
utm
=
()
=>
{
utm
=
()
=>
{
// utm统计 m站全站统计广告投放、以及统计详情页浏览
// utm统计 m站全站统计广告投放、以及统计详情页浏览
let
utm_source
=
getParam
(
'utm_source'
)
let
zhihu_cb
=
getParam
(
'cb'
)
let
utm_medium
=
getParam
(
'utm_medium'
)
let
utm_campaign
=
getParam
(
'utm_campaign'
)
if
(
zhihu_cb
)
{
let
utm_content
=
getParam
(
'utm_content'
)
let
utm_term
=
getParam
(
'utm_term'
)
let
courseId
=
location
.
pathname
.
startsWith
(
'/getDetail'
)
||
location
.
pathname
.
startsWith
(
'/detail'
)
?
getParam
(
'id'
)
:
0
if
(
courseId
||
(
utm_term
&&
utm_source
&&
utm_medium
&&
utm_campaign
&&
utm_content
))
{
let
data
=
{
let
data
=
{
'utm_source'
:
utm_source
,
'zhihu_cb'
:
zhihu_cb
'utm_medium'
:
utm_medium
,
'utm_campaign'
:
utm_campaign
,
'utm_content'
:
utm_content
,
'utm_term'
:
utm_term
,
}
}
http
.
post
(
`
${
API
[
'
www'
]}
/base/first_utm_record/
${
courseId
}
`
,
data
)
http
.
post
(
`
${
API
[
'
home'
]}
/sys/zhihu/firstRecord
`
,
data
)
.
then
(
res
=>
{
.
then
(
res
=>
{
})
})
...
@@ -302,15 +293,11 @@ class App extends Component {
...
@@ -302,15 +293,11 @@ class App extends Component {
}
}
QimoClient
=
()
=>
{
QimoClient
=
()
=>
{
let
utm_source
=
getParam
(
'utm_source'
)
let
utm_medium
=
getParam
(
'utm_medium'
)
let
utm_campaign
=
getParam
(
'utm_campaign'
)
let
utm_content
=
getParam
(
'utm_content'
)
let
utm_term
=
getParam
(
'utm_term'
)
let
zhihu_cb
=
getParam
(
'cb'
)
var
src
=
''
var
src
=
''
// 知乎投放
// 知乎投放
if
(
utm_term
&&
utm_source
&&
utm_medium
&&
utm_campaign
&&
utm_content
)
{
if
(
zhihu_cb
)
{
src
=
'https://webchat.7moor.com/javascripts/7moorInit.js?accessId=e2ca4f90-2d04-11ea-84c3-43908ae47640&autoShow=false&language=ZHCN'
src
=
'https://webchat.7moor.com/javascripts/7moorInit.js?accessId=e2ca4f90-2d04-11ea-84c3-43908ae47640&autoShow=false&language=ZHCN'
}
else
{
}
else
{
// m端
// m端
...
...
src/components/activity/newyear-2019/landing/index.js
View file @
443dde02
...
@@ -81,26 +81,6 @@ class Landing extends Component {
...
@@ -81,26 +81,6 @@ class Landing extends Component {
}
}
createMeta
=
(
title
,
dec
,
imgname
)
=>
{
createMeta
=
(
title
,
dec
,
imgname
)
=>
{
let
meta
=
document
.
createElement
(
'meta'
);
meta
.
setAttribute
(
'name'
,
'description'
)
meta
.
setAttribute
(
'itemprop'
,
'description'
)
meta
.
setAttribute
(
'content'
,
'这里是自定义分享的描述'
)
let
meta2
=
document
.
createElement
(
'meta'
);
meta2
.
setAttribute
(
'itemprop'
,
'name'
)
meta2
.
setAttribute
(
'content'
,
'这里是标题'
)
let
meta3
=
document
.
createElement
(
'meta'
);
meta3
.
setAttribute
(
'itemprop'
,
'image'
)
meta3
.
setAttribute
(
'content'
,
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'
)
let
head
=
document
.
getElementsByTagName
(
'head'
)[
0
];
head
.
appendChild
(
meta
);
head
.
appendChild
(
meta2
);
head
.
appendChild
(
meta3
);
}
createMeta
=
(
title
,
dec
,
imgname
)
=>
{
let
meta
=
document
.
createElement
(
'meta'
)
let
meta
=
document
.
createElement
(
'meta'
)
meta
.
setAttribute
(
'name'
,
'description'
)
meta
.
setAttribute
(
'name'
,
'description'
)
meta
.
setAttribute
(
'itemprop'
,
'description'
)
meta
.
setAttribute
(
'itemprop'
,
'description'
)
...
...
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