"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i'+this.option.content+"":"",n=this.option.footerHide?"":this.option.cancelHide?'":'";switch(this.option.type){case"success":i="tips-icon-success";break;case"error":i="tips-icon-error";break;case"info":i="tips-icon-info";break;case"question":i="tips-icon-question";break;case"alert":i="tips-icon-alert";break;default:t=null}o='
 
'+this.option.title+'
 
'+o+n+"
";$("body").append(o),$("".concat("#tipsP"+this.boxId)).addClass("init"),setTimeout(function(){$("".concat("#tipsP"+e.boxId)).addClass("show"),e.listenEvt()},200)}},{key:"success",value:function(e){$.extend(this.option,{type:"success",cancelHide:!0},e),this.init()}},{key:"error",value:function(e){$.extend(this.option,{type:"error",cancelHide:!0},e),this.init()}},{key:"info",value:function(e){$.extend(this.option,{type:"info"},e),this.init()}},{key:"question",value:function(e){$.extend(this.option,{type:"question"},e),this.init()}},{key:"alert",value:function(e){$.extend(this.option,{type:"alert",cancelHide:!0},e),this.init()}},{key:"close",value:function(){var e=this;$("".concat("#tipsP"+this.boxId)).removeClass("init show"),setTimeout(function(){$("".concat("#tipsP"+e.boxId)).remove()},400),this.option.onClose()}},{key:"listenEvt",value:function(){var e=this;0!==e.option.duration&&setTimeout(function(){e.close()},e.option.duration),$("".concat("#tipsP"+this.boxId," .submit-btn")).click(function(){e.option.doneClick(),e.close()}),$("".concat("#tipsP"+this.boxId," .cancel-btn")).click(function(){e.close(),e.option.cancelClick()}),$("".concat("#tipsP"+this.boxId," .tips-popup-mask, ").concat("#tipsP"+this.boxId," .tips-popup-close")).click(function(){e.close()})}}]),e}();function getVerCode(i){if(!i.url)throw console.error("请填写校验秘钥获取地址!");$(i.el).append('
安全组件加载中
\n
\n
\n
\n
\n
\n
\n
'),$.ajax({url:i.url,type:"get",dataType:"jsonp",success:function(e){$("".concat(i.el," .captcha-title")).hide(),$("".concat(i.el," .captcha-loading-con")).show(),window.initGeetest({lang:i.lang||"zh-cn",gt:e.code.gt,https:!0,challenge:e.code.challenge,new_captcha:e.code.new_captcha,product:"popup",width:"100%",offline:!e.code.success},function(e){var t=e;e.appendTo(i.el),e.onReady(function(){$("".concat(i.el," .captcha-loading-con")).hide()}),e.onError(function(){t.reset()}),i.callback(e)})}})}function codeCountdown(t){var i=null,o=Math.round(+new Date/1e3),i=setInterval(function(){var e=Math.round(+new Date/1e3),e=o+Number(t.interval)-e;0

用微信扫描二维码

