澳门二十一点游戏量尺 澳门二十一点游戏设计 澳门二十一点游戏出图
澳门二十一点游戏设计
澳门二十一点游戏jQuery(function ($) { //收起菜单 navparentbtnhide=function (obj) { $(obj).children("img").attr("src", "/static/assets/img/arrow-right-right.png");//一级状态更换 $(obj).attr("onclick", "navparentbtnshow(this)").next().slideUp(300);//关闭当前一级 } //展开菜单 navparentbtnshow=function (obj) { $(".u-qustion-open").slideUp(300);//先关闭所有的二级 $(".top-qustion-tit").attr("onclick", "navparentbtnshow(this)").children("img").attr("src", "/static/assets/img/arrow-right-right.png");//一级状态更换 if ($(obj).next().children().length > 0) { $(obj).children("img").attr("src", "/static/assets/img/arrow-right-down.png");//有二级才更换状态 $(obj).attr("onclick", "navparentbtnhide(this)").next().slideDown(300);//打开当前二级 getproblem($(obj).next().children().first().attr("ids"),1);//加载第一个二级问题 $(obj).next().children().removeClass("on").children("img").attr("src", "");//移除当前二级的状态 $(obj).next().children().first().addClass("on").children("img").attr("src", "/static/assets/img/arrow-down-righton.png");//选中第一个二级类型 } else { getproblem($(obj).parent().attr("ids"),'');//没有二级加载一级的问题 } } //收起问题 problembtnhide=function (obj) { $(obj).children().children(".arrow-icon.down").show(); $(obj).children().children(".arrow-icon.up").hide(); $(obj).attr("onclick", "problembtnshow(this)").parent().children(".open-content").slideUp(300);//收起当前问题 } //展开问题 problembtnshow=function (obj) { $(".right-content-item").children().children(".arrow-icon.down").show(); $(".right-content-item").children().children(".arrow-icon.up").hide(); $(obj).children().children(".arrow-icon.up").show(); $(obj).children().children(".arrow-icon.down").hide(); $(".right-content-item").attr("onclick", "problembtnshow(this)").parent().children(".open-content").slideUp(300);//收起所有的问题 $(obj).attr("onclick", "problembtnhide(this)").parent().children(".open-content").slideDown(300);//展开当前问题 } //二级菜单点击 navchildrenbtn=function (obj) { $(".u-qustion-open div").removeClass("on").children("img").attr("src", ""); $(obj).addClass("on").children("img").attr("src", "/static/assets/img/arrow-down-righton.png"); getproblem($('#nav_parent1').attr('ids'),$(obj).attr("ids")); } //获取问题 getproblem=function (cateId,typeId) { var data = { cate: cateId, type: typeId }; $.zmdAjax("apifaq.html", "GET", data, false, function (obj) { if (obj.result) { var html = ""; var numid = 1; if (numid < 10) { numid = "0" + numid; } $(obj.question).each(function (i, item) { html += '
  • '; if (i == 0) { html += '
    '; } else { html += '
    '; } html += '
    '; html += '' + numid + ''; html += '

    ' + item.news_title + '

    '; if (i == 0) { html += ''; html += ''; } else { html += ''; html += ''; } html += '
    '; html += '
    '; html += '
    '; html += '
    '; html += '
    '; html += '' html += '
    ' + item.news_content + '
    ' html += '
    ' html += '
    '; html += '
    '; html += '
  • '; numid = "0" + (parseInt(numid) + 1); }); $("#rightNav").html(html); $("#rightNav").children().first().children(".open-content").slideDown(300); } else { getErrorMsg(obj.msg);//错误提示 } }, function (obj) { getErrorMsg(obj.msg);//错误提示 }); } getproblem(1,1) //根据地址栏传入的参数显示菜单 var urltype = getQueryString("typeid"); if (urltype != "" && urltype != null && urltype != undefined) { $(".u-qustion-open").slideUp(300);//先关闭所有的二级 $(".top-qustion-tit").attr("onclick", "navparentbtnshow(this)").children("img").attr("src", "/static/assets/img/arrow-right-right.png");//一级状态更换 $("#nav_parent" + urltype).children(".top-qustion-tit").attr("onclick", "navparentbtnhide(this)").children("img").attr("src", "/static/assets/img/arrow-right-down.png"); $("#nav_parent" + urltype).children(".u-qustion-open").slideDown(300); if ($("#nav_parent" + urltype).children(".u-qustion-open").children().length > 0) { getproblem(urltype,$("#nav_parent" + urltype).children(".u-qustion-open").children().first().attr("ids")); } else { getproblem($("#nav_parent" + urltype).attr("ids"),''); } } });