/*!stogram2021-11-17*/ function anchorScroll(a){if($(a).length){var b=$(a).offset().top-120;b&&$("body,html").animate({scrollTop:b},300)}}function pager(a){var b="",c=parseInt(a.total),d=parseInt(a.pagesize),e=parseInt(a.page),f=c/d;f>parseInt(f)&&(f=parseInt(f)+1),b='
  • ',console.log(e,a);for(var g=1;f>=g;g++)b+='
  • '+g+"
  • ";return b+='
  • '}$.fn.ready(function(){setTimeout(function(){$('[role="loading"]').removeClass("unload").addClass("completed"),$(window).trigger("scroll")},200),window.location.hash&&anchorScroll(window.location.hash),$("a[href]").on("click",function(a){var b=$(this).attr("href"),c=$(this).attr("target"),d=window.location.pathname;if(c)return!0;if(b.includes("#")){var e=b.split("#");if(anchorScroll("#"+e[1]),e[0]==d)return!0}return!0}),$(".richtext img").height("auto"),$(".btn-toggle-menu").on("click",function(a){$("body").toggleClass("opened"),a.stopPropagation()}),$("body").on("click",function(a){}),$(".gotop").on("click",function(){$("body,html").animate({scrollTop:0},300)}),$(".st-header .nav li").on("click",function(a){$(this).siblings().removeClass("opened"),$(this).addClass("opened")}),$(window).scroll(function(){$(window).scrollTop()>=100?($(".st-shortcut").addClass("fixed"),$(".st-fixed-menu").show()):($(".st-shortcut").removeClass("fixed"),$(".st-fixed-menu").hide())}),$(window).trigger("scroll")}),$.fn.ready(function(){$(".js-form-inquire").on("submit",function(){var a=stogram.plugins["inquire-form"],b=$(this).serializeArray();return a.run()&&$.post("/jsapi/message/inquire",b,function(a){console.log(a),200==a.code?stogram.message.info("信息已提交成功"):stogram.message.info(a.msg)}),!1})});