今日头条风格导航跟齐博圈子导航有冲突,,谁帮我改下代码
  • 留千万【私人号】   ༽ 消费585.22元 2018-08-02 17:48 17:48
730
8








8
赏礼
赏钱
收藏
点击回复
      全部留言
  • 8
  • 阿里巴巴 白金粉丝 消费:3000.22元 2018-08-09 11:48 11:486楼

    这块同上!

0 赏钱 赏礼回复
0 赏钱 赏礼回复
0 赏钱 赏礼回复
  • 留千万【私人号】   ༽ 普通粉丝 消费:585.22元 2018-08-02 17:51 17:516楼

    这是,齐博导航的代码/template/index_style/default/index/pc_layout.htm


    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>{block name="head_title"}{$webdb.seo_title?:$webdb.webname}{/block}</title>

    <meta http-equiv="X-UA-Compatible" content="IE=8"><!-- 强制ie8,for 360 -->

    <meta name="keywords" content='{block name="head_keword"}{$webdb.seo_keyword}{/block}'>

    <meta name="description" content='{block name="head_description"}{$webdb.seo_description}{/block}'>

    {block name="head_base_css"}<link rel="stylesheet" href="__STATIC__/css/pc_reset.css">{/block}

    {block name="head_qb_ui"}<link rel="stylesheet" href="__STATIC__/css/qb_ui.css">{/block}

    {block name="head_font_icon"}<link rel="stylesheet" href="__STATIC__/icon/icon.css">{/block}

    {block name="head_jquery_js"}<script type="text/javascript" src="__STATIC__/js/core/jquery.min.js"></script>{/block}

    {block name="head_layer_js"}<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>{/block}

    </head>

    <body>

    <!--下面是钩子插件,做风格的时候尽量加上,方便扩展  -->

    {:hook_listen('layout_body_head',$userdb,$webdb,true)}


    {block name="body_Headcont"}

    <link rel="stylesheet" href="__STATIC__/index/default/pcheader.css"> 

    <div class="qb_pc_topBox">

    <ul>

    {notempty name="$userdb"}

    <ol>{$userdb.username} 您好!欢迎来到{$webdb.webname}</ol>

    <li><a href="{:get_url('member')}" target="_blank"><dd class="glyphicon glyphicon-user"></dd>会员中心</a> {if is_dir(APP_PATH.'weibo')}<a href="#" onclick="pc_open_weibo()"><dd class="fa fa-fw fa-weibo"></dd>微博动态</a><span style="color:#fff;margin-left:3px;padding:0 4px 0 4px;background:orange;font-size:10px;display:none;" class="weibo_msg_num">0</span> {/if}<a href="#" onclick="pc_open_msg()"><dd class="fa fa-envelope-o"></dd>短消息</a><span style="color:#fff;margin-left:3px;padding:0 4px 0 4px;background:red;font-size:10px;display:none;" class="msg-num">0</span> <a href="{:get_url('quit')}" target="_blank"><dd class="fa fa-sign-in"></dd>退出</a> </li>

    {else /}

    <ol>您好!欢迎来到{$webdb.webname}</ol>

    <li>

    {include file="index@min_login" /}

    </li>

    {/notempty}

    </ul>

    </div>

    <script type="text/javascript">

    function pc_open_msg(){

    layer.open({

     type: 2,

     title: '短消息',

     shade: [0.3,'#333'], 

     area: ['900px', '600px'],

     anim: 1,

     content: '{:urls("member/msg/index")}',

     end: function(){ //关闭事件

     }

    });

    }

    function pc_open_weibo(){

    layer.open({

     type: 2,

     title: '微博动态消息',

     shade: [0.3,'#333'], 

     area: ['1000px', '700px'],

     anim: 2,

     content: '{:urls("weibo/api/weibo")}',

     end: function(){ //关闭事件

     }

    });

    }

    </script>

    <div class="Logo_Menu">

    <ul>

    <ol><a href="/"><img src="{$webdb.logo?tempdir($webdb.logo):'__STATIC__/index/default/logo.png'}"></a></ol>

    <li>

    {php}$menu_choose=config('system_dirname')?config('system_dirname'):'index';{/php}

    {volist name="pc|get_web_menu" id="rs"}

    <dl {if ($rs['activate']==$menu_choose||$rs['activate']==$menu_choose.'-'.$fid)}class="ck"{/if}>

    <dt><a href="{$rs.url}" {notempty name="$rs.target"}target="_blank"{/notempty}><i class="{$rs.style|default=''}"></i>{$rs.name}</a></dt>

    {notempty name="rs.sons"}

    <span></span>

    <dd>

    {volist name="rs.sons" id="vs"}

    <div><a href="{$vs.url}" {notempty name="$rs.target"}target="_blank"{/notempty}><i class="{$rs.style|default=''}"></i>{$vs.name}</a></div>

    {/volist}

    </dd>

    {/notempty}

    </dl>

    {/volist}


    </li>

    </ul>

    </div>

    <script>

    $('.Logo_Menu dl').hover(

    function(){

    $(this).find('dd').show(300);

    $(this).find('span').css({"transform":"rotate(180deg)",'border-top':'6px solid #FFF'});

    },

    function(){

    $(this).find('dd').hide(300);

    $(this).find('span').css({"transform":"rotate(0deg)",'border-top':'6px solid #666'});

    }

    );

    </script>

    {/block}

    {block name="body_AllScorllSlide"}<!---通栏幻灯片----->{/block}

    {block name="body_LeftMenu"}<!---左边类京东菜单----->{/block}

    {block name="body_ContactSearch"}

    <!--通栏联系电话与搜索__STATIC__/css/qb_ui.css中控制---->

    <div class="qb_ui_ContactSearch">

    <ul>

    <ol><i class="fa fa-volume-control-phone"></i> 服务热线 <a href="tel:{$webdb.service_tel}">{$webdb.service_tel}</a></ol>

    <li>

    <form method="get" action="{:urls('search/index/lists')}">

    <dl>

    <dt><input type="text" name="keyword" placeholder="请输关键字" required/></dt>

    <dd><button type="submit"><i class="fa fa-search"></i></button></dd>

    </dl>

    </form>

    </li>

    </ul>

    </div>

    {/block}

    <!--下面这一行是导航条-->

    {block name="nav"}{qb:nav title="" url="" /}{/block}

    {block name="body_content"}页面主体部分内容{/block}

    <!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->

    {:hook_listen('layout_body',$userdb,$webdb,true)}

    {block name="body_Footcont"}

    <link rel="stylesheet" href="__STATIC__/index/default/pcfooter.css"> 

    <div class="body_Footcont">

    <ul>

    <ol>

    <dl>

    <dt>{$webdb.copyright}</dt>

    <dd><a href="http://www.miibeian.gov.cn"; target="_blank">{$webdb.miibeian_gov_cn}</a> </dd>

    </dl>

    </ol>

    <li>

    <dl>

    <dt>扫一扫手机访问</dt>

    <dd><img src="{:urls('index/qrcode/index')}?url={:urlencode(get_url('location'))}"/></dd>

    </dl>

    </li>

    </ul>

    </div>

    {/block}

    <!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->

    {:hook_listen('layout_body_foot',$userdb,$webdb,true)}

    <script type="text/javascript" src="__STATIC__/js/qibo.js"></script>

    </body>

    </html>


