修改首页

This commit is contained in:
DESKTOP-GMUNQ1B\Administrator 2024-12-02 17:57:23 +08:00
parent 4d21fa3616
commit bdbaa5176f
28 changed files with 123 additions and 37 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/data/runtime/

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/official_website.iml" filepath="$PROJECT_DIR$/.idea/official_website.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/extend" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

22
.idea/php.xml Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.0">
<option name="suggestChangeDefaultLanguageLevel" value="false" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -193,7 +193,8 @@ class TagNav extends TagBase
} }
} }
} }
foreach ($rlist as $K=>$item){ foreach ($rlist as $K=>&$item){
$item['has_child'] = Column::where('pid', $item['id'])->where('status', 1)->where("lang", $visit_lang)->count();
$item['visit_lang'] = $visit_lang; $item['visit_lang'] = $visit_lang;
} }
return $rlist; return $rlist;

View File

@ -1,4 +1,4 @@
<?php <?php
//000000000060 //000000000060
exit();?> exit();?>
a:1:{i:0;s:89:"C:\lewis\phpstudy_pro\WWW\foxcms\data\runtime\cache\2a\03b1861150ca9bb0390b4e3ea5502f.php";} a:1:{i:0;s:99:"C:\lewis\phpstudy_pro\WWW\official_website\data\runtime\cache\2a\03b1861150ca9bb0390b4e3ea5502f.php";}

View File

@ -0,0 +1,42 @@
<!--
* @Descripttion : FOXCMS是一款高效的PHP多端跨平台内容管理系统
* @Author : FoxCMS Team
* @Date : 2023-04-06 11:34:52
* @version : V1.08
* @copyright : ©2021-现在 贵州黔狐科技股份有限公司 版权所有
* @LastEditTime : 2024-02-23 13:41:51
-->
<!DOCTYPE html>
<html lang="cn">
<head>
{include file="header"/}
<title>[$column.name]-{fox:basic name='title'/}</title>
<meta name="keywords" content="[$column.keywords]" />
<meta name="description" content="[$column.description]" />
</head>
<body>
<!-- 顶部 -->
<header class="foxui-border-bottom foxui-bg-white">{include file="nav"/}</header>
<!-- 主体内容 -->
<main>
<!-- 通栏图 -->
<div class="foxcms-common-banner foxui-bg-lighter">{include file="banner"/}</div>
<!-- 内容 -->
<div class="foxcms-main index-brand-main">
<div class="foxcms-container">
<div class="main-pannel">
<div class="pannel">
<div class="rich-text">{fox:single name='content'/}</div>
</div>
</div>
</div>
</div>
<!-- 右侧浮动内容 -->
<div class="foxcms-fixed-container">{include file="fixed"/}</div>
</main>
<!-- 底部 -->
<footer class="wow slideInUp">{include file="footer"/}</footer>
</body>
<script src="_STATIC_/skin/js/foxui-1.21.min.js"></script>
<script src="_STATIC_/skin/js/common.js"></script>
</html>

View File