'),$("#wechatEwm-".concat(t)).length<=0&&e.append(i),$("#wechatEwm-".concat(t)).qrcode({render:"canvas",text:this.params.url,width:113,height:113}))}},{key:"isWechat",value:function(){return-1!==window.navigator.userAgent.toLowerCase().indexOf("micromessenger")}}]),t}();function imgViewer(e){$(e).each(function(){new Viewer(this,{title:function(e,t){return e.alt}})})}var Area=function(){function o(e){_classCallCheck(this,o);var t=this,i=window.location.origin;t.options=$.extend({},{url:"".concat(i,"/api/common/area"),placeholder:["请选择省份","请选择城市","请选择区/县"],onSelected:function(){}},e),t.area=[],t.selected=[],$.ajax({url:t.options.url,method:"GET",success:function(e){t.area=e.data,t._init()}})}return _createClass(o,[{key:"_init",value:function(){var e=this;if(void 0!==e.options.values&&!Array.isArray(e.options.values))throw new Error("地区初始默认值必须传一个数组");e.selected=e.options.values||[],0'.concat(e.options.placeholder[1],"")),$("#selectArea").html('")),$(".shop-select").trigger("render")}},{key:"_setProvince",value:function(e){for(var t=this.area.filter(function(e){return!e.parent}),i=this,o='"),n=0;n'+t[n].name+"":o+='";$("#selectProvince").off("change").html(o).change(function(){i.selected=[$(this).val()],i.options.onSelected(i.selected),i._setCity($(this).val()),i._setArea("",""),$(".shop-select").trigger("render")})}},{key:"_setCity",value:function(t,e){if(!t&&"string"!=typeof t)throw new Error("必须传省份的值且为字符串");for(var i=this,o=this.area.filter(function(e){return e.parent===t}),n='"),s=0;s'+o[s].name+"":n+='";$("#selectCity").off("change").html(n).change(function(){i.selected[1]=$(this).val(),i.options.onSelected(i.selected),i._setArea($(this).val()),$(".shop-select").trigger("render")})}},{key:"_setArea",value:function(t,e){if(!t&&"string"!=typeof t)throw new Error("必须传城市的值且为字符串");for(var i=this,o=this.area.filter(function(e){return e.parent===t}),n='"),s=0;s'+o[s].name+"":n+='";$("#selectArea").off("change").html(n).change(function(){i.selected[2]=$(this).val(),i.options.onSelected(i.selected),$(".shop-select").trigger("render")})}}]),o}();function checkdomain(){return!!/^([\w-]+\.)+((com)|(net)|(org)|(gov\.cn)|(info)|(cc)|(com\.cn)|(net\.cn)|(org\.cn)|(name)|(biz)|(tv)|(cn)|(mobi)|(name)|(sh)|(ac)| (io)|(tw)|(com\.tw)|(hk)|(com\.hk)|(ws)|(travel)|(us)|(tm)|(la)|(me\.uk)|(org\.uk)|(ltd\.uk)|(plc\.uk)|(in)|(eu)|(it)|(jp))$/.test(document.location.origin)}function mobileNav(){var e;$("#mobileToggleBtn").on("click",function(){$(this).hasClass("is-show")?($(this).removeClass("is-show"),$("#mobileNav").removeClass("is-show")):($(this).addClass("is-show"),$("#mobileNav").addClass("is-show"),unScroll(),e=new BetterScroll.createBScroll("#mobileMenuScroller",{tap:!0,click:!0,scrollX:!1,scrollY:!0,mouseWheel:!1}))}),$("#mobileNav .back").on("click",function(){removeUnScroll(),$("#mobileToggleBtn").removeClass("is-show"),$("#mobileNav").removeClass("is-show"),e&&e.destory()}),$(document).on("click",".header .mask",function(){removeUnScroll(),$("#mobileToggleBtn").removeClass("is-show"),$("#mobileNav").removeClass("is-show"),e&&e.destory()}),$("#mobileNav .menu-link-box>.menu-link-icon, #mobileNav .dropdown-menu-link-trigger>.menu-link-icon").on("click",function(){$(this).parent().parent().hasClass("is-show")?($(this).parent().parent().removeClass("is-show"),$(this).parent().next().slideUp(400,function(){e.refresh()})):($(this).parent().parent().addClass("is-show"),$(this).parent().next().slideDown(400,function(){e.refresh()}))})}function unScroll(){var t=$(document).scrollTop();$(document).on("scroll.unable",function(e){$(document).scrollTop(t)})}function removeUnScroll(){$(document).unbind("scroll.unable")}function artTabsInit(){var e,t,i,o;0<$(".art-tabs-wrapper").length&&(e=new BetterScroll.createBScroll(".art-tabs-wrapper",{scrollX:!0,scrollY:!1,click:!0}),(t=$(".art-tabs-wrapper .art-tabs .is-active")[0])&&e.scrollToElement(t,300,!0),i=$(".art-tabs-contianer .dropdown-container"),o=$(".art-tabs-wrapper").css("margin-left").replace("px",""),1024<$(window).width()?($(".art-tabs-item").on("mouseenter",function(e){e.stopPropagation();var t,e=$(this).position().left||0;0<$(this).find(".tabs-dropdown").length&&($(this).hasClass("is-show")||((t=$(this).find(".tabs-dropdown").clone(!0)).css({left:+o+e}),i.html(t),i.find(".tabs-dropdown").slideDown(),$(this).addClass("is-show")))}).on("mouseleave",function(e){e=e.toElement||e.relatedTarget;$(e).hasClass("tabs-dropdown-item")||$(e).hasClass("tabs-dropdown")||(i.find(".tabs-dropdown").slideUp(),$(this).removeClass("is-show"))}),$(document).on("mouseleave",".dropdown-container>.tabs-dropdown",function(e){e=e.toElement||e.relatedTarget;$(e).hasClass("art-tabs-item")||$(e).hasClass("is-show")||$(e).parent().hasClass("art-tabs-item")||$(e).parent().hasClass("is-show")||(i.find(".tabs-dropdown").slideUp(),$(".art-tabs-item.is-show").removeClass("is-show"))})):($(".art-tabs-item").on("click",function(e){e.stopPropagation();var t,e=$(this).position().left||0;0<$(this).find(".tabs-dropdown").length&&($(this).hasClass("is-show")?(i.find(".tabs-dropdown").slideUp(),$(this).removeClass("is-show")):((t=$(this).find(".tabs-dropdown").clone(!0)).css({left:+o+e}),i.html(t),i.find(".tabs-dropdown").slideDown(),$(this).addClass("is-show")))}),$(document).on("click",function(e){$(e.target).hasClass("tabs-dropdown-item")||$(e.target).hasClass("tabs-dropdown")||(i.find(".tabs-dropdown").slideUp(),$(".art-tabs-item.is-show").removeClass("is-show"))})))}function indexInit(){new Swiper(".index-banner .swiper-container",{speed:100,loop:!0,effect:"fade",autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{nextEl:".index-banner .swiper-button-next",prevEl:".index-banner .swiper-button-prev"},pagination:{el:".index-banner .swiper-pagination",clickable:!0}});var e=$(".index-solution .swiper-container .swiper-slide"),e=isMobile()?2t.curPage&&(o.push(null),s=!1)}),this.paged.find(".page-list").html(o.map(function(e){return e?'').concat(e,""):'﹒﹒﹒'}).join("")),this.setPaginEvent(),this.paged.find(".pagin-item.current").removeClass("current"),this.paged.find(".pagin-item[data-page='".concat(e,"']")).addClass("current"),this.curPage!==e&&(this.curPage=e,$(window).scrollTop()!==this.offset&&$("html, body").animate({scrollTop:this.offset},600),this.renderPage(this.curPage))}},{key:"setBtnEvent",value:function(){var e=this;this.prev.on("click",function(){e.renderPrev()}),this.next.on("click",function(){e.renderNext()})}},{key:"setPaginEvent",value:function(){var e=this;this.paged.find(".pagin-item").on("click",function(){e.renderPage($(this).data("page"))})}}]),t}();function productList(){var e=checkdomain()?window.location.hostname:window.location.host,t=window.location.protocol+"//"+e;$(".product-table tr[data-href]").on("click",function(){$(this).data("href")&&(window.location.href=t+$(this).data("href"))}),new Swiper(".product-category-tabs .swiper-container",{speed:300,slidesPerView:2,navigation:{nextEl:".product-category-tabs .swiper-button-next",prevEl:".product-category-tabs .swiper-button-prev"},breakpoints:{480:{slidesPerView:"auto"}}}),document.querySelectorAll(".product-list table").forEach(function(e){new BetterScroll.createBScroll(e,{scrollX:!0,scrollY:!1,eventPassthrough:"vertical",click:!0,scrollbar:{fade:!1,interactive:!0,scrollbarTrackClickable:!0}})})}function product(){new Swiper(".product-category-tabs .swiper-container",{speed:300,slidesPerView:2,navigation:{nextEl:".product-category-tabs .swiper-button-next",prevEl:".product-category-tabs .swiper-button-prev"},breakpoints:{480:{slidesPerView:"auto"}}}),isMobile()||new BetterScroll.createBScroll(".product-detail .right .scroller-wrapper",{click:!0,eventPassthrough:"horizontal",mouseWheel:!0,scrollbar:{fade:!1,interactive:!0,scrollbarTrackClickable:!0}})}function about(){$(".video-control").on("click",function(e){e.preventDefault(),$($("#videoModal").find("video")[0]).attr("src",$(this).find("iframe").attr("src")),layer.open({type:1,title:!1,closeBtn:0,shadeClose:!0,shade:[.6,"#000000"],skin:"video-modal",content:$("#videoModal").html()}),$(".video-modal .video-box video")[0].play()}),$(document).on("click",".video-modal .video-close",function(){$(".video-modal .video-box video")[0].pause(),layer.closeAll()}),$(".data-wp").waypoint({handler:function(){$(".data-wp .data-item .num span:nth-child(1)").each(function(){0===$(this).data("status")&&(new CountUp($(this).attr("id"),+$(this).text(),0,$(this).data("duration")).start(),$(this).data("status",1))})},offset:"90%"})}function newsLive(){$(".live-review .item[data-src]").on("click",function(e){e.preventDefault(),$($("#videoModal").find("video")[0]).attr("src",$(this).data("src")),layer.open({type:1,title:!1,closeBtn:0,shadeClose:!0,shade:[.6,"#000000"],skin:"video-modal",content:$("#videoModal").html()}),$(".video-modal .video-box video")[0].play()}),$(document).on("click",".video-modal .video-close",function(){$(".video-modal .video-box video")[0].pause(),layer.closeAll()})}function productCategory(){for(var e=isMobile()?8:4,t=0;t')}