hlzyWeb/Utility/ShowIndex.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。



$(function () {
    jQuery.getJSON("/api/Hi_Ajax_NavMenu.ashx", function (settingjson) {
        //底部导航
        menu(settingjson);
        //弹出圆圈菜单
        if (window.location.pathname.toLowerCase() == "/default.aspx") {
            AddMenu(settingjson);
        }
    });
})




function menu(settingjson) {
    if (window.location.pathname.toLowerCase() == "/default.aspx") {
        if (settingjson.ShopDefault) {
            //var a = _.template($("#menu").html())(settingjson);
            //console.log(a);
            //导航代码
            //alert(_.template($("menu").html(), settingjson));
            //console.log(_.template($("#menu").html(), settingjson));
            $(_.template($("#menu").html())(settingjson)).appendTo('body');
            GetUICss();
        }
    }
    //else if (window.location.pathname == "/Vshop/MemberCenter.aspx") {
    //    if (settingjson.MemberDefault) {
    //        //个人中心
    //        $(_.template($("#menu").html())(settingjson)).appendTo('body');
    //        GetUICss();
    //    }
    //}
    else if (window.location.pathname.toLowerCase() == "/productsearch.aspx") {
        if (settingjson.GoodsType) {
            //分类首页
            $(_.template($("#menu").html())(settingjson)).appendTo('body');
            GetUICss();
        }
    }
    else if (window.location.pathname.toLowerCase() == "/productlist.aspx") {
        if (settingjson.GoodsListMenu) {
            //所有商品
            $(_.template($("#menu").html())(settingjson)).appendTo('body');
            GetUICss();
        }
    }
    else if (window.location.pathname.toLowerCase() == "/branddetail.aspx") {
        if (settingjson.BrandMenu) {
            //品牌专题
            $(_.template($("#menu").html())(settingjson)).appendTo('body');
            GetUICss();
        }
    }
    else if (window.location.pathname.toLowerCase() == "/activities.aspx") {
        if (settingjson.ActivityMenu) {
            //店铺活动
            $(_.template($("#menu").html())(settingjson)).appendTo('body');
后面还有 32 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。