瀏覽代碼

wesmiler 前端提交

wesmiler 6 年之前
父節點
當前提交
0b18a6e9f5

+ 1 - 1
app/index/service/NewsCategoryService.php

@@ -32,7 +32,7 @@ class NewsCategoryService
      * @throws \think\db\exception\ModelNotFoundException
      * @throws \think\exception\DbException
      */
-    public static function getCatesListByIds($ids){
+    public static function getCatesListByIds($ids, $num=99999){
         return Db::name('news_category')
             ->where('parent_id',0)
             ->whereIn('id',$ids)

+ 114 - 0
public/themes/mjmls/index/block/footer_new.html

@@ -0,0 +1,114 @@
+
+<!-- footer start-->
+<div class="online-box mob_none">
+    <div class="container">
+        <img src="__TMPL__/static/images/fd_pic0101.png" alt="">
+    </div>
+</div>
+<footer>
+    <div class="container">
+        <ul class="foot-nav">
+            <li><a href="/about/index.html" target="_blank">关于我们</a></li>
+            <li><a href="/about/service.html" target="_blank">产品服务</a></li>
+            <li><a href="/about/zhaopin.html" target="_blank">招商服务</a></li>
+            <li><a href="/about/tousu.html" target="_blank">投诉删除</a></li>
+            <li><a href="/about/statement.html" target="_blank">免责声明</a></li>
+            <li><a href="/sitemap.shtml" target="_blank">网站地图</a></li>
+
+        </ul>
+        <div class="ftlx-box">
+            <div class="fl">
+                <strong>餐饮在线加盟</strong>
+                <span>地址:{$site_info.contact_address|default=''}</span>
+                <span>电话:{$site_info.contact_phone|default=''}</span>
+                <span>客服:{$site_info.contact_qq|default=''}</span>
+            </div>
+            <div class="fr">
+                <span><img src="__TMPL__/static/images/ewm.png" alt="">官方微信</span>
+                <span><img src="__TMPL__/static/images/ewm.png" alt="">官方微博</span>
+            </div>
+            <div class="clearfix"></div>
+        </div>
+        <p>{$site_info.copyright|default=''}<br>技术支持 东尔技术团队  备案号:{$site_info.site_icp|default=''}</p>
+    </div>
+</footer>
+<!-- footer over -->
+<!-- 侧边栏固定 -->
+<div class="siderBar mob_none">
+    <div class="free-tel"><i class="fa fa-phone"></i>获取加盟资料</div>
+    <div class="online">
+        <a href="#liuyan" class="" target=""><i class="fa fa-commenting"></i>在线咨询</a>
+    </div>
+    <div class="side-wx"><i class="fa fa-comments"></i>微信 <span><img src="__TMPL__/static/images/ewm.png" alt=""></span></div>
+    <div class="complaint">
+        <a href="#" id="complaint" target=""><i class="fa fa-pencil"></i>投诉</a>
+    </div>
+    <div class="go-top"><i class="fa fa-caret-up"></i>TOP</div>
+</div>
+<!-- 底部固定 -->
+<div class="spot-bg"></div>
+<div class="fixed-foot mob_none">
+    <div class="container">
+        <img class="fl" src="__TMPL__/static/images/pop_tel.png" alt="">
+        <p class="fl">
+            <strong>我们将尽快给您回电</strong>
+            <span>上班时间:9:00-12:00 13:30-18:00(周一至周五,节假日除外)</span>
+        </p>
+        <form id="liuyanForm" action="/index/jiameng/message.html" method="POST">
+            <input type="hidden" name="jm_id"  value="{$info.id|default='0'}">
+            <input class="name" type="text" name="name" id="name" value="" placeholder="您的称呼" required="required" />
+            <input class="xm" type="text" name="jm_title" id="xm" value="{$info.title|default=''}" placeholder="创业项目" required="required" />
+            <input class="phone" type="text" name="mobile" id="tel" value="" placeholder="您的联系电话" maxlength="11" required="required" pattern="^1[2-9][0-9]{9}$"/>
+            <input class="submit" type="submit" id="cusSubmit" value="给我回电">
+        </form>
+        <i class="fa fa-close"></i>
+    </div>
+</div>
+<!-- 底部悬浮菜单 -->
+<div class="fixed-bottom">
+    <div class="fixed-bl">
+        <ul>
+            <li class="um2">
+                <a href="/">
+                    <p>首页</p>
+                </a>
+            </li>
+        </ul>
+    </div>
+    <div class="fixed-br">
+        <a href="#liuyan" class="b-zx" >索要资料</a>
+        <a href="#liuyan" target="_self" class="b-ly fd-apply">我要咨询</a>
+    </div>
+</div>
+<!-- ./end -->
+
+<script src="__TMPL__/static/js/swiper.min.js" type="text/javascript"></script>
+<script src="__TMPL__/static/js/base.js" type="text/javascript"></script>
+<script src="__TMPL__/static/js/index.js" type="text/javascript"></script>
+<script src="__TMPL__/static/layer/layer.js"></script>
+<script>
+    /*$('#zixun').on('click', function(){
+        layer.open({
+            type: 2,
+            title: '在线咨询',
+            maxmin: true,
+            shadeClose: true, //点击遮罩关闭层
+            area : ['800px' , '520px'],
+            content: '/index/news/message'
+        });
+    });*/
+
+    $('#complaint').on('click', function(){
+        layer.open({
+            type: 2,
+            title: '投诉建议',
+            maxmin: true,
+            shadeClose: true, //点击遮罩关闭层
+            area : ['800px' , '520px'],
+            content: '/index/news/complaint'
+        });
+    });
+</script>
+</script>
+</body>
+</html>

+ 114 - 0
public/themes/mjmls/index/block/footer_xm.html

@@ -0,0 +1,114 @@
+<!-- footer start-->
+<div class="online-box mob_none">
+    <div class="container">
+        <img src="__TMPL__/static/images/fd_pic0101.png" alt="">
+    </div>
+</div>
+<footer>
+    <div class="container">
+        <ul class="foot-nav">
+            <li><a href="/about/index.html" target="_blank">关于我们</a></li>
+            <li><a href="/about/service.html" target="_blank">产品服务</a></li>
+            <li><a href="/about/zhaopin.html" target="_blank">招商服务</a></li>
+            <li><a href="/about/tousu.html" target="_blank">投诉删除</a></li>
+            <li><a href="/about/statement.html" target="_blank">免责声明</a></li>
+            <li><a href="/sitemap.shtml" target="_blank">网站地图</a></li>
+
+        </ul>
+        <div class="ftlx-box">
+            <div class="fl">
+                <strong>餐饮在线加盟</strong>
+                <span>地址:{$site_info.contact_address|default=''}</span>
+                <span>电话:{$site_info.contact_phone|default=''}</span>
+                <span>客服:{$site_info.contact_qq|default=''}</span>
+            </div>
+            <div class="fr">
+                <span><img src="__TMPL__/static/images/ewm.png" alt="">官方微信</span>
+                <span><img src="__TMPL__/static/images/ewm.png" alt="">官方微博</span>
+            </div>
+            <div class="clearfix"></div>
+        </div>
+        <p>{$site_info.copyright|default=''}<br>技术支持 东尔技术团队  备案号:{$site_info.site_icp|default=''}</p>
+    </div>
+</footer>
+<!-- footer over -->
+<!-- 侧边栏固定 -->
+<div class="siderBar mob_none">
+    <div class="free-tel"><i class="fa fa-phone"></i>获取加盟资料</div>
+    <div class="online">
+        <a href="#form" class="" id="" target=""><i class="fa fa-commenting"></i>在线咨询</a>
+    </div>
+    <div class="side-wx"><i class="fa fa-comments"></i>微信 <span><img src="__TMPL__/static/images/ewm.png" alt=""></span></div>
+    <div class="complaint">
+        <a href="#" id="complaint" target=""><i class="fa fa-pencil"></i>投诉</a>
+    </div>
+    <div class="go-top"><i class="fa fa-caret-up"></i>TOP</div>
+</div>
+<!-- 底部固定 -->
+<div class="spot-bg"></div>
+<div class="fixed-foot mob_none">
+    <div class="container">
+        <img class="fl" src="__TMPL__/static/images/pop_tel.png" alt="">
+        <p class="fl">
+            <strong>我们将尽快给您回电</strong>
+            <span>上班时间:9:00-12:00 13:30-18:00(周一至周五,节假日除外)</span>
+        </p>
+        <form id="liuyanForm" action="/index/jiameng/message.html" method="POST">
+            <input type="hidden" name="jm_id"  value="{$info.id|default='0'}">
+            <input class="name" type="text" name="name" id="name" value="" placeholder="您的称呼" required="required" />
+            <input class="xm" type="text" name="jm_title" id="xm" value="{$info.title|default=''}" placeholder="创业项目" required="required" />
+            <input class="phone" type="text" name="mobile" id="tel" value="" placeholder="您的联系电话" maxlength="11" required="required" pattern="^1[2-9][0-9]{9}$"/>
+            <input class="submit" type="submit" id="cusSubmit" value="给我回电">
+        </form>
+        <i class="fa fa-close"></i>
+    </div>
+</div>
+
+<!-- 底部悬浮菜单 -->
+<div class="fixed-bottom">
+    <div class="fixed-bl">
+        <ul>
+            <li class="um2">
+                <a href="/">
+                    <p>首页</p>
+                </a>
+            </li>
+        </ul>
+    </div>
+    <div class="fixed-br">
+        <a href="#form" class="b-zx" >索要资料</a>
+        <a href="#form" class="b-ly fd-apply">我要咨询</a>
+    </div>
+</div>
+<!-- ./end -->
+
+<script src="__TMPL__/static/js/swiper.min.js" type="text/javascript"></script>
+<script src="__TMPL__/static/js/base.js" type="text/javascript"></script>
+<script src="__TMPL__/static/js/index.js" type="text/javascript"></script>
+<script src="__TMPL__/static/layer/layer.js"></script>
+<script>
+    /*$('#zixun').on('click', function(){
+        layer.open({
+            type: 2,
+            title: '在线咨询',
+            maxmin: true,
+            shadeClose: true, //点击遮罩关闭层
+            area : ['800px' , '520px'],
+            content: '/index/news/message'
+        });
+    });*/
+
+    $('#complaint').on('click', function(){
+        layer.open({
+            type: 2,
+            title: '投诉建议',
+            maxmin: true,
+            shadeClose: true, //点击遮罩关闭层
+            area : ['800px' , '520px'],
+            content: '/index/news/complaint'
+        });
+    });
+</script>
+</script>
+</body>
+</html>

+ 6 - 6
public/themes/mjmls/index/block/header.html

@@ -141,12 +141,12 @@
                 <span><i class="fa fa-list-ul"></i>加盟行业</span>
             </div>
             <ul class="nav-list fl">
-                <li class="active"><a href="/" title="" target="_blank">网站首页</a></li>
-                <li><a href="/xmk/" title="" target="_blank">找项目</a></li>
-                <li><a href="/news/" title="" target="_blank">创业资讯</a></li>
-                <li><a href="/listhyzx/" title="" target="_blank">行业资讯</a></li>
-                <li><a href="/listxinwen/" title="" target="_blank">品牌动态</a></li>
-                <li><a href="/xmk/" title="" target="_blank">项目资讯</a></li>
+                <li class="active"><a href="/" title="" target="">网站首页</a></li>
+                <li><a href="/xmk/" title="" target="">找项目</a></li>
+                <li><a href="/news/" title="" target="">创业资讯</a></li>
+                <li><a href="/listhyzx/" title="" target="">行业资讯</a></li>
+                <li><a href="/listxinwen/" title="" target="">品牌动态</a></li>
+                <li><a href="/xmk/" title="" target="">项目资讯</a></li>
             </ul>
         </div>
     </nav>

+ 22 - 25
public/themes/mjmls/index/block/header_xm.html

@@ -94,31 +94,28 @@
                     <else/>
                     <input class="s-input" type="text" id="top_search_input" name="" value="" placeholder="请输入项目名称" required/>
                 </if>
-                <input class="s-button" type="submit" id="top_search_button" on-click="search()" name="" value="搜索"></input>
+                <input class="s-button" type="button" id="top_search_button" name="" value="搜索"></input>
             </form>
             <script>
                 $(function(){
                     $("#top_search_button").click(function(){
-
-                    })
-                })
-                function search(){
-                    var kw = $("#top_search_input").val();
-                    var searchType = "{$searchType:default='1'}";
-                    if(searchType == 3){
-                        if(kw==''){
-                            window.location.href="/news/";
-                        }else{
-                            window.location.href="/news/"+kw+'/';
-                        }
-                    }else{
-                        if(kw==''){
-                            window.location.href="/xmk/";
+                        var kw = $("#top_search_input").val();
+                        var searchType = "{$searchType|default='1'}";
+                        if(searchType == 3){
+                            if(kw==''){
+                                window.location.href="/news/";
+                            }else{
+                                window.location.href="/news/"+kw+'/';
+                            }
                         }else{
-                            window.location.href="/search/"+kw;
+                            if(kw==''){
+                                window.location.href="/xmk/";
+                            }else{
+                                window.location.href="/search/"+kw;
+                            }
                         }
-                    }
-                }
+                    })
+                })
             </script>
             <p class="nowrap">
                 <b>热门标签:</b>
