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
f331e229
Commit
f331e229
authored
Oct 28, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
5c50c67a
1dfa9866
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
106 deletions
+44
-106
center.php
src/frontend/views/layouts/center.php
+43
-1
classCenter.php
src/frontend/views/layouts/classCenter.php
+0
-34
userCenter.php
src/frontend/views/layouts/userCenter.php
+1
-34
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
+0
-8
No files found.
src/frontend/views/layouts/center.php
View file @
f331e229
...
@@ -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 @
f331e229
...
@@ -63,40 +63,6 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -63,40 +63,6 @@ $this->beginContent('@app/views/layouts/center.php');
</div>
</div>
<input
id=
"biaoJi"
type=
"text"
value=
"0"
style=
"display: none"
>
<input
id=
"biaoJi"
type=
"text"
value=
"0"
style=
"display: none"
>
<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"
});
});
}
})
</script>
<div
class=
"menu-mask"
></div>
<div
class=
"menu-mask"
></div>
<div
class=
"auto-main"
>
<div
class=
"auto-main"
>
...
...
src/frontend/views/layouts/userCenter.php
View file @
f331e229
...
@@ -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,40 +64,6 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -63,40 +64,6 @@ $this->beginContent('@app/views/layouts/center.php');
</div>
</div>
</div>
</div>
<input
id=
"biaoJi"
type=
"text"
value=
"0"
style=
"display: none"
>
<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"
});
});
}
})
</script>
<?php
<?php
$this
->
endContent
();
$this
->
endContent
();
$this
->
endBody
();
$this
->
endBody
();
...
...
src/frontend/views/my-course/index.php
View file @
f331e229
...
@@ -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 @
f331e229
...
@@ -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 @
f331e229
...
@@ -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 @
f331e229
...
@@ -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>
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