@ -80,7 +80,7 @@
<!-- 公司简介 --> <!-- 公司简介 -->
<div class="company-info"> <div class="company-info">
<div class="foxui-row foxui-gutter-0"> <div class="foxui-row foxui-gutter-0">
{fox:channel name="field" typeid="7" type="self"} {fox:channel name="field" typeid="1" type="self"}
<div class="foxui-col-md-12"> <div class="foxui-col-md-12">
<div class="pic wow slideInUp"> <div class="pic wow slideInUp">
<img src="[$field.pic_url]" alt="{fox:basic name='name'/}"/> <img src="[$field.pic_url]" alt="{fox:basic name='name'/}"/>
@ -135,47 +135,30 @@
<div class="tabs-section"> <div class="tabs-section">
<div class="foxcms-container"> <div class="foxcms-container">
{fox:channel name="field" typeid = "88"} {fox:channel name="field" typeid = "88"}
<div class="tabs-head" style="text-align: center"> <div class="" style="text-align: center;margin-top: 40px;">
<h1>[$field.name]</h1> <h1 style="font-size: 40px;color: #000;font-weight: bold;">[$field.name]</h1>
</div> </div>
<div class="foxui-tabs foxui-type-line foxui-position-right"> <div class="foxui-tabs foxui-type-line foxui-position-right" style="text-align: center;margin-top: 0;">
<div class="foxui-tabs-header"> <div class="foxui-tabs-content" style="display: flex;flex-wrap: wrap;padding: 24px 0">
{fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"} {fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"}
<div class="foxui-tabs-item{if $index==1} is-active{/if}">[$cv.name]</div>
{/fox:channel}
</div>
<div class="foxui-tabs-content">
{fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"}
<div class="foxui-tabs-pane">
<div class="foxui-row foxui-gutter-1">
{fox:arclist name='av' pname='cv' calltype="parent" row="6" flag='c'}
<div class="foxui-col-sm-12 foxui-col-lg-8"> <div class="foxui-col-sm-12 foxui-col-lg-8">
<a href="[$av.link]" class="list-case-item" style="display: block"> <a href="[$cv.link]" class="list-case-item" style="display: block">
<div class="pic"> <div class="pic">
<img src="[$av.img_url]" alt="" /> <img src="[$cv.pic_url]" alt="" />
</div> </div>
<div class="cover"> <div class="cover">
<div class="cover-head"> <div class="cover-head">
</div> </div>
<div class="cover-foot"> <div class="cover-foot">
<h2>[$av.title]</h2> <h2>[$cv.name]</h2>
<h3>[$av.brief_title]</h3> <h3>[$cv.en_name]</h3>
</div> </div>
</div> </div>
</a> </a>
</div> </div>
{/fox:arclist}
</div>
</div>
{/fox:channel} {/fox:channel}
</div> </div>
</div> </div>
<div class="more-btn wow slideInUp" style="margin-top: 40px; margin-bottom: 80px">
<a class="more-plain-btn" href="[$field.link]">
<span>MORE</span>
<i class="foxui-icon-qianwang-o"></i>
</a>
</div>
{/fox:channel} {/fox:channel}
</div> </div>
</div> </div>
@ -185,17 +168,19 @@
<div class="tabs-section news-section"> <div class="tabs-section news-section">
{fox:channel name="field" typeid = "5"} {fox:channel name="field" typeid = "5"}
<div class="foxcms-container"> <div class="foxcms-container">
<div class="tabs-head"> <div style="display: flex;">
<h1>[$field.name]</h1> <div style="width: 33.33%;"></div>
<p>[$field.en_name]</p> <div style="width: 33.33%;text-align: center;">
<h1 style="font-size: 40px;color: #000;font-weight: bold;">[$field.name]</h1>
</div> </div>
<div class="foxui-tabs foxui-type-line foxui-position-right foxui-margin-top-0"> <div style="width: 33.33%;display: flex;justify-content: end;align-items: end;">
<div class="foxui-tabs-header">
{fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"} {fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"}
<div class="foxui-tabs-item{if $index==1} is-active{/if}">[$cv.name]</div> <div class="foxui-tabs-item{if $index==1} is-active{/if}">[$cv.name]</div>
{/fox:channel} {/fox:channel}
</div> </div>
<div class="foxui-tabs-content"> </div>
<div class="foxui-tabs foxui-type-line foxui-position-right foxui-margin-top-0">
<div class="foxui-tabs-content" style="padding: 24px 0;">
{fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"} {fox:channel name="cv" pname="field" calltype="parent" type="son" notypeid="self"}
<div class="foxui-tabs-pane"> <div class="foxui-tabs-pane">
<div class="swiper recommend-swiper enterprise-swiper"> <div class="swiper recommend-swiper enterprise-swiper">

View File

@ -14,13 +14,15 @@
{/fox:at} {/fox:at}
{fox:nav name='field' currentstyle="is-current" limit="0,5"} {fox:nav name='field' currentstyle="is-current" limit="0,5"}
<li class="foxui-menu-submenu [$field.currentstyle]"> <li class="foxui-menu-submenu [$field.currentstyle]">
<div class="foxui-menu-handle foxui-menu-icon"> <div class="foxui-menu-handle {if $field.has_child > 1}foxui-menu-icon{/if}">
<a class="foxui-link" href="[$field.link]">[$field.name]</a> <a class="foxui-link" href="[$field.link]">[$field.name]</a>
</div> </div>
{if $field.has_child > 0}
<div class="foxui-menu-menu"> <div class="foxui-menu-menu">
<div class="foxui-menu-slide foxcms-container"> <div class="foxui-menu-slide foxcms-container">
<div class="nav-swiper nav-swiper-text"> <div class="nav-swiper nav-swiper-text">
<ul class="foxui-display-flex foxui-justify-content-center"> <ul class="foxui-display-flex foxui-justify-content-center">
<li style="width: 30%"></li>
{fox:nav name="v" pname="field" notypeid="self" type="son" calltype="parent"} {fox:nav name="v" pname="field" notypeid="self" type="son" calltype="parent"}
<li> <li>
<a href="[$v.link]" class="swiper-content foxui-link">[$v.name]</a> <a href="[$v.link]" class="swiper-content foxui-link">[$v.name]</a>
@ -30,6 +32,7 @@
</div> </div>
</div> </div>
</div> </div>
{/if}
</li> </li>
{/fox:nav} {/fox:nav}
</ul> </ul>

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 KiB