這個(gè)導(dǎo)航欄是根據(jù)之前頁(yè)面點(diǎn)擊來(lái)生成的 例如 ?之前點(diǎn)擊了 待支付 就會(huì)顯示待支付的頁(yè)面樣式 ? 待支付高亮現(xiàn)在想要?jiǎng)h除 待評(píng)價(jià) 這個(gè)欄目 ?而不影響其他導(dǎo)航欄目 ?不知道從代碼里面什么地方下手 ?求教????????var?pagesize?=?6;//每頁(yè)顯示數(shù)量
????????var?tpl_temp,?prolist?=?$("#prolist");
????????if?(prolist.find(".fanslist").length?!=?0)?{
????????????tpl_temp?=?"fanslist_Temp"
????????}
????????if?(prolist.find(".orderlist").length?!=?0)?{
????????????tpl_temp?=?"orderlist_Temp";
????????????var?t?=?subPage.tabProList.getParameters(),
????????????????o?=?t.tabType;
????????????????if?(!subPage.tabProList.isNotEmpty(o))?{o=t["action"];}
????????????var?status?=?subPage.tabProList.isNotEmpty(o)???"finished"?==?o???"finished"?:?"waitpay"?==?o???"waitpay":?"all"?==?o???"all"?:?"shipped"?==?o???"shipped"?:?"receipt"?==?o???"receipt"?:?"finished"?:?"finished",
????????????index?=?"finished"?==?status???3?:?"waitpay"?==?status???0?:?"shipped"?==?status???1?:?"all"?==?status???4?:?"receipt"?==?status???2?:?0;
????????????var?g?=?$(".sn-tab-content").find(".sn-tab-box");
????????????$(".app-type-choose").find(".item").eq(index).addClass("cur").siblings().removeClass("cur");
????????????g.eq(index).addClass("current").siblings().removeClass("current");
????????}
????????if?(prolist.find(".goodslist").length?!=?0)?{
????????????tpl_temp?=?"goodslist_Temp"
????????}
????????if?(!tpl_temp)?{
????????????return
????????}
????????if?(prolist.length?==?0)?{
????????????return
????????}
????????if?(prolist.find(".goodslist").length?!=?0)?{
????????????subPage.tabProList.randerProList(pagesize,?tpl_temp,?true);
????????}
????????var?loading_div?=?$(".sn-loading-type");
????????loading_div.lazyload(function?()?{
????????????if?(!loading_div.is(":visible"))?{
????????????????return
????????????}
????????????subPage.tabProList.randerProList(pagesize,?tpl_temp,?true)
????????});
????????
????????loading_div.attr("data-status",?"loading");
????????if?(prolist.hasClass("app-pro-holder"))?{
????????????subPage.stickTop(".app-type-choose");
????????????
????????????subPage.tabProList.tabExpandBar(".app-type-choose",?function(f)?{
????????????????var?g?=?$(".sn-tab-content").find(".sn-tab-box");
????????????????g.eq(f).addClass("current").siblings().removeClass("current");
????????????????subPage.tabProList.randerProList(pagesize,?tpl_temp,?false)
????????????})
????????}
????}
}
subPage.init?=?function()?{
????var?w_height?=?window.innerHeight?||?window.screen.height;
????var?topbtn?=?$("#Top");
????$(window).on("scroll",?function()?{
????????(window.pageYOffset?<?1.5?*?w_height)???topbtn.addClass("hide")?:?topbtn.removeClass("hide")
????});
????subPage.tabProList.init();
????//subPage.swiper();
????//subPage.scroller(".app-scroller");
}
JS如何刪除自動(dòng)生成導(dǎo)航里的某個(gè)欄目?
ken0510
2017-03-29 21:12:43