调整首页布局

This commit is contained in:
DESKTOP-GMUNQ1B\Administrator 2024-12-03 16:20:37 +08:00
parent 78d7606349
commit 61dbfd5844
2 changed files with 19 additions and 9 deletions

View File

@ -1,10 +1,10 @@
<?php <?php
return [ return [
'type' => 'mysql', 'type' => 'mysql',
'hostname' => '127.0.0.1', 'hostname' => '47.108.186.87',
'database' => 'foxcms', 'database' => 'lihaink_cn_new',
'username' => 'root', 'username' => 'lihaink_cn_new',
'password' => 'root', 'password' => 'c6tiAe4nBrPJG6H8',
'hostport' => '3306', 'hostport' => '3306',
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'prefix' => 'fox_', 'prefix' => 'fox_',

View File

@ -136,16 +136,16 @@
<div class="foxui-row foxui-gutter-1" style="justify-content: center;"> <div class="foxui-row foxui-gutter-1" style="justify-content: center;">
{fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"} {fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"}
{if $cv.id != 90} {if $cv.id != 90}
<div class="foxui-col-sm-12 foxui-col-lg-8" style="width: 36%;margin: 10px;"> <div class="foxui-col-sm-12 foxui-col-lg-12" style="margin: 6px;width: 48%">
<a href="[$cv.link]" class="list-case-item" style="display: block"> <a href="[$cv.link]" class="list-case-item business-item">
<div class="pic"> <div class="pic business-item-image">
<img src="[$cv.pic_url]" alt="" /> <img src="[$cv.pic_url]" alt="" />
</div> </div>
<div class="cover"> <div class="cover business-item-cover">
<div class="cover-head"> <div class="cover-head">
</div> </div>
<div class="cover-foot"> <div class="cover-foot">
<h2>[$cv.name]</h2> <h2>[$cv.seo_title]</h2>
<h3>[$cv.en_name]</h3> <h3>[$cv.en_name]</h3>
</div> </div>
</div> </div>
@ -306,5 +306,15 @@
.flex-wrap { .flex-wrap {
flex-wrap: wrap; flex-wrap: wrap;
} }
.business-item {
display: block;
padding-bottom: 40%;
.business-item-image {
height: 342px;
}
.business-item-cover {
height: 342px;
}
}
</style> </style>
</html> </html>