document.writeln("<div data-am-widget=\"gotop\" class=\"am-gotop am-gotop-fixed am-hide-lg-up\" >");
document.writeln("    <a href=\"#top\" title=\"回到顶部\">");
document.writeln("        <i class=\"am-gotop-icon am-icon-chevron-up\"></i>");
document.writeln("        <span class=\"am-gotop-title\">TOP</span>");
document.writeln("    </a></div>");

document.writeln("<div class=\"\" id='h_footer'>");
document.writeln("<div class=\"footer\">");

document.write("    <div class=\"main\">");
document.write("     <div class=\"fl ft_ct\">");

document.writeln("<div class=\"shart\">");
document.writeln("    <div class=\"wx\"><img src=\"/statics/img/top_wx_erwm.jpg\" alt=\"\"></div>");
document.writeln("    <div class=\"t\">官方微信二维码</div>");
//document.writeln("    <div class=\"to\">分享到：</div>");
/*document.writeln("    <div class=\"bdsharebuttonbox bdshare-button-style0-16\" data-bd-bind=\"1506390764987\">");
document.writeln("        <a href=\"#\" class=\"bds_qzone\" data-cmd=\"qzone\" title=\"分享到QQ空间\"></a>");
document.writeln("        <a href=\"#\" class=\"bds_tsina\" data-cmd=\"tsina\" title=\"分享到新浪微博\"></a>");
document.writeln("        <a href=\"#\" class=\"bds_weixin\" data-cmd=\"weixin\" title=\"分享到微信\"></a>");
document.writeln("        <a href=\"#\" class=\"bds_renren\" data-cmd=\"renren\" title=\"分享到人人网\"></a>");
document.writeln("        <a href=\"#\" class=\"bds_more\" data-cmd=\"more\"></a>");
document.writeln("    </div>");*/
document.writeln("</div>");

document.write("         <div class=\"ft_lt\">联系我们<\/div>");
document.write("         <div class=\"ft_tel_t\">");
document.write("地址：浙江省温州市鹿城区双屿街道鞋都大道235号温州5050购物广场写字楼8楼 <br />");
document.write("电话：0577-55599976  15968725696 <br />");
document.write("邮箱：wzmfyxgs@outlook.com <br />");
document.write("<\/div>");
document.write("     <\/div>");
document.write("     <div class=\"fl ft_mu\">");
document.write("         <div class=\"ft_lt\">");
document.write("<a href=\"#\">关注我们<\/a> | <a href=\"#\">版权声明<\/a> | <a href=\"#\">法律声明<\/a>");
document.write("        <\/div>");
document.write("         <div class=\"foot\">");
document.write("版权所有  COPYRIGHT © 2022 温州面粉有限公司 &nbsp;  <a target=\"_blank\" href=\"http://beian.miit.gov.cn\">浙ICP备2022018134号</a> <br />");
document.write("建议将您的浏览器调整到1440*900（或以上）浏览本站 <br />");
document.write("<a target=\"_blank\" href=\"http://www.ruixing.cc\">技术支持：温州瑞星科技</a> <br />");
document.write("        <\/div>");
document.write("");
document.write("     <\/div>");

