lilei 1 سال پیش
والد
کامیت
1e85fc3b66

BIN
arrow360one/assets/images/server-banner.jpg


+ 8 - 0
arrow360one/assets/js/js.js

@@ -38,6 +38,14 @@ $(function(){
         })
     })
 
+    var hrefs = location.href;
+    var menusId = ['index','about','news','join','product','school','contact','jobs'];
+    var indexs = menusId.findIndex(item => hrefs.indexOf('/'+item) >= 0);
+    if(indexs>=0){
+        var dom = $('.phone_menu>li').find("[href*='/"+menusId[indexs]+"']").parents(".phone_menu_tab");
+        slideupdown(dom);
+    }
+    
     /*返回顶部*/
     $('#back-ToTop').click(function() {
         $('html,body').animate({'scrollTop': 0}, 500);

+ 1 - 1
arrow360one/custom-join.php

@@ -31,7 +31,7 @@ get_header();
 			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/join">我要加盟</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
 			<span><?php echo get_cat_name($cat_id) ?></span>
 		</div>
-        <div class="con">
+        <div class="con <?php echo $cat_id == 13 ? 'jmtj':'' ?>">
         <?php
             if($cat_id != 16 && $cat_id != 17){
                 // 获取该分类下的第一篇文章

+ 96 - 0
arrow360one/custom-service.php

@@ -0,0 +1,96 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Service*/
+get_header();
+?>
+<div class="ny_ban"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/server-banner.jpg"></div>
+
+<div class="ny_main w1200">
+ 
+    <div class="l">
+		<div class="box">
+            <div class="tit">连锁系统</div>
+            <div class="bor">
+                <ul class="lm">
+                    <?php
+                    // 获取当前子分类
+                    $cat_id = $_REQUEST['fid'] ?? 47;
+                    // 输出目录
+                    echo get_slider_submenus('service',46,$cat_id)
+                    ?>
+                </ul>
+            </div>
+        </div>
+        <?php include 'concat.php'; ?>
+    </div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/service">连锁系统</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+            // 获取该分类下的第一篇文章
+            $args = array(
+                'cat' => $cat_id, // 分类ID
+                'posts_per_page' => 1, // 每页显示的文章数量
+                'orderby' => 'date', // 按日期排序
+                'order' => 'ASC', // 升序
+            );
+
+            $cur_post = get_posts($args);
+
+            if ($cur_post) {
+                $content = $cur_post[0]->post_content; // 文章内容
+                echo $content;
+            } else {
+                echo '文章不存在';
+            }
+
+            // 释放查询结果
+            wp_reset_postdata();
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+<script>
+    jQuery(document).ready(function($) {
+        $('#contact-form').submit(function(e) {
+            e.preventDefault();
+            if($("#rename").val()==''){
+                alert('请输入姓名!');
+                return
+            }
+            if($("#phone").val()==''){
+                alert('请输入电话!');
+                return
+            }
+            
+            $.ajax({
+                url: $(this).attr('action'),
+                type: 'post',
+                data: {
+                    action: 'submit_custom_comment',
+                    comment_data: $(this).serialize()
+                },
+                success: function(response) {
+                    alert('提交成功!');
+                    $('#contact-form')[0].reset();
+                },
+                error: function() {
+                    alert('提交失败,请重试.');
+                }
+            });
+        });
+    });
+</script>
+</body>
+</html>

+ 2 - 4
arrow360one/footer.php

@@ -35,9 +35,7 @@
 	</div>
 	<div class="copyright">
 		<p>
-			<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 14px;">
-			地 址:中国广东省东莞市茶山镇茶山工业园 电 话:400-881-2323 传 真:0769-81860108 邮箱:pengtao@360arro</span>
-			<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 14px;">w.com</span>
+			<span>地 址:中国广东省东莞市茶山镇茶山工业园 电 话:400-881-2323 传 真:0769-81860108 邮箱:pengtao@360arrow.com</span>
 		</p>
 		Copyright 2019 东莞市箭冠汽车配件制造有限公司  
 		<a href="http://beian.miit.gov.cn/" target="_blank">粤ICP备19113340号</a> 
@@ -72,7 +70,7 @@ $(function(){
 
 	// 主菜单高亮显示
 	var hrefs = location.href;
-	var menusId = ['index','about','news','join','product','school','contact','jobs'];
+	var menusId = ['index','about','news','join','product','school','contact','jobs','service'];
 	var indexs = menusId.findIndex(item => hrefs.indexOf('/'+item) >= 0);
 	if(indexs>=0){
 		$('.menu').find("[href*='/"+menusId[indexs]+"']").parent().addClass('on');

+ 1 - 0
arrow360one/functions.php

@@ -9,6 +9,7 @@ add_theme_support( 'custom-school' );
 add_theme_support( 'custom-schoolDetail' );
 add_theme_support( 'custom-contact' );
 add_theme_support( 'custom-jobs' );
+add_theme_support( 'custom-service' );
  
 // 自定义评论留言
 function submit_custom_comment() {

+ 6 - 2
arrow360one/header.php

@@ -1,5 +1,5 @@
 <?php include 'libs.php'; ?>
-<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css?d=213331">
+<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css?d=3333">
 <header>
 	<div class="top1">
 		<div class="w1200">
@@ -52,6 +52,11 @@
 							<?php echo get_submenus('jobs',39) ?>
 						</ul>
 					</li>
+					<li><a href="/service">连锁系统</a>
+						<ul>
+							<?php echo get_submenus('service',46) ?>
+						</ul>
+					</li>
 				</ul>
 				<!-- <div class="search"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_16.jpg"></div> -->
 			</div>
@@ -99,7 +104,6 @@
 					<a>联系我们</a>
 					<ul class="phone_menu_tab">
 						<?php echo get_submenus('contact',37) ?>
-						<li><a href="/message">在线留言</a></li>
 					</ul>
 				</li>
 				<li class="MpNav">

+ 29 - 19
arrow360one/style.css

@@ -15,7 +15,7 @@ img{ display:inline; max-width:100%; max-height:100%; outline:none;}
 .clear{ clear:both;}
 .w1200{ width:1200px; margin:0 auto;}
 
-header .top1{ width:100%; height:20px; background:#e50012; font:normal 14px/20px "微软雅黑"; color:#FFF; padding:10px 0;}
+header .top1{ width:100%; overflow: hidden; background:#e50012; font:normal 14px/20px "微软雅黑"; color:#FFF; padding:10px 0;}
 header .top1 img{ display:inline-block; vertical-align:top; margin-right:8px;}
 header .top1 .yy{ float:right;}
 header .top1 .yy a{ color:#FFF; padding-left:8px;}
@@ -31,6 +31,7 @@ header .top2 .menu>ul>li.on:after{ content:''; width:0; height:0; position:absol
 header .top2 .menu>ul>li>ul{ position:absolute; z-index:99; width:100px; padding:10px; background:rgba(247,18,36,0.75); left:50%; top:55px; transform:translateX(-50%); display:none;}
 header .top2 .menu>ul>li>ul>li>a{ display:block; width:100%; height:35px; text-align:center; font:normal 14px/35px "微软雅黑"; border-bottom:1px dashed #ff6471; color:#FFF;}
 header .top2 .menu>ul>li:hover>ul{ display:block;}
+header .top2 .menu>ul>li>ul>li>a:hover{background: hsl(355, 100%, 68%);}
 header .top2 .menu .search{ float:left; height:25px; margin:17px 0 0;}
 
 /*手机*/
@@ -168,7 +169,7 @@ footer .copyright img{ display:inline-block;}
 .ny_main{ overflow:hidden; padding:35px 0 65px;}
 .ny_main .l{ width:280px; float:left;}
 .ny_main .l .box{ margin-bottom:22px;}
-.ny_main .l .box .tit{ height:69px; background:url(./assets/images/about_05.jpg) no-repeat center top; font:bold 18px/69px "微软雅黑"; color:#FFF; padding-left:28px;}
+.ny_main .l .box .tit{ height:49px; background:#a3a3a3; font:bold 18px/49px "微软雅黑"; color:#FFF; padding-left:28px;}
 .ny_main .l .box .bor{ padding:10px; border:1px solid #ebebeb;}
 .ny_main .l .box .bor .lm li{ margin-bottom:10px;}
 .ny_main .l .box .bor .lm li:last-child{ margin-bottom:0;}
@@ -442,10 +443,10 @@ footer .copyright img{ display:inline-block;}
 @media only screen and (max-width: 1024px) {
 	.ind_box2 .l{ display: none;}
 	.w1200{ width:100%;}
-	header .top1{ padding:5px 10px; width:calc(100% - 20px); font:normal 12px/20px "微软雅黑";}
+	header .top1{ padding:5px 10px; font:normal 12px/20px "微软雅黑";}
 	header .top1 .yy{ display:none;}
 	header .top1 .tel{ display:none;}
-	header .top2{ padding:5px 0; position:relative;}
+	header .top2{ position:relative;}
 	header .top2 .logo{ height:50px; margin-left:10px;}
 	header .top2 .menu{ display:none;}
 	.phone_menu_trigger{ display:block;}
@@ -530,9 +531,10 @@ footer .copyright img{ display:inline-block;}
 	.ny_main .l{ display:none;}
 	.ny_main .r{ width:100%;}
 	.ny_main .r .tit{ margin-top:0;}
-	.ny_main .r .tit>span{ font:bold 10px/48px "微软雅黑";}
+	.ny_main .r .tit>span{ font:bold 14px/48px "微软雅黑";}
 	.ny_main .r .tit .lj{ font:normal 12px/50px "微软雅黑";}
 	.ny_main .r>.con{ padding-top:20px; font:normal 12px/30px "微软雅黑";}
+	.ny_main .ny_video > ul{overflow: hidden;}
 	
 	.ny_honor .ny_tit{ padding:0 0 10px;}
 	.ny_honor .ny_tit h3{ padding:0 0 10px;}
@@ -556,21 +558,24 @@ footer .copyright img{ display:inline-block;}
 	.ny_network>ul>li:nth-child(3n){ margin:0 0 15px 0;}
 	.ny_network>ul>li h3{ font:normal 12px/20px "微软雅黑";}
 	
-	.ny_video ul li{ width:32%; height:auto; margin:0 2% 15px 0;}
+	.ny_video ul li{ width:32%; height:122px; margin:0 2% 15px 0;overflow: hidden;}
 	.ny_video ul li:nth-child(3n){ margin:0 0 15px 0;}
 	.ny_video ul li div{ height:auto;}
 	.ny_video ul li h3{ font:normal 12px/20px "微软雅黑";}
 	
 	.ny_news>ul li{ margin-bottom:15px;}
-	.ny_news ul li>div{ width:35%; margin-right:16px;}
-	.ny_news ul li>h3{ font:normal 12px/20px "微软雅黑"; height:20px; margin-bottom:0; overflow:hidden;}
+	.ny_news ul li>div{ width:35%;height: 80px; margin-right:10px;}
+	.ny_news ul li>h3{ font:bold 12px/20px "微软雅黑"; height:20px; margin-bottom:0; overflow:hidden;}
 	.ny_news ul li>p{ font:normal 12px/20px "微软雅黑"; height:40px; margin-bottom:0; overflow:hidden;}
 	.ny_news>ul li>a{ display:none;}
+	.ny_news>ul li img{height: 100%;}
+	.ny_news>ul li>span{font:normal 12px/26px "微软雅黑";}
 	
 	.ny_news_detail .infos{ font:normal 12px/24px "微软雅黑"; padding:10px 0;}
 	.ny_news_detail .infos span{ padding:0 5px;}
 	.ny_news_detail .prev_next{ margin:0; font:normal 12px/30px "微软雅黑";}
 	
+	.ny_join .box img{width: 100%;}
 	.ny_join .msg{ padding:0 10px;}
 	.ny_join .msg h3{ padding:30px 0 20px;}
 	.ny_join .msg ul li{ margin-bottom:15px;}
@@ -583,12 +588,14 @@ footer .copyright img{ display:inline-block;}
 	.ny_join ul li.company input{width:200px;}
 	.ny_join .msg ul li textarea{ width:200px; padding:4px; box-sizing:border-box;}
 	.ny_join .msg ul li button{ margin:0 auto;}
-	
-	.ny_join6 dl dt{ height:40px; font:normal 12px/42px "微软雅黑"; overflow:hidden;}
-	.ny_join6 dl dt span{ width:40px; height:40px; font:bold 14px/34px "微软雅黑"; margin-right:5px;}
+	.jmtj img{max-width: 700px;}
+
+	.ny_join6 dl{margin-bottom: 10px;}
+	.ny_join6 dl dt{ height:40px; font:normal 14px/42px "微软雅黑"; overflow:hidden;}
+	.ny_join6 dl dt span{ width:40px; height:40px; font:bold 18px/34px "微软雅黑"; margin-right:5px;}
 	.ny_join6 dl dt div{ margin:10px;}
-	.ny_join6 dl dd{ padding:0 5px; font:normal 12px/20px "微软雅黑";}
-	.ny_join6 dl.on dd{ padding:10px 5px;}
+	.ny_join6 dl dd{ padding:0 5px; font:normal 14px/26px "微软雅黑";}
+	.ny_join6 dl.on dd{ padding:10px 15px;}
 	
 	.ny_join7{ background: url(./assets/images/join7_03.jpg) no-repeat center 20px; padding:0 5px;}
 	.ny_join7 ul{ width:100%;}
@@ -600,23 +607,25 @@ footer .copyright img{ display:inline-block;}
 	.ny_join7 ul li:nth-child(6) input{ width:48%!important; height:35px!important;}
 	
 	.ny_product>ul{ padding-bottom:0;}
-	.ny_product>ul li{ width:32%; margin:0 2% 15px 0;}
-	.ny_product>ul li div{ height:auto;}
+	.ny_product>ul li{ width:32%; margin:0 2% 5px 0;}
+	.ny_product>ul li div{ height:89px;}
 	.ny_product>ul li h3{ padding:5px 0 0; font:normal 12px/28px "微软雅黑";}
-	.ny_product>ul li p{ padding:0; height:40px; font:normal 12px/20px "微软雅黑";}
+	.ny_product>ul li p{ padding:0; font:normal 12px/20px "微软雅黑";}
+	
 	
 	.ny_school2>ul{ margin:20px 0;}
 	.ny_school2>ul li{ height:120px; padding:0 5px 10px; box-sizing:border-box;}
 	.ny_school2>ul li img{ display:block; width:70px; height:70px; margin:0 auto;}
 	.ny_school2>ul li p{ font:normal 12px/20px "微软雅黑";}
 	
-	.ny_school3>ul li{ width:22%; margin:0 4% 10px 0;}
-	.ny_school3>ul li div{ height:auto;}
+	.ny_school3>ul li{ width:22%; margin:0 4% 0px 0;}
+	.ny_school3>ul li div{ height:auto;margin-bottom:0px;}
 	.ny_school3>ul li h3{ font:normal 12px/24px "微软雅黑";}
 	.ny_school3>ul li p{ font:normal 12px/20px "微软雅黑"; height:60px;}
 	
 	.ny_school6>ul{ margin-bottom:0;}
-	
+	.ny_school6>ul li{padding:5px 10px;}
+	.ny_school6>ul li h3{font:normal 14px/24px "微软雅黑";}
 	.ny_news_detail .con{ font:normal 12px/30px "微软雅黑";}
 	
 	.ny_school7>ul{ margin-bottom:0;}
@@ -634,4 +643,5 @@ footer .copyright img{ display:inline-block;}
 	.ny_jobs2>ul li{ width:32%; margin:0 2% 15px 0;}
 	.ny_jobs2>ul li div{ height:auto;}
 	.ny_jobs2>ul li h3{ font:normal 12px/30px "微软雅黑";}
+	.jobs-title{display: flex;flex-direction: column;align-items: flex-start;}
 }