切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
361cc09de87fa8ee688d037d0f0a2ad6d96950ab
1 个父辈
c99dc44f
1 个管道 的构建
通过
耗费 1 秒
修改头部去掉星球奇境下的栏目
变更
7
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
96 行增加
和
87 行删除
app/portal/controller/RegionController.php
public/themes/simpleboot3/portal/index/index.html
public/themes/simpleboot3/portal/region/get_more_star.html
public/themes/simpleboot3/public/assets/css/header.css
public/themes/simpleboot3/public/assets/css/show.css
public/themes/simpleboot3/public/header.html
simplewind/cmf/controller/HomeBaseController.php
app/portal/controller/RegionController.php
查看文件 @
361cc09
...
...
@@ -105,7 +105,7 @@ class RegionController extends HomeBaseController
}
//根据子类获取文章分页
public
function
getChildArticlePage
(
$position
,
$field
,
$
page
,
$
limit
=
''
){
public
function
getChildArticlePage
(
$position
,
$field
,
$limit
=
''
){
$pre
=
CityCategoryModel
::
pre
;
$limit
=
empty
(
$limit
)
?
$this
->
more_limit
:
$limit
;
$post_id
=
Db
::
table
(
$pre
.
'portal_category_post'
)
...
...
@@ -120,7 +120,7 @@ class RegionController extends HomeBaseController
->
where
(
'delete_time'
,
0
)
->
field
(
$field
)
->
order
(
'weigh desc'
)
->
paginate
(
1
);
->
paginate
(
$limit
);
$arr
[
'data'
]
=
$res
->
toArray
();
$arr
[
'page'
]
=
$res
->
render
();
return
$arr
;
...
...
@@ -154,10 +154,9 @@ class RegionController extends HomeBaseController
//明星访谈更多
public
function
getMoreStar
(){
$page
=
$this
->
request
->
param
(
'page'
,
1
,
'intval'
);
$position
[
'category_id'
]
=
CityCategoryModel
::
mxft
;
$field
=
'id,thumbnail avatar,full_name,position,trade,post_excerpt'
;
$res
=
$this
->
getChildArticlePage
(
$position
,
$field
,
$page
,
5
);
$res
=
$this
->
getChildArticlePage
(
$position
,
$field
,
5
);
$this
->
assign
(
'res'
,
$res
[
'data'
]);
$this
->
assign
(
'page'
,
$res
[
'page'
]);
return
$this
->
fetch
();
...
...
public/themes/simpleboot3/portal/index/index.html
查看文件 @
361cc09
...
...
@@ -27,7 +27,7 @@
<!-- 首页主体内容 -->
<div
id=
"star_main"
>
<!-- 星球奇境 -->
<div
class=
"star_happy"
>
<div
class=
"star_happy"
id=
"star"
>
<div>
<span
class=
"happy_title clearfix"
>
<p>
星球
<i>
奇境
</i></p>
...
...
public/themes/simpleboot3/portal/region/get_more_star.html
查看文件 @
361cc09
...
...
@@ -32,75 +32,82 @@
<!--</div>-->
</div>
<!-- 内容--1 -->
<div
class=
"show_INMain_con clearfix"
>
<img
class=
"show_INMain_con1"
src=
"__TMPL__/public/assets/starImg/aicon_31.png"
alt=
""
>
<div
class=
"show_INMain_con2 clearfix"
>
<img
class=
"show_INMain_con3"
src=
"__TMPL__/public/assets/starImg/aicon_32.png"
alt=
""
>
<h2>
胡歌
</h2>
<h3>
著名国际巨星 慈善家
</h3>
<p>
那年孩子们都上大学了,我孑然一身,几个老弟兄说出国走走看看,一个老嫂子会点外语,于是我们就自由行到了欧洲,法国,德国,意大利,几个国家转了一圈,外国的天气,气候真是清新,不去的时候不想,但是身临其境的时候就会感受到巨大的差异。巴黎车水马龙,意大利热情奔放,
</p>
<notempty
name=
"res['data'][0]"
>
<div
class=
"show_INMain_con clearfix"
>
<img
class=
"show_INMain_con1"
src=
"{:cmf_get_image_url($res['data'][0]['avatar'])}"
alt=
""
>
<div
class=
"show_INMain_con2 clearfix"
>
<img
class=
"show_INMain_con3"
src=
"__TMPL__/public/assets/starImg/aicon_32.png"
alt=
""
>
<h2>
{$res['data'][0]['full_name']}
</h2>
<h3>
{$res['data'][0]['position']} {$res['data'][0]['trade']}
</h3>
<p>
{$res['data'][0]['post_excerpt']}
</p>
</div>
</div>
</div>
<!--<else/>-->
<!--<div class="show_INMain_con clearfix">-->
<!--<img class="show_INMain_con1" src="__TMPL__/public/assets/starImg/aicon_31.png" alt="">-->
<!--<div class="show_INMain_con2 clearfix">-->
<!--<img class="show_INMain_con3" src="__TMPL__/public/assets/starImg/aicon_32.png" alt="">-->
<!--<h2>胡歌</h2>-->
<!--<h3>著名国际巨星 慈善家</h3>-->
<!--<p>那年孩子们都上大学了,我孑然一身,几个老弟兄说出国走走看看,一个老嫂子会点外语,于是我们就自由行到了欧洲,法国,德国,意大利,几个国家转了一圈,外国的天气,气候真是清新,不去的时候不想,但是身临其境的时候就会感受到巨大的差异。巴黎车水马龙,意大利热情奔放,</p>-->
<!--</div>-->
<!--</div>-->
</notempty>
<!-- 内容--2 -->
<div
class=
"show_3_list"
>
<ul
class=
"clearfix"
>
<li>
<img
src=
"__TMPL__/public/assets/starImg/bicon_24.png"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
斯嘉丽·约翰逊
</h1>
<h2>
著名国际巨星 慈善家
</h2>
<p>
这两位的婚礼这几天在微博上是大有刷屏之势,新娘新郎就算了,连参加婚礼的宾客们都轮番换着上热搜,那叫一个热闹。其实除了刘诗诗吴奇隆,之前杨幂和刘恺威的婚礼也是选在了巴厘岛。地处印度尼西亚的巴厘岛是著名的旅游海岛,岛上热带风情浓郁,风景绮丽无比,这里的细阔沙滩. 魂牵梦绕。
</p>
</div>
</li>
<li>
<img
src=
"__TMPL__/public/assets/starImg/bicon_24.png"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
斯嘉丽·约翰逊
</h1>
<h2>
著名国际巨星 慈善家
</h2>
<p>
这两位的婚礼这几天在微博上是大有刷屏之势,新娘新郎就算了,连参加婚礼的宾客们都轮番换着上热搜,那叫一个热闹。其实除了刘诗诗吴奇隆,之前杨幂和刘恺威的婚礼也是选在了巴厘岛。地处印度尼西亚的巴厘岛是著名的旅游海岛,岛上热带风情浓郁,风景绮丽无比,这里的细阔沙滩. 魂牵梦绕。
</p>
</div>
</li>
<li>
<img
src=
"__TMPL__/public/assets/starImg/bicon_24.png"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
斯嘉丽·约翰逊
</h1>
<h2>
著名国际巨星 慈善家
</h2>
<p>
这两位的婚礼这几天在微博上是大有刷屏之势,新娘新郎就算了,连参加婚礼的宾客们都轮番换着上热搜,那叫一个热闹。其实除了刘诗诗吴奇隆,之前杨幂和刘恺威的婚礼也是选在了巴厘岛。地处印度尼西亚的巴厘岛是著名的旅游海岛,岛上热带风情浓郁,风景绮丽无比,这里的细阔沙滩. 魂牵梦绕。
</p>
</div>
</li>
<notempty
name=
"res['data'][1]"
>
<li>
<img
src=
"{:cmf_get_image_url($res['data'][1]['avatar'])}"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
{$res['data'][1]['full_name']}
</h1>
<h2>
{$res['data'][1]['position']} {$res['data'][1]['trade']}
</h2>
<p>
{$res['data'][1]['post_excerpt']}
</p>
</div>
</li>
</notempty>
<notempty
name=
"res['data'][2]"
>
<li>
<img
src=
"{:cmf_get_image_url($res['data'][2]['avatar'])}"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
{$res['data'][2]['full_name']}
</h1>
<h2>
{$res['data'][2]['position']} {$res['data'][2]['trade']}
</h2>
<p>
{$res['data'][2]['post_excerpt']}
</p>
</div>
</li>
</notempty>
<notempty
name=
"res['data'][3]"
>
<li>
<img
src=
"{:cmf_get_image_url($res['data'][3]['avatar'])}"
alt=
""
>
<div
class=
"show_3_list_txt"
>
<h1>
{$res['data'][3]['full_name']}
</h1>
<h2>
{$res['data'][3]['position']} {$res['data'][3]['trade']}
</h2>
<p>
{$res['data'][3]['post_excerpt']}
</p>
</div>
</li>
</notempty>
</ul>
</div>
<!-- 内容--3 -->
<div
class=
"show_INMain_con show_3_con3 clearfix"
>
<img
class=
"show_INMain_con1"
src=
"__TMPL__/public/assets/starImg/aicon_31.png"
alt=
""
>
<div
class=
"show_INMain_con2 clearfix"
>
<img
class=
"show_INMain_con3"
src=
"__TMPL__/public/assets/starImg/aicon_32.png"
alt=
""
>
<h2>
林允儿
</h2>
<h3>
著名国际巨星 慈善家
</h3>
<p>
那年孩子们都上大学了,我孑然一身,几个老弟兄说出国走走看看,一个老嫂子会点外语,于是我们就自由行到了欧洲,法国,德国,意大利,几个国家转了一圈,外国的天气,气候真是清新,不去的时候不想,但是身临其境的时候就会感受到巨大的差异。巴黎车水马龙,意大利热情奔放,
</p>
<notempty
name=
"res['data'][4]"
>
<div
class=
"show_INMain_con show_3_con3 clearfix"
>
<img
class=
"show_INMain_con1"
src=
"{:cmf_get_image_url($res['data'][4]['avatar'])}"
alt=
""
>
<div
class=
"show_INMain_con2 clearfix"
>
<img
class=
"show_INMain_con3"
src=
"__TMPL__/public/assets/starImg/aicon_32.png"
alt=
""
>
<h2>
{$res['data'][4]['full_name']}
</h2>
<h3>
{$res['data'][4]['position']} {$res['data'][4]['trade']}
</h3>
<p>
{$res['data'][4]['post_excerpt']}
</p>
</div>
</div>
</div>
<!-- 底部翻页 -->
<!-- <div class="show_3_nextPage clearfix">
<span> < </span>
<p>1</p>
<p>2</p>
<p>3</p>
<span> > </span>
</div> -->
</notempty>
<!--分页-->
<div
class=
"pagination"
>
...
...
public/themes/simpleboot3/public/assets/css/header.css
查看文件 @
361cc09
...
...
@@ -77,6 +77,11 @@
.home_nav_down2
dl
dd
:hover
{
background
:
rgba
(
58
,
255
,
165
,
1
);
}
.home_nav_down2
dl
dd
a
:hover
{
background
:
rgba
(
58
,
255
,
165
,
1
);
color
:
#2d374b
;
text-decoration
:
none
;
}
.home_nav_down2
dl
dd
{
overflow
:
hidden
;
...
...
@@ -101,10 +106,16 @@
color
:
rgba
(
9
,
255
,
142
,
1
);
border-top
:
4px
solid
rgba
(
9
,
255
,
142
,
1
);
}
.home_nav_act
a
:hover
{
color
:
rgba
(
9
,
255
,
142
,
1
);
border-top
:
4px
solid
rgba
(
9
,
255
,
142
,
1
);
text-decoration
:
none
;
}
.home_nav
.home_nav_act_A
:hover
{
color
:
rgba
(
9
,
255
,
142
,
1
);
border-top
:
4px
solid
rgba
(
9
,
255
,
142
,
1
);
text-decoration
:
none
;
}
...
...
public/themes/simpleboot3/public/assets/css/show.css
查看文件 @
361cc09
...
...
@@ -789,6 +789,8 @@ body {
right
:
0
;
margin
:
auto
;
width
:
140px
;
height
:
140px
;
border-radius
:
50%
;
}
.show_3_list_txt
h1
{
...
...
public/themes/simpleboot3/public/header.html
查看文件 @
361cc09
...
...
@@ -10,6 +10,9 @@
<li
class=
"home_nav_act"
>
<a
class=
"home_nav_act"
href=
"/"
>
首页
</a>
</li>
<li
class=
"slide_vo"
>
<a
class=
"home_nav_act_A"
href=
"/#star"
>
星球奇境
</a>
</li>
<volist
name=
"slide"
id=
"vo"
>
<li
class=
"slide_vo"
>
<a
class=
"home_nav_act_A"
href=
"{$vo.url}"
>
{$vo.name}
</a>
...
...
@@ -17,29 +20,16 @@
<div
class=
"home_nav_down2"
>
<img
src=
"__TMPL__/public/assets/starImg/aicon_32.png"
alt=
""
>
<dl>
<volist
name=
"vo.child"
id=
"voo"
>
<dd><a
href=
"{$voo.url}"
>
{$voo.name}
</a></dd>
</volist>
<notempty
name=
"vo.child"
>
<volist
name=
"vo.child"
id=
"voo"
>
<dd><a
href=
"{$voo.url}"
>
{$voo.name}
</a></dd>
</volist>
</notempty>
</dl>
</div>
</div>
</li>
</volist>
<!--<li>-->
<!--<a href="">星球奇境</a>-->
<!--<!– 下拉导航 –>-->
<!--<div class="home_nav_down">-->
<!--<div class="home_nav_down2">-->
<!--<img src="__TMPL__/public/assets/starImg/aicon_32.png" alt="">-->
<!--<dl>-->
<!--<dd><a href="">地标1</a></dd>-->
<!--<dd><a href="">地标1</a></dd>-->
<!--<dd><a href="">地标1</a></dd>-->
<!--<dd><a href="">地标1</a></dd>-->
<!--</dl>-->
<!--</div>-->
<!--</div>-->
<!--</li>-->
</ul>
</section>
<!-- 搜索框 -->
...
...
simplewind/cmf/controller/HomeBaseController.php
查看文件 @
361cc09
...
...
@@ -307,7 +307,7 @@ hello;
//获取导航栏相关内容
public
function
getHeader
(){
$parent
=
Db
::
name
(
'portal_category'
)
->
whereIn
(
'id'
,[
1
,
2
,
3
,
4
,
5
])
->
whereIn
(
'id'
,[
2
,
3
,
4
,
5
])
->
field
(
'id,name,description url'
)
->
select
()
->
toArray
();
...
...
@@ -318,8 +318,8 @@ hello;
->
toArray
();
$arr
=
[];
foreach
(
$parent
as
&
$p_value
){
foreach
(
$child
as
$c_key
=>
$c_value
){
if
(
$p_value
[
'id'
]
==
$c_value
[
'parent_id'
]){
foreach
(
$child
as
$c_key
=>
$c_value
)
{
if
(
$p_value
[
'id'
]
==
$c_value
[
'parent_id'
])
{
$p_value
[
'child'
][]
=
$c_value
;
}
}
...
...
请
注册
或
登录
后发表评论