Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
1b0cd735
Commit
1b0cd735
authored
Oct 17, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分享功能
parent
043f4528
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
AppAsset.php
src/backend/assets/AppAsset.php
+0
-1
video.php
src/frontend/views/home/video.php
+18
-0
video-play.vue
src/frontend/web/js/home/components/video-play.vue
+5
-4
No files found.
src/backend/assets/AppAsset.php
View file @
1b0cd735
...
...
@@ -12,7 +12,6 @@ class AppAsset extends AssetBundle
public
$basePath
=
'@webroot'
;
public
$baseUrl
=
'@web'
;
public
$css
=
[
'css/site.css'
,
];
public
$js
=
[
];
...
...
src/frontend/views/home/video.php
View file @
1b0cd735
...
...
@@ -6,6 +6,24 @@
* Time: 下午5:39
*/
$this
->
title
=
"视频播放"
;
\backend\assets\AppAsset
::
register
(
$this
);
$js
=
<<<JS
window._bd_share_config = {
"common": {
"bdSnsKey": {},
"bdText": "",
"bdMini": "1",
"bdMiniList": ["qzone", "tsina", "weixin"],
"bdPic": "",
"bdStyle": "2",
"bdSize": "24"
}, "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)];
JS;
$this
->
registerJs
(
$js
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/main.css'
);
\frontend\assets\AppAsset
::
addScript
(
$this
,
'@web/assets/home_video.js'
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/home_video.css'
);
...
...
src/frontend/web/js/home/components/video-play.vue
View file @
1b0cd735
...
...
@@ -2,10 +2,10 @@
<div
class=
"container"
>
<div
class=
"cnt-tit"
>
<h3>
{{
coursewareInfo
.
courseName
}}
</h3>
<div
class=
"tit-share hidden-xs"
>
<a
href=
"javascript:;"
class=
"wechat post-icons"
></a>
<a
href=
"javascript:;"
class=
"weibo post-icons"
></a>
<a
href=
"javascript:;"
class=
"qzone post-icons"
></a>
<div
class=
"tit-share hidden-xs
bdsharebuttonbox
"
>
<a
href=
"javascript:;"
class=
"wechat post-icons
bds_weixin"
data-cmd=
"weixin"
title=
"分享到微信
"
></a>
<a
href=
"javascript:;"
class=
"weibo post-icons
bds_tsina"
data-cmd=
"tsina"
title=
"分享到新浪微博
"
></a>
<a
href=
"javascript:;"
class=
"qzone post-icons
bds_qzone"
data-cmd=
"qzone"
title=
"分享到QQ空间
"
></a>
</div>
</div>
...
...
@@ -109,3 +109,4 @@
}
}
</
script
>
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