切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
c717043103c22958fd3c0054833353e7165a646c
1 个父辈
c8e0b6a5
1 个管道 的构建
通过
耗费 2 秒
增加星际活动页面
变更
9
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
9 个修改的文件
包含
230 行增加
和
11 行删除
app/portal/controller/ActiveController.php
public/themes/simpleboot3/portal/active/get_active_detail.html
public/themes/simpleboot3/portal/active/index.html
public/themes/simpleboot3/portal/region/get_more_video.html
public/themes/simpleboot3/portal/region/index.html
public/themes/simpleboot3/public/assets/css/Scout_index.css
public/themes/simpleboot3/public/assets/css/activity_index.css
public/themes/simpleboot3/public/assets/css/header.css
public/themes/simpleboot3/public/assets/css/show.css
app/portal/controller/ActiveController.php
查看文件 @
c717043
...
...
@@ -41,13 +41,13 @@ class ActiveController extends HomeBaseController
//查询文章
$res
=
Db
::
table
(
$pre
.
'portal_post'
)
->
whereIn
(
'id'
,
$post_id
)
->
where
(
'delete_time'
,
0
)
->
where
(
'delete_time'
,
0
)
->
field
(
$field
)
->
order
(
'weigh desc'
)
->
paginate
(
$limit
);
$arr
[
'data'
]
=
$res
->
toArray
();
$arr
[
'page'
]
=
$res
->
render
();
return
$
res
;
return
$
arr
;
}
//星际活动详情
...
...
@@ -59,8 +59,9 @@ class ActiveController extends HomeBaseController
$res
=
$starModel
->
getDetail
(
$id
,
$field
);
if
(
$res
){
$more
=
json_decode
(
$res
[
'more'
],
true
);
$res
[
'image_url'
]
=
isset
(
$more
[
'photos'
])
&&
!
empty
(
$more
[
'photos'
])
?
$more
[
'photos'
]
:
''
;
$res
[
'image_url'
]
=
isset
(
$more
[
'photos'
])
&&
!
empty
(
$more
[
'photos'
])
?
$more
[
'photos'
]
[
0
][
'url'
]
:
''
;
}
$this
->
assign
(
'res'
,
$res
);
return
$this
->
fetch
();
}
}
...
...
public/themes/simpleboot3/portal/active/get_active_detail.html
0 → 100644
查看文件 @
c717043
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
星际活动详情
</title>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/show.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/mask.css"
>
<style>
.active_url
{
height
:
50px
;
background
:
#5454AF
;
margin-bottom
:
80px
;
}
.active_url
p
{
text-align
:
center
;
line-height
:
50px
;
vertical-align
:
middle
;
font-size
:
17px
;
color
:
#fff
;
}
.active_url
span
{
color
:
#3AFFA5
;
}
</style>
</head>
<body>
<include
file=
"public@header"
/>
<div
class=
"mask"
>
</div>
<!-- 侧边栏 -->
<include
file=
"public@slide"
/>
<!--主体内容-->
<div
class=
"show_2"
>
<!--banner-->
<div
class=
"show_banner"
>
<img
src=
"{:cmf_get_image_url($res.image_url)}"
alt=
""
>
</div>
<!--main-->
<div
class=
"show_main"
>
<!-- 头部 -->
<div
class=
"show_main_Tit clearfix"
>
<h1>
{$res.post_title}
</h1>
<p>
{$res.create_time|date="Y-m-d",###}
</p>
</div>
<!-- 文字内容 -->
<div
class=
"show_main_txt"
>
{$res.post_content}
</div>
</div>
<notempty
name=
"user"
>
<div
class=
"active_url"
>
<p>
活动外链:
<a
href=
"{$res.active_url}"
><span>
{$res.active_url}
</span></a>
</p>
</div>
<else/>
<div
class=
"active_url"
>
<p>
登录后可见活动外链
</p>
</div>
</notempty>
</div>
<include
file=
"public@footer"
/>
</body>
<script
src=
"__TMPL__/public/assets/js/jquery-3.2.1.min.js"
></script>
<script
src=
"__TMPL__/public/assets/js/public.js"
></script>
</html>
\ No newline at end of file
...
...
public/themes/simpleboot3/portal/active/index.html
0 → 100644
查看文件 @
c717043
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
星际活动
</title>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/bootstrap4.0.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/enjoyment.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/activity_index.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/Scout_index.css"
>
<style>
.Activity
{
width
:
1200px
!important
;
}
.container
{
max-width
:
1200px
;
padding-right
:
0
;
padding-left
:
0
;
}
</style>
</head>
<body>
<include
file=
"public@header"
/>
<div
class=
"banner"
>
<img
src=
"__TMPL__/public/assets/starImg/bicon_01.png"
alt=
""
>
</div>
<main>
<div
class=
"container"
>
<div
class=
"Activity"
>
<div
class=
"Spot_title clearfix"
>
<div
class=
"Spot_icon fl"
>
<img
src=
"__TMPL__/public/assets/starImg/aicon_79.png"
alt=
""
>
</div>
<div
class=
"Spot_name fl"
>
<div
class=
"Spot_name_left fl"
>
星际
</div>
<div
class=
"Spot_name_right fl"
>
活动
</div>
</div>
<div
class=
"Spot_English_name fl"
>
<p>
Innovation
</p>
</div>
</div>
<div
class=
"Activity_main clearfix"
>
<volist
name=
"res['data']"
id=
"vo"
offset=
"0"
length=
"1"
>
<div
class=
"Activity_item_big"
>
<a
href=
"/portal/active/getActiveDetail?id={$vo.id}"
>
<div
class=
"Activity_item_img"
>
<img
src=
"{:cmf_get_image_url($vo.thumbnail)}"
alt=
""
>
</div>
<div
class=
"Activity_item_text"
>
{$vo.post_title}
</div>
</a>
</div>
</volist>
<volist
name=
"res['data']"
id=
"vo"
offset=
"1"
length=
"4"
>
<div
class=
"Activity_item_small"
>
<a
href=
"/portal/active/getActiveDetail?id={$vo.id}"
>
<div
class=
"Activity_item_img"
>
<img
src=
"{:cmf_get_image_url($vo.thumbnail)}"
alt=
""
>
</div>
<div
class=
"Activity_item_text"
>
{$vo.post_title}
</div>
</a>
</div>
</volist>
</div>
<!--分页-->
<div
class=
"pagination"
>
{$page|default=''}
</div>
</div>
</div>
</main>
<include
file=
"public@footer"
/>
<script
src=
"__TMPL__/public/assets/js/jquery-3.2.1.min.js"
></script>
<script
src=
"__TMPL__/public/assets/js/public.js"
></script>
</body>
</html>
...
...
public/themes/simpleboot3/portal/region/get_more_video.html
查看文件 @
c717043
...
...
@@ -5,15 +5,15 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
星
域秀场--星球影院
</title>
<title>
星
球影院更多
</title>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/show.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/mask.css"
>
</head>
<body>
<include
file=
"public@header"
/>
<!-- 弹出框 -->
<div
class=
"video_mask"
>
您还不是VIP,可试看15秒
<div
class=
"mask"
>
</div>
<div
class=
"show_9 clearfix"
>
<!-- 视频 -->
...
...
@@ -21,6 +21,7 @@
<img
class=
"video_poster iop"
src=
""
alt=
""
>
<video
id=
"video"
width=
"100%"
height=
"426"
src=
""
></video>
<img
class=
"play_button"
onclick=
"bofang()"
src=
"__TMPL__/public/assets/starImg/aicon_30.png"
alt=
""
>
<div
class=
"video_box"
></div>
</div>
<!-- 视频侧边选择 -->
<div
class=
"show_9_video_aside"
>
...
...
@@ -187,6 +188,7 @@
$
(
'.play_button'
).
hide
();
$
(
'.video_poster'
).
css
(
'z-index'
,
'-1'
);
}
</script>
</body>
...
...
public/themes/simpleboot3/portal/region/index.html
查看文件 @
c717043
...
...
@@ -169,9 +169,7 @@
<ul
class=
"swiper-wrapper"
>
<volist
name=
"res_xyhl"
id=
"vo"
>
<li
class=
"swiper-slide"
>
<a
href=
"/portal/region/getGalleryDetail?id={$vo.id}"
>
<img
class=
"swiper-slide slide-image"
src=
"{:cmf_get_image_url($vo.thumbnail)}"
alt=
""
>
</a>
</li>
</volist>
</ul>
...
...
public/themes/simpleboot3/public/assets/css/Scout_index.css
查看文件 @
c717043
...
...
@@ -5,7 +5,7 @@
main
{
padding-top
:
142px
;
padding-bottom
:
1
0
0px
;
padding-bottom
:
1
5
0px
;
box-sizing
:
border-box
;
}
...
...
public/themes/simpleboot3/public/assets/css/activity_index.css
0 → 100644
查看文件 @
c717043
.banner
img
{
height
:
666px
;
width
:
100%
;
}
main
{
padding-top
:
142px
;
padding-bottom
:
100px
;
}
.Activity_item_big
{
width
:
100%
;
}
.Activity_item_big
.Activity_item_img
img
{
height
:
444px
;
width
:
100%
;
}
.Activity_item_big
.Activity_item_text
{
padding
:
14px
38px
;
box-sizing
:
border-box
;
background
:
#fff
;
width
:
100%
;
font-synthesis
:
16px
;
color
:
#1A1A1A
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.Activity_item_small
{
width
:
592px
;
float
:
right
;
}
.Activity_item_small
:nth-child
(
2n
)
{
float
:
left
;
}
.Activity_item_small
.Activity_item_img
img
{
width
:
100%
;
height
:
300px
;
margin-top
:
40px
;
}
.Activity_item_small
.Activity_item_text
{
padding
:
14px
38px
;
box-sizing
:
border-box
;
background
:
#fff
;
width
:
100%
;
font-synthesis
:
16px
;
color
:
#1A1A1A
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
\ No newline at end of file
...
...
public/themes/simpleboot3/public/assets/css/header.css
查看文件 @
c717043
...
...
@@ -2,7 +2,7 @@
#header
{
width
:
100%
;
height
:
8
0
px
;
height
:
8
2
px
;
line-height
:
80px
;
background-color
:
white
;
}
...
...
public/themes/simpleboot3/public/assets/css/show.css
查看文件 @
c717043
...
...
@@ -1772,6 +1772,7 @@ body {
position
:
fixed
;
top
:
44%
;
left
:
50%
;
display
:
block
;
transform
:
translate
(
-50%
,
-50%
);
-webkit-transform
:
translate
(
-50%
,
-50%
);
-moz-transform
:
translate
(
-50%
,
-50%
);
...
...
@@ -1784,7 +1785,13 @@ body {
font-size
:
18px
;
color
:
rgba
(
255
,
255
,
255
,
1
);
}
.video_box
{
width
:
100%
;
height
:
30px
;
visibility
:
hidden
;
position
:
absolute
;
bottom
:
0
;
}
/*故事更多頁面*/
.show_story
{
width
:
1200px
;
...
...
请
注册
或
登录
后发表评论