Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
2586703@qq.com
10 years ago
Commit
d484fdadc0783f1de7e08b1910c62a98c681f90f
2 parents
41d5165f
d6db5c34
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
website/view/script/default/index.php
website/view/script/default/index.php
View file @
d484fda
...
...
@@ -151,7 +151,14 @@ EOL;
}
foreach
(
$banners
as
$banner
)
:
$res_size
=
json_decode
(
$banner
[
'res_size'
],
true
);
$height
=
ceil
(
$res_size
[
'height'
]
*
(
308
/
$res_size
[
'width'
]));
if
(
$res_size
[
'height'
]
<
308
&&
$res_size
[
'width'
]
<
308
)
{
$height
=
$res_size
[
'height'
];
}
else
{
$height
=
ceil
(
$res_size
[
'height'
]
*
(
308
/
$res_size
[
'width'
]));
}
$width
=
308
;
?>
<div
class=
"image-box"
style=
"padding-bottom: 30px;"
>
...
...
Please
register
or
login
to post a comment