document.write("     <div class=\"fr ft_rt\">");
//document.write("         <div class=\"ft_lt\">友情链接<\/div>");
document.writeln("             <div class=\"ft_link\">");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 本地网站 ==</option>");
document.writeln("                     <option value=\"http://www.wzgyjt.com/\">温州工业与能源发展集团</option>");
document.writeln("                     <option value=\"http://www.wzgyms.com/\">温州市工艺美术院</option>");
document.writeln("                     <option value=\"http://www.wzmcjt.com/\">温州木材集团有限公司</option>");
document.writeln("                     <option value=\"http://www.wzkuailu.com/\">温州快鹿集团</option>");
document.writeln("                     <option value=\"http://www.wzylzc.com/\">温州有色冶炼有限责任公司</option>");
document.writeln("                     <option value=\"http://www.wzyygs.com/\">温州工业资产营运有限公司</option>");
document.writeln("                 </select>");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 粮食行业 ==</option>");
document.writeln("                     <option value=\"http://www.cereal.com.cn/\">中国粮食网</option>");
document.writeln("                     <option value=\"http://www.grainoil.com.cn/\">国家粮油信息中心</option>");
document.writeln("                     <option value=\"http://www.grainmarket.com.cn/\">国家粮食交易中心</option>");
document.writeln("                     <option value=\"http://www.zglssc.com/\">东方网上粮食市场</option>");
document.writeln("                 </select>");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 便民服务 ==</option>");
document.writeln("                     <option value=\"http://wzgzw.wenzhou.gov.cn/\">温州国资委</option>");
document.writeln("                     <option value=\"http://www.wztv.cn/\">温州广电网</option>");
document.writeln("                     <option value=\"http://www.lucheng.gov.cn/\">鹿城公务网</option>");
document.writeln("                     <option value=\"http://www.wzdj.gov.cn/\">温州市党建网</option>");
document.writeln("                     <option value=\"http://www.wzyouth.com/\">温州青年</option>");
document.writeln("                     <option value=\"https://www.wzrc.net/\">温州人才网</option>");
document.writeln("                     <option value=\"https://www.zj.gov.cn/\">浙江省人民政府</option>");
document.writeln("                     <option value=\"http://www.wenzhou.gov.cn/\">中国温州</option>");
document.writeln("                     <option value=\"http://www.66wz.com/\">温州网</option>");
document.writeln("                 </select>");
document.writeln("             </div>");

document.write("     <\/div>");

document.write("     <div class=\"clearfloat\"><\/div>");

document.write(" <\/div>");

document.writeln("</div>");
document.writeln("</div>");


//右边浮动
/*document.writeln("<div class=\"side_service m_hide\">");
 document.writeln("    <a href=\"javascript:void(0);\" class=\"service_tel\">");
 document.writeln("        <div class=\"service_pull\" style=\"display: none;\">");
 document.writeln("            <p>400-0577-888</p>");
 document.writeln("            <h1>客服热线</h1>");
 document.writeln("        </div>");
 document.writeln("    </a>");
 document.writeln("    <a href=\"#\" class=\"service_kefu\" target=\"_blank\">");
 document.writeln("        <div class=\"service_pull\" style=\"display: none;\">");
 document.writeln("            <p>在线咨询，点这里</p>");
 document.writeln("            <h1>在线咨询</h1>");
 document.writeln("        </div>");
 document.writeln("    </a>");
 document.writeln("    <a href=\"javascript:void(0);\" class=\"service_qq\">");
 document.writeln("        <div class=\"service_pull clearfix\" style=\"display: none;\">");
 document.writeln("            <div class=\"sqr\">");
 document.writeln("");
 document.writeln("                <img src=\"/statics/img/h_dyh2wm.jpg\">");
 document.writeln("                <p>官方订阅号</p>");
 document.writeln("            </div>");
 document.writeln("            <i></i>");
 document.writeln("            <div class=\"sqr\">");
 document.writeln("                <img src=\"/statics/img/h_fwh2wm.jpg\">");
 document.writeln("                <p>官方服务号</p>");
 document.writeln("            </div>");
 document.writeln("        </div>");
 document.writeln("    </a>");
 document.writeln("</div>");*/

