Compare commits

...

30 Commits

Author SHA1 Message Date
Gongxinshu 4b10f3c84d 1.14添加锚点 2022-01-14 14:16:44 +08:00
Gongxinshu 6c867cd4af 1.14添加锚点 2022-01-14 11:43:21 +08:00
tangyi 79a1fecc1c Merge branch 'master' of http://git.scdxtc.com/zwesy/chaoyu 2022-01-13 10:47:08 +08:00
tangyi 64ec12400f 修改 2022-01-13 10:46:46 +08:00
Gongxinshu 802fcf5d1a 1.10修改 2022-01-10 17:11:34 +08:00
Gongxinshu a6f7260598 1.10字体调整 2022-01-10 16:46:38 +08:00
Gongxinshu 8c91089247 1.10 2022-01-10 10:34:35 +08:00
tangyi eaf2881826 修改 2022-01-06 18:10:19 +08:00
15008401624 dcd627783f 导航浮动 2021-01-29 11:43:10 +08:00
zwesy 5d1ad23b45 更新:文件上传最大执行时长修改为30秒内 2020-12-18 17:19:24 +08:00
15008401624 99c065b27a 样式 2020-12-17 14:52:47 +08:00
15008401624 ff2cd1ffae 样式 2020-12-17 11:07:12 +08:00
15008401624 4c25e46adb 样式 2020-12-17 10:31:26 +08:00
15008401624 089cb31f69 样式 2020-12-17 10:29:51 +08:00
15008401624 873d87a0e3 样式 2020-12-17 10:27:44 +08:00
zwesy 931d3dd81e Merge branch 'master' of gitee.com:dxtc/chaoyu 2020-12-17 10:14:44 +08:00
zwesy 337cb0b40d 更新:产品页面显示所有产品分类,样式待调整 2020-12-17 10:14:38 +08:00
15008401624 3069b94fe9 样式 2020-12-17 09:18:12 +08:00
zwesy bc710ece5c 更新:网站favicon 2020-12-14 10:05:29 +08:00
15008401624 a5d3c6fbca js修改 2020-12-14 09:02:48 +08:00
15008401624 f82b87600f 样式调整 2020-12-11 11:38:07 +08:00
zwesy 07e2fb0440 更新:非直接客户取消维护联系方式 2020-12-10 17:48:15 +08:00
zwesy 104a725ccb Merge branch 'master' of gitee.com:dxtc/chaoyu 2020-12-10 17:33:03 +08:00
zwesy fc913c4270 更新:替换favicon图标 2020-12-10 17:32:59 +08:00
15008401624 2496b69e98 样式 2020-12-10 16:44:52 +08:00
zwesy 56f27172a4 更新:修复后台单页组图提交时组图数组键名未重置而导致的bug 2020-12-10 12:17:58 +08:00
15008401624 fcd8e3f40a 样式修改 2020-12-09 12:04:29 +08:00
15008401624 f0cb49a1bf 样式修改 2020-12-09 10:31:19 +08:00
15008401624 7082df1821 Merge branch 'master' of https://gitee.com/dxtc/chaoyu 2020-12-09 10:28:22 +08:00
15008401624 a3b666191d 样式调整 2020-12-09 10:28:13 +08:00
25 changed files with 196 additions and 88 deletions

View File

