Commit 00fd0b64 authored by xiabin's avatar xiabin

修改分享的配置问题

parent 37c6aa86
...@@ -11,7 +11,9 @@ $js = <<<JS ...@@ -11,7 +11,9 @@ $js = <<<JS
window._bd_share_config = { window._bd_share_config = {
"common": { "common": {
"bdSnsKey": {}, "bdSnsKey": {},
"bdText": "", "bdText": "{$coursewareInfo['courseName']}-{$coursewareInfo['className']}",
"bdDesc":"",
"bdPic":"{$coursewareInfo['previewUrl']}",
"bdMini": "1", "bdMini": "1",
"bdMiniList": ["qzone", "tsina", "weixin"], "bdMiniList": ["qzone", "tsina", "weixin"],
"bdPic": "", "bdPic": "",
...@@ -19,7 +21,7 @@ $js = <<<JS ...@@ -19,7 +21,7 @@ $js = <<<JS
"bdSize": "24" "bdSize": "24"
}, "share": {} }, "share": {}
}; };
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)]; with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
JS; JS;
......
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