Commit 86b7b587 by xuzhenghua

pull

parent 550fa582
......@@ -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() {
......
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