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
86b7b587
Commit
86b7b587
authored
Dec 24, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
550fa582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
src/components/activity/newyear-2019/landing/index.js
+11
-1
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
86b7b587
...
...
@@ -56,7 +56,7 @@ class Landing extends Component {
createMeta
=
()
=>
{
let
meta
=
document
.
createElement
(
'meta'
);
meta
.
setAttribute
(
'name'
,
'description'
)
//
meta.setAttribute('name', 'description')
meta
.
setAttribute
(
'itemprop'
,
'description'
)
meta
.
setAttribute
(
'content'
,
'这里是自定义分享的描述'
)
...
...
@@ -68,10 +68,20 @@ class Landing extends Component {
meta3
.
setAttribute
(
'itemprop'
,
'image'
)
meta3
.
setAttribute
(
'content'
,
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'
)
let
meta4
=
document
.
createElement
(
'meta'
);
meta4
.
setAttribute
(
'itemprop'
,
'reviewCount'
)
meta4
.
setAttribute
(
'content'
,
'1571'
)
let
meta5
=
document
.
createElement
(
'meta'
);
meta5
.
setAttribute
(
'itemprop'
,
'ratingValue'
)
meta5
.
setAttribute
(
'content'
,
'8.5'
)
let
head
=
document
.
getElementsByTagName
(
'head'
)[
0
];
head
.
appendChild
(
meta
);
head
.
appendChild
(
meta2
);
head
.
appendChild
(
meta3
);
head
.
appendChild
(
meta4
);
head
.
appendChild
(
meta5
);
}
componentWillUnmount
()
{
...
...
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