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
fc580718
Commit
fc580718
authored
Oct 28, 2016
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
46d91289
f331e229
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
157 additions
and
82 deletions
+157
-82
HomeController.php
src/frontend/controllers/HomeController.php
+6
-0
apply.php
src/frontend/views/classes-info/apply.php
+64
-1
center.php
src/frontend/views/layouts/center.php
+43
-1
classCenter.php
src/frontend/views/layouts/classCenter.php
+1
-13
main.php
src/frontend/views/layouts/main.php
+2
-2
userCenter.php
src/frontend/views/layouts/userCenter.php
+1
-12
index.php
src/frontend/views/my-course/index.php
+0
-9
browseRecord.php
src/frontend/views/user-center/browseRecord.php
+0
-10
favorite.php
src/frontend/views/user-center/favorite.php
+0
-10
purchasedCourse.php
src/frontend/views/user-center/purchasedCourse.php
+1
-9
main.css
src/frontend/web/css/main.css
+6
-0
style.css
src/frontend/web/css/style.css
+2
-7
video-play.vue
src/frontend/web/js/home/components/video-play.vue
+11
-4
video.vue
src/frontend/web/js/home/components/video.vue
+20
-4
No files found.
src/frontend/controllers/HomeController.php
View file @
fc580718
...
@@ -143,12 +143,18 @@ class HomeController extends \yii\web\Controller
...
@@ -143,12 +143,18 @@ class HomeController extends \yii\web\Controller
$coursewareInfo
[
'isSupport'
]
=
(
Support
::
findByUserIdAndCoursewareId
(
$userId
,
$coursewareInfo
[
'id'
])
===
NULL
?
FALSE
:
TRUE
);
$coursewareInfo
[
'isSupport'
]
=
(
Support
::
findByUserIdAndCoursewareId
(
$userId
,
$coursewareInfo
[
'id'
])
===
NULL
?
FALSE
:
TRUE
);
$coursewareInfo
[
'isFavorite'
]
=
(
Favorite
::
findByUserIdAndCoursewareId
(
$userId
,
$coursewareInfo
[
'id'
])
===
NULL
?
FALSE
:
TRUE
);
$coursewareInfo
[
'isFavorite'
]
=
(
Favorite
::
findByUserIdAndCoursewareId
(
$userId
,
$coursewareInfo
[
'id'
])
===
NULL
?
FALSE
:
TRUE
);
$coursewareInfo
[
'isShop'
]
=
FALSE
;
$coursewareInfo
[
'isShop'
]
=
FALSE
;
$coursewareInfo
[
'isMe'
]
=
FALSE
;
//已登录
//已登录
if
(
!
Yii
::
$app
->
user
->
isGuest
)
{
if
(
!
Yii
::
$app
->
user
->
isGuest
)
{
$coursewareInfo
[
'userAvatar'
]
=
User
::
getAvatarUrl
(
Yii
::
$app
->
user
->
identity
->
avatar
);
$coursewareInfo
[
'userAvatar'
]
=
User
::
getAvatarUrl
(
Yii
::
$app
->
user
->
identity
->
avatar
);
$order
=
Orders
::
findByUserIdAndCourseId
(
$userId
,
$courseId
);
$order
=
Orders
::
findByUserIdAndCourseId
(
$userId
,
$courseId
);
$coursewareInfo
[
'isShop'
]
=
(
$order
!==
NULL
and
$order
->
status
===
Orders
::
PAID
?
TRUE
:
FALSE
);
$coursewareInfo
[
'isShop'
]
=
(
$order
!==
NULL
and
$order
->
status
===
Orders
::
PAID
?
TRUE
:
FALSE
);
$coursewareInfo
[
'isMe'
]
=
(
Yii
::
$app
->
user
->
id
==
$coursewareInfo
[
'user_id'
]);
if
(
$coursewareInfo
[
'isMe'
]
===
true
){
$coursewareInfo
[
'isShop'
]
=
true
;
}
}
}
if
(
$coursewareInfo
[
'isShop'
])
{
if
(
$coursewareInfo
[
'isShop'
])
{
$coursewareInfo
[
'videoUrl'
]
=
Yii
::
$app
->
qiniu
->
getUrl
(
'video'
,
$coursewareInfo
[
'src_stand'
]);
$coursewareInfo
[
'videoUrl'
]
=
Yii
::
$app
->
qiniu
->
getUrl
(
'video'
,
$coursewareInfo
[
'src_stand'
]);
}
else
if
(
$course
->
free_time
>
0
)
{
}
else
if
(
$course
->
free_time
>
0
)
{
...
...
src/frontend/views/classes-info/apply.php
View file @
fc580718
...
@@ -32,7 +32,7 @@ $this->title = '申请课堂';
...
@@ -32,7 +32,7 @@ $this->title = '申请课堂';
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
<?=
Html
::
checkbox
(
'agreement'
,
$agreement
==
1
)
?>
<?=
Html
::
checkbox
(
'agreement'
,
$agreement
==
1
)
?>
同意
<a
href=
"
#"
>
云涯使用协议
</a>
及
<a
href=
"#"
>
版权声明
</a>
同意
<a
href=
"
javascript:;"
data-toggle=
"modal"
data-target=
"#myModal"
>
云涯平台使用协议
</a>
</label>
</label>
</div>
</div>
<?php
if
(
$agreeError
)
{
?>
<div
class=
"help-block"
>
<?=
$agreeError
?>
</div>
<?php
}
?>
<?php
if
(
$agreeError
)
{
?>
<div
class=
"help-block"
>
<?=
$agreeError
?>
</div>
<?php
}
?>
...
@@ -43,3 +43,66 @@ $this->title = '申请课堂';
...
@@ -43,3 +43,66 @@ $this->title = '申请课堂';
</div>
</div>
<?php
MyActiveForm
::
end
();
?>
<?php
MyActiveForm
::
end
();
?>
</div>
</div>
<!-- Modal -->
<div
class=
"modal fade"
id=
"myModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
><span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
>
Close
</span></button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
云涯平台使用协议
</h4>
</div>
<div
class=
"modal-body"
>
<b>
重要提示
</b>
<p>
欢迎使用云涯平台服务,请您仔细阅读以下全部内容(特别是粗体标注的内容)。如您不同意《云涯平台使用协议》(以下简称“本协议”)任意内容的,请不要使用本服务。
<br
/>
如您(未成年人应在监护人陪同下)选择使用并点击“同意”的,即表示已经与云涯平台达成协议,并自愿接受本协议的所有内容。
<br
/>
云涯平台的所有权、经营管理权归深圳指掌时代网络科技有限公司所有。深圳指掌时代网络科技有限公司有权根据法律规范及运营的合理需要,不断修改和完善本协议。如您继续使用本服务,即意味着同意并自愿遵守修改后的服务协议。
<br
/>
</p>
<p>
<b>
一、定义:
</b>
1.1 您:指有效申请并经深圳指掌时代网络科技有限公司审核同意后,在云涯平台制作及发布作品的自然人、法人、其他组织。
<br
/>
1.2 云涯平台:供著作权人或其合法授权人发布、查询、管理数字内容的聚合平台。
<br
/>
1.3 作品:指您在云涯平台所发布的视频、文字、图片、链接等内容。
<br
/>
</p>
<p>
<b>
二、您的权利和义务
</b>
2.1 您同意:按照云涯平台公布和提示的规则、流程进行注册操作。注册完成后,请您妥善保存有关帐号和密码,并对该帐号进行的所有活动和行为负责。如因您自身过错(包括但不限于转让帐号、与他人共用、自己泄露等)或您所用计算机或其他终端产品感染病毒或木马,而导致帐号密码泄漏、遗失或其他损失后果将由您独自承担。
<br
/>
2.2 您保证:对在云涯平台发布的作品享有合法权益,是该作品的著作权人或已获得著作权人的合法授权,可以对该作品行使相关权利;若因您发布的作品发生权利纠纷或侵犯了任何第三方的合法权益,责任由您本人承担,因此给云涯或其关联公司等第三方造成损失的,您应负责全额赔偿。
<br
/>
2.3 您保证:提供给深圳指掌时代网络科技有限公司的所有信息、数据,包括但不限于其姓名(名称)、地址、链接、电子邮箱等相关资料真实、合法、准确。如深圳指掌时代网络科技有限公司发现不真实、不合法或不准确的,则有权暂停或终止向您提供本协议下服务,由此产生的一切法律责任由您自行承担。
<br
/>
2.4 您完全理解并同意,深圳指掌时代网络科技有限公司和云涯平台无须就您上传、发布或发表的任何作品支付费用,您和深圳指掌时代网络科技有限公司另行签订协议的除外。
<br
/>
</p>
<p>
<b>
三、深圳指掌时代网络科技有限公司的权利和义务
</b>
3.1 深圳指掌时代网络科技有限公司尊重知识产权并注重保护您享有的各项权利。您在云涯发布(上传)内容和授权深圳指掌时代网络科技有限公司的行为不会对您就这些内容所享有的知识产权产生任何不良影响,上传(发布)作品的著作权一律归作品的创作者所有。为了更好地对您、您发布(上传)的内容以及云涯进行宣传推广,您同意深圳指掌时代网络科技有限公司可在其旗下其他产品中使用和传播这些内容,以及为宣传推广的目的将上述内容许可给第三方使用和传播(包括但不限于网络、电子杂志、软件、出版等)。为了更好地维护您的各项知识产权,您同意深圳指掌时代网络科技有限公司有权针对侵犯您发布(上传)内容相关权利的行为进行维权。若此类维权行为产生任何收益,深圳指掌时代网络科技有限公司将在扣除维权成本后将维权收益支付给您。
<br
/>
3.2 深圳指掌时代网络科技有限公司有权对您上传的作品进行事先审核,经审核通过的作品方可在云涯发布。但该审核仅以合理程度为限,深圳指掌时代网络科技有限公司并不实际控制您或其作品,不对其审核结果承担任何法律责任,亦不对您作品的合法性、不侵权、完整性做出任何明示或暗示的担保、保证责任。
<br
/>
3.3 深圳指掌时代网络科技有限公司有权知悉您的身份信息、注册数据,如发现该等信息、数据中存在任何问题或怀疑,可要求您改正,或者直接做出删除、屏蔽等处理。
<br
/>
3.4 深圳指掌时代网络科技有限公司为云涯平台的开发、运营提供技术支持和信息存储的空间,并对该平台的开发和运营等过程中产生的所有信息等享有完整、全部权利,包括但不限于著作权、专利权、商标权、商业秘密及其他知识财产和其他权利。
<br
/>
3.5 深圳指掌时代网络科技有限公司保留随时变更或终止云涯平台服务的权利,并无需对行使该权利向您承担责任。深圳指掌时代网络科技有限公司可通过网页公告、电子邮件、电话或信件传送等方式向您发出通知,该等通知在发送时即视为已送达收件人。
<br
/>
3.6深圳指掌时代网络科技有限公司对不可抗力导致的损失不承担责任。本协议所指不可抗力包括:天灾、法律法规或政府指令的变更,因网络服务特性而特有的原因,例如境内外基础电信运营商的故障、计算机或互联网相关技术缺陷、互联网覆盖范围限制、计算机病毒、黑客攻击等因素,及其他合法范围内的不能预见、不能避免并不能克服的客观情况。
<br
/>
</p>
<p>
<b>
四、云涯平台的使用规则
</b>
4.1 深圳指掌时代网络科技有限公司谢绝任何形式的转载,严禁剽窃、抄袭,否则因此产生的一切后果、责任由行为人承担。深圳指掌时代网络科技有限公司保留追究行为人责任的权利。
<br
/>
4.2 如您或您上传、发布或发表的作品违反下述规则,深圳指掌时代网络科技有限公司有完全的权利在不通知您的情况下,删除您帐号及\或您帐号下发表的全部或部分内容,由此产生的损失由您承担。
<br
/>
1) 您的行为干扰了云涯平台任何部分或功能的正常运行;
<br
/>
2) 您未经深圳指掌时代网络科技有限公司允许,利用云涯平台开展未经深圳指掌时代网络科技有限公司同意的行为,包括但不限于对通过云涯平台获得的信息进行商业化活动,如附加广告、商业内容或链接等;
<br
/>
3) 您的个人信息、作品内容等违反国家法律法规规定,有悖社会道德伦理、公序良俗、政治色彩强烈,引起任何争议,或违反本协议、云涯平台公示的要求的;
<br
/>
4) 您利用云涯平台进行任何违法行为的。
<br
/>
4.3 您同意:您自行负责对发布到云涯平台的作品进行校对和审核。您使用云涯平台服务过程的所有行为,均以该平台服务器记录的数据为准。
<br
/>
</p>
<p>
如您对本协议内容有任何疑问,可邮件至yunya@pp.cc。
</p>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
>
同意
</button>
</div>
</div>
</div>
</div>
src/frontend/views/layouts/center.php
View file @
fc580718
...
@@ -66,10 +66,52 @@ $this->registerCss('[v-cloak] {display:none;}');
...
@@ -66,10 +66,52 @@ $this->registerCss('[v-cloak] {display:none;}');
<?=
$content
?>
<?=
$content
?>
<div
class=
"foot navbar-fixed-bottom"
>
<div
class=
"foot navbar-fixed-bottom"
>
<p><a
href=
"
javascript:;"
>
隐私权政策
</a>
-
<a
href=
"javascript:;"
>
服务条款
</a>
-
<a
href=
"javascript:;"
>
地图条款
</a></p>
<p><a
href=
"
http://yunya.my.pp.cc/detail/178567.htm"
target=
"_blank"
>
使用协议
</a>
-
<a
href=
"http://yunya.my.pp.cc/category/20422.htm"
target=
"_blank"
>
帮助中心
</a>
-
<a
href=
"http://yunya.my.pp.cc/contact"
target=
"_blank"
>
联系我们
</a></p>
<p>
©2016 c.pp.cc
</p>
<p>
©2016 c.pp.cc
</p>
</div>
</div>
<script
type=
'text/javascript'
>
$
(
function
()
{
// 左侧菜单
var
justic
=
$
(
window
).
width
();
if
(
justic
>
768
){
$
(
'.menu-btn'
).
click
(
function
()
{
var
bj
=
$
(
'#biaoJi'
).
val
();
if
(
bj
==
0
)
{
$
(
'.tp-sidebar'
).
css
(
'display'
,
'none'
);
$
(
'.auto-main'
).
css
(
'padding-left'
,
'30px'
);
$
(
'.menu-btn'
).
css
(
'padding-left'
,
'30px'
);
$
(
'.foot p'
).
css
(
'padding-left'
,
'30px'
);
$
(
'#biaoJi'
).
val
(
'1'
);
}
else
{
$
(
'.tp-sidebar'
).
css
(
'display'
,
'block'
);
$
(
'.auto-main'
).
css
(
'padding-left'
,
'255px'
);
$
(
'.menu-btn'
).
css
(
'padding-left'
,
'255px'
);
$
(
'.foot p'
).
css
(
'padding-left'
,
'255px'
);
$
(
'#biaoJi'
).
val
(
'0'
);
}
});
}
else
{
$
(
'.menu-btn'
).
click
(
function
()
{
$
(
'.menu-mask'
).
css
(
'display'
,
'block'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"0"
});
});
$
(
'.menu-mask'
).
click
(
function
()
{
$
(
this
).
css
(
'display'
,
'none'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"-225px"
});
});
}
//课程列表
turmbw
=
$
(
'.video-img-box img'
).
width
();
turmbh
=
turmbw
*
5
/
9
;
$
(
'.video-img-box img,.play-mask'
).
css
(
'height'
,
turmbh
);
$
(
'.play-mask'
).
css
(
'padding-top'
,
turmbh
/
2
-
20
);
})
</script>
<?php
$this
->
endBody
();
?>
<?php
$this
->
endBody
();
?>
</body>
</body>
</html>
</html>
...
...
src/frontend/views/layouts/classCenter.php
View file @
fc580718
...
@@ -62,19 +62,7 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -62,19 +62,7 @@ $this->beginContent('@app/views/layouts/center.php');
</div>
</div>
</div>
</div>
<script
type=
'text/javascript'
>
<input
id=
"biaoJi"
type=
"text"
value=
"0"
style=
"display: none"
>
$
(
function
()
{
$
(
'.menu-btn'
).
click
(
function
()
{
$
(
'.menu-mask'
).
css
(
'display'
,
'block'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"0"
});
});
$
(
'.menu-mask'
).
click
(
function
()
{
$
(
this
).
css
(
'display'
,
'none'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"-225px"
});
});
})
</script>
<div
class=
"menu-mask"
></div>
<div
class=
"menu-mask"
></div>
<div
class=
"auto-main"
>
<div
class=
"auto-main"
>
...
...
src/frontend/views/layouts/main.php
View file @
fc580718
...
@@ -28,7 +28,7 @@ $baseUrl = \yii\helpers\Url::base();
...
@@ -28,7 +28,7 @@ $baseUrl = \yii\helpers\Url::base();
<?php
if
(
Yii
::
$app
->
user
->
isGuest
)
:
?>
<?php
if
(
Yii
::
$app
->
user
->
isGuest
)
:
?>
<div
class=
"navbar-main navbar-static-top clearfix"
>
<div
class=
"navbar-main navbar-static-top clearfix"
>
<div
id=
"main-logo"
class=
"logo pull-left"
><a
href=
"
<?=
$baseUrl
.
"/user-center
"
?>
"
>
云崖
</a></div>
<div
id=
"main-logo"
class=
"logo pull-left"
><a
href=
"
<?=
$baseUrl
.
"/user-center
/"
?>
"
>
云涯
</a></div>
<!--
<!--
<ul class="c-menu-item pull-left">
<ul class="c-menu-item pull-left">
<li class="active"><a href="#">首页</a></li>
<li class="active"><a href="#">首页</a></li>
...
@@ -45,7 +45,7 @@ $baseUrl = \yii\helpers\Url::base();
...
@@ -45,7 +45,7 @@ $baseUrl = \yii\helpers\Url::base();
<?php
else
:
?>
<?php
else
:
?>
<div
class=
"navbar-main navbar-static-top clearfix"
>
<div
class=
"navbar-main navbar-static-top clearfix"
>
<div
id=
"main-logo"
class=
"logo pull-left"
><a
href=
"
<?=
$baseUrl
.
"/user-center/info"
?>
"
>
云
崖
</a></div>
<div
id=
"main-logo"
class=
"logo pull-left"
><a
href=
"
<?=
$baseUrl
.
"/user-center/info"
?>
"
>
云
涯
</a></div>
<div
class=
"avatar pull-right"
><a
href=
"
<?=
$baseUrl
.
'/user-center/info'
?>
"
><img
src=
"
<?=
\common\models\User
::
getAvatarUrl
(
Yii
::
$app
->
user
->
identity
->
avatar
)
?>
"
></a></div>
<div
class=
"avatar pull-right"
><a
href=
"
<?=
$baseUrl
.
'/user-center/info'
?>
"
><img
src=
"
<?=
\common\models\User
::
getAvatarUrl
(
Yii
::
$app
->
user
->
identity
->
avatar
)
?>
"
></a></div>
</div>
</div>
<?php
endif
;
?>
<?php
endif
;
?>
...
...
src/frontend/views/layouts/userCenter.php
View file @
fc580718
...
@@ -53,6 +53,7 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -53,6 +53,7 @@ $this->beginContent('@app/views/layouts/center.php');
</div>
</div>
<div
class=
"menu-mask"
></div>
<div
class=
"menu-mask"
></div>
<input
id=
"biaoJi"
type=
"text"
value=
"0"
style=
"display: none"
>
<div
class=
"auto-main"
>
<div
class=
"auto-main"
>
<?=
$this
->
render
(
'centerHeader'
)
?>
<?=
$this
->
render
(
'centerHeader'
)
?>
...
@@ -63,18 +64,6 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -63,18 +64,6 @@ $this->beginContent('@app/views/layouts/center.php');
</div>
</div>
</div>
</div>
<script
type=
'text/javascript'
>
$
(
function
()
{
$
(
'.menu-btn'
).
click
(
function
()
{
$
(
'.menu-mask'
).
css
(
'display'
,
'block'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"0"
});
});
$
(
'.menu-mask'
).
click
(
function
()
{
$
(
this
).
css
(
'display'
,
'none'
);
$
(
'.tp-sidebar'
).
animate
({
left
:
"-225px"
});
});
})
</script>
<?php
<?php
$this
->
endContent
();
$this
->
endContent
();
$this
->
endBody
();
$this
->
endBody
();
...
...
src/frontend/views/my-course/index.php
View file @
fc580718
...
@@ -9,15 +9,6 @@ use yii\helpers\Url;
...
@@ -9,15 +9,6 @@ use yii\helpers\Url;
use
yii\widgets\LinkPager
;
use
yii\widgets\LinkPager
;
$this
->
title
=
'课程列表'
;
$this
->
title
=
'课程列表'
;
$js
=
<<<JS
$(function () {
turmbw = $('.video-img-box img').width();
turmbh = turmbw * 5 / 9;
$('.video-img-box img').css('height', turmbh);
});
JS;
$this
->
registerJs
(
$js
);
/**
/**
* @var $qiniu common\components\Qiniu;
* @var $qiniu common\components\Qiniu;
...
...
src/frontend/views/user-center/browseRecord.php
View file @
fc580718
...
@@ -68,13 +68,3 @@ $this->title = '浏览记录';
...
@@ -68,13 +68,3 @@ $this->title = '浏览记录';
<?php
endif
;
?>
<?php
endif
;
?>
<script
type=
'text/javascript'
>
$
(
function
()
{
turmbw
=
$
(
'.video-img-box img'
).
width
();
turmbh
=
turmbw
*
5
/
9
;
$
(
'.video-img-box img,.play-mask'
).
css
(
'height'
,
turmbh
);
$
(
'.play-mask'
).
css
(
'padding-top'
,
turmbh
/
2
-
20
);
})
</script>
src/frontend/views/user-center/favorite.php
View file @
fc580718
...
@@ -58,13 +58,3 @@ $this->title = '收藏记录';
...
@@ -58,13 +58,3 @@ $this->title = '收藏记录';
您没有任何收藏记录!
您没有任何收藏记录!
</div>
</div>
<?php endif;?>
<?php endif;?>
<script type='text/javascript'>
$(function () {
turmbw = $('.video-img-box img').width();
turmbh = turmbw*5/9;
$('.video-img-box img,.play-mask').css('height',turmbh);
$('.play-mask').css('padding-top',turmbh/2-20);
})
</script>
\ No newline at end of file
src/frontend/views/user-center/purchasedCourse.php
View file @
fc580718
...
@@ -32,7 +32,7 @@ $this->title = '已购课程';
...
@@ -32,7 +32,7 @@ $this->title = '已购课程';
<?php
endif
?>
<?php
endif
?>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
</div>
</div>
<div
class=
"teacher"
>
<?=
$value
[
'courseWithTeachers'
][
'price'
]
?>
</div>
<div
class=
"teacher"
>
售价:
<?=
$value
[
'courseWithTeachers'
][
'price'
]
?>
</div>
<div
class=
"teacher"
>
<div
class=
"teacher"
>
<b><span>
购买日期:
<?=
date
(
"Y-m-d H:i:s"
,
$value
[
'updated_at'
])
?>
</span></b>
<b><span>
购买日期:
<?=
date
(
"Y-m-d H:i:s"
,
$value
[
'updated_at'
])
?>
</span></b>
</div>
</div>
...
@@ -61,12 +61,4 @@ $this->title = '已购课程';
...
@@ -61,12 +61,4 @@ $this->title = '已购课程';
</div>
</div>
<?php endif;?>
<?php endif;?>
<script type='text/javascript'>
$(function () {
turmbw = $('.video-img-box img').width();
turmbh = turmbw*5/9;
$('.video-img-box img,.play-mask').css('height',turmbh);
$('.play-mask').css('padding-top',turmbh/2-20);
})
</script>
src/frontend/web/css/main.css
View file @
fc580718
...
@@ -700,6 +700,11 @@ a,a:hover,a:link {
...
@@ -700,6 +700,11 @@ a,a:hover,a:link {
color
:
#666
;
color
:
#666
;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.teacher-detail
{
text-align
:
left
;
padding
:
10px
0
;
line-height
:
1.8
;
}
/*模态框重置*/
/*模态框重置*/
...
@@ -866,6 +871,7 @@ a,a:hover,a:link {
...
@@ -866,6 +871,7 @@ a,a:hover,a:link {
display
:
block
;
display
:
block
;
font-size
:
48px
;
font-size
:
48px
;
padding-top
:
170px
;
padding-top
:
170px
;
padding-bottom
:
40px
;
}
}
.video-main
>
p
{
.video-main
>
p
{
font-size
:
16px
;
font-size
:
16px
;
...
...
src/frontend/web/css/style.css
View file @
fc580718
...
@@ -1642,23 +1642,18 @@ textarea.input-r-control {
...
@@ -1642,23 +1642,18 @@ textarea.input-r-control {
.tp-sidebar
{
.tp-sidebar
{
left
:
-225px
;
left
:
-225px
;
}
}
.auto-main
{
.auto-main
{
padding-left
:
0
;
padding-left
:
0
;
}
}
.menu-btn
{
.menu-btn
{
padding-left
:
30px
;
padding-left
:
30px
;
}
}
.foot
{
.foot
p
{
display
:
none
;
padding-left
:
30px
;
}
}
.add-box
{
.add-box
{
width
:
auto
;
width
:
auto
;
}
}
.tab-headbox
li
:first-child
{
.tab-headbox
li
:first-child
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
...
...
src/frontend/web/js/home/components/video-play.vue
View file @
fc580718
...
@@ -48,9 +48,15 @@
...
@@ -48,9 +48,15 @@
¥{{coursewareInfo.price
}}
¥{{coursewareInfo.price
}}
</button>
</button>
<template v-else>
<template v-else>
<button v-if="
coursewareInfo
.
isGuest
" @click="
login
" class="
btn
btn
-
danger
m
-
l
-
20
mb
-
left
">购买
<template v-if="
coursewareInfo
.
isShop
">
¥{{coursewareInfo.price
}}
<button v-if="
coursewareInfo
.
isShop
&&
coursewareInfo
.
isMe
==
false
" class="
btn
btn
-
danger
m
-
l
-
20
hidden
-
xs
mb
-
left
"
</button>
data-toggle="
modal
" disabled="
disabled
">已购买
</button>
<button v-else
class="
btn
btn
-
danger
m
-
l
-
20
mb
-
left
"
>购买 ¥{{coursewareInfo.price
}}
</button>
</template>
<template v-else>
<template v-else>
<button v-if="
coursewareInfo
.
isShop
" class="
btn
btn
-
danger
m
-
l
-
20
hidden
-
xs
mb
-
left
"
<button v-if="
coursewareInfo
.
isShop
" class="
btn
btn
-
danger
m
-
l
-
20
hidden
-
xs
mb
-
left
"
data-toggle="
modal
" disabled="
disabled
">已购买
data-toggle="
modal
" disabled="
disabled
">已购买
...
@@ -146,7 +152,8 @@
...
@@ -146,7 +152,8 @@
previewUrl: this.coursewareInfo.previewUrl,
previewUrl: this.coursewareInfo.previewUrl,
freeTime:this.coursewareInfo.free_time,
freeTime:this.coursewareInfo.free_time,
price:this.coursewareInfo.price,
price:this.coursewareInfo.price,
isShop:this.coursewareInfo.isShop
isShop:this.coursewareInfo.isShop,
isMe:this.coursewareInfo.isMe
}
}
}
}
}
,
}
,
...
...
src/frontend/web/js/home/components/video.vue
View file @
fc580718
<
template
>
<
template
>
<div
style=
"width:100%;height:100%"
class=
"video-main"
>
<div
style=
"width:100%;height:100%"
class=
"video-main"
>
<video
v-if=
"videoInfo.freeTime > 0"
id=
"my-video-play"
class=
"video-js vjs-default-skin vjs-big-play-centered"
<video
v-if=
"videoInfo.freeTime > 0 || videoInfo.isShop"
id=
"my-video-play"
class=
"video-js vjs-default-skin vjs-big-play-centered"
controls
preload=
"auto"
>
controls
preload=
"auto"
>
<source
:src=
"videoInfo.videoUrl"
/>
<source
:src=
"videoInfo.videoUrl"
/>
</video>
</video>
...
@@ -9,12 +10,12 @@
...
@@ -9,12 +10,12 @@
<template
v-if=
"showTips"
>
<template
v-if=
"showTips"
>
<img
v-if=
"videoInfo.freeTime == 0"
:src=
"videoInfo.previewUrl"
width=
"100%"
height=
"auto"
>
<img
v-if=
"videoInfo.freeTime == 0"
:src=
"videoInfo.previewUrl"
width=
"100%"
height=
"auto"
>
<div
class=
"play-mask-box"
>
<div
class=
"play-mask-box"
>
<div
v-if=
"videoInfo.freeTime >0"
class=
"look-video"
>
<div
v-if=
"videoInfo.freeTime >0"
class=
"look-video"
>
<p>
本课程可试看
{{
videoInfo
.
freeTime
}}
分钟
</p>
<p>
本课程可试看
{{
videoInfo
.
freeTime
}}
分钟
</p>
</div>
</div>
<div
v-else
class=
"has-icon-part"
>
<div
v-else
class=
"has-icon-part"
>
<p>
<p>
<a
@
click=
"pay"
href=
"javascript:;"
><span
class=
"icon-play"
></span></a>
<a
@
click=
"pay"
href=
"javascript:;"
><span
class=
"icon-play"
></span></a>
<span>
本课程为付费课程,
{{
videoInfo
.
price
}}
<a
@
click=
"pay"
href=
"javascript:;"
>
立即购买
</a></span>
<span>
本课程为付费课程,
{{
videoInfo
.
price
}}
<a
@
click=
"pay"
href=
"javascript:;"
>
立即购买
</a></span>
...
@@ -22,6 +23,13 @@
...
@@ -22,6 +23,13 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
template
v-if=
"videoInfo.isMe"
>
<div
v-if=
"showIsMeTips"
class=
"play-mask-box"
>
<div
class=
"look-video"
>
<p>
您发布的课程,无需购买可直接观看。
</p>
</div>
</div>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -34,7 +42,8 @@
...
@@ -34,7 +42,8 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
showTips
:
false
showTips
:
false
,
showIsMeTips
:
false
}
}
},
},
props
:
{
props
:
{
...
@@ -52,6 +61,9 @@
...
@@ -52,6 +61,9 @@
}
else
{
}
else
{
this
.
showTips
=
true
;
this
.
showTips
=
true
;
}
}
if
(
this
.
videoInfo
.
isMe
){
this
.
showIsMeTips
=
true
;
}
//不显示视频则不绑定 不为没有购买且为不免费
//不显示视频则不绑定 不为没有购买且为不免费
if
(
this
.
videoInfo
.
freeTime
>
0
||
this
.
videoInfo
.
isShop
==
true
)
{
if
(
this
.
videoInfo
.
freeTime
>
0
||
this
.
videoInfo
.
isShop
==
true
)
{
var
self
=
this
;
var
self
=
this
;
...
@@ -90,6 +102,10 @@
...
@@ -90,6 +102,10 @@
self
.
pay
();
self
.
pay
();
});
});
});
});
}
else
if
(
this
.
videoInfo
.
isMe
){
myPlayer
.
bigPlayButton
.
on
(
'click'
,
function
()
{
self
.
showIsMeTips
=
false
;
});
}
}
}
}
...
...
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