更新:走进超宇页面相关数据绑定和调整
							parent
							
								
									78effa0be0
								
							
						
					
					
						commit
						7af1255408
					
				| 
						 | 
					@ -365,3 +365,14 @@ if(!function_exists('arrayHtmlFilter')){
 | 
				
			||||||
        return $arr;
 | 
					        return $arr;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if(!function_exists('getImgSrc')) {
 | 
				
			||||||
 | 
					    function getImgSrc($item, $defaultImg)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $imgSrc = $defaultImg;
 | 
				
			||||||
 | 
					        if(!empty($item['src']) && file_exists('.'.$item['src'])) {
 | 
				
			||||||
 | 
					            $imgSrc = $item['src'];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return $imgSrc;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -17,13 +17,13 @@ class Index extends Base
 | 
				
			||||||
        // 轮播图
 | 
					        // 轮播图
 | 
				
			||||||
        $this->data['slides'] = Slide::getList();
 | 
					        $this->data['slides'] = Slide::getList();
 | 
				
			||||||
        // 网络营销栏目ID
 | 
					        // 网络营销栏目ID
 | 
				
			||||||
        $this->data['marketingCId'] = Category::$CIdList['marketing_network'];
 | 
					        $this->data['marketingCId'] = Category::$CIdList['marketing'];
 | 
				
			||||||
        // 关联产品中心
 | 
					        // 关联产品中心
 | 
				
			||||||
        $this->data['products'] =  Article::getLatestByCategory(Category::$CIdList['products'], 4);;
 | 
					        $this->data['products'] =  Article::getLatestByCategory(Category::$CIdList['products'], 4);;
 | 
				
			||||||
        // 关联企业新闻
 | 
					        // 关联企业新闻
 | 
				
			||||||
        $this->data['newsEnterprises'] = Article::getLatestByCategory(Category::$CIdList['news_enterprise'], 4);
 | 
					        $this->data['newsEnterprises'] = Article::getLatestByCategory(Category::$CIdList['news_children']['enterprise'], 4);
 | 
				
			||||||
        // 关联行业资讯
 | 
					        // 关联行业资讯
 | 
				
			||||||
        $this->data['newsIndustries'] = Article::getLatestByCategory(Category::$CIdList['news_industry'], 4);;
 | 
					        $this->data['newsIndustries'] = Article::getLatestByCategory(Category::$CIdList['news_children']['industry'], 4);;
 | 
				
			||||||
        return $this->view();
 | 
					        return $this->view();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -1,17 +1,10 @@
 | 
				
			||||||
<?php
 | 
					<?php
 | 
				
			||||||
namespace app\controller;
 | 
					namespace app\controller;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use app\model\{Category, Block};
 | 
					use app\model\{Category, Block, Article, History, Model};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Page extends Base
 | 
					class Page extends Base
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    private function getPageCommonData($categoryId)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        $resp = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        return $resp;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // 默认单页页面
 | 
					    // 默认单页页面
 | 
				
			||||||
    public function index($categoryId)
 | 
					    public function index($categoryId)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					@ -22,11 +15,70 @@ class Page extends Base
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            return $this->error('页面错误');
 | 
					            return $this->error('页面错误');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $childCategory = Category::getChildrenByParentId($categoryId);
 | 
					
 | 
				
			||||||
        $this->data['categoryId'] = $categoryId;
 | 
					        $this->data['categoryId'] = $categoryId;
 | 
				
			||||||
        $this->data['category'] = $category;
 | 
					        $this->data['category'] = $category;
 | 
				
			||||||
        $this->data['childCategory'] = $childCategory;
 | 
					 | 
				
			||||||
        $this->data['blocks'] = Block::getByCategoryId($categoryId);
 | 
					        $this->data['blocks'] = Block::getByCategoryId($categoryId);
 | 
				
			||||||
 | 
					        $this->templateDetailAssign($category);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $this->view($category['template_detail']);
 | 
					        return $this->view($category['template_detail']);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private function templateDetailAssign($category)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $template = $category['template_detail'] ?? '';
 | 
				
			||||||
 | 
					        $TopCId = Category::firstGradeById($category['id']);
 | 
				
			||||||
 | 
					        if($TopCId == $category['id']) {
 | 
				
			||||||
 | 
					            $topCategory = $category;
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            $topCategory = Category::getById($TopCId);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        $childCategory = Category::getChildrenByParentId($category['id']);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->data['topCategory'] = $topCategory;
 | 
				
			||||||
 | 
					        $this->data['childCategory'] = $childCategory;
 | 
				
			||||||
 | 
					        switch ($template) {
 | 
				
			||||||
 | 
					            case 'about' :
 | 
				
			||||||
 | 
					                $this->assignAbout($topCategory, $category, $childCategory);
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            default :
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 走进超宇
 | 
				
			||||||
 | 
					    private function assignAbout($topCategory, $category, $childCategory)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if(empty($childCategory)) {
 | 
				
			||||||
 | 
					            $childCategory = Category::getChildrenByParentId($topCategory['id']);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        $honorTopCId = Category::$CIdList['honors_manage'] ?? 0;
 | 
				
			||||||
 | 
					        $historyCId = Category::$CIdList['history_manage'] ?? 0;
 | 
				
			||||||
 | 
					        $historyCate = Category::getById($historyCId);
 | 
				
			||||||
 | 
					        $honors = [];
 | 
				
			||||||
 | 
					        $blockCateIds = [];
 | 
				
			||||||
 | 
					        $blocks = [];
 | 
				
			||||||
 | 
					        if($honorTopCId) {
 | 
				
			||||||
 | 
					            $honors = Category::getChildrenByParentId($honorTopCId);
 | 
				
			||||||
 | 
					            foreach ($honors as &$honor) {
 | 
				
			||||||
 | 
					                $honor['items'] = Article::getListByCategoryIds([$honor['id']], 20);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            unset($honor);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        foreach ($childCategory as $cate) {
 | 
				
			||||||
 | 
					            if($cate['model_id'] == Model::PAGE) {
 | 
				
			||||||
 | 
					                $blockCateIds[] = $cate['id'];
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        $blockList = Block::getByCategoryIds($blockCateIds);
 | 
				
			||||||
 | 
					        $aboutChildrenFlip = array_flip(Category::$CIdList['about_children']);
 | 
				
			||||||
 | 
					        foreach ($childCategory as $cate) {
 | 
				
			||||||
 | 
					            $blocks[$aboutChildrenFlip[$cate['id']]] = $blockList[$cate['id']] ?? [];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->data['blocks'] = $blocks;
 | 
				
			||||||
 | 
					        $this->data['honors'] = $honors;
 | 
				
			||||||
 | 
					        $this->data['historyList'] = History::getByCategoryId($historyCId, true, $historyCate['number'] ?? -1);
 | 
				
			||||||
 | 
					        //dump($this->data['honors']);
 | 
				
			||||||
 | 
					        //dump($this->data['historyList']);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -85,12 +85,12 @@ class History extends Base
 | 
				
			||||||
            if(empty($item)){
 | 
					            if(empty($item)){
 | 
				
			||||||
                return $this->json(3, '该历程信息不存在');
 | 
					                return $this->json(3, '该历程信息不存在');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if($sort == 'up'){
 | 
					            if($sort == 'up'){ // sort 变大
 | 
				
			||||||
                $where = "category_id='{$item['category_id']}' and sort < {$item['sort']}";
 | 
					 | 
				
			||||||
                $order = "sort desc";
 | 
					 | 
				
			||||||
            }else{
 | 
					 | 
				
			||||||
                $where = "category_id='{$item['category_id']}' and sort > {$item['sort']}";
 | 
					                $where = "category_id='{$item['category_id']}' and sort > {$item['sort']}";
 | 
				
			||||||
                $order = "sort asc";
 | 
					                $order = "sort asc";
 | 
				
			||||||
 | 
					            }else{ // sort 变小
 | 
				
			||||||
 | 
					                $where = "category_id='{$item['category_id']}' and sort < {$item['sort']}";
 | 
				
			||||||
 | 
					                $order = "sort desc";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            $forSortItems = MHistory::getListByWhereAndOrder($where, $order, $num);
 | 
					            $forSortItems = MHistory::getListByWhereAndOrder($where, $order, $num);
 | 
				
			||||||
            if(!empty($forSortItems)){
 | 
					            if(!empty($forSortItems)){
 | 
				
			||||||
| 
						 | 
					@ -201,7 +201,7 @@ class History extends Base
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return $this->json();
 | 
					            return $this->json();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            $imgSize = '';
 | 
					            $imgSize = '425像素 X 280像素';
 | 
				
			||||||
            $category = MCategory::getById($history['category_id']);
 | 
					            $category = MCategory::getById($history['category_id']);
 | 
				
			||||||
            if(count($category) > 0 && $category['img_width'] && $category['img_height']){
 | 
					            if(count($category) > 0 && $category['img_width'] && $category['img_height']){
 | 
				
			||||||
                $imgSize = $category['img_width'] . '像素 X ' . $category['img_height'] . '像素';
 | 
					                $imgSize = $category['img_width'] . '像素 X ' . $category['img_height'] . '像素';
 | 
				
			||||||
| 
						 | 
					@ -247,7 +247,7 @@ class History extends Base
 | 
				
			||||||
            return $this->json();
 | 
					            return $this->json();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            $history = MHistory::getById($item['history_id']);
 | 
					            $history = MHistory::getById($item['history_id']);
 | 
				
			||||||
            $imgSize = '';
 | 
					            $imgSize = '425像素 X 280像素';
 | 
				
			||||||
            if(count($history) > 0) {
 | 
					            if(count($history) > 0) {
 | 
				
			||||||
                $category = MCategory::getById($history['category_id']);
 | 
					                $category = MCategory::getById($history['category_id']);
 | 
				
			||||||
                if(count($category) > 0 && $category['img_width'] && $category['img_height']){
 | 
					                if(count($category) > 0 && $category['img_width'] && $category['img_height']){
 | 
				
			||||||
| 
						 | 
					@ -278,11 +278,11 @@ class History extends Base
 | 
				
			||||||
                return $this->json(3, '该历程事例信息不存在');
 | 
					                return $this->json(3, '该历程事例信息不存在');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if($sort == 'up'){
 | 
					            if($sort == 'up'){
 | 
				
			||||||
                $where = "history_id='{$item['history_id']}' and sort < {$item['sort']}";
 | 
					 | 
				
			||||||
                $order = "sort desc";
 | 
					 | 
				
			||||||
            }else{
 | 
					 | 
				
			||||||
                $where = "history_id='{$item['history_id']}' and sort > {$item['sort']}";
 | 
					                $where = "history_id='{$item['history_id']}' and sort > {$item['sort']}";
 | 
				
			||||||
                $order = "sort asc";
 | 
					                $order = "sort asc";
 | 
				
			||||||
 | 
					            }else{
 | 
				
			||||||
 | 
					                $where = "history_id='{$item['history_id']}' and sort < {$item['sort']}";
 | 
				
			||||||
 | 
					                $order = "sort desc";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            $forSortItems = MHistoryInfo::getListByWhereAndOrder($where, $order, $num);
 | 
					            $forSortItems = MHistoryInfo::getListByWhereAndOrder($where, $order, $num);
 | 
				
			||||||
            if(!empty($forSortItems)){
 | 
					            if(!empty($forSortItems)){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -152,4 +152,36 @@ class Article extends Base
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return $data;
 | 
					        return $data;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 查询栏目下的文章
 | 
				
			||||||
 | 
					    public static function getListByCategoryIds($categoryIds, $per = 20, $keyword = '', $param = [], $status = -1, $order = [])
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $whereMap = [];
 | 
				
			||||||
 | 
					        if(is_array($categoryIds) && count($categoryIds) > 0) {
 | 
				
			||||||
 | 
					            $whereMap[] = ['category_id', 'in', $categoryIds];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if(!empty($keyword)){
 | 
				
			||||||
 | 
					            $whereMap[] = ['title', 'like',  '%'.$keyword.'%'];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if (is_array($param) && count($param) > 0) {
 | 
				
			||||||
 | 
					            foreach ($param as $vo) {
 | 
				
			||||||
 | 
					                if(in_array($vo, ['top','hot','recommend'], true)) {
 | 
				
			||||||
 | 
					                    $whereMap[] = ["{$vo}", '=', 1];
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if(is_numeric($status) && $status != -1){
 | 
				
			||||||
 | 
					            $whereMap[] = ['status', '=',  $status];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if(empty($order)) {
 | 
				
			||||||
 | 
					            $order = ['sort'=>'desc'];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return self::when(count($whereMap) > 0, function($query) use ($whereMap) {
 | 
				
			||||||
 | 
					            $query->where($whereMap);
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
 | 
					        ->order($order)
 | 
				
			||||||
 | 
					        ->limit($per)
 | 
				
			||||||
 | 
					        ->select()
 | 
				
			||||||
 | 
					        ->toArray();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -125,4 +125,41 @@ class Block extends Base
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return $items;
 | 
					        return $items;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 按块元素的栏目分类和关键字进行分组
 | 
				
			||||||
 | 
					    public static function convertGroupByCategory(array $items)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $data = [];
 | 
				
			||||||
 | 
					        foreach($items as $item){
 | 
				
			||||||
 | 
					            $data[$item['category_id']][$item['keyword']] = $item;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return $data;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 按块元素的关键字进行分组
 | 
				
			||||||
 | 
					    public static function convertGroupByKeyword(array $items)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $data = [];
 | 
				
			||||||
 | 
					        foreach($items as $item){
 | 
				
			||||||
 | 
					            $data[$item['keyword']] = $item;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return $data;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //根据栏目ID获取块列表
 | 
				
			||||||
 | 
					    public static function getByCategoryIds($categoryIds)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if(!is_array($categoryIds) || empty($categoryIds)){
 | 
				
			||||||
 | 
					            return [];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        $items = self::whereIn('category_id', $categoryIds)
 | 
				
			||||||
 | 
					            ->order('category_id', 'asc')
 | 
				
			||||||
 | 
					            ->order('sort', 'asc')
 | 
				
			||||||
 | 
					            ->select()
 | 
				
			||||||
 | 
					            ->toArray();
 | 
				
			||||||
 | 
					        if(empty($items)){
 | 
				
			||||||
 | 
					            return [];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return self::convertGroupByCategory($items);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,13 +4,28 @@ namespace app\model;
 | 
				
			||||||
class Category extends Base
 | 
					class Category extends Base
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public static  $CIdList = [
 | 
					    public static  $CIdList = [
 | 
				
			||||||
        'marketing_network' => 15, // 网络营销(主栏目)
 | 
					        'about'                     => 1, // 走进超宇
 | 
				
			||||||
        'marketing_network_child' => 16, // 网络营销(子栏目)
 | 
					        'about_children'            => [
 | 
				
			||||||
        'marketing_achievement' => 17, // 主要业绩
 | 
					            'company'               => 3, // 企业简介
 | 
				
			||||||
 | 
					            'honor'                 => 8, // 资质荣誉
 | 
				
			||||||
 | 
					            'structure'             => 9, // 组织架构
 | 
				
			||||||
 | 
					            'history'               => 10, // 发展历程
 | 
				
			||||||
 | 
					            'video'                 => 11, // 企业视频
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        'honors_manage'             => 26, // 荣誉资质管理
 | 
				
			||||||
 | 
					        'history_manage'            => 29, // 发展历程管理
 | 
				
			||||||
        'products'                  => 2, // 产品中心
 | 
					        'products'                  => 2, // 产品中心
 | 
				
			||||||
        'news_enterprise' => 20, // 企业新闻
 | 
					        'marketing'                 => 15, // 网络营销(主)
 | 
				
			||||||
        'news_industry' => 21, // 行业资讯
 | 
					        'marketing_children'        => [
 | 
				
			||||||
        'news_dynamic' => 21, // 新闻动态
 | 
					            'marketing_network'     => 16, // 网络营销
 | 
				
			||||||
 | 
					            'achievement'           => 17, // 主要业绩
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        'news'                      => 18, //新闻(主)
 | 
				
			||||||
 | 
					        'news_children'             => [
 | 
				
			||||||
 | 
					            'enterprise'            => 20, // 企业新闻
 | 
				
			||||||
 | 
					            'industry'              => 21, // 行业资讯
 | 
				
			||||||
 | 
					            'dynamics'              => 22, // 新闻动态
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //获取首页栏目ID
 | 
					    //获取首页栏目ID
 | 
				
			||||||
| 
						 | 
					@ -64,6 +79,7 @@ class Category extends Base
 | 
				
			||||||
        ->leftJoin('model m','c.model_id=m.id')
 | 
					        ->leftJoin('model m','c.model_id=m.id')
 | 
				
			||||||
        ->field('c.*, m.manager, m.template')
 | 
					        ->field('c.*, m.manager, m.template')
 | 
				
			||||||
        ->where('c.state', 1)
 | 
					        ->where('c.state', 1)
 | 
				
			||||||
 | 
					        ->where('c.is_menu', 1)
 | 
				
			||||||
        ->order('is_index desc, sort asc')
 | 
					        ->order('is_index desc, sort asc')
 | 
				
			||||||
        ->select()
 | 
					        ->select()
 | 
				
			||||||
        ->toArray();
 | 
					        ->toArray();
 | 
				
			||||||
| 
						 | 
					@ -128,6 +144,7 @@ class Category extends Base
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $crumbs = [];
 | 
					        $crumbs = [];
 | 
				
			||||||
        $category = self::getById($currentId);
 | 
					        $category = self::getById($currentId);
 | 
				
			||||||
 | 
					        if($category) {
 | 
				
			||||||
            if($category['parent_id'] == 0){
 | 
					            if($category['parent_id'] == 0){
 | 
				
			||||||
                $crumbs[] = $category;
 | 
					                $crumbs[] = $category;
 | 
				
			||||||
            }else{
 | 
					            }else{
 | 
				
			||||||
| 
						 | 
					@ -143,6 +160,7 @@ class Category extends Base
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                $crumbs[] = $category;
 | 
					                $crumbs[] = $category;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return $crumbs;
 | 
					        return $crumbs;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,7 @@ class History extends Base
 | 
				
			||||||
        $paginate = [
 | 
					        $paginate = [
 | 
				
			||||||
            'list_rows' => $per
 | 
					            'list_rows' => $per
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        $items = self::where('category_id', $categoryId)->order('sort', 'asc')->paginate($paginate, $isSample);
 | 
					        $items = self::where('category_id', $categoryId)->order('sort', 'desc')->paginate($paginate, $isSample);
 | 
				
			||||||
        if(!$items->isEmpty()) {
 | 
					        if(!$items->isEmpty()) {
 | 
				
			||||||
            $ids = $items->column('id');
 | 
					            $ids = $items->column('id');
 | 
				
			||||||
            $infoList = HistoryInfo::getByHistoryIds($ids);
 | 
					            $infoList = HistoryInfo::getByHistoryIds($ids);
 | 
				
			||||||
| 
						 | 
					@ -25,19 +25,24 @@ class History extends Base
 | 
				
			||||||
        return $items;
 | 
					        return $items;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static function getByCategoryId($categoryId, $onlyVisible = false)
 | 
					    public static function getByCategoryId($categoryId, $onlyVisible = false, $defaultNum = -1)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $items = self::where('category_id', $categoryId)
 | 
					        $items = self::where('category_id', $categoryId)
 | 
				
			||||||
            ->when($onlyVisible, function($query){
 | 
					            ->when($onlyVisible, function($query){
 | 
				
			||||||
                $query->where('visible', 1);
 | 
					                $query->where('visible', 1);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            ->order('sort', 'asc')
 | 
					            ->order('sort', 'desc')
 | 
				
			||||||
            ->select();
 | 
					            ->select();
 | 
				
			||||||
        if(!$items->isEmpty()) {
 | 
					        if(!$items->isEmpty()) {
 | 
				
			||||||
            $ids = $items->column('id');
 | 
					            $ids = $items->column('id');
 | 
				
			||||||
 | 
					            $infoList = [];
 | 
				
			||||||
 | 
					            if ($defaultNum != 0) {
 | 
				
			||||||
                $infoList = HistoryInfo::getByHistoryIds($ids, $onlyVisible);
 | 
					                $infoList = HistoryInfo::getByHistoryIds($ids, $onlyVisible);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            foreach ($items as $k => $item) {
 | 
					            foreach ($items as $k => $item) {
 | 
				
			||||||
                $items[$k]['info'] = $infoList[$item['id']] ?? [];
 | 
					                $infos = $infoList[$item['id']] ?? [];
 | 
				
			||||||
 | 
					                $infoData = $defaultNum > 0 ? array_slice($infos, 0, $defaultNum, false) : $infos;
 | 
				
			||||||
 | 
					                $items[$k]['info'] = $infoData;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return $items->toArray();
 | 
					        return $items->toArray();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ class HistoryInfo extends Base
 | 
				
			||||||
            ->when($onlyVisible, function ($query) {
 | 
					            ->when($onlyVisible, function ($query) {
 | 
				
			||||||
                $query->where('visible', 1);
 | 
					                $query->where('visible', 1);
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            ->order(['history_id'=>'asc','sort'=>'asc'])
 | 
					            ->order(['history_id'=>'desc','sort'=>'desc'])
 | 
				
			||||||
            ->select()
 | 
					            ->select()
 | 
				
			||||||
            ->toArray();
 | 
					            ->toArray();
 | 
				
			||||||
        $data = [];
 | 
					        $data = [];
 | 
				
			||||||
| 
						 | 
					@ -47,6 +47,6 @@ class HistoryInfo extends Base
 | 
				
			||||||
        if($historyId <= 0) {
 | 
					        if($historyId <= 0) {
 | 
				
			||||||
            return [];
 | 
					            return [];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return self::where('history_id', $historyId)->order(['sort'=>'asc'])->select()->toArray();
 | 
					        return self::where('history_id', $historyId)->order(['sort'=>'desc'])->select()->toArray();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -3,6 +3,9 @@ namespace app\model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Model extends Base 
 | 
					class Model extends Base 
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    const ARTICLE = 31;
 | 
				
			||||||
 | 
					    const PAGE = 33;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //获取模型列表
 | 
					    //获取模型列表
 | 
				
			||||||
    public static function getList()
 | 
					    public static function getList()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,7 +31,6 @@ class Crumbs
 | 
				
			||||||
                $cateCrumbs = Category::getCatesCrumbs($categoryId);
 | 
					                $cateCrumbs = Category::getCatesCrumbs($categoryId);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        $data = [
 | 
					        $data = [
 | 
				
			||||||
            'rule' => $rule,
 | 
					            'rule' => $rule,
 | 
				
			||||||
            'parent' => $parent,
 | 
					            'parent' => $parent,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
@charset "utf-8";
 | 
					@charset "utf-8";
 | 
				
			||||||
/* CSS Document */
 | 
					/* CSS Document */
 | 
				
			||||||
/*公用代码*/
 | 
					/*公用代码*/
 | 
				
			||||||
body,html{background:none repeat scroll 0 0;font:100% arial,verdana;}
 | 
					body,html{background:none repeat scroll 0 0;font:100% "Microsoft YaHei New","Microsoft Yahei","微软雅黑","Hiragino Sans GB","冬青黑体","Arial","Helvetica","SimHei","黑体","STXihei","华文细黑",sans-serif;}
 | 
				
			||||||
body{overflow-x:hidden;color:#333;}
 | 
					body{overflow-x:hidden;color:#333;}
 | 
				
			||||||
blockquote,body,button,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;text-shadow:none;}
 | 
					blockquote,body,button,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;text-shadow:none;}
 | 
				
			||||||
label input{vertical-align:middle;text-shadow:none;}
 | 
					label input{vertical-align:middle;text-shadow:none;}
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,7 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*nav*/
 | 
					/*nav*/
 | 
				
			||||||
/**/
 | 
					/**/
 | 
				
			||||||
.nav{ width: 72%;}
 | 
					.nav ul li{ float: left; position: relative; margin-left: 1.25rem; transition: all .6s;}
 | 
				
			||||||
.nav ul li{ float: left; position: relative; margin-left: 20px; transition: all .6s;}
 | 
					 | 
				
			||||||
.nav ul li span a{ float: left; font-size: 1.125rem; line-height: 5.9375rem; padding: 0 16px; position: relative; text-decoration: none; color: #fff;}
 | 
					.nav ul li span a{ float: left; font-size: 1.125rem; line-height: 5.9375rem; padding: 0 16px; position: relative; text-decoration: none; color: #fff;}
 | 
				
			||||||
.nav ul li span a::before{ content: ''; width: 0; height: 4px; position: absolute; left: 0; bottom: 0; background: #F9BE3E; transition: all .6s; opacity: 0;}
 | 
					.nav ul li span a::before{ content: ''; width: 0; height: 4px; position: absolute; left: 0; bottom: 0; background: #F9BE3E; transition: all .6s; opacity: 0;}
 | 
				
			||||||
.nav ul li:hover span a{ color: #fff !important;}
 | 
					.nav ul li:hover span a{ color: #fff !important;}
 | 
				
			||||||
| 
						 | 
					@ -90,14 +89,16 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
.all-center-box{ width: 100%; float: left;}
 | 
					.all-center-box{ width: 100%; float: left;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.head-box{ position: absolute; left: 0; top: 4rem; 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{ 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;}
 | 
					.head-box .center-block .logo{ width: 14.375rem; height: 5.9375rem; text-align: center; background: #fff;}
 | 
				
			||||||
.head-box .center-block .logo img{ height: 3.625rem;}
 | 
					.head-box .center-block .logo img{ height: 3.625rem;}
 | 
				
			||||||
.head-box .center-block .language{ font-size: 1.125rem; padding:0 2.5rem;}
 | 
					.head-box .center-block .language{ font-size: 1.125rem; padding:0 2.5rem;}
 | 
				
			||||||
.head-box .center-block .language a{ color: #fff;}
 | 
					.head-box .center-block .language a{ color: #fff; margin: 0 0.25rem;}
 | 
				
			||||||
.head-box .center-block .language a.active{ font-weight: bold;}
 | 
					.head-box .center-block .language a.active{ font-weight: bold; color: #F9BE3E;}
 | 
				
			||||||
.head-box .center-block .language a:hover{ color: #F9BE3E;}
 | 
					.head-box .center-block .language a:hover{ color: #F9BE3E;}
 | 
				
			||||||
.head-box.active{ top: 2rem;}
 | 
					.head-box.active{ position: fixed; top: 0;}
 | 
				
			||||||
 | 
					.head-box.active .w-1500{ width: 100%;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.banner-box{ height: 100vh;}
 | 
					.banner-box{ height: 100vh;}
 | 
				
			||||||
| 
						 | 
					@ -159,11 +160,13 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
.foot-box a{ color: #fff;}
 | 
					.foot-box a{ color: #fff;}
 | 
				
			||||||
.foot-box .top-box .fl img{ height: 67px;}
 | 
					.foot-box .top-box .fl img{ height: 67px;}
 | 
				
			||||||
.foot-box .top-box .fr a{ float: left; margin-left: 3.125rem; font-size: 1.125rem;}
 | 
					.foot-box .top-box .fr a{ float: left; margin-left: 3.125rem; font-size: 1.125rem;}
 | 
				
			||||||
 | 
					.foot-box .top-box .fr a:hover{ color: #F9BE3E;}
 | 
				
			||||||
.foot-box .lower-box{ display: flex; justify-content: space-between; margin-top: 3.75rem; font-size: 1rem; line-height: 1.6;}
 | 
					.foot-box .lower-box{ display: flex; justify-content: space-between; margin-top: 3.75rem; font-size: 1rem; line-height: 1.6;}
 | 
				
			||||||
.foot-box .lower-box .column-between p i{ font-size: 0.75rem; line-height: 1.4; display: inline-block;}
 | 
					.foot-box .lower-box .column-between p i{ font-size: 0.75rem; line-height: 1.4; display: inline-block;}
 | 
				
			||||||
.foot-box .lower-box .column-between p span{ font-size: 0.875rem;}
 | 
					.foot-box .lower-box .column-between p span{ font-size: 0.875rem;}
 | 
				
			||||||
.foot-box .lower-box .ewm{ text-align: center;}
 | 
					.foot-box .lower-box .ewm{ text-align: center;}
 | 
				
			||||||
.foot-box .lower-box .ewm img{ width: 134px;}
 | 
					.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: 40.625rem; 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{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff; padding-bottom: ;}
 | 
				
			||||||
| 
						 | 
					@ -200,13 +203,144 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
.about-box3{ padding: 3.75rem 0; background: #F5F5F5;}
 | 
					.about-box3{ padding: 3.75rem 0; background: #F5F5F5;}
 | 
				
			||||||
.about-box3 .box-info{ margin-top: -5rem;}
 | 
					.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: 3.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;}
 | 
				
			||||||
 | 
					.about-box4 .top-box .swiper-container .swiper-slide p span{ font-size: 3.125rem; font-weight: bold;}
 | 
				
			||||||
 | 
					.about-box4 .top-box .swiper-container .swiper-slide i{ width: 1.3rem; height: 1.3rem; display: inline-block; border-radius: 100%; border: 0.375rem solid #B3B3B3; background: #fff; margin: 0.625rem 0 0;}
 | 
				
			||||||
 | 
					.about-box4 .top-box .swiper-container .swiper-slide.swiper-slide-active{ color: #01418E;}
 | 
				
			||||||
 | 
					.about-box4 .top-box .swiper-container .swiper-slide.swiper-slide-active i{ border-color: #01418E;}
 | 
				
			||||||
 | 
					.about-box4 .lower-box{ padding: 2.5rem 30%;}
 | 
				
			||||||
 | 
					.about-box4 .lower-box .center-block{ line-height: 1.6; font-size: 1rem; color: #888;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn{ width: 14.375rem; position: relative; float: left; left: 50%; transform: translate(-50%,0);}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-next{ float: right; right: 0;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-prev{ float: left; left: 0;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-next,.about-box4 .swiper-btn .swiper-button-prev{ position: relative; width: 4.25rem; height: 4.25rem; background: #f8f9fb; border-radius: 100%; transition: all .6s; margin-top: 0; top: 0;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-next::after,.about-box4 .swiper-btn .swiper-button-prev::after{ color: #c9c9c8; transition: all .6s; font-size: 2.4rem;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-next:hover,.about-box4 .swiper-btn .swiper-button-prev:hover{ background: #00418f;}
 | 
				
			||||||
 | 
					.about-box4 .swiper-btn .swiper-button-next:hover::after,.about-box4 .swiper-btn .swiper-button-prev:hover::after{ color: #fff;}
 | 
				
			||||||
 | 
					.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 .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 .box-info{ padding: 2.5rem 0 3rem;}
 | 
				
			||||||
 | 
					.service-box2{ background-color: #f5f5f5;}
 | 
				
			||||||
 | 
					.service-box3{ padding: 10rem 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; padding: 1.875rem; position: relative;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li{ padding-top: 13.75rem; position: relative;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li::after{ content: ''; width: 2px; height: 10rem; background: #d3d3d3; position: absolute; left: 1.875rem; top: 1.8rem;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li:first-child{ padding-top: 0;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li:first-child::after{ display: none;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li .imgs{ width: 36%;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li .info{ width: 100%; padding-left: 5.625rem; font-size: 15px; color: #999; line-height: 1.8;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li .info strong{ color: #555;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right ul li .info i{ font-size: 36px; color: #00418f; font-weight: bold;}
 | 
				
			||||||
 | 
					.service-box3 .box-info .pull-right::before{ content: ''; width: 3.125rem; height: 3.125rem; border-top: 0.25rem solid #ccc; border-left: 0.25rem solid #ccc; position: absolute; left: 0; top: 0;}
 | 
				
			||||||
 | 
					.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 .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;}
 | 
				
			||||||
 | 
					.marketing-box1 .box-info .pull-left p{ color: #999; white-space: nowrap; margin-top: 0.625rem;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.marketing-box2{ padding: 5.625rem 0;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li{ width: 100%; float: left; border: 0.125rem solid #D9D9D9; margin-top: 1.875rem; transition: all .6s;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box{ padding: 1.875rem; line-height: 2.5rem; cursor: pointer;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box .pull-left{ font-weight: bold;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box .pull-left i{ width: 5rem; float: left; font-size: 1rem; color: #00418f;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box .pull-left span{ font-size: 1.25rem;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box .pull-right{ font-size: 1rem; padding-right: 3.4375rem; position: relative; color: #999;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .top-box .pull-right::after{ content: ''; width: 2.5rem; height: 2.5rem; background: url(../image/icon_jt3.png) no-repeat center; background-size: 100%; position: absolute; right: 0; top: 0; transition: all .6s;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .lower-box{ padding: 0 1.875rem 1.875rem; display: none;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .lower-box .table{ margin: auto;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .lower-box .table td,.marketing-box2 .center-block ul li .lower-box .table th{ vertical-align: middle; border-width: 0.125rem; text-align: center;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li .lower-box .table th{ padding: 1.5rem 8px;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li.active{ box-shadow: 5px 5px 10px rgba(0,0,0,0.2);}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li.active .top-box .pull-right::after{ transform: rotate(90deg);}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.news-box1{ padding: 10rem 0 6rem;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li{ width: 100%; float: left;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a{ width: 100%; float: left; margin-top: 3.125rem; border: 0.125rem solid #d7d7d7; background: #fff; padding: 2.5rem;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-left{ white-space: nowrap; font-size: 1.25rem; color: #00418f; font-weight: bold; padding-right: 2.5rem;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right{ width: 100%;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .imgs{ width: 29%; float: left; height: 10rem; overflow: hidden;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .imgs img{ width: 100%; height: 100%; object-fit: cover; transition: all .6s;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .info{ width: 71%; float: left; padding-left: 2.8125rem;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .info span{ display: block; font-size: 1.25rem; font-weight: bold; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .info p{ color: #999; line-height: 1.6; font-size: 0.9375rem; height: 4.5rem; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 1.125rem 0;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a .pull-right .info i{ float: right; font-size: 0.875rem; color: #999;}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a:hover{ border-color: #fff; box-shadow: 5px 5px 10px rgba(0,0,0,0.2);}
 | 
				
			||||||
 | 
					.news-box1 .center-block ul li a:hover .pull-right .imgs img{ transform: scale(1.1);}
 | 
				
			||||||
 | 
					.news-box1 .more a{ float: right; font-size: 1rem; padding-right: 3.4375rem; line-height: 2.5rem; margin-top: 2.5rem; position: relative; color: #999;}
 | 
				
			||||||
 | 
					.news-box1 .more a::after{ content: ''; width: 2.5rem; height: 2.5rem; background: url(../image/icon_jt3.png) no-repeat center; background-size: 100%; position: absolute; right: 0; top: 0; transition: all .6s;}
 | 
				
			||||||
 | 
					.news-box1 .more a:hover{ color: #00418f;}
 | 
				
			||||||
 | 
					.news-box1 .more a:hover::after{ background-image: url(../image/icon_jt3_1.png);}
 | 
				
			||||||
 | 
					.news-box2{ background: #f5f5f5; padding: 6rem 0;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.news-box3{ padding: 6rem 0;}
 | 
				
			||||||
 | 
					.news-box3 .pull-right{ width: 50%; margin-top: 0.625rem;}
 | 
				
			||||||
 | 
					.news-box3 .pull-right ul li{ width: 100%; float: left;}
 | 
				
			||||||
 | 
					.news-box3 .pull-right ul li a{ width: 100%; float: left; line-height: 20px; margin-bottom: 1.5625rem; font-size: 1rem;}
 | 
				
			||||||
 | 
					.news-box3 .pull-right ul li a span{ width: 70%; float: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
 | 
				
			||||||
 | 
					.news-box3 .pull-right ul li a i{ float: right;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.news-info{ padding: 10rem 0 6rem;}
 | 
				
			||||||
 | 
					.news-info .top-box{ border-bottom: 1px solid #9E9E9E; padding-bottom: 1.875rem;}
 | 
				
			||||||
 | 
					.news-info .top-box span{ display: block; font-size: 1.75rem; font-weight: bold;}
 | 
				
			||||||
 | 
					.news-info .top-box p{ font-size: 1.3rem; color: #999; margin-top: 0.625rem;}
 | 
				
			||||||
 | 
					.news-info .cen-box{ padding: 1.875rem 0; line-height: 1.8; font-size: 1rem;}
 | 
				
			||||||
 | 
					.news-info .lower-box{ font-size: 1.125rem; margin-top: 0.625rem; color: #999;}
 | 
				
			||||||
 | 
					.news-info .lower-box a{ color: #999;}
 | 
				
			||||||
 | 
					.news-info .lower-box a:hover{ color: #578df3;}
 | 
				
			||||||
 | 
					.news-info .lower-box a.btns{ display: inline-block; background: #00418f; color: #fff; padding: 0 2.85rem; line-height: 2rem; font-size: 1rem; margin-top: 0.8rem;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.contact-box1{ padding: 10rem 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;}
 | 
				
			||||||
 | 
					.contact-box1 .between-top .box-info p span{ color: #00418f;}
 | 
				
			||||||
 | 
					.contact-box1 .between-top .box-info p:first-child{ margin-top: 5px;}
 | 
				
			||||||
 | 
					.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 .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;}
 | 
				
			||||||
 | 
					.contact-box2 .marketing-box2 .center-block ul li .lower-box .pull-left{ width: 10rem; font-size: 0.875rem; line-height: 2;}
 | 
				
			||||||
 | 
					.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;}
 | 
				
			||||||
 | 
					.marketing-box2 .center-block ul li.active .lower-box{ display: block;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.contact-box3{ background: #F5F5F5; padding: 6rem 0;}
 | 
				
			||||||
 | 
					.contact-box3 .box-info{ width: 100%; float: left; color: #888; font-size: 0.875rem; line-height: 1.8; margin: 2.5rem 0;}
 | 
				
			||||||
 | 
					.contact-box3 .center-block .text{ width: 48%; float: left; height: 35px; border: none; border-bottom: 1px solid #c2c2c2; background: none; font-size: 0.875rem; margin-top: 1.25rem;}
 | 
				
			||||||
 | 
					.contact-box3 .center-block .text:nth-child(2n){ float: right;}
 | 
				
			||||||
 | 
					.contact-box3 .center-block textarea{ width: 100%; float: left; height: 110px; border: none; border-bottom: 1px solid #c2c2c2; background: none; font-size: 0.875rem; margin-top: 1.25rem;}
 | 
				
			||||||
 | 
					.contact-box3 .center-block .btns{ width: 100%; float: left; text-align: center;}
 | 
				
			||||||
 | 
					.contact-box3 .center-block .btns input{ width: 10rem; line-height: 2.25rem; background: #00418f; border:none; color: #fff; font-size: 1rem; margin-top: 1.875rem;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.product-box{ padding: 8rem 0 5rem;}
 | 
				
			||||||
 | 
					.product-box .center-block ul{ margin: 0 -1.25rem;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li{ width: 25%; float: left; padding: 0 1.25rem; margin-top: 2.5rem;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li a{ width: 100%; float: left;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li a span{ width: 100%; float: left; height: 14rem; overflow: hidden;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li a span img{ width: 100%; height: 100%; object-fit: cover; transition: all .6s;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li a p{ width: 100%; float: left; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 0.625rem;}
 | 
				
			||||||
 | 
					.product-box .center-block ul li a:hover span img{ transform: scale(1.1);}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.pager{ margin: 3rem 0 0;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -302,7 +436,7 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    .about-box2{ padding: 1.5625rem 0;}
 | 
					    .about-box2{ padding: 1.5625rem 0;}
 | 
				
			||||||
    .about-box2 .top-box .fr span{ margin-left: 1rem;}
 | 
					    .about-box2 .top-box .fr span{ margin-left: 1rem;}
 | 
				
			||||||
    .about-box2 .lower-box{ padding: 0; margin-top: 1.5625rem; background: none;}
 | 
					    .about-box2 .lower-box{ padding: 0; margin-top: 1.5625rem; background: none; min-height: 35rem;}
 | 
				
			||||||
    .about-box2 .lower-box .pull-left{ width: 100%;}
 | 
					    .about-box2 .lower-box .pull-left{ width: 100%;}
 | 
				
			||||||
    .about-box2 .lower-box .pull-left ul li{ padding: 1.25rem;}
 | 
					    .about-box2 .lower-box .pull-left ul li{ padding: 1.25rem;}
 | 
				
			||||||
    .about-box2 .lower-box .pull-right{ width: 100%; position: relative; height: 12.5rem; margin-top: 1.5625rem;}
 | 
					    .about-box2 .lower-box .pull-right{ width: 100%; position: relative; height: 12.5rem; margin-top: 1.5625rem;}
 | 
				
			||||||
| 
						 | 
					@ -311,19 +445,72 @@ input,select,textarea{outline:medium none; resize: none;}
 | 
				
			||||||
    .about-box3{ padding: 1.5625rem 0;}
 | 
					    .about-box3{ padding: 1.5625rem 0;}
 | 
				
			||||||
    .about-box3 .box-info{ margin-top: 1.25rem;}
 | 
					    .about-box3 .box-info{ margin-top: 1.25rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .about-box4{ padding: 1.5625rem 0;}
 | 
				
			||||||
 | 
					    .about-box4 .top-box{ margin-top: 2rem;}
 | 
				
			||||||
 | 
					    .about-box4 .top-box .swiper-container .swiper-slide{ font-size: 1.2rem;}
 | 
				
			||||||
 | 
					    .about-box4 .top-box .swiper-container .swiper-slide p span{ font-size: 2.5rem;}
 | 
				
			||||||
 | 
					    .about-box4 .lower-box{ padding: 2.5rem 0;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .about-box5{ padding: 1.5625rem 0;}
 | 
				
			||||||
 | 
					    .about-box5 .video-box{ min-height: initial; height: 20rem;}
 | 
				
			||||||
 | 
					    .about-box5 .video-box i::after{ background-size: 6rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .service-box1{ padding: 2rem 0 0;}
 | 
				
			||||||
 | 
					    .service-box1 .box-info{ padding: 1.5rem 0;}
 | 
				
			||||||
 | 
					    .service-box3{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info{ background: none;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info .pull-right{ width: 100%; margin-top: 1.5rem; padding: 1rem;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info .pull-right ul li{ padding-top: 6rem;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info .pull-right ul li::after{ height: 3rem; top: 1rem;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info .pull-right ul li .info{ padding-left: 2rem; font-size: 0.875rem;}
 | 
				
			||||||
 | 
					    .service-box3 .box-info .pull-right ul li .info i{ font-size: 1.875rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .marketing-box1{ padding: 2rem 0 0;}
 | 
				
			||||||
 | 
					    .marketing-box1 .box-info{ display: block; padding-bottom: 2rem;}
 | 
				
			||||||
 | 
					    .marketing-box1 .box-info .pull-left,.marketing-box1 .box-info .pull-right{ width: 100%; margin-top: 1.5rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .marketing-box2{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .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 0 1rem; overflow: auto;}
 | 
				
			||||||
 | 
					    .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;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .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{ position: absolute;}
 | 
				
			||||||
 | 
					    .news-box1 .center-block ul li a .pull-right{}
 | 
				
			||||||
 | 
					    .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-left: 10px;}
 | 
				
			||||||
 | 
					    .news-box1 .center-block ul li a .pull-right .info p{ margin: 1rem 0; height: 55px; font-size: 12px;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .news-box3{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .news-box3 .w-1200{ display: block;}
 | 
				
			||||||
 | 
					    .news-box3 .pull-right{ width: 100%; margin-top: 0.5rem;}
 | 
				
			||||||
 | 
					    .news-box3 .pull-right ul li a{ margin: 1rem 0 0;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .news-info{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .news-info .top-box{ padding-bottom: 1rem;}
 | 
				
			||||||
 | 
					    .news-info .cen-box{ padding: 1rem 0;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .contact-box1{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .contact-box1 .between-top{ display: block; padding-bottom: 0;}
 | 
				
			||||||
 | 
					    .contact-box1 .between-top .column-between:first-child img{ display: none;}
 | 
				
			||||||
 | 
					    .contact-box1 .between-top .box-info{ width: 100%;}
 | 
				
			||||||
 | 
					    .contact-box1 .between-top .box-info p{ margin-top: 0.9375rem !important;}
 | 
				
			||||||
 | 
					    .contact-box1 .between-top .ewm{ display: none;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .contact-box2 .marketing-box2 .center-block ul li .top-box .pull-left i{ width: 8.35rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    .contact-box3{ padding: 2rem 0;}
 | 
				
			||||||
 | 
					    .contact-box3 .box-info{ margin: 1rem 0;}
 | 
				
			||||||
 | 
					    .contact-box3 .center-block .text{ margin-top: 0.5rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    .product-box{ padding: 1rem 0 2rem;}
 | 
				
			||||||
    
 | 
					    .product-box .center-block ul{ margin: auto;}
 | 
				
			||||||
 | 
					    .product-box .center-block ul li{ width: 48%; padding: 0; margin-top: 1.5rem;}
 | 
				
			||||||
 | 
					    .product-box .center-block ul li:nth-child(2n){ float: right;}
 | 
				
			||||||
 | 
					    .product-box .center-block ul li a span{ height: 12rem;}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -64,6 +64,25 @@ $(function() {
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    $('.marketing-box2 .center-block ul li').each(function(){
 | 
				
			||||||
 | 
					        var that = $(this)
 | 
				
			||||||
 | 
					        that.find('.top-box').click(function(){
 | 
				
			||||||
 | 
					            if(that.attr('class') != 'active'){
 | 
				
			||||||
 | 
					                that.addClass('active')
 | 
				
			||||||
 | 
					                that.find('.top-box .pull-right').text('收起')
 | 
				
			||||||
 | 
					                that.find('.lower-box').stop(true,false).slideDown()
 | 
				
			||||||
 | 
					            }else{
 | 
				
			||||||
 | 
					                that.removeClass('active')
 | 
				
			||||||
 | 
					                that.find('.top-box .pull-right').text('展开')
 | 
				
			||||||
 | 
					                that.find('.lower-box').stop(true,false).slideUp()
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    $('.about-box5 .video-box').click(function(){
 | 
				
			||||||
 | 
					        $(this).find('i').fadeOut()
 | 
				
			||||||
 | 
					        $(this).find('video').get(0).play()
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $('.ewm_tc').click(function() {
 | 
					    $('.ewm_tc').click(function() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,6 +62,13 @@
 | 
				
			||||||
                    <input type="radio" checked="checked" name="item[is_index]" value="0" title="否" />
 | 
					                    <input type="radio" checked="checked" name="item[is_index]" value="0" title="否" />
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
 | 
					                <label class="layui-form-label">菜单显示</label>
 | 
				
			||||||
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
 | 
					                    <input type="radio" name="item[is_menu]" value="1" title="是" checked="checked"/>
 | 
				
			||||||
 | 
					                    <input type="radio" name="item[is_menu]" value="0" title="否" />
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item layui-form-text">
 | 
					            <div class="layui-form-item layui-form-text">
 | 
				
			||||||
                <label class="layui-form-label">列表模板</label>
 | 
					                <label class="layui-form-label">列表模板</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
| 
						 | 
					@ -77,7 +84,23 @@
 | 
				
			||||||
            <div class="layui-form-item layui-form-text">
 | 
					            <div class="layui-form-item layui-form-text">
 | 
				
			||||||
                <label class="layui-form-label">描述</label>
 | 
					                <label class="layui-form-label">描述</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
                    <textarea placeholder="栏目描述" name="item[description]" class="layui-textarea"></textarea>
 | 
					                    <textarea placeholder="栏目描述,500字以内" name="item[description]" class="layui-textarea" onkeyup="limitContentLength(this, 500)"></textarea>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
 | 
					                <div class="layui-inline">
 | 
				
			||||||
 | 
					                    <label class="layui-form-label">栏目封面尺寸</label>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">宽:</div>
 | 
				
			||||||
 | 
					                    <div class="layui-input-inline" >
 | 
				
			||||||
 | 
					                        <input class="layui-input" type="text" name="item[width]" value="0" style="width:100%"/>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid">X</div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">高:</div>
 | 
				
			||||||
 | 
					                    <div class="layui-input-inline" >
 | 
				
			||||||
 | 
					                        <input class="layui-input" type="text" name="item[height]" value="0" style="width:100%"/>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
| 
						 | 
					@ -96,22 +119,6 @@
 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					 | 
				
			||||||
                <div class="layui-inline">
 | 
					 | 
				
			||||||
                    <label class="layui-form-label">缩略图尺寸</label>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">宽:</div>
 | 
					 | 
				
			||||||
                    <div class="layui-input-inline" >
 | 
					 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[width]" value="0" style="width:100%"/>
 | 
					 | 
				
			||||||
                    </div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid">X</div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">高:</div>
 | 
					 | 
				
			||||||
                    <div class="layui-input-inline" >
 | 
					 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[height]" value="0" style="width:100%"/>
 | 
					 | 
				
			||||||
                    </div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					 | 
				
			||||||
                </div>
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">列表页数量</label>
 | 
					                <label class="layui-form-label">列表页数量</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,6 +76,13 @@ if(!empty($item['width']) && is_int($item['width']) && $item['width'] > 0 && !em
 | 
				
			||||||
                    <input type="radio" {if $item['is_index'] == 0}checked="checked"{/if} name="item[is_index]" value="0" title="否" />
 | 
					                    <input type="radio" {if $item['is_index'] == 0}checked="checked"{/if} name="item[is_index]" value="0" title="否" />
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
 | 
					                <label class="layui-form-label">菜单显示</label>
 | 
				
			||||||
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
 | 
					                    <input type="radio" name="item[is_menu]" value="1" title="是" {if $item['is_menu'] == 1}checked="checked"{/if}/>
 | 
				
			||||||
 | 
					                    <input type="radio" name="item[is_menu]" value="0" title="否" {if $item['is_menu'] == 0}checked="checked"{/if}/>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item layui-form-text">
 | 
					            <div class="layui-form-item layui-form-text">
 | 
				
			||||||
                <label class="layui-form-label" id="label">列表模板</label>
 | 
					                <label class="layui-form-label" id="label">列表模板</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
| 
						 | 
					@ -92,7 +99,23 @@ if(!empty($item['width']) && is_int($item['width']) && $item['width'] > 0 && !em
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label" id="label">描述</label>
 | 
					                <label class="layui-form-label" id="label">描述</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
                    <input class="layui-input" type="text" name="item[description]" value="{$item.description}" />
 | 
					                    <textarea class="layui-textarea" name="item[description]" onkeyup="limitContentLength(this, 500)" placeholder="栏目描述,500字以内">{$item.description}</textarea>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
 | 
					                <div class="layui-inline">
 | 
				
			||||||
 | 
					                    <label class="layui-form-label">栏目封面尺寸</label>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">宽:</div>
 | 
				
			||||||
 | 
					                    <div class="layui-input-inline" >
 | 
				
			||||||
 | 
					                        <input class="layui-input" type="text" name="item[width]" value="{$item.width}" style="width:100%" />
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid">X</div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">高:</div>
 | 
				
			||||||
 | 
					                    <div class="layui-input-inline" >
 | 
				
			||||||
 | 
					                        <input class="layui-input" type="text" name="item[height]" value="{$item.height}"  style="width:100%"/>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
| 
						 | 
					@ -111,22 +134,6 @@ if(!empty($item['width']) && is_int($item['width']) && $item['width'] > 0 && !em
 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					 | 
				
			||||||
                <div class="layui-inline">
 | 
					 | 
				
			||||||
                    <label class="layui-form-label">缩略图尺寸</label>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">宽:</div>
 | 
					 | 
				
			||||||
                    <div class="layui-input-inline" >
 | 
					 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[width]" value="{$item.width}" style="width:100%" />
 | 
					 | 
				
			||||||
                    </div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid">X</div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">高:</div>
 | 
					 | 
				
			||||||
                    <div class="layui-input-inline" >
 | 
					 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[height]" value="{$item.height}"  style="width:100%"/>
 | 
					 | 
				
			||||||
                    </div>
 | 
					 | 
				
			||||||
                    <div class="layui-form-mid layui-word-aux">px</div>
 | 
					 | 
				
			||||||
                </div>
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">列表页数量</label>
 | 
					                <label class="layui-form-label">列表页数量</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,10 +8,10 @@
 | 
				
			||||||
                <div class="layui-form-item">
 | 
					                <div class="layui-form-item">
 | 
				
			||||||
                    <label class="layui-form-label">事例概述<em>*</em></label>
 | 
					                    <label class="layui-form-label">事例概述<em>*</em></label>
 | 
				
			||||||
                    <div class="layui-input-block">
 | 
					                    <div class="layui-input-block">
 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[title]" maxlength="200" />
 | 
					                        <textarea class="layui-textarea" name="item[title]" maxlength="200" onkeyup="limitContentLength(this, 200)"></textarea>
 | 
				
			||||||
 | 
					                        <p class="layui-form-mid layui-word-aux">注:事例概述请勿超过200个字符</p>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="layui-form-item"><div class="layui-form-mid layui-word-aux">注:事例概述请勿超过200个字符</div></div>
 | 
					 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">状态</label>
 | 
					                <label class="layui-form-label">状态</label>
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">图组</label>
 | 
					                <label class="layui-form-label">图组</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
                    {:widget('manager.upload/multi',['imgSize' => '425px X 280px'])}
 | 
					                    {:widget('manager.upload/multi',['imgSize' => $imgSize])}
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,10 +8,10 @@
 | 
				
			||||||
                <div class="layui-form-item">
 | 
					                <div class="layui-form-item">
 | 
				
			||||||
                    <label class="layui-form-label">事例概述<em>*</em></label>
 | 
					                    <label class="layui-form-label">事例概述<em>*</em></label>
 | 
				
			||||||
                    <div class="layui-input-block">
 | 
					                    <div class="layui-input-block">
 | 
				
			||||||
                        <input class="layui-input" type="text" name="item[title]" maxlength="200" value="{$item.title}"/>
 | 
					                        <textarea class="layui-textarea" name="item[title]" maxlength="200" onkeyup="limitContentLength(this, 200)">{$item.title}</textarea>
 | 
				
			||||||
 | 
					                        <p class="layui-form-mid layui-word-aux">注:事例概述请勿超过200个字符</p>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="layui-form-item"><div class="layui-form-mid layui-word-aux">注:事例概述请勿超过200个字符</div></div>
 | 
					 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">状态</label>
 | 
					                <label class="layui-form-label">状态</label>
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
                <label class="layui-form-label">图组</label>
 | 
					                <label class="layui-form-label">图组</label>
 | 
				
			||||||
                <div class="layui-input-block">
 | 
					                <div class="layui-input-block">
 | 
				
			||||||
                    {:widget('manager.upload/multi',['imgs'=>empty($item['imgs'])?[]:$item['imgs'],'imgSize' => '425px X 280px'])}
 | 
					                    {:widget('manager.upload/multi',['imgs'=>empty($item['imgs'])?[]:$item['imgs'],'imgSize' => $imgSize])}
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="layui-form-item">
 | 
					            <div class="layui-form-item">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,15 @@
 | 
				
			||||||
 | 
					<!DOCTYPE html>
 | 
				
			||||||
 | 
					<html lang="zh-CN">
 | 
				
			||||||
{php}
 | 
					{php}
 | 
				
			||||||
    $jsVersion = '0.0.1';
 | 
					    $jsVersion = '0.0.1';
 | 
				
			||||||
    $cssVersion = '0.0.1';
 | 
					    $cssVersion = '0.0.1';
 | 
				
			||||||
 | 
					    if(!isset($categoryId)) {
 | 
				
			||||||
 | 
					        $categoryId = $category['id'] ?? 0;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if(!isset($_token) || empty($_token)) {
 | 
				
			||||||
 | 
					        $_token = session('_token') ?? '';
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
{/php}
 | 
					{/php}
 | 
				
			||||||
<!DOCTYPE html>
 | 
					 | 
				
			||||||
<html lang="zh-CN">
 | 
					 | 
				
			||||||
<head>
 | 
					<head>
 | 
				
			||||||
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 | 
					    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 | 
				
			||||||
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
					    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
				
			||||||
| 
						 | 
					@ -11,11 +17,6 @@ $cssVersion = '0.0.1';
 | 
				
			||||||
    <meta name="keywords" content="" />
 | 
					    <meta name="keywords" content="" />
 | 
				
			||||||
    <meta name="description" content="" />
 | 
					    <meta name="description" content="" />
 | 
				
			||||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
 | 
					    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
 | 
				
			||||||
    {php}
 | 
					 | 
				
			||||||
        if(!isset($_token) || empty($_token)) {
 | 
					 | 
				
			||||||
            $_token = session('_token') ?? '';
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    {/php}
 | 
					 | 
				
			||||||
    <meta name="csrf-token" id="token" content="{$_token}">
 | 
					    <meta name="csrf-token" id="token" content="{$_token}">
 | 
				
			||||||
    <link rel="stylesheet" href="__MANAGER__/layui/css/layui.css">
 | 
					    <link rel="stylesheet" href="__MANAGER__/layui/css/layui.css">
 | 
				
			||||||
    <link rel="stylesheet" href="__MANAGER__/css/ocms.css?v={$cssVersion}">
 | 
					    <link rel="stylesheet" href="__MANAGER__/css/ocms.css?v={$cssVersion}">
 | 
				
			||||||
| 
						 | 
					@ -35,7 +36,7 @@ $cssVersion = '0.0.1';
 | 
				
			||||||
    <div class="layui-layout layui-layout-admin">
 | 
					    <div class="layui-layout layui-layout-admin">
 | 
				
			||||||
        <div class="layui-header">
 | 
					        <div class="layui-header">
 | 
				
			||||||
            <div class="layui-nav layui-layout-left">
 | 
					            <div class="layui-nav layui-layout-left">
 | 
				
			||||||
                • {:widget('manager.crumbs/index')}
 | 
					                • {:widget('manager.crumbs/index' , ['category_id' => $categoryId])}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div id="menu-fold"></div>
 | 
					        <div id="menu-fold"></div>
 | 
				
			||||||
| 
						 | 
					@ -48,7 +49,7 @@ $cssVersion = '0.0.1';
 | 
				
			||||||
                        <a href="{:url('manager.logout/index')}">退出登录</a>
 | 
					                        <a href="{:url('manager.logout/index')}">退出登录</a>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                {:widget('manager.menu/left',['category_id' => $category['id']??0])}
 | 
					                {:widget('manager.menu/left',['category_id' => $categoryId])}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <div class="contact_box">
 | 
					            <div class="contact_box">
 | 
				
			||||||
                <div class="between-center">
 | 
					                <div class="between-center">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,165 @@
 | 
				
			||||||
 | 
					{layout name="layout"}
 | 
				
			||||||
 | 
					<!-- banner -->
 | 
				
			||||||
 | 
					<div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban1.jpg')});">
 | 
				
			||||||
 | 
					    <div class="info">
 | 
				
			||||||
 | 
					        <div class="w-1200">
 | 
				
			||||||
 | 
					            <strong>{$topCategory.title}</strong>
 | 
				
			||||||
 | 
					            <p>{:nl2br($topCategory.description ?? '')}</p>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					<!--    -->
 | 
				
			||||||
 | 
					<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="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>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <!--    -->
 | 
				
			||||||
 | 
					    <div class="about-box2 w-100" id="about2">
 | 
				
			||||||
 | 
					        <div class="w-1200">
 | 
				
			||||||
 | 
					            <div class="top-box w-100 between-center">
 | 
				
			||||||
 | 
					                <div class="all-title-box2"><span>{$blocks['honor']['title']['value'] ?? ''}</span><p>{$blocks['honor']['subtitle']['value'] ?? ''}</p></div>
 | 
				
			||||||
 | 
					                <div class="fr">
 | 
				
			||||||
 | 
					                {if isset($honors) && count($honors) > 0}
 | 
				
			||||||
 | 
					                    {foreach $honors as $k => $honor}
 | 
				
			||||||
 | 
					                    <span {if $k == 0}class="active"{/if}>{$honor.title}</span>
 | 
				
			||||||
 | 
					                    {/foreach}
 | 
				
			||||||
 | 
					                {/if}
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            {if isset($honors) && count($honors) > 0}
 | 
				
			||||||
 | 
					            {foreach $honors as $k => $honor}
 | 
				
			||||||
 | 
					            <div class="lower-box w-100">
 | 
				
			||||||
 | 
					                <div class="pull-left">
 | 
				
			||||||
 | 
					                    <ul>
 | 
				
			||||||
 | 
					                    {foreach $honor.items as $item}
 | 
				
			||||||
 | 
					                        <li><img src="{:getImgSrc($item, '__IMG__/occupy.png')}"></li>
 | 
				
			||||||
 | 
					                    {/foreach}
 | 
				
			||||||
 | 
					                    </ul>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="pull-right">
 | 
				
			||||||
 | 
					                    <ul>
 | 
				
			||||||
 | 
					                    {foreach $honor.items as $item}
 | 
				
			||||||
 | 
					                        <li>{$item.title}</li>
 | 
				
			||||||
 | 
					                    {/foreach}
 | 
				
			||||||
 | 
					                    </ul>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            {/foreach}
 | 
				
			||||||
 | 
					            {/if}
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <!--    -->
 | 
				
			||||||
 | 
					    <div class="about-box3 w-100" id="about3">
 | 
				
			||||||
 | 
					        <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">
 | 
				
			||||||
 | 
					                <img src="{$blocks['structure']['img']['value'] ?? ''}" >
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <!--    -->
 | 
				
			||||||
 | 
					    <div class="about-box4 w-100" id="about4">
 | 
				
			||||||
 | 
					        <div class="w-1200">
 | 
				
			||||||
 | 
					            <div class="all-title-box2"><span>{$blocks['history']['title']['value'] ?? ''}</span><p>{$blocks['history']['subtitle']['value'] ?? ''}</p></div>
 | 
				
			||||||
 | 
					            <div class="top-box w-100">
 | 
				
			||||||
 | 
					                <div class="swiper-container">
 | 
				
			||||||
 | 
					                    <div class="swiper-wrapper">
 | 
				
			||||||
 | 
					                    {if isset($historyList) && count($historyList) > 0}
 | 
				
			||||||
 | 
					                        {foreach $historyList as $history}
 | 
				
			||||||
 | 
					                        <div class="swiper-slide"><p><span>{$history.title}</span></p><i></i></div>
 | 
				
			||||||
 | 
					                        {/foreach}
 | 
				
			||||||
 | 
					                    {/if}
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="lower-box w-100">
 | 
				
			||||||
 | 
					                {if isset($historyList) && count($historyList) > 0}
 | 
				
			||||||
 | 
					                {foreach $historyList as $history}
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    {foreach $history['info'] as $k => $info}
 | 
				
			||||||
 | 
					                    <p class="lower-box-item">{if $k > 0}<hr />{/if}{:nl2br($info['title'] ?? '')}</p>
 | 
				
			||||||
 | 
					                    {/foreach}
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                {/foreach}
 | 
				
			||||||
 | 
					                {/if}
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    2007年,<br>
 | 
				
			||||||
 | 
					                    超宇公司加大投资与融资力度,<br>
 | 
				
			||||||
 | 
					                    同时配备一流齐全的数控设备和各类工装模具及检验设备等,以确保产品达到高标准、精细化、零缺陷的标准。
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    2008年,<br>
 | 
				
			||||||
 | 
					                    超宇公司加大投资与融资力度,<br>
 | 
				
			||||||
 | 
					                    同时配备一流齐全的数控设备和各类工装模具及检验设备等,以确保产品达到高标准、精细化、零缺陷的标准。
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    2009年,<br>
 | 
				
			||||||
 | 
					                    超宇公司加大投资与融资力度,<br>
 | 
				
			||||||
 | 
					                    同时配备一流齐全的数控设备和各类工装模具及检验设备等,以确保产品达到高标准、精细化、零缺陷的标准。
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    2010年,<br>
 | 
				
			||||||
 | 
					                    超宇公司加大投资与融资力度,<br>
 | 
				
			||||||
 | 
					                    同时配备一流齐全的数控设备和各类工装模具及检验设备等,以确保产品达到高标准、精细化、零缺陷的标准。
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="center-block w-100">
 | 
				
			||||||
 | 
					                    2011年,<br>
 | 
				
			||||||
 | 
					                    超宇公司加大投资与融资力度,<br>
 | 
				
			||||||
 | 
					                    同时配备一流齐全的数控设备和各类工装模具及检验设备等,以确保产品达到高标准、精细化、零缺陷的标准。
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					            <div class="swiper-btn">
 | 
				
			||||||
 | 
					                <div class="swiper-button-prev"></div>
 | 
				
			||||||
 | 
					                <div class="swiper-button-next"></div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    <div class="about-box5 w-100" id="about5">
 | 
				
			||||||
 | 
					        <div class="w-1200">
 | 
				
			||||||
 | 
					            <div class="video-box w-100">
 | 
				
			||||||
 | 
					                <i style="background-image: url({$blocks['video']['video']['img'] ?? ''});"></i>
 | 
				
			||||||
 | 
					                <video src="{$blocks['video']['video']['value'] ?? ''}" controls playsinline="isiPhoneShowPlaysinline" x5-video-player-type="h5-page" t7-video-player-type="inline" webkit-playsinline="isiPhoneShowPlaysinline" x-webkit-airplay="" preload="none"></video>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
					    var swiper = new Swiper('.about-box4 .swiper-container', {
 | 
				
			||||||
 | 
					        loop:true,
 | 
				
			||||||
 | 
					        slidesPerView: 3,
 | 
				
			||||||
 | 
					        spaceBetween: 0,
 | 
				
			||||||
 | 
					        centeredSlides : true,
 | 
				
			||||||
 | 
					        slideToClickedSlide: true,
 | 
				
			||||||
 | 
					        speed: 1000,
 | 
				
			||||||
 | 
					        autoplay: {
 | 
				
			||||||
 | 
					            delay: 6000,
 | 
				
			||||||
 | 
					            disableOnInteraction: false,
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        navigation: {
 | 
				
			||||||
 | 
					            nextEl: '.about-box4 .swiper-button-next',
 | 
				
			||||||
 | 
					            prevEl: '.about-box4 .swiper-button-prev',
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        on:{
 | 
				
			||||||
 | 
					            init: function(){
 | 
				
			||||||
 | 
					                $('.about-box4 .lower-box .center-block').hide().eq(0).show()
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            transitionEnd: function(){
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            transitionStart: function(){
 | 
				
			||||||
 | 
					                $('.about-box4 .lower-box .center-block').hide().eq(this.realIndex).fadeIn()
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        breakpoints: {
 | 
				
			||||||
 | 
					            1280: {  //当屏幕宽度大于等于1280
 | 
				
			||||||
 | 
					                slidesPerView: 3,
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
		Loading…
	
		Reference in New Issue