0 赏钱 赏礼回复
  • 留千万【私人号】   ༽ 普通粉丝 消费:585.22元 2018-08-02 17:50 17:506楼

    {extend name="$index_style_layout" /}


    <!--SEO相关-->

    {block name="head_title"}{$info.title}{/block}

    {block name="head_keword"}{$info.keywords?:$info.title}  {$s_info.name} {/block}

    {block name="head_description"}{:get_word(del_html($info['content']),300)}{/block}



    {block name="body_content"}


    <link rel="stylesheet" href="__STATIC__/group/circle_list/circle_list.css">

    <div class="contbox">

    <div class="content">

    <script type="text/javascript">

    function joinGroup(id){

    $.get("{:urls('wxapp.member/join',['id'=>$id])}?"+Math.random(),function(res){

    if(res.code==0){

    layer.alert("加入成功!");

    }else{

    layer.alert("加入失败:"+res.msg);

    }

    });

    }

    </script>

    <div class="maincont1">

    <div class="main">

    <div class="showimg" style="width:500px;">

    <div class="img" style="width:150px;"><img onerror="this.src='__STATIC__/images/nopic.png'" src="{$info.picurl}" width="125" height="125" /></div>

    <div class="word" style="width:300px;">

    <div class="join"><a href="#">{$info.title}</a><!--<a href="#" class="a_nav">申请加入</a>--></div>

    <div class="text"><p>{$info.content}</p></div>

    <div class="who">管理员:<em class="green">{$info.uid|get_user_name}</em></div>

    </div>

    </div>

    <div class="how" style="width:550px;">

    <div class="h_nav">

    <a href="{:urls('bbs/add',['aid'=>$id])}" class="R">发布话题</a>

    <div class="mores">

    <a href="{:urls('cms/add',['aid'=>$id,'mid'=>2])}">发布图片</a>

    <a href="{:murl('shop/content/add',['mid'=>1,'ext_id'=>$id])}">发布商品</a>

    </div>

    </div>

    <div class="h_nav"><a href="#" onclick="joinGroup({$id})" class="E">申请加入</a></div>

    <div class="h_code">

    <p><img src="{:get_qrcode()}" width="95" height="95" /></p>

    <p>访问手机版</p>

    </div>

    </div>

    </div>

    </div><!--maincont1 end-->

    <div class="maincont2">

    <div class="left">

    <div class="main">

    <div class="shead">

    <div class="tag">

    <div class="first" onclick="chagetype(0)"><a href="javascript::;">话题</a></div>

    <div onclick="chagetype(1)"><a href="javascript:;">图片</a></div>

    <div onclick="chagetype(2)"><a href="javascript:;">商品</a></div>

    <div onclick="chagetype(3)"><a href="javascript:;">成员</a></div>

    </div>

    <div class="more">

    <div>话题:<em class="green">0</em></div>

    <div>图片:0</div>

    <div>成员:<em class="orange">0</em></div>

    </div>

    </div>

    <div class="listbox">

    <div class="cont qun_pcshow_bbs001">

    {qb:tag name="qun_pcshow_bbs001" type="bbs" union="ext_id=id" order="id" by="desc" rows="10" js="qun_pcshow_bbs001"}

    <div class="list">

    <div class="list_left">

    <div class="title"><span style="color:orange;">{if ($rs.status>1)}精{elseif (time()-$rs.create_time<3600*24)}新{elseif ($rs.view>10)}热{/if}</span><a href="{$rs.url}" target="_blank">{$rs.title|get_word=50}</a> <i class="glyphicon glyphicon-remove-sign act-delete" data-id="{$rs.id}" data-uid="{$rs.uid}" data-sys="bbs"></i></div>

    <!--<div class="info" style="display:none"><p>这是介绍</p></div>-->

    {if (count($rs.picurls)>2)}

    <div class="pic" style="margin-bottom:0;">

    {volist name="$rs.picurls" id="pic"}

    {lt name="i" value="6"}

    <a href="{$rs.url}" target="_blank"><img src="{$pic}"onerror="this.src='__STATIC__/images/nopic.png'" width="78" height="78" /></a>

    {/lt}

    {/volist}

    </div>

    {/if}

    </div>

    <div class="list_right">

    <div class="n"><a href="#" class="orange">{$rs.username}</a></div>

    <div class="o"><span style="background:url(__STATIC__/group/circle_list/what.png) no-repeat left center; padding-left:25px;">{$rs.replynum}</span><span style="float:right;">{$rs.time}</span></div>

    </div>

    </div>

    {/qb:tag}

    </div>


    <div class="cont qun_pcshow_photo001">

    {qb:tag name="qun_pcshow_photo001" type="cms" mid="2" union="ext_id=id" order="id" by="asc" rows="6" js="qun_pcshow_photo001"}

    <div class="product">

    <div class="img"><a href="{$rs.url}" target="_blank"><img src="{$rs.picurl}" onerror="this.src='__STATIC__/images/nopic.png'" width="240" height="180" /></a></div>

    <div class="info">

    <div class="w"><img src="{$rs.user_icon}" width="50" height="50" /></div>

    <div class="t">

    <div><a href="{:get_url('user',$rs['uid'])}" class="green" target="_blank">{$rs.username}</a></div>

    <div><span style="color:#999999;">时间</span><span> {$rs.time}</span> <i class="glyphicon glyphicon-remove-sign act-delete" data-id="{$rs.id}" data-uid="{$rs.uid}" data-sys="cms"></i></div>

    </div>

    </div>

    </div>

    {/qb:tag}

    </div>

    <div class="cont qun_pcshow_shop001">

    {qb:tag name="qun_pcshow_shop001" type="shop" union="ext_id=id" order="id" by="asc" rows="6" js="qun_pcshow_shop001"}

    <div class="product">

    <div class="img"><a href="{$rs.url}" target="_blank"><img src="{$rs.picurl}" onerror="this.src='__STATIC__/images/nopic.png'" width="240" height="180" /></a></div>

    <div class="info">

    <div class="w"><img src="{$rs.user_icon}" width="50" height="50" /></div>

    <div class="t">

    <div><a href="{:get_url('user',$rs['uid'])}" class="green">{$rs.username}</a></div>

    <div><span style="color:#999999;">价格:</span><span>¥ {$rs.price} 元</span> <i class="glyphicon glyphicon-remove-sign act-delete" data-uid="{$rs.uid}" data-id="{$rs.id}" data-sys="shop"></i></div>

    </div>

    </div>

    </div>

    {/qb:tag}

    </div>


    <div class="cont">

    <div class="master">

    <div class="cont_t">管理员</div>

    <div class="cont_show">

    <div class="cont_show_list">

    <div class="img"><img src="{$info.uid|get_user_icon}" onerror="this.src='__STATIC__/images/nobody.gif'" width="88" height="88"/></div>

    <div class="info"><a target="_blank" href="{:get_url('user',$info['uid'])}" class="green">{$info.uid|get_user_name}</a></div>

    </div>

    </div>

    </div>

    <div class="friends">

    <div class="cont_t">成员</div>

    <div class="cont_show qun_member_pcshow">

    {qb:tag name="qun_member_pcshow" class="app\qun\model\Member@get_label" rows="20" union="aid=id" js="qun_member_pcshow"}

    <div class="cont_show_list" style="position:relative;">

    {empty name="$rs.type"}

    <i data-id="{$rs.id}" class="fa fa-check-circle yz-member" title="等待审核" style="color:#aaa;position:absolute;left:0px;top:0px;"></i>

    {else /}

    <i data-id="{$rs.id}" class="fa fa-check-circle" title="正式成员" style="color:green;position:absolute;left:0px;top:0px;"></i>

    {/empty}

    <i data-id="{$rs.id}" class="fa fa-times-circle del-member" style="color:orange;position:absolute;right:0px;top:0px;"></i>

    <div class="img"><img src="{$rs.icon}" width="88" height="88" onerror="this.src='__STATIC__/images/nobody.gif'"/></div>

    <div class="info"><a href="{:get_url('user',$rs.uid)}">{$rs.username|get_word=10}</a></div>

    </div>

    {/qb:tag}  

    </div>

    </div>


    </div>

    </div>

    <div class="ShowMores" style="background:#eee;text-align:center;padding:10px;">显示更多...</div>

    </div>


    <script type="text/javascript">

    var admin = {if ($userdb.uid==$info.uid)}true{else /}false{/if};

    //踢除会员

    function delete_member(){

    $(".del-member").each(function(){

    var that = $(this);

    if(admin!=true){

    that.hide();

    return ;

    }

    that.click(function(){

    var url = "{:urls('wxapp.member/act')}?type=del&id="+that.data('id');

    $.get(url,function(res){

    if(res.code==0){

    that.parent().hide();

    layer.msg('操作成功');

    }else{

    layer.alert('操作失败:'+res.msg);

    }

    });

    })

    });

    }


    //验证会员

    function yz_member(){

    if(admin!=true){

    return ;

    }

    $(".yz-member").each(function(){

    var that = $(this);

    that.click(function(){

    var url = "{:urls('wxapp.member/act')}?type=yz&id=" + that.data('id');

    $.get(url,function(res){

    if(res.code==0){

    that.css('color','green');

    layer.msg('操作成功');

    }else{

    layer.alert('操作失败:'+res.msg);

    }

    });

    })

    });

    }


    function qun_member_pcshow(res){ //处理异步加载进来的论坛数据

    if(res.code==0){ //数据加载成功后

    delete_member(); //删除会员

    yz_member(); //审核会员

    }

    }

    </script>



    <script type="text/javascript">

    //删除功能

    function act_delete(){

    var power = {if $userdb.groupid==3||$gid==2} true {else /} false {/if};

    $(".act-delete").each(function(){

    var that = $(this);

    if(power!=true && '{$userdb.uid}'!=that.data('uid')){

    that.hide();

    }

    var url = "{:urls('wxapp.act/delete')}?sysname=" + that.data('sys') + '&id=' + that.data('id');

    that.click(function(){

    layer.confirm('你确认要删除吗?',{btn:['确认删除','取消'],},function(){

    $.get(url,function(res){

    layer.closeAll();

    if(res.code==0){

    layer.msg('删除成功');

    setTimeout(function(){

    window.location.reload();

    },500);

    }else{

    layer.alert(res.msg);

    }

    });

    });

    });

    });


    /*

    $(".act-delete").click(function(){

    var that = $(this);

    var url = "{:urls('wxapp.act/delete')}?sysname=" + that.data('sys') + '&id=' + that.data('id');

    layer.confirm('你确认要删除吗?',{btn:['确认删除','取消'],},function(){

    $.get(url,function(res){

    layer.closeAll();

    if(res.code==0){

    layer.msg('删除成功');

    setTimeout(function(){

    window.location.reload();

    },500);

    }else{

    layer.alert(res.msg);

    }

    });

    });

    });*/

    }


    function qun_pcshow_bbs001(res){ //处理异步加载进来的论坛数据

    if(res.code==0){ //数据加载成功后

    act_delete();

    }

    }



    var ajax_url_db = ['{qb:url name="qun_pcshow_bbs001"/}','{qb:url name="qun_pcshow_photo001"/}','{qb:url name="qun_pcshow_shop001"/}','{qb:url name="qun_member_pcshow"/}'];

    var content_div_db = ['qun_pcshow_bbs001','qun_pcshow_photo001','qun_pcshow_shop001','qun_member_pcshow'];

    var choose_i = 0; //选中第几项

    var shoppage = 1;

    var haveshowpage = []; //每一项,作个标志,已经已显示到第几页

    //显示更多

    function showMoreContent(){

    var url = ajax_url_db[choose_i]; //第几项对应的网址

    shoppage++;

    haveshowpage[choose_i] = shoppage;

    $.get(url+shoppage+'&'+Math.random(),function(res){

    if(res.code==0){

    if(res.data==''){

    layer.msg("已经显示完了!",{time:500});

    $('.ShowMores').off("click");

    $('.ShowMores').html('显示完了');

    $('.ShowMores').css({'background':'#eee'});

    }else{

    $('.'+content_div_db[choose_i]).append(res.data);

    act_delete();

    delete_member(); //删除会员

    yz_member(); //审核会员

    }

    }else{

    layer.msg(res.msg,{time:2500});

    }

    });

    }



    function chagetype(num){

    $('.ShowMores').off("click"); //避免出现多次点击事件

    $('.ShowMores').on("click",showMoreContent);

    $('.ShowMores').html('显示更多');

    choose_i = num;

    shoppage = haveshowpage[choose_i]>1 ? haveshowpage[choose_i] : 1;


    $('.shead .tag div').removeClass('first');

    $('.shead .tag div').eq(num).addClass('first')

    $('.listbox .cont').hide();

    $('.listbox .cont').eq(num).show();

    }

    chagetype(0);

    </script>

    </div><!--right end-->




    <div class="right">

     <div class="main" style="margin-bottom:25px;">  

    <div>  

    <div class="text">

    <!--快速发表内容开始-->

     <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" media="all">

     <link rel="stylesheet" href="__STATIC__/layui/css/admin.css" media="all">

     <link rel="stylesheet" href="__STATIC__/layui/css/template.css" media="all">

                    {include file="content/quick_post"}

    </div>

    </div>

    </div>


    <div class="main">

    <div class="mhead mhead1">

    <div class="third"><a href="#">圈子介绍</a></div>

    <div><a href="#">公告信息</a></div>

    </div>

    <div class="tbox">

    <div class="text">

    <p>{$info.content}</p>

    </div>

    <div class="text">

    <p>暂无!!</p>

    </div>

    </div>

    <script>

    $('.tbox .text').eq(1).hide();;

    $(".mhead1 div").hover(function(){

    var thisindex = $(this).index();

    $(this).addClass("third").siblings().removeClass("third");

    $(".tbox .text").eq(thisindex).show().siblings().hide();

    })

    </script>

    </div>

    <div class="main" style="margin-top:25px;">

    <div class="mhead mhead3">

    <div class="fourth"><a href="#">活跃成员</a></div>

    <div><a href="#">最新加入</a></div>

    </div>

    <div class="listbox listbox3">

    <div class="plist list_member_a">

    <!--

    <div class="picshow">

    <div class="img"><a href="#"><img src="__STATIC__/group/circle_list/head2.png" width="88" height="88" /></a></div>

    <div class="info"><a href="#">番茄小王子</a></div>

    </div>

    -->

    </div>

    <script type="text/javascript">

    $(document).ready(function(){

    $.get("{:urls('wxapp.member/get_member',['id'=>$id,'rows'=>10])}",function(res){

    if(res.code==0){

    show_member_a(res.data);

    }

    });

    });


    function show_member_a(ar){

    var htmlcode = '';

    ar.forEach(function(rs){

    htmlcode += '<div class="picshow"><div class="img"><a href="{:get_url(\'user\')}?uid='+rs.uid+'"><img src="' + rs.icon + '" width="88" height="88" onerror="this.src=\'__STATIC__/images/nobody.gif\'"></a></div><div class="info"><a href="{:get_url(\'user\')}?uid='+rs.uid+'">' + rs.username + '</a></div></div>';

    });

    $(".list_member_a").html(htmlcode);

    }

    </script>

    <div class="plist list_member_b">

    <!--

    <div class="picshow">

    <div class="img"><a href="#"><img src="__STATIC__/group/circle_list/head1.png" width="88" height="88" /></a></div>

    <div class="info"><a href="#">番茄小王子</a></div>

    </div>

    -->

    </div>

    <script type="text/javascript">

    $(document).ready(function(){

    $.get("{:urls('wxapp.member/get_member',['id'=>$id,'rows'=>15,'by'=>'asc'])}",function(res){

    if(res.code==0){

    show_member_b(res.data);

    }

    });

    });


    function show_member_b(ar){

    var htmlcode = '';

    ar.forEach(function(rs){

    htmlcode += '<div class="picshow"><div class="img"><a href="{:get_url(\'user\')}?uid='+rs.uid+'"><img src="' + rs.icon + '" width="88" height="88" onerror="this.src=\'__STATIC__/images/nobody.gif\'"></a></div><div class="info"><a href="{:get_url(\'user\')}?uid='+rs.uid+'">' + rs.username + '</a></div></div>';

    });

    $(".list_member_b").html(htmlcode);

    }

    </script>

    </div>

    <script>

    $('.listbox3 .plist').eq(1).hide();;

    $(".mhead3 div").hover(function(){

    var thisindex = $(this).index();

    $(this).addClass("fourth").siblings().removeClass("fourth");

    $(".listbox3 .plist").eq(thisindex).show().siblings().hide();

    })

    </script>

    </div>

    </div><!--left end-->

    </div><!--maincont2 end-->

    </div><!--content end-->

    </div>


    <script type="text/javascript">

    $.get("{:urls('wxapp.visit/check_visit',['id'=>$id])}",function(res){

    if(res.code==0){

    //layer.msg("更新浏览量成功!");

    }else{

    //layer.msg("并没有更新到浏览量!");

    }

    });

    </script>

    {/block}


0 赏钱 赏礼回复
0 赏钱 赏礼回复
更多回复
恢复多功能编辑器
  • 3 1
  • X1模板堂
        圈内贴子3573
    • 圈子成员490
    本圈子内的新贴

    推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648