@@ -145,12 +142,12 @@
                 <span><i class="fa fa-list-ul"></i>加盟行业</span>
             </div>-->
             <ul class="nav-list fl">
-                <li class="active"><a href="/" title="" target="_blank">网站首页</a></li>
-                <li><a href="/xmk/" title="" target="_blank">找项目</a></li>
-                <li><a href="/news/" title="" target="_blank">创业资讯</a></li>
-                <li><a href="/listhyzx/" title="" target="_blank">行业资讯</a></li>
-                <li><a href="/listxinwen/" title="" target="_blank">品牌动态</a></li>
-                <li><a href="/xmk/" title="" target="_blank">项目资讯</a></li>
+                <li class="active"><a href="/" title="" target="">网站首页</a></li>
+                <li><a href="/xmk/" title="" target="">找项目</a></li>
+                <li><a href="/news/" title="" target="">创业资讯</a></li>
+                <li><a href="/listhyzx/" title="" target="">行业资讯</a></li>
+                <li><a href="/listxinwen/" title="" target="">品牌动态</a></li>
+                <li><a href="/xmk/" title="" target="">项目资讯</a></li>
             </ul>
         </div>
     </nav>

+ 1 - 1
public/themes/mjmls/index/jiameng/show.html

@@ -353,7 +353,7 @@
 <!-- content over -->
 
 <!-- 页脚 -->
