/*!stogram2023-07-26*/ function wheelChange(a){wheelTo(a.realIndex)}function wheelTo(a){console.log(a),$(".st-wheel-nav >ul >li").removeClass("active"),$(".st-wheel-nav >ul >li").eq(a).addClass("active"),$(".st-wheel-nav >ul").css({transform:"rotate("+angle*a+"deg)"}),$(".st-header .nav-main >li").removeClass("active"),$(".st-header .nav-main >li").eq(a).addClass("active")}$.fn.ready(function(){setTimeout(function(){$('[role="loading"]').removeClass("unload").addClass("completed"),$(window).trigger("scroll")},200),$(".richtext img").height("auto"),$(".btn-toggle-menu").on("click",function(a){$("body").toggleClass("opened"),a.stopPropagation()}),$("body").on("click",function(a){$(this).removeClass("opened")});var a=0;$(window).scroll(function(){var b=$(this).scrollTop();b>=$(".st-header").height()?($(".st-header").addClass("standby"),a>b?$(".st-header").addClass("opened"):$(".st-header").removeClass("opened")):($(".st-header").removeClass("standby"),$(".st-header").removeClass("opened")),a=b}),$(window).trigger("scroll")}),$.fn.ready(function(){var a="",b=!1;$(".form-inquire").on("submit",function(){var c=$(this).data("id"),d=stogram.plugins[c],e=$(this).serializeArray();return clearTimeout(a),d.run()&&(b||stogram.message.info("信息正在提交..."),b=!0,a=setTimeout(function(){$.post("/jsapi/message/inquire",e,function(a){200==a.code?(stogram.message.info("信息已提交成功"),setTimeout(function(){location.reload()},1e3)):stogram.message.error(a.msg),b=!1})},1e3)),!1})});var length=$(".st-wheel-nav ul li").length,angle=200/length;$.fn.ready(function(){$(".st-wheel-nav ul li").each(function(a){$(this).css({transform:"translateY(-50%) rotate(-"+angle*a+"deg)"})}),$(".st-wheel-nav >ul >li, .st-header .nav-main li").on("click",function(a){var b=$(this).index(),c=window.stogram.plugins.wheel;return c.slideTo(b),wheelTo(b),!1})});