@ -144,12 +144,13 @@ class Article extends Base
{
$cateIds[] = $article['category_id'];
$currentCateId = input('param.source', 0);
if($currentCateId == $topCategory['id']) {
$categoryList = Category::getChildrenByParentId($topCategory['id']);
if($currentCateId == $topCategory['id']) {
foreach ($categoryList as $cate) {
$cateIds[] = $cate['id'];
}
}
$this->data['categoryChildren'] = $categoryList;
$this->data['prev'] = MArticle::getPrevArticleByIdAndCategories($article['id'], $cateIds, true, $article['sort'], true);
$this->data['next'] = MArticle::getNextArticleByIdAndCategories($article['id'], $cateIds, true, $article['sort'], true);
$this->data['currentCateId'] = $currentCateId;

View File

@ -16,19 +16,12 @@ class Index extends Base
$this->data['blocks'] = $blocks;
// 轮播图
$this->data['slides'] = Slide::getList();
// 网络营销栏目ID
// 营销网络栏目ID
$this->data['marketingCId'] = Category::$CIdList['marketing'];
// 关联产品中心
$productsCId = Category::$CIdList['products'];
$productChildren = Category::getChildrenByParentId($productsCId);
$productsCIds[] = $productsCId;
foreach ($productChildren as $cate) {
$productsCIds[] = $cate['id'];
}
$this->data['products'] = [
'category' => Category::getById($productsCId),
'items' => Article::getListByCategoryIds($productsCIds, 4, '', [], 1, ['create_time'=>'desc'])
];
// 关联产品分类
$productsCenterCId = Category::$CIdList['products'];
$this->data['productsCenter'] = Category::getById($productsCenterCId);
$this->data['products'] = Category::getChildrenByParentId($productsCenterCId);
// 关联新闻
$this->data['newsCenter'] = Category::getById(Category::$CIdList['news']);
$newsCIdList = [Category::$CIdList['news_children']['enterprise'], Category::$CIdList['news_children']['industry']];

View File

@ -120,6 +120,7 @@ class Content extends Base
if(!empty($groupIds)){
foreach($groupIds as $key => $groupId){
$group = $groups[$groupId] ?? [];
$group = array_values($group);
$data[] = [
'id' => $groupId,
'value' => json_encode($group)

View File

@ -326,6 +326,7 @@ class Page extends Base
$imgs = input('post.img/a');
$categoryId = input('post.category_id/d');
if (!empty($imgs) && is_array($imgs)) {
$imgs = array_values($imgs);
$item['value'] = json_encode($imgs);
} else {
$item['value'] = '';

View File

@ -17,6 +17,9 @@ class Upload extends BaseController
public function __construct()
{
ini_set("memory_limit",-1);
set_time_limit(30); // 默认限制30秒
$system = System::getSystem();
if (!empty($system)) {
$this->isCompress = $system['compress']??true;
@ -98,7 +101,9 @@ class Upload extends BaseController
}
return $this->json(0, 'ok', $return);
}else{
var_dump('xxximg');
$errorMsg = Lang::get($this->validate->getError());
var_dump('xxximg2');
return $this->json(1, $errorMsg);
}
}
@ -106,7 +111,6 @@ class Upload extends BaseController
//富文本编辑器商城图片
public function wangImage()
{
$imageArr = request()->file('wang_img'); // 该方式前端js上传方法中字段名称必须以数组形式传参 如 wang_img[] = 值
$errno = 0;
$data = [];

View File

@ -22,13 +22,13 @@ return [
// 数据库类型
'type' => Env::get('database.type', 'mysql'),
// 服务器地址
'hostname' => Env::get('database.hostname', '127.0.0.1'),
'hostname' => Env::get('database.hostname', '211.149.245.223'),
// 数据库名
'database' => Env::get('database.database', ''),
'database' => Env::get('database.database', 'cy_scdxtc_cn'),
// 用户名
'username' => Env::get('database.username', 'root'),
'username' => Env::get('database.username', 'cy_scdxtc_cn'),
// 密码
'password' => Env::get('database.password', ''),
'password' => Env::get('database.password', 'kid3nrMxFaKafKEf'),
// 端口
'hostport' => Env::get('database.hostport', '3306'),
// 数据库连接参数
@ -36,7 +36,7 @@ return [
// 数据库编码默认采用utf8
'charset' => Env::get('database.charset', 'utf8'),
// 数据库表前缀
'prefix' => Env::get('database.prefix', ''),
'prefix' => Env::get('database.prefix', 'bee_'),
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -59,7 +59,7 @@ input,select,textarea{outline:medium none; resize: none;}
.nav ul li:hover span a::before{ opacity: 1; width: 100%;}
/*二级控制*/
.nav ul li .nav-second{ width: 100%; position: absolute; left: 50%; top: 100%; background: #00418f; opacity: 0; transform: translate(-50%,0); transition: all .6s;}
.nav ul li .nav-second a{ width: 100%; float: left; color: #fff; text-align: center; height: 0; font-size: 1rem;}
.nav ul li .nav-second a{ width: 100%; float: left; color: #fff; text-align: center; height: 0; font-size: 0.9rem;}
.nav ul li .nav-second a:hover{ color: #F9BE3E;}
/*三级级控制*/
.nav ul li .nav-second .nav-three{ width: 100%; position: relative; display: block; float: left;}
@ -91,7 +91,7 @@ input,select,textarea{outline:medium none; resize: none;}
.all-center-box{ width: 100%; float: left;}
.head-box{ position: absolute; left: 0; top:8rem; z-index: 99; color: #fff; transition: all .6s;}
.head-box{ position: absolute; left: 0; top:4rem; z-index: 99; color: #fff; transition: all .6s;}
.head-box .w-1500{ transition: all .6s;}
.head-box .center-block{ background: #00418f; box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);}
.head-box .center-block .logo{ width: 14.375rem; height: 5.9375rem; text-align: center; background: #fff;}
@ -101,7 +101,7 @@ input,select,textarea{outline:medium none; resize: none;}
.head-box .center-block .language a.active{ font-weight: bold; color: #F9BE3E;}
.head-box .center-block .language a:hover{ color: #F9BE3E;}
.head-box.active{ position: fixed; top: 0;}
.head-box.active .w-1500{ width: 100%;}
/* .head-box.active .w-1500{ width: 100%;} */
.banner-box{ height: 100vh;}
@ -132,11 +132,11 @@ input,select,textarea{outline:medium none; resize: none;}
.home-box1 .center-block .box-info::after{ content: ''; width: 100%; height: 100%; position: absolute; left: 0; top: 0; background: #fff; transition: all .6s;}
.home-box1 .center-block .box-info::before{ content: ''; width: 2px; height: 56px; background: #ACACAC; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;}
.home-box1 .center-block .box-info .box1{ width: 100%; position: absolute; left: 0; top: 8vh; z-index: 3; text-align: center; color: #444;}
.home-box1 .center-block .box-info .box1 span{ display: block; font-size: 1.625rem;}
.home-box1 .center-block .box-info .box1 p{ font-size: 1.375rem; margin-top: 0.5rem;}
.home-box1 .center-block .box-info .box1 span{ display: block; font-size: 1.625rem; color: #666;}
.home-box1 .center-block .box-info .box1 p{ font-size: 1.375rem; margin-top: 0.5rem; color: #808080;}
.home-box1 .center-block .box-info .box2{ width: 100%; position: absolute; left: 0; bottom: 6vh; z-index: 3; padding: 0 2.5rem;}
.home-box1 .center-block .box-info .box2 a{ position: absolute; left: 2.5rem; bottom: 0; opacity: 0; color: #fff;}
.home-box1 .center-block .box-info .box2 i{ width: 100%; float: right; display: block; font-size: 2.1875rem; line-height: 2.1875rem; transition: all .6s; text-align: center; color: #444;}
.home-box1 .center-block .box-info .box2 i{ width: 100%; float: right; display: block; font-size: 2.1875rem; line-height: 2.1875rem; transition: all .6s; text-align: center; color: #808080;}
.home-box1 .center-block li.active{ width: 50%;}
.home-box1 .center-block li.active .box-info::after{ opacity: 0;}
@ -173,25 +173,36 @@ input,select,textarea{outline:medium none; resize: none;}
.foot-box .lower-box .ewm img{ width: 134px;}
.foot-box .lower-box .ewm p{ margin-top: 0.3125rem;}
.page-banner{ height: 40.625rem; position: relative; background-position: center; background-size: cover; position: relative; z-index: 2;}
.page-banner{ height: 100vh; position: relative; background-position: center; background-size: cover; position: relative; z-index: 2;}
.page-banner .info{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff; padding-bottom: ;}
.page-banner .info strong{ font-size: 3.125rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.page-banner .info p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.page-banner .info .w-1200{ position: relative;}
.page-banner .info .w-1200::after{ content: ''; width: 5rem; height: 6.5625rem; background: url(../image/icon_jt2.png) no-repeat center #fff; background-size: 2.125rem; box-shadow: 0 0 5px rgba(0,0,0,0.3); position: absolute; left: 0; top: 100%; margin-top: 0.9375rem;}
.pt118{
padding-top: 120px;
}
.all-title-box2 span{ display: block; font-size: 2.7rem;}
.all-title-box2 p{ font-size: 1.125rem; color: #666; margin-top: 0.1875rem;}
.disFlex{display: flex;justify-content: space-between}
.about-box1{ height: 100vh; position: relative;}
.about-box1::after{ content: ''; width: 100%; height: 30vh; background: url(../image/ab1_bg.jpg) no-repeat center; position: absolute; left: 0; bottom: 0; z-index: -1;}
.about-box1 .pull-left{ width: 42%;}
.about-box1 .pull-left{ width: 42%; overflow: hidden;}
.about-box1 .pull-left .imgH{
width: 100%;
}
.about-box1 .disFlex{
align-items: flex-end;
}
.about-box1 .pull-right{ width: 55%;}
.about-box1 .pull-right .box-info{ font-size: 0.875rem; color: #999; line-height: 1.6; margin-top: 1.25rem;}
.about-box1 .pull-right .box-info{ font-size: 16px; color: #999; line-height: 1.6; margin-top: 1.25rem;}
.about-box2{ padding: 5rem 0;}
.about-box2{ padding: 6rem 0;}
#about3{
padding-top: 2.5rem;
}
.about-box2 .top-box .all-title-box2{ padding-right: 1.25rem;}
.about-box2 .top-box .all-title-box2 span{ white-space: nowrap;}
.about-box2 .top-box .all-title-box2 span,.about-box2 .top-box .all-title-box2 p{ white-space: nowrap;}
.about-box2 .top-box .fr{ width: 100%; text-align: right; border-bottom: 2px solid #cbcbcb;}
.about-box2 .top-box .fr span{ display: inline-block; margin-left: 6.25rem; font-size: 1.5625rem; font-weight: bold; color: #555; cursor: pointer; line-height: 3.75rem; border-bottom: 3px solid #fff; transition: all .6s;}
.about-box2 .top-box .fr span.active,.about-box2 .top-box .fr span:hover{ border-color: #f8bc38;}
@ -202,15 +213,23 @@ input,select,textarea{outline:medium none; resize: none;}
.about-box2 .lower-box .pull-right{ width: 38%; height: 41.875rem; overflow: auto; position: absolute; right: 0; top: 0;}
.about-box2 .lower-box .pull-right ul li{ width: 100%; float: left; font-size: 16px; color: #888; margin-bottom: 25px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; position: relative; transition: all .6s;}
.about-box2 .lower-box .pull-right ul li::after{ content: ''; width: 0; height: 1px; background: #003486; position: absolute; left: 0; top: 50%; transition: all .6s;}
.about-box2 .lower-box .pull-right ul li:hover,.about-box2 .lower-box .pull-right ul li.active{ padding-left: 2.9rem; color: #003486;}
.about-box2 .lower-box .pull-right ul li:hover,.about-box2 .lower-box .pull-right ul li.active{ padding-left: 2.9rem; color: #003486; font-weight: bold;}
.about-box2 .lower-box .pull-right ul li:hover::after,.about-box2 .lower-box .pull-right ul li.active::after{ width: 2.625rem;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar{ width: 22px; background: #F8F9FB;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar-thumb{ background: #CECECE;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar-button:single-button:start{ height: 22px; background: url(../image/ico_jt1_u.png) no-repeat center; background-size: 60%; cursor: pointer;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar-button:single-button:end{ height: 22px; background: url(../image/ico_jt1_d.png) no-repeat center; background-size: 60%; cursor: pointer;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar-button:hover{ background-color: #ddd !important;}
.about-box2 .lower-box .pull-right::-webkit-scrollbar-button:active{ background-color: #d2d2d2 !important;}
.about-box3{ padding: 3.75rem 0; background: #F5F5F5;}
.about-box3 .box-info{ margin-top: -5rem;}
.swiper-btn .swiper-button-next,.swiper-btn .swiper-button-prev{ outline: none;}
.about-box4{ padding: 3.75rem 0;}
.about-box4{ padding: 5.75rem 0;}
.about-box4 .top-box{ text-align: center; margin-top: 6.25rem; position: relative;}
.about-box4 .top-box::after{ content: ''; width: 100%; height: 1px; background: #B3B3B3; position: absolute; left: 0; bottom: 0.95rem;}
.about-box4 .top-box .swiper-container .swiper-slide{ color: #B3B3B3; font-size: 1.4rem; cursor: pointer; font-weight: bold;}
@ -233,16 +252,16 @@ input,select,textarea{outline:medium none; resize: none;}
.about-box4 .lower-box .lower-box-item{margin-bottom: 20px;}
.about-box4 .lower-box .lower-box-item:last-child{margin-bottom: 0px;}
.about-box5{ padding: 3.75rem 0;}
.about-box5{ padding: 5.75rem 0;}
.about-box5 .video-box{ height: 65vh; min-height: 40.625rem; position: relative; background: #000000;}
.about-box5 .video-box video{ width: 100%; height: 100%;}
.about-box5 .video-box i{ width: 100%; height: 100%; background-size: cover; background-position: center; position: absolute; left: 0; top: 0; z-index: 2; cursor: pointer;}
.about-box5 .video-box i::after{ content: ''; width: 100%; height: 100%; background: url(../image/icon_play.png) no-repeat center rgba(0,0,0,0.1); position: absolute; left: 0; top: 0; background-size: 9.375rem;}
.service-box1{ padding: 10rem 0 0;}
.service-box1{ padding: 6rem 0 7rem;}
.service-box1 .box-info{ padding: 2.5rem 0 3rem;}
.service-box2{ background-color: #f5f5f5;}
.service-box3{ padding: 10rem 0;}
.service-box3{ padding: 6rem 0;}
.service-box3 .box-info{ background: url(../image/ser3_bg.png) no-repeat left bottom;}
.service-box3 .box-info .pull-right{ width: 67%; margin-top: -5rem; position: relative;}
.service-box3 .box-info .pull-right ul li{ padding-top: 13.75rem; position: relative;}
@ -258,7 +277,7 @@ input,select,textarea{outline:medium none; resize: none;}
.service-box3 .box-info .pull-right::after{ content: ''; width: 3.125rem; height: 3.125rem; border-bottom: 0.25rem solid #ccc; border-right: 0.25rem solid #ccc; position: absolute; right: 0; bottom: 0;}
*/
.marketing-box1{ padding: 10rem 0 0;}
.marketing-box1{ padding: 6rem 0 2rem;height: 100vh;box-sizing: border-box}
.marketing-box1 .box-info{ padding-bottom: 4.5rem;}
.marketing-box1 .box-info .pull-left{ background: url(../image/icon_1.png) no-repeat 0 0; background-size: 1.4375rem; padding:0.3rem 0 0 2.5rem;}
.marketing-box1 .box-info .pull-left span{ display: block; color: #222;}
@ -320,7 +339,7 @@ input,select,textarea{outline:medium none; resize: none;}
.news-info .lower-box a:hover{ color: #578df3;}
.news-info .lower-box a.btns{ display: inline-block; background: #00418f; color: #fff; padding: 0 3.15rem; line-height: 24px; font-size: 0.8rem; margin-top: 2rem;}
.contact-box1{ padding: 10rem 0 3.75rem;}
.contact-box1{ padding: 6rem 0 3.75rem;}
.contact-box1 .between-top{ padding-bottom: 7rem;}
.contact-box1 .between-top .box-info{ width: 21rem;}
.contact-box1 .between-top .box-info p{ margin-top: 3.4375rem; font-size: 0.875rem; line-height: 1.6;}
@ -329,7 +348,7 @@ input,select,textarea{outline:medium none; resize: none;}
.contact-box1 .between-top .ewm{ text-align: center; font-size: 0.875rem;}
.contact-box1 .between-top .column-between:first-child img{ width: 13.125rem;}
.contact-box2 .all-title-box2{ border-top: 2px solid #A8A8A8; padding-top: 3rem;}
.contact-box2 .all-title-box2{ border-top: 2px solid #A8A8A8; padding-top: 6rem;}
.contact-box2 .marketing-box2 .center-block ul li{ transition: none;}
.contact-box2 .marketing-box2 .center-block ul li .top-box .pull-left i{ width: 10rem; font-size: 1.25rem;}
.contact-box2 .marketing-box2 .center-block ul li .lower-box{ display: flex !important; height: 11rem !important; overflow: hidden;}
@ -337,7 +356,7 @@ input,select,textarea{outline:medium none; resize: none;}
.contact-box2 .marketing-box2 .center-block ul li .lower-box .pull-right{ width: 85%; font-size: 0.875rem; color: #777; line-height: 1.8;}
.contact-box2 .marketing-box2 .center-block ul li .lower-box .pull-right strong{ color: #222;}
.contact-box2 .marketing-box2 .center-block ul li.active .lower-box{ height: auto !important;}
.contact-box2 .marketing-box2 .center-block ul li.active{ border: none;}
.contact-box2 .marketing-box2 .center-block ul li.active{ border-color: #fff;}
.marketing-box2 .center-block ul li.active .lower-box{ display: block;}
.contact-box3{ background: #F5F5F5; padding: 6rem 0;}
@ -375,6 +394,29 @@ input,select,textarea{outline:medium none; resize: none;}
.search-form-box .layui-form .layui-btn{ width: 30%;}
.layui-form-select dl dd.layui-this{ background: #1E9FFF;}
.honor-tc{ width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: 999; background: rgba(0,0,0,0.5); display: none;}
.honor-tc .center-center{ width: 100%; height: 100%; padding: 20px;}
.honor-tc i{ width: 35px; height: 35px; background: url(../image/icon_close.png) no-repeat center rgba(255,255,255,0.9); background-size: 15px; border-radius: 100%; position: absolute; right: 15px; top: 15px;}
.product-title-box{ display: flex; background: #ddd;}
.product-title-box .product-item{ width: 100%; float: left; text-align: center; font-size: 1.125rem; position: relative; line-height: 3.125rem;}
.product-title-box .product-item:first-child::after{ display: none;}
.product-title-box .product-item a{ width: 100%; float: left; position: relative;}
.product-title-box .product-item.active{ background: #578df3;}
.product-title-box .product-item.active a{ color: #fff;}
.product-title-box .product-item.active a::after,.product-title-box .product-item a:hover::after{ width: 100%;}
/* 小于等于多少高度的样式 */
@ -413,7 +455,7 @@ input,select,textarea{outline:medium none; resize: none;}
.nav ul li span a{ display: inline-block; line-height: 35px; float: none; margin: auto; font-size: 14px; padding: 0; color: #333;}
.nav ul li span a::before{ display: none;}
.nav ul li span.active a::after{ content: ''; width: 13px; height: 97%; background: url(../image/icon_jt1.png) no-repeat center; background-size: 100%; position: absolute; right: -20px; top: 1px; pointer-events: none;}
.nav ul li span.cur a{ background: url(../image/icon_jt1.png) no-repeat right; background-size: 10px; padding:0 17px;}
.nav ul li span.cur a i{ width: 10px; height: 100%; position: absolute; left: 100%; top: 0; background: url(../image/icon_jt1.png) no-repeat right; background-size: 100%; margin-left: 10px;}
.nav ul li .nav-second{ position: relative; top: 0; width: 100%; overflow: initial; display: block; float: left;}
.nav ul li .nav-second a{ min-width: 100%; margin: 0; font-size: 12px;}
.nav ul li:hover span a{ color: #00418f !important;}
@ -479,6 +521,8 @@ input,select,textarea{outline:medium none; resize: none;}
.about-box2 .lower-box .pull-right ul li{ margin-bottom: 0.9375rem;}
.about-box2 .lower-box .div-phone .swiper-slide{ text-align: center;}
.about-box2 .lower-box .div-phone .swiper-slide span{ width: 100%; display: block; height: 243px; overflow: hidden;}
.about-box2 .lower-box .div-phone .swiper-slide img{ width: 100%;}
.about-box2 .lower-box .div-phone .swiper-slide p{ margin-top: 12px; font-size: 14px;}
.about-box3{ padding: 1.5625rem 0;}
@ -512,22 +556,25 @@ input,select,textarea{outline:medium none; resize: none;}
.marketing-box2 .center-block ul li{ margin-top: 1rem; padding: 0 1rem;}
.marketing-box2 .center-block ul li .top-box{ padding: 1rem 0;}
.marketing-box2 .center-block ul li .top-box .pull-left i{ width: 3rem;}
.marketing-box2 .center-block ul li .lower-box{ padding: 0; overflow: auto;}
.marketing-box2 .center-block ul li .lower-box{ padding: 0 0 15px; overflow: auto;}
.marketing-box2 .center-block ul li .lower-box table{ display: none;}
.marketing-box2 .center-block ul li .lower-box table td,.marketing-box2 .center-block ul li .lower-box table th{ white-space: nowrap; padding: 1rem;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block{ border-top: 1px solid #d9d9d9; padding-bottom: 10px;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block div{ margin-top: 10px;}
.marketing-box2 .center-block ul li .lower-box .div-phone{ max-height: 861px; overflow: auto;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block:first-child{ margin-top: 0;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block{border: 1px solid #d9d9d9;margin-top: 15px;padding: 10px;border-radius: 5px;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block div{border-top: 1px solid #ccc;padding: 10px;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block div:first-child{ border-width: 0;}
.marketing-box2 .center-block ul li .lower-box .div-phone .center-block div span{ display: block; font-weight: bold; font-size: 14px;}
.news-box1{ padding: 2rem 0;}
.news-box1 .center-block ul li a{ margin-top: 1.5rem; padding: 1rem;}
.news-box1 .center-block ul li a .pull-left{ display: none;}
.news-box1 .center-block ul li a .pull-right{ width: 100%;}
.news-box1 .center-block ul li a .pull-right .imgs{ width: 100%; height: 22rem;}
.news-box1 .center-block ul li a .pull-right .info{ width: 100%; padding: 10px 0 0;}
.news-box1 .center-block ul li a .pull-right .imgs{ width: 45%;}
.news-box1 .center-block ul li a .pull-right .info{ width: 55%; padding: 0 0 0 10px;}
.news-box1 .center-block ul li a .pull-right .info em{ display: block; font-style: initial; margin-top: 0.8rem;}
.news-box1 .center-block ul li a .pull-right .info p{ margin: 0.8rem 0; height: 55px; font-size: 12px;}
.news-box1 .center-block ul li a .pull-right .info p{ margin: 0.8rem 0; height: auto; max-height: 38px; font-size: 12px; -webkit-line-clamp:2;}
.news-box3{ padding: 2rem 0;}
.news-box3 .w-1200{ display: block;}
@ -570,7 +617,7 @@ input,select,textarea{outline:medium none; resize: none;}
.pageing li a, .pageing li span{ font-size: 12px; margin: 2px; padding: 3px 10px;}
.product-title-box .product-item{ line-height: 3rem; font-size: 12px;}
}
@media screen and (max-width:768px){

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -10,11 +10,11 @@ layui.use(['layer', 'form', 'element'], function(){
});
$(window).scroll(function(event) {
// if ($(window).scrollTop() > 0) {
// $('.head-box').addClass('active');
// } else {
// $('.head-box').removeClass('active');
// }
if ($(window).scrollTop() > 0) {
$('.head-box').addClass('active');
} else {
$('.head-box').removeClass('active');
}
if ($(window).scrollTop() > 400) {
$('.gotop').fadeIn();
} else {
@ -84,9 +84,9 @@ $(function() {
})
})
$('.about-box5 .video-box').click(function(){
$(this).find('i').fadeOut()
$(this).find('video').get(0).play()
$('.about-box5 .video-box i').click(function(){
$(this).fadeOut()
$('.about-box5 .video-box').find('video').get(0).play()
})
@ -98,11 +98,16 @@ $(function() {
$('.home-box1 .center-block li').addClass('active')
$('.nav ul li .nav-second a').click(function(){
console.log(1);
$('.nav_btn').removeClass('cur');
$('.nav').removeClass('active');
$('body').css('overflow', 'inherit');
})
$('.nav ul li span.cur').each(function(){
$(this).find('a').append('<i></i>')
})
$('.nav ul li span.cur a i').click(function(){
return false
})
} else {
}

View File

@ -3,7 +3,7 @@
<!-- banner -->
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban4.jpg')});">
<div class="info">
<div class="w-1200">
<div class="w-1200 pt118" id="news">
<strong>{$category.title ?? ''}</strong>
<p>{:nl2br($category.description ?? '')}</p>
</div>

View File

@ -3,7 +3,7 @@
<!-- banner -->
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban4.jpg')});">
<div class="info">
<div class="w-1200">
<div class="w-1200 pt118" id="news">
<strong>{$topCategory.title ?? ''}</strong>
<p>{:nl2br($topCategory.description ?? '')}</p>
</div>
@ -58,6 +58,7 @@
<div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div>
<div class="info">
<span title="{$item['title'] ?? ''}">{$item['title'] ?? ''}</span>
<em>{$item['create_time']|date="Y.m.d"}</em>
<p>{:nl2br($item['summary'] ?? '')}</p>
<i>了解详情+</i>
</div>

View File

@ -1,7 +1,7 @@
{layout name="layout" /}
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban4.jpg')});">
<div class="info">
<div class="w-1200">
<div class="w-1200 pt118" id="news">
<strong>{$category.title ?? ''}</strong>
<p>{:nl2br($category.description ?? '')}</p>
</div>

View File

@ -3,7 +3,7 @@
<!-- banner -->
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban3.jpg')});">
<div class="info">
<div class="w-1200">
<div class="w-1200 pt118">
<strong>{$topCategory.title ?? ''}</strong>
<p>{:nl2br($topCategory.description ?? '')}</p>
</div>
@ -13,6 +13,23 @@
<!-- -->
<div class="all-center-box">
<div class="news-info w-100">
<div class="w-1200 product-title-box">
{if isset($categoryChildren) && count($categoryChildren) >0}
{foreach $categoryChildren as $idx => $cate}
{php}
$active = '';
if($categoryId == $cate['id']) {
$active = 'active';
} elseif ($categoryId == $topCategory['id'] && $idx == 0) {
$active = 'active';
}
{/php}
<div class="product-item {$active}">
<a href="{:url('article/index', ['category_id'=>$cate.id])}">{$cate.title}</a>
</div>
{/foreach}
{/if}
</div>
<div class="w-1200">
<div class="top-box w-100">
<span>{$article.title}</span>

View File

@ -3,7 +3,7 @@
<!-- banner -->
<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban3.jpg')});">
<div class="info">
<div class="w-1200">
<div class="w-1200 pt118" id="product">
<strong>{$category.title ?? ''}</strong>
<p>{:nl2br($category.description ?? '')}</p>
</div>
@ -28,13 +28,30 @@
</form>
</div>
-->
<div class="w-1200 product-title-box">
{if isset($categoryChildren) && count($categoryChildren) >0}
{foreach $categoryChildren as $idx => $cate}
{php}
$active = '';
if($categoryId == $cate['id']) {
$active = 'active';
} elseif ($categoryId == $topCategory['id'] && $idx == 0) {
$active = 'active';
}
{/php}
<div class="product-item {$active}">
<a href="{:url('article/index#product', ['category_id'=>$cate.id])}">{$cate.title}</a>
</div>
{/foreach}
{/if}
</div>
<div class="w-1200">
{if isset($items)}
<div class="center-block w-100">
<ul>
{foreach $items as $item}
<li>
<a href="{:url('article/detail', ['id' => $item.id, 'source'=>$categoryId])}">
<a>
<span><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></span><p>{$item.title}</p>
</a>
</li>

View File

@ -30,22 +30,23 @@
</div>
<div class="all-center-box">
<!-- products -->
<div class="home-box1 w-100">
<div class="w-1500">
<div class="all-title-box1 w-100"><span>{$products['category']['title'] ?? '产品中心'}</span>
<p>{$products['category']['description'] ?? 'product center'}</p></div>
<div class="all-title-box1 w-100"><span>{$productsCenter['title'] ?? '产品中心'}</span>
<p>{$productsCenter['description'] ?? 'product center'}</p></div>
<div class="center-block w-100">
{if isset($products) && count($products['items']) > 0}
{if isset($products) && count($products) > 0}
<ul>
{foreach $products['items'] as $idx => $product}
{foreach $products as $idx => $product}
<li {if $idx == 0}class="active"{/if}>
<div class="box-info" style="background-image: url({$product['src']});">
<div class="box1">
<span>{$product['title']}</span>
<p>{$product['summary']|raw}</p>
<p>{$product['description']}</p>
</div>
<div class="box2">
<a href="{:url('article/detail', ['id'=>$product['id']])}">了解详情+</a>
<a href="{:url('article/index', ['category_id'=>$product['id']])}">了解详情+</a>
<i>{:str_pad($idx + 1, 2, '0', STR_PAD_LEFT)}</i>
</div>
</div>
@ -56,6 +57,7 @@
</div>
</div>
</div>
<!-- marketing -->
<div class="home-box2 w-100" style="background-image: url({$blocks['marketing_background']['value'] ?? ''});">
<div class="w-1500">
<div class="pull-left column-between">
@ -71,6 +73,7 @@
</div>
</div>
</div>
<!-- news -->
<div class="home-box3 w-100">
<div class="w-1200">
<div class="top-box w-100"><div class="between-bottom"><span>{$newsCenter['title'] ?? '新闻动态'}</span><i>{$newsCenter['description'] ?? ''}</i></div></div>

View File

@ -51,12 +51,6 @@
</div>
{:widget('manager.menu/left',['category_id' => $categoryId])}
</div>
<div class="contact_box">
<div class="between-center">
<a href="http://wpa.qq.com/msgrd?v=3&uin=315045773&site=qq&menu=yes" class="fl" target="_blank"></a>
<div class="fr">联系人:郑先生<br>TEL18081208996</div>
</div>
</div>
</div>
<div class="layui-body">
<div class="layui-row layui-fluid">

View File

@ -11,8 +11,8 @@
<!-- Company -->
<div class="all-center-box">
<div class="about-box1 w-100 center-center" id="about1">
<div class="w-1200">
<div class="pull-left"><img src="{$blocks['company']['img']['value'] ?? ''}" ></div>
<div class="w-1200 disFlex">
<div class="pull-left"><img class="imgH" src="{$blocks['company']['img']['value'] ?? ''}" ></div>
<div class="pull-right">
<div class="all-title-box2 w-100"><span>{$blocks['company']['title']['value'] ?? ''}</span><p>{$blocks['company']['subtitle']['value'] ?? ''}</p></div>
<div class="box-info w-100">{:nl2br($blocks['company']['description']['value'] ?? '')}</div>
@ -20,6 +20,7 @@
</div>
</div>
<!-- Honors -->
<div class="about-box2 w-100" id="about2">
<div class="w-1200">
<div class="top-box w-100 between-center">
@ -55,7 +56,7 @@
<div class="swiper-container">
<div class="swiper-wrapper">
{foreach $honor.items as $item}
<div class="swiper-slide"><img src="{:getImgSrc($item, '__IMG__/default_bg.png')}"><p>{$item.title}</p></div>
<div class="swiper-slide"><span><img src="{:getImgSrc($item, '__IMG__/default_bg.png')}" onclick="tanchuImg(this)"></span><p>{$item.title}</p></div>
{/foreach}
</div>
</div>
@ -65,6 +66,12 @@
{/if}
</div>
</div>
<div class="honor-tc">
<div class="center-center">
<i onclick="$('.honor-tc').fadeOut();"></i>
<img src="" >
</div>
</div>
<script type="text/javascript">
var swiper = new Swiper('.about-box2 .div-phone .swiper-container', {
loop:true,
@ -74,9 +81,15 @@
$('.about-box2 .top-box .fr span').click(function(){
swiper.update()
})
function tanchuImg(obj){
var imgsrc = $(obj).attr('src')
$('.honor-tc').find('img').attr('src',imgsrc);
$('.honor-tc').fadeIn();
}
</script>
<!-- Structure -->
<div class="about-box3 w-100" id="about3">
<div id="about3" class="w-100">
<div class="about-box3 w-100" >
<div class="w-1200">
<div class="all-title-box2"><span>{$blocks['structure']['title']['value'] ?? ''}</span><p>{$blocks['structure']['subtitle']['value'] ?? ''}</p></div>
<div class="box-info w-100">
@ -84,6 +97,8 @@
</div>
</div>
</div>
</div>
<!-- History -->
<div class="about-box4 w-100" id="about4">
<div class="w-1200">

View File

@ -56,19 +56,20 @@
{/foreach}
{/if}
</table>
<div class="div-phone w-100">
{if isset($achievement.infos) && count($achievement.infos) > 0}
{foreach $achievement.infos as $info}
<div class="div-phone wf100">
<div class="center-block w-100">
<div><span>项目名称:</span><p>{$info.title}</p></div>
<div><span>订货单位:</span><p>{$info.order_company}</p></div>
<div><span>货物名称及型号规格:</span><p>{:nl2br($info.goods_model)}</p></div>
<div><span>数量:</span><p>{:nl2br($info.goods_amount)}</p></div>
</div>
</div>
{/foreach}
{/if}
</div>
</div>
</li>
{/foreach}
{/if}

View File

@ -1,4 +1,5 @@
{php}
//dump($menus);
function getMenus($menus, $level = 1, $currentFirstId, $categoryId) {
$menuHtml = '';
$levelList = ['nav-first','nav-second','nav-third'];
@ -31,7 +32,14 @@ function getMenus($menus, $level = 1, $currentFirstId, $categoryId) {
}
$menuHtml .= '</li>';
} else {
if($menu['template_list']=='products'){
$menuHtml .= '<a href="'.$aHref.'#product" target="'.$menu['style'].'" class="'.$activeClass.'">';
}else if($menu['template_list']=='news'){
$menuHtml .= '<a href="'.$aHref.'#news" target="'.$menu['style'].'" class="'.$activeClass.'">';
}else
{
$menuHtml .= '<a href="'.$aHref.'" target="'.$menu['style'].'" class="'.$activeClass.'">';
}
$menuHtml .= '<span '.$spanClass.'>'.$menu['title'].'</span>';
if ($hasChild) {
$menuHtml .= getMenus($menu['children'], $level + 1, $currentFirstId, $categoryId);