-<include file="block/footer" />
+<include file="block/footer_xm" />
 <script src="__TMPL__/static/js/jquery.nav.js" type="text/javascript"></script>
 <script type="text/javascript">
     $(function () {

+ 2 - 2
public/themes/mjmls/index/news/show.html

@@ -41,7 +41,7 @@
                 </if>
             </ul>
         </div>
-        <div class="join-form mt20">
+        <div class="join-form mt20" id="liuyan">
             <div class="fl mob_none">
                 <img src="__TMPL__/static/images/uu.png" alt="">
                 <strong>想开加盟店吗?</strong>
@@ -124,4 +124,4 @@
 </div>
 <!-- content over -->
 <!-- 页脚 -->
-<include file="block/footer" />
+<include file="block/footer_new" />

+ 71 - 1
public/themes/mjmls/static/css/master.css

@@ -35,7 +35,7 @@ input, button, select {
 }
 
 a:hover {
-	color: #ee0f15 !important;
+	color: #ee0f15 ;
 }
 
 input::-webkit-input-placeholder {
@@ -1116,6 +1116,75 @@ footer p a {
 		color: #666;
 		-webkit-text-stroke: 5px #fff;
 	}
+	/* 底部悬浮菜单 */
+	.fixed-bottom {
+		position: fixed;
+		bottom: -4px;
+		width: 100%;
+		height: 4rem;
+		background: #fff;
+		z-index: 99;
+		box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);
+	}
+
+	.fixed-bl {
+		width: 30%;
+		height: 4rem;
+		float: left;
+	}
+	.fixed-br {
+		width: 70%;
+		height: 4rem;
+		float: right;
+	}
+
+	.fixed-br a.b-zx {
+		background: #ee0f15 url(../images/icon14.png) no-repeat 1.25em center;
+		background-size: 1.5rem;
+	}
+	.fixed-br a {
+		width: 50%;
+		height: 4rem;
+		float: left;
+		font-size: 1.25rem;
+		color: #fff;
+		line-height: 4rem;
+		padding-left: 3.25rem;
+	}
+	.fixed-bl ul li {
+		 width: 100%;
+		 float: left;
+		 height: 4rem;
+		 position: relative;
+	 }
+
+	.fixed-bl ul li p {
+		font-size: 1.25rem;
+		color: #ee0f15;
+		text-align: center;
+		padding-top: 0rem;
+		line-height: 4rem;
+	}
+	.fixed-br a.b-ly {
+		background: #ff5e63 url(../images/icon15.png) no-repeat 1.25rem center;
+		background-size: 1.5rem;
+		text-align: left;
+	}
+	.fixed-br a {
+		width: 50%;
+		height: 4rem;
+		float: left;
+		font-size: 1.25rem;
+		color: #fff;
+		line-height: 4rem;
+		padding-left: 3.25rem;
+	}
+
+	.fixed-br a, .fixed-br a:visited, .fixed-br a:focus, .fixed-br a:active, .fixed-br a:hover {
+		color: #fff !important;
+	}
+	/* ./end */
+
 	/*  */
 	.linkCon {
 		padding: 10px;
@@ -1147,6 +1216,7 @@ footer p a {
 	footer p {
 		margin-top: 30px;
 		padding: 20px;
+		margin-bottom: 50px;
 	}
 	.bgf {
 		margin-top: 0;