//手机站底部
document.writeln("    <div id=\"m_footer\" class='m_footer'><div class=\"home_5\" style='padding-top: 5%;'>");
document.writeln("        <div class=\"ftit\">联系我们</div>");
document.writeln("        <div class=\"w\">");
document.writeln("            <p>地址：浙江省温州市鹿城区双屿街道鞋都大道235号温州5050购物广场写字楼8楼 </p>");
document.writeln("            <p>电话：0577-55599976  15968725696 </p>");
document.writeln("            <p>邮箱：wzmfyxgs@outlook.com </p>");
document.writeln("        </div>");
document.writeln("    <div class=\"ft_wx\"><img src=\"/statics/img/top_wx_erwm.jpg\" alt=\"\"></div>");
document.writeln("        <div class=\"clear h35\"></div>");
document.writeln("        <div class=\"ftit\">友情链接</div>");
document.writeln("      <div class=\"m_ft_link\">");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 本地网站 ==</option>");
document.writeln("                     <option value=\"http://www.wzgyjt.com/\">温州工业与能源发展集团</option>");
document.writeln("                     <option value=\"http://www.wzgyms.com/\">温州市工艺美术院</option>");
document.writeln("                     <option value=\"http://www.wzmcjt.com/\">温州木材集团有限公司</option>");
document.writeln("                     <option value=\"http://www.wzkuailu.com/\">温州快鹿集团</option>");
document.writeln("                     <option value=\"http://www.wzylzc.com/\">温州有色冶炼有限责任公司</option>");
document.writeln("                     <option value=\"http://www.wzyygs.com/\">温州工业资产营运有限公司</option>");
document.writeln("                 </select>");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 粮食行业 ==</option>");
document.writeln("                     <option value=\"http://www.cereal.com.cn/\">中国粮食网</option>");
document.writeln("                     <option value=\"http://www.grainoil.com.cn/\">国家粮油信息中心</option>");
document.writeln("                     <option value=\"http://www.grainmarket.com.cn/\">国家粮食交易中心</option>");
document.writeln("                     <option value=\"http://www.zglssc.com/\">东方网上粮食市场</option>");
document.writeln("                 </select>");
document.writeln("                 <select name=\"\">");
document.writeln("                     <option value=\"\">== 便民服务 ==</option>");
document.writeln("                     <option value=\"http://wzgzw.wenzhou.gov.cn/\">温州国资委</option>");
document.writeln("                     <option value=\"http://www.wztv.cn/\">温州广电网</option>");
document.writeln("                     <option value=\"http://www.lucheng.gov.cn/\">鹿城公务网</option>");
document.writeln("                     <option value=\"http://www.wzdj.gov.cn/\">温州市党建网</option>");
document.writeln("                     <option value=\"http://www.wzyouth.com/\">温州青年</option>");
document.writeln("                     <option value=\"https://www.wzrc.net/\">温州人才网</option>");
document.writeln("                     <option value=\"https://www.zj.gov.cn/\">浙江省人民政府</option>");
document.writeln("                     <option value=\"http://www.wenzhou.gov.cn/\">中国温州</option>");
document.writeln("                     <option value=\"http://www.66wz.com/\">温州网</option>");
document.writeln("                 </select>");
document.writeln("                </div>");
document.writeln("        <div class=\"clear h35\"></div>");
document.writeln("        <div class=\"ftit\">关注我们 | 版权声明 | 法律声明</div>");
document.writeln("    </div>");
document.writeln("<div class=\"foot\">");
document.writeln("   Copyright © 2022 温州面粉有限公司版权所有 <br /> ");
document.writeln("    <a href='http://www.ruicing.cc' target='_blank'>技术支持：温州瑞星科技 </a>");
document.writeln("</div>");
document.writeln("</div>");

