切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
7817abe2e6b0ab1fdbc52216eb9e28be1580ad7e
1 个父辈
1a31c4a5
1 个管道 的构建
通过
耗费 3 秒
调节个人主页整体的大小
变更
4
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
51 行增加
和
56 行删除
app/config.php
app/portal/controller/IndexController.php
public/themes/simpleboot3/public/assets/css/login.css
public/themes/simpleboot3/public/assets/css/person.css
app/config.php
查看文件 @
7817abe
...
...
@@ -170,7 +170,7 @@ $configs = [
// 缓存前缀
'prefix'
=>
''
,
// 缓存有效期 0表示永久缓存
'expire'
=>
0
,
'expire'
=>
360
0
,
],
// +----------------------------------------------------------------------
// | 会话设置
...
...
app/portal/controller/IndexController.php
查看文件 @
7817abe
...
...
@@ -25,7 +25,7 @@ class IndexController extends HomeBaseController
$coverImg
=
cache
(
'coverImg'
);
if
(
!
$coverImg
){
$coverImg
=
$this
->
getCoverImg
(
CityCategoryModel
::
indexImg
,
3
);
cache
(
'coverImg'
,
$coverImg
,
86400
);
cache
(
'coverImg'
,
$coverImg
);
}
$this
->
assign
(
'coverImg'
,
$coverImg
);
...
...
@@ -52,7 +52,7 @@ class IndexController extends HomeBaseController
}
}
}
cache
(
'res_city'
,
$city
,
86400
);
//有效期一天
cache
(
'res_city'
,
$city
);
}
$this
->
assign
(
'res_city'
,
$city
);
...
...
@@ -72,51 +72,46 @@ class IndexController extends HomeBaseController
}
}
}
cache
(
'res_month'
,
$month
,
86400
);
//有效期一天
cache
(
'res_month'
,
$month
);
}
$this
->
assign
(
'res_month'
,
$month
);
//星域秀场->星球影院
// $res_xqyy = cache('res_xqyy');
// if(!$res_xqyy){
// $position = CityCategoryModel::xqyy;
// $field = 'id,more,thumbnail';
// $res_xqyy = $this->getVideoIndex($position,$field,1);
// foreach($res_xqyy as &$value){
// $video = json_decode($value['more'],true);
// $value['video'] = $video['video'];
// }
// if($res_xqyy){
// $res_xqyy = $res_xqyy[0];
// }
// cache('res_xqyy', $res_xqyy,86400);//有效期一天
$position
=
CityCategoryModel
::
xqyy
;
$field
=
'id,more,index_thumbnail'
;
$res_xqyy
=
$this
->
getVideoIndex
(
$position
,
$field
,
1
);
foreach
(
$res_xqyy
as
&
$value
){
$video
=
json_decode
(
$value
[
'more'
],
true
);
$value
[
'video'
]
=
$video
[
'video'
];
}
if
(
$res_xqyy
){
$res_xqyy
=
$res_xqyy
[
0
];
}
// cache('res_xqyy', $res_xqyy);
// }
$position
=
CityCategoryModel
::
xqyy
;
$field
=
'id,more,index_thumbnail'
;
$res_xqyy
=
$this
->
getVideoIndex
(
$position
,
$field
,
1
);
foreach
(
$res_xqyy
as
&
$value
){
$video
=
json_decode
(
$value
[
'more'
],
true
);
$value
[
'video'
]
=
$video
[
'video'
];
}
if
(
$res_xqyy
){
$res_xqyy
=
$res_xqyy
[
0
];
}
$this
->
assign
(
'res_xqyy'
,
$res_xqyy
);
//推广视频
$position
=
CityCategoryModel
::
xqyy
;
$city_id
=
CityCategoryModel
::
djxq
;
$field
=
'id,more,thumbnail'
;
$res_djxq
=
$this
->
getVideo
(
$position
,
$city_id
,
$field
,
1
);
foreach
(
$res_djxq
as
&
$value
){
$video
=
json_decode
(
$value
[
'more'
],
true
);
$value
[
'video'
]
=
$video
[
'video'
];
}
if
(
$res_djxq
){
$res_djxq
=
$res_djxq
[
0
];
$res_djxq
=
cache
(
'res_djxq'
);
if
(
!
$res_djxq
){
$position
=
CityCategoryModel
::
xqyy
;
$city_id
=
CityCategoryModel
::
djxq
;
$field
=
'id,more,thumbnail'
;
$res_djxq
=
$this
->
getVideo
(
$position
,
$city_id
,
$field
,
1
);
foreach
(
$res_djxq
as
&
$value
){
$video
=
json_decode
(
$value
[
'more'
],
true
);
$value
[
'video'
]
=
$video
[
'video'
];
}
if
(
$res_djxq
){
$res_djxq
=
$res_djxq
[
0
];
}
cache
(
'res_djxq'
,
$res_djxq
);
}
$this
->
assign
(
'res_djxq'
,
$res_djxq
);
//星域秀场->明星访谈
$res_mxft
=
cache
(
'res_mxft'
);
if
(
!
$res_mxft
){
...
...
@@ -126,7 +121,7 @@ class IndexController extends HomeBaseController
if
(
$res_mxft
){
$res_mxft
=
$res_mxft
[
0
];
}
cache
(
'res_mxft'
,
$res_mxft
,
86400
);
cache
(
'res_mxft'
,
$res_mxft
);
}
$this
->
assign
(
'res_mxft'
,
$res_mxft
);
...
...
@@ -137,7 +132,7 @@ class IndexController extends HomeBaseController
$position
=
CityCategoryModel
::
xyhl
;
$field
=
'id,thumbnail'
;
$res_xyhl
=
$this
->
getChildArticle
(
$position
,
$field
,
16
);
cache
(
'res_xyhl'
,
$res_xyhl
,
86400
);
cache
(
'res_xyhl'
,
$res_xyhl
);
}
$this
->
assign
(
'res_xyhl'
,
$res_xyhl
);
...
...
@@ -148,7 +143,7 @@ class IndexController extends HomeBaseController
$position
=
CityCategoryModel
::
xttj
;
$field
=
'id,post_title,price,index_thumbnail,place'
;
$res_xttj
=
$this
->
getParentArticle
(
$position
,
$field
,
16
);
cache
(
'res_xttj'
,
$res_xttj
,
86400
);
cache
(
'res_xttj'
,
$res_xttj
);
}
$this
->
assign
(
'res_xttj'
,
$res_xttj
);
...
...
@@ -159,7 +154,7 @@ class IndexController extends HomeBaseController
$position
=
CityCategoryModel
::
xjhd
;
$field
=
'id,post_title,thumbnail'
;
$res_xjhd
=
$this
->
getParentArticle
(
$position
,
$field
,
2
);
cache
(
'res_xjhd'
,
$res_xjhd
,
86400
);
cache
(
'res_xjhd'
,
$res_xjhd
);
}
$this
->
assign
(
'res_xjhd'
,
$res_xjhd
);
return
$this
->
fetch
();
...
...
public/themes/simpleboot3/public/assets/css/login.css
查看文件 @
7817abe
...
...
@@ -196,6 +196,6 @@ body {
color
:
#FFFEFE
;
margin-top
:
30px
;
font-size
:
16px
;
margin-bottom
:
20px
;
/*margin-bottom: 20px;*/
/*font-synthesis: 16px;*/
}
...
...
public/themes/simpleboot3/public/assets/css/person.css
查看文件 @
7817abe
...
...
@@ -9,45 +9,45 @@
-ms-transform
:
translate
(
-50%
,
-50%
);
}
.personal_center
{
width
:
519px
;
height
:
386px
;
width
:
487px
;
height
:
330px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
box-shadow
:
0px
32px
36px
2px
rgba
(
0
,
0
,
0
,
0.04
);
border-radius
:
20px
;
margin
:
0
auto
;
padding
:
0
160px
;
padding-top
:
94px
;
padding
:
0
159px
;
padding-top
:
81px
;
box-sizing
:
border-box
;
}
.personal_center_avatar
{
width
:
140px
;
height
:
140px
;
width
:
125px
;
height
:
125px
;
background
:
#fff
;
border-radius
:
50%
;
top
:
-
75
px
;
top
:
-
58
px
;
position
:
absolute
;
left
:
1
9
1px
;
left
:
1
8
1px
;
}
.personal_center_avatar
img
{
margin
:
5px
;
width
:
130px
;
height
:
130px
;
width
:
115px
;
height
:
115px
;
border-radius
:
50%
;
}
.Editor_avatar
,
.Modifying
,
.Collection
{
height
:
64
px
;
height
:
58
px
;
background
:
rgba
(
43
,
213
,
135
,
1
);
border-radius
:
32px
;
padding
:
2
2px
41
px
;
padding
:
2
0px
32
px
;
box-sizing
:
border-box
;
color
:
#fff
;
font-size
:
20px
;
margin-bottom
:
24px
;
font-size
:
18px
;
margin-bottom
:
17px
;
cursor
:
pointer
;
}
...
...
@@ -111,8 +111,8 @@
width
:
150px
;
height
:
55px
;
font-size
:
12px
;
right
:
185px
;
top
:
120px
;
right
:
167px
;
top
:
82px
;
opacity
:
0
;
cursor
:
pointer
;
}
...
...
请
注册
或
登录
后发表评论