/*$(document).ready(function(){

    //浮动导航
    $(window).scrollTop(0);
     var _defautlLtTop = $("#sub_menu").offset().top - $(window).scrollTop();
     var _zIndexLt = $("#sub_menu").css('z-index');//alert(_defautlLtTop+"---***");

     $(window).scroll(function(){
         // alert($(this).scrollTop()+"---"+(_defautlTop-145));
         if($(this).scrollTop() > (_defautlLtTop-45)){
         $("#sub_menu").css({'position':'fixed','top':0,'z-index':99});
         $("#sub_menu .mur").css({'opacity':1});
         }else{
         $("#sub_menu").css({'position':'relative','top':"auto",'z-index':_zIndexLt});
             $("#sub_menu .mur").css({'opacity':0});
         }
     });

});*/
$(function () {

    var bh = $(".banner .info").height();
    var benh = $(".banner .info .en").height();
    var b2 = (benh+20)/2;
    if(bh>benh)  b2 = (bh+40)/2;
    // alert($(".banner .info .en").height()+"----"+$(".banner .info").height()+"****"+(bh+40)/2);
    $(".banner ").delay(0).animate({top: 0,opacity : 1},600);
    $(".banner .info").attr("style","margin-top:"+(-b2)+"px");
    $(".banner .info .t").delay(0).animate({top: 0,opacity : 1},600);
    $(".banner .info .w").delay(500).animate({top: 0,opacity : 1},600);

    $(".ft_link select").change(function () {
        window.open($(this).val());
        // document.location.replace($(this).val());
    });

    $(".bt_back").click(function(){
        history.back(1);
    });

    /*$(".banner .info .t").delay(0).animate({top: 0,opacity : 1},600);
    $(".banner .info .w").delay(500).animate({top: 0,opacity : 1},600);
    $("#top_bak").click(function(){
        $(window).scrollTop(0);
    }).attr("style","cursor: pointer;");
    $("#link").click(function(){
        if ($(this).val() != "") {
            new comcn.Url($(this).val()).go("_blank");
            $("#link ").get(0).selectedIndex=0;
        }

    });
    $(".ft_wx").hover(function() {
        $(this).find(".ft_erwm").show();
    },function(){
        $(this).find(".ft_erwm").hide();
    });

    $(".side_service a").hover(function(){
        $(".service_pull",this).toggle();
    });*/

    /*
     $.get("/outer/dynamic/catalog/11904?tid=11864&at=top",function(data){
     $("#orderOnlineLists").html(data);
     });*/

    /*$('.header_search').click(function(e){
        if($('.search_icon').is(':visible')){
            $('.header_search .man').animate({'width':211},500,function(){
                $('.search_icon').hide();
            });
        }
        e.stopPropagation();
    });
    $('#top_close_sh').click(function(e){
        $('.search_icon').show();
        $('.header_search .man').animate({'width':0},500);
        e.stopPropagation();
    });
    $(document).bind('click',function(){
        if($('.search_icon').length>0){
            $('.search_icon').show();
            $('.header_search .man').animate({'width':0},500);
        }
    })*/
    win();
    $(window).resize(function(){
        win();
    });

});

function win() {

    var winW = $(window).width();

    if($('.pro_list').length>0){
        var h=winW*0.8*0.25*0.55;
        $('.pro_list .img').height(h);
    }


    //$(".pro_view_attr li .bt_p_ov").attr("style","margin-left:"+($(".pro_view_attr li").width()/2-50)+"px;");

    /*if(winW < 1600 && winW>1024) {//pc
     $(".list_pcn_pd > ul").addClass("am-avg-lg-3");
     $(".list_pcn_pd > ul").removeClass("am-avg-lg-4");
     $(".list_pcn_pd > ul li:nth-child(4)").addClass("am-hide");
     $(".list_pcn_pd > ul li:nth-child(3)").removeClass("am-hide");
     }
     if(winW < 1024) {//pc
     $(".list_pcn_pd > ul li:nth-child(3)").addClass("am-hide");
     $(".list_pcn_pd > ul li:nth-child(4)").addClass("am-hide");
     }
     if(winW > 1600) {//pc
     $(".list_pcn_pd > ul").addClass("am-avg-lg-4");
     $(".list_pcn_pd > ul").removeClass("am-avg-lg-3");
     $(".list_pcn_pd > ul li:nth-child(4)").removeClass("am-hide");
     $(".list_pcn_pd > ul li:nth-child(3)").removeClass("am-hide");
     }*/

    if(winW>1024) {//pc




    }else{

        $("#demo-view .am-offcanvas-bar").attr("style","height: " + ($(window).height()-$("#demo-view .demo-bar").height()) + "px;")


        var swiper_m_sub_menu = new Swiper('.m_sub_menu .swiper-container', {
            slidesPerView: "auto",
            spaceBetween: 0,
            initialSlide :$(".m_sub_menu .swiper-slide.active").attr("num"),
            breakpoints: {
                640: {
                    slidesPerView: "auto",
                    spaceBetween: 0,
                },
                768: {
                    slidesPerView: 4,
                    spaceBetween: 0,
                },
                1024: {
                    slidesPerView: 4,
                    spaceBetween: 0,
                },
            }
        });

        $(".m_sub_menu .swiper-slide a").on('click', function (e) {
            var _sLinkId = $(this).attr("href");
            if(_sLinkId.indexOf("#m")!=-1){
                e.preventDefault();
                if (!$(this).parent(".swiper-slide").hasClass(".active")) {
                    linkId = $(this).parent(".swiper-slide").find("a").attr("href");
                    linkId = linkId.substring(linkId.indexOf("#"));
                    $("#sub_menu .swiper-slide").removeClass("active");
                    $(this).parent(".swiper-slide").addClass("active");
                    linkTop = $(linkId).offset().top - 120;
                    $("html,body").animate({ scrollTop: linkTop }, 300);
                }
            }

        });
        /*$("#menu_14311 .sub a").on('click', function (e) {
            var cid = $("#cid").val();
            var _sLinkId = $(this).attr("href");
            if(_sLinkId.indexOf("#m")!=-1 && cid=="14311"){
                e.preventDefault();
                $("html").removeAttr("style");
                $("body").removeAttr("style").removeClass("am-offcanvas-page");
                $("#demo-view .am-am-menu-toggle, #demo-view .am-offcanvas").removeClass("am-active");
                $("#demo-view .am-offcanvas-bar").removeClass("am-offcanvas-bar-active");
                linkId = $(this).parent(".sub").find("a").attr("href");
                linkId = linkId.substring(linkId.indexOf("#"));
                linkTop = $(linkId).offset().top - 120;
                $("html,body").animate({ scrollTop: linkTop }, 300);
            }

        });*/

        /*//产品列表栏目
        $(".pro_submu .proSub_tit").click(function(){
            if($('.proMenu').is(":hidden")){
                $('.proMenu').slideDown();
            }else{
                $('.proMenu').slideUp();
            }
        })
        //产品详细
        $(".m_proV_tit").click(function(){
            var i = $(this).attr("num");
            $('.m_proV_tit').removeClass('over');
            $(this).addClass('over');
            $('.m_proV_tit i').removeClass('am-icon-chevron-up').addClass('am-icon-chevron-down');
            $(this).find("i").removeClass('am-icon-chevron-down').addClass('am-icon-chevron-up');
            $('.pro_view_wz').slideUp();
            $('#pro_view_wz'+i).slideDown();
        })*/


    }
}


function getMenu(nu,u) {
    var htmlDom = document.getElementById("sub_menu");
    // var myChart = echarts.init(chartDom);
    var option;
    $.get('img/' + u + '.json', function(geoJson) {

        var arr = geoJson.lists;
        /*for (var i in mapArr) {
            if (parms.name == mapArr[i].name) arr = mapArr[i].list
        }*/
        var str = '<div class="main">' +
            '<ul class="mu">'
        for (var i in arr) {
            var c = "";
            if(arr[i].name==nu){c = "current";}
            str += '<li class="fl" style="width: ' +(100/arr.length)+ '%;"><a ';
            if(arr[i].url!="" && arr[i].url!="#"){
                str += ' href="' + arr[i].url + '"';
            }
            str += ' target="_self" class="' + c + '">' + arr[i].name + '</a></li>'
        }
        str += '</ul></div>'
        htmlDom.innerHTML = str;
    });
}

