function gw_initial_setup_scale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1170,n=$(window).width(),i=n/e;document.getElementById(t).style.setProperty("--gw-transform-scale",i),document.getElementById(t).style.setProperty("--gw-max-module-width",e),document.getElementById(t).style.setProperty("--gw-module-width",e)}function gw_updateScale(t){var e=$(window).width(),n=parseFloat(document.getElementById(t).style.getPropertyValue("--gw-max-module-width")),i=parseFloat(document.getElementById(t).style.getPropertyValue("--gw-module-width")),a=Math.min(e,n)/i,o=e/i;n<1&&(a=o),document.getElementById(t).style.setProperty("--gw-transform-scale",a),document.getElementById(t).style.setProperty("--gw-fullwidth-transform-scale",o)}function gw_setup_resizeSensors(t){var e=this;new ResizeSensor($(e).not("[data-full='1'].gw-responsive-scale").find(".gw-browse-module-content"),function(t){var e=t.element.offsetHeight,n="calc("+e+"px * var(--gw-transform-scale))";$($(t.element).closest(".gw-browse-module")).css("height",n)})}function gw_setup_moduleContentInitialValues(t){var e=this;$(e).not("[data-fixed-position],[data-fixed-position='']")&&$(e).addClass("gw-responsive-scale")}function gw_inject_addStyle(t){var e=document.createElement("style");e.textContent=t,document.head.append(e)}function gw_magic_responsive_setup(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1170,n=this;gw_initial_setup_scale.call(this,t,e),gw_setup_moduleContentInitialValues.call(this,t),$(window).resize(function(){gw_updateScale.call(n,t)}),gw_updateScale.call(this,t),$(document).ready(function(){gw_setup_resizeSensors.call(n,t)})}function screenTigger(){$(".gw-screen-form-btn").trigger("click")}function renderList(t,e,n,i,a,o){var r="";if(e.data.data.length){r='
查询结果 共'+e.data.total+'条
',r+="";for(var s=0;s"+n[s].value+"";r+="";for(var d=0;d";for(var l=0;l"+e.data.data[d][n[l].name]+"";r+=""}r+='
'}else r='

抱歉,未查询到您想要的结果

';t.siblings(".screen-search-panel").html(r),e.data&&e.data.total>a?Pagination.init({id:o},{current:i,total:e.data.total,pageSize:a},function(e){i=e.getCurrent(),t.find('input[name="page"]').attr("value",i),screenTigger()}):$(o).hide()}function queryURL(t){for(var e=t.split("?"),n=e[1].split("&"),i={},a=0;a3&&void 0!==arguments[3]?arguments[3]:{};if(""!==_ga.url){var a=document.createElement("img"),o=[],r={};if(i&&Object.assign(r,i),r.type=t,r.referer=window.location.href,r.gmac=_ga.params.gmac,r.v=(new Date).getTime(),r.duration=parseInt(Date.now()/1e3)-_ga.timestamp,4==t){var s=queryURL(e.currentTarget.href);r.relative=s.uin}else 1!=t&&3!=t||(r.relative=e.currentTarget.href.slice(n));for(key in r)o.push(key+"="+encodeURIComponent(r[key]));a.src=[_ga.url+"/event","?",o.join("&")].join(""),a.style.display="none",document.body.insertBefore(a,document.body.childNodes[0])}}function setPaddings(){var t=0;$(".gw-browse-module.fixed-bottom").each(function(){var e=$(".share-user-phone").length,n=$(this).height();n>t&&(e?(t=n+50,$(".fixed-bottom").css("bottom","50px")):t=n)}),t>0&&$("body").css("padding-bottom",t)}function scrollToView(t){var e=$('.gw-browse-module[data-anchor-id="'+t+'"]');e.length&&$("html, body").animate({scrollTop:e.offset().top+"px"},{duration:500,easing:"swing"})}function initDynamicLoad(){function t(t,e){return new Promise(function(e,n){var i=new Image;i.src=t,i.onload=function(t){return e(t)},i.onerror=function(t){return n(t)}})}function e(e){var n=e.find("img").map(function(n,i){return t(i.src,e)});Promise.all(n).then(function(t){_refreshHeight(e)}).catch(function(t){_refreshHeight(e)})}$(".gw-dynamic-component").each(function(){_refreshHeight(this)}),$(".gw-dynamic-component img").on("load",function(){_refreshHeight(this)}),$(document).on("click",".shop_goods_style",function(){localStorage.setItem("listUrl",window.location.href)}),$(window).scroll(function(){$(".click_get_more").each(function(){var t=$(this),e=t.offset().top+t.height()+20-$(window).scrollTop();e>0&&e<$(window).height()&&(t.attr("data-load-all")||t.attr("data-loading")||(t.attr("data-loading","true"),t.trigger("click")))}),$(".gw-automatic-more").each(function(){var t=$(this),e=t.offset().top+t.height()+20-$(window).scrollTop();e>0&&e<$(window).height()&&(t.attr("data-load-all")||t.attr("data-loading")||(t.attr("data-loading","true"),t.trigger("click")))})}),$(".click_get_more").on("click",function(){var t=$(this),e=t.attr("data-component-id"),n=t.attr("data-next-page")?parseInt(t.attr("data-next-page")):2,i=window.location.href.split("?")[0],a=t.attr("data-component-type");$.ajax({type:"GET",url:i+"?page-"+e+"="+n,success:function(i){var o="#"+e+" .gw-browse-component-content",r="";r="case"==a?$(i).find(o+" .list-content").html():$(i).find(o).html(),r.trim().length?("case"==a?$(o+" .list-content").append(r):$(o).append(r),t.attr("data-next-page",n+1),_refreshHeight(t)):(t.html("--- end ---"),t.attr("data-load-all","true"))},error:function(){layer.msg("加载失败,请稍后重试!")},complete:function(){t.removeAttr("data-loading")}})}),$(document).on("click",".gw-hand-more",function(){var t=$(this);commponent_id=t.attr("data-component-id"),next_page=t.attr("data-next-page")?parseInt(t.attr("data-next-page")):2,_url=window.location.origin+window.location.pathname,_type=t.attr("data-component-type"),_module_id=t.attr("data-module-id"),_component_id=t.attr("data-component-id"),_last_page=t.attr("data-last-page"),_val="page-"+commponent_id+"="+next_page+"&component_list_item=1&module_id="+_module_id+"&component_id="+_component_id,_search=window.location.search?window.location.search+"&"+_val:"?"+_val,next_page<=_last_page?(NProgress.start(),$.ajax({type:"GET",url:_url+_search,success:function(n){var i="#"+commponent_id+" .gw-list-content-box";n?($(i).append(n),t.attr("data-next-page",next_page+1),e($("#"+commponent_id+" .gw-list-content-box"))):(t.html("--- end ---"),t.attr("data-load-all","true"))},error:function(){layer.msg("加载失败,请稍后重试!")},complete:function(){t.removeAttr("data-loading"),NProgress.done()}})):(t.html("--- end ---"),t.attr("data-load-all","true"))})}function initForm(){$(document).on("submit",".gw-form",function(){var t=$(this),e=t.find(".js-submit"),n=t.attr("action"),i=t.attr("method"),a=t.serialize(),o=e.attr("data-msg"),r=e.attr("data-msging"),s=$(".gw-province").val()+"/"+$(".gw-city").val()+"/"+$(".gw-district").val(),d=$(".gw-area").attr("name");return d&&(a=a+"&"+d+"="+s),$.ajax({url:n,method:i,data:a,dataType:"json",start:function(){e.val(r).attr("disabled","disabled")},success:function(t){""!=t.msg&&layer.msg(t.msg,{time:3e3},function(){1==t.status&&window.location.reload()}),0==t.code&&window.location.reload()},error:function(){layer.msg("出现异常,请重试!")},complete:function(){e.val(o).attr("disabled",!1)}}),!1})}function initModalForm(){$(document).on("submit",".gw-form-modal",function(){var t=$(this),e=!0,n=t.find(".js-submit"),i=t.attr("action"),a=t.attr("method"),o=t.serialize(),r=n.attr("data-msg"),s=n.attr("data-msging"),d=$(this).find(".gw-province").val()+"/"+$(this).find(".gw-city").val()+"/"+$(this).find(".gw-district").val(),l=$(this).find(".gw-area").attr("name"),c=t.find(".start-time").val()+" - "+t.find(".end-time").val(),u=t.find(".gw-range-time").attr("name"),m=(t.find(".choose-time").val(),t.find(".gw-choose-time").attr("name"),t.find(".gw-range-time").attr("date-device-type")),p=(t.find(".gw-choose-time").attr("date-device-type"),t.find(".js-submit").attr("data-success_text")),f=t.find(".js-submit").attr("data-redirect_url"),h=t.find(".js-submit").attr("data-language_type"),g={zh:"確定",en:"Confirm","zh-cn":"确定"},v={zh:"提示",en:"Tips","zh-cn":"提示"};if(l&&(o=o+"&"+l+"="+d),"mobile"==m){var w=new Date(t.find(".start-time").val()),y=new Date(t.find(".end-time").val());w.getTime()>y.getTime()?(layer.msg("结束时间不能比开始时间大",{zIndex:198910161}),e=!1):o=o+"&"+u+"="+c}return t.find(".gw-upload-image-final-id").each(function(){if(parseInt($(this).attr("data-require"))&&!$(this).val()){var t=$(this).attr("data-name");return layer.msg(t+"图片必须上传",{zIndex:198910161}),void(e=!1)}}),e&&$.ajax({url:i,method:a,data:o,dataType:"json",start:function(){n.val(s).attr("disabled","disabled")},success:function(t){p=p||t.msg,0==t.code?p&&layer.confirm(p,{title:v[h],btn:[g[h]],zIndex:198910161},function(t){layer.close(t),f?window.location.href=f:window.location.reload()}):""!=t.msg&&layer.msg(t.msg,{time:3e3,zIndex:198910161},function(){1==t.status&&window.location.reload()})},error:function(){layer.msg("出现异常,请重试!",{zIndex:198910161})},complete:function(){n.val(r).attr("disabled",!1)}}),!1})}function initFormPlus(){$(document).on("submit",".gw-formPlus",function(){var t=$(this),e=!0,n=t.find(".js-submit"),i=t.attr("action"),a=t.attr("method"),o=t.serialize(),r=n.attr("data-msg"),s=n.attr("data-msging"),d=$(this).find(".gw-province").val()+"/"+$(this).find(".gw-city").val()+"/"+$(this).find(".gw-district").val(),l=$(this).find(".gw-area").attr("name"),c=t.find(".start-time").val()+" - "+t.find(".end-time").val(),u=t.find(".gw-range-time").attr("name"),m=(t.find(".choose-time").val(),t.find(".gw-choose-time").attr("name"),t.find(".gw-range-time").attr("date-device-type")),p=(t.find(".gw-choose-time").attr("date-device-type"),t.find(".js-submit").attr("data-success_text")),f=t.find(".js-submit").attr("data-redirect_url");if(language_type=t.find(".js-submit").attr("data-language_type"),btnText={zh:"確定",en:"Confirm","zh-cn":"确定"},titleText={zh:"提示",en:"Tips","zh-cn":"提示"},l&&(o=o+"&"+l+"="+d),"mobile"==m){var h=new Date(t.find(".start-time").val()),g=new Date(t.find(".end-time").val());h.getTime()>g.getTime()?(layer.msg("结束时间不能比开始时间大",{zIndex:198910161}),e=!1):o=o+"&"+u+"="+c}return t.find(".gw-upload-image-final-id").each(function(){if(parseInt($(this).attr("data-require"))&&!$(this).val()){var t=$(this).attr("data-name");return layer.msg(t+"图片必须上传",{zIndex:198910161}),void(e=!1)}}),e&&$.ajax({url:i,method:a,data:o,dataType:"json",start:function(){n.val(s).attr("disabled","disabled")},success:function(t){p=p||t.msg,0==t.code?p&&layer.confirm(p,{title:titleText[language_type],btn:[btnText[language_type]],zIndex:198910161},function(t){layer.close(t),f?window.location.href=f:window.location.reload()}):""!=t.msg&&layer.msg(t.msg,{time:3e3,zIndex:198910161},function(){1==t.status&&window.location.reload()})},error:function(){layer.msg("出现异常,请重试!",{zIndex:198910161})},complete:function(){n.val(r).attr("disabled",!1)}}),!1})}function initCase(){$("#silderPro-caseDetail").sliderPro({width:330,height:330,fade:!0,arrows:!0,buttons:!1,fullScreen:!0,smallSize:300,mediumSize:1e3,largeSize:3e3,thumbnailArrows:!0,autoplay:!1,thumbnailWidth:50,thumbnailHeight:50})}function initGoods(){$("#silderPro-goodsDetail").sliderPro({width:330,height:330,fade:!0,arrows:!0,buttons:!1,fullScreen:!0,smallSize:300,thumbnailArrows:!0,autoplay:!1,thumbnailWidth:50,thumbnailHeight:50})}function downLoadFiles(t){var e=$('
');e.attr("action",t),e.appendTo($("body")),e.submit()}function getRegionList(t){$.ajax({url:"/api/region",method:"get",data:{region_id:t.id},dataType:"json",success:function(e){var n=e.data[0].id;setSelectOptions(e.data,t.type),"city"===t.type&&getRegionList({id:n,type:"district"})}})}function setSelectOptions(t,e){$(".gw-"+e).html("");for(var n=0;n"+t[n].name+"";$(".gw-"+e).append(i)}}function _refreshHeight(t){var e=$(t).closest(".gw-browse-component"),n=$(t).closest(".gw-browse-container"),i=$(t).closest(".gw-browse-grid");e.height("");var a=i.height();content_height=e.height();var o=n.position().top+e.position().top+content_height;o>a&&i.height(o)}function customReport(){if(!$(".gw-browse-module:not(.fixed-bottom):not([name='悬浮组件']):not([name='顶部导航']):last").nextAll(".article-detail-container, .search-detail-container, .case-detail-container, \n .goods_audio_course_detail-container, .goods_building_detail-container, .goods_compare_detail-container,\n .goods-detail-container, .goods_live_course_detail-container, .goods_rental_detail-container,\n .goods_special_column_detail-container, .goods_text_course_detail-container, .goods_video_course_detail-container,\n .photos-detail-container, .shop_goods_detail-container, .shop-store-detail-container").length){var t=$(".gw-browse-module:not(.fixed-bottom):not([name='悬浮组件']):not([name='顶部导航']):last .gw-browse-module-content:last"),e=$(".gw-browse-module:not(.fixed-bottom):not([name='悬浮组件']):not([name='顶部导航']):last .gw-browse-module-content:last .text-component a[href^='https://beian.miit.gov.cn']:last")[0],n="";e&&(n=window.getComputedStyle(e).getPropertyValue("color"));var i=$(".friendly_link");t.append(i);var a=$(".report");a.find("a").css("height","28px"),t.append(a),n&&(i.find("a,p").css("color",n),i.find("p").css("font-weight","bold"),a.find("a span").css("color",n),a.find("a").css("color",n))}}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Effect={},Effect.init=function(t){var e=document.getElementById("module-bg-effect-"+t);return e.width=$("#gw-module-"+t).width(),e.height=$("#gw-module-"+t+" .gw-browse-module-content").height(),e.getContext("2d").clearRect(0,0,e.width,e.height),e};var BlackMan=function(){function t(t){t.context.fillStyle="rgba(0,0,0,0.07)",t.context.fillRect(0,0,t.element.width,t.element.height),t.context.fillStyle="#0F0",t.context.font=t.config.fontsize+"px arial";for(var e=0;et.element.height&&Math.random()>.9&&(t.config.drop[e]=0)}}function e(e){for(var n=Effect.init(e),i="abcdefghijklmnopqrstuvwxyz",a={element:n,config:{string1:i.split(""),fontsize:20,drop:[]}},o=a.element.width/a.config.fontsize,r=0;r0){var o=c.createLinearGradient(e.x,e.y,u[i].x,u[i].y);o.addColorStop(0,e.color),o.addColorStop(1,u[i].color),c.strokeStyle=o,c.globalAlpha=a,c.beginPath(),c.moveTo(e.x,e.y),c.lineTo(u[i].x,u[i].y),c.stroke(),c.globalAlpha=1}}}function r(){for(var t=0;tl.width)&&(u[t].dx=-u[t].dx),(n-p<0||n+p>l.height)&&(u[t].dy=-u[t].dy),u[t].x+=u[t].dx,u[t].y+=u[t].dy,a(u[t]),o(u[t],t)}}function s(){c.clearRect(0,0,l.width,l.height),r()}function d(t){l=Effect.init(t),c=l.getContext("2d"),u.length=0;for(var e=0;e=e.element.width?(n.vx=-n.vx,n.x+=n.vx):t.y<=0||t.y>=e.element.height?(n.vy=-n.vy,n.y+=n.vy):n={x:n.x+n.vx,y:n.y+n.vy,vx:n.vx,vy:n.vy},n}function i(t,e,n){t=t||e.context;for(var i=0,a=e.config.count;ie.config.dist&&dist<=e.config.e_dist&&(e.points[i].x=e.points[i].x+(n.x-e.points[i].x)/20,e.points[i].y=e.points[i].y+(n.y-e.points[i].y)/20),dist<=e.config.e_dist&&(t.lineWidth=1,t.strokeStyle="rgba("+e.config.stroke+","+(1-dist/e.config.e_dist)+")",t.beginPath(),t.moveTo(e.points[i].x,e.points[i].y),t.lineTo(n.x,n.y),t.stroke()))}}return t}();Effect.Particle=Particle,Maps={createMap:function(t,e,n){var i=new BMapGL.Map(t);return i.centerAndZoom(new BMapGL.Point(e,n),16),i},setMapEvent:function(t){t.enableScrollWheelZoom(),t.enableKeyboard(),t.enableDragging(),t.enableDoubleClickZoom()},addMapControl:function(t,e,n,i){function a(t,e,n){this.defaultAnchor=BMAP_ANCHOR_TOP_RIGHT,this.defaultOffset=new BMapGL.Size(20,20),this.lng=t,this.lat=e,this.addr=n}var o=new BMapGL.ScaleControl;o.setUnit(BMAP_UNIT_METRIC),t.addControl(o);var r=new BMapGL.ZoomControl({anchor:BMAP_ANCHOR_TOP_LEFT});t.addControl(r),a.prototype=new BMapGL.Control,a.prototype.initialize=function(i){var a=this,o=document.createElement("img");return o.style.backgroundColor="white",o.style.width="26px",o.setAttribute("src","/images/location.png"),o.setAttribute("class","hide"),o.setAttribute("data-toggle","modal"),o.setAttribute("data-target","#mydialog_map"),o.setAttribute("data-backdrop","1"),o.setAttribute("data-addr","1"),o.setAttribute("data-lng",n),o.setAttribute("data-lat",e),o.onclick=function(t){var e=Maps.GetSupportedMapActions(),n="";e.map(function(t){n=n+"
  • "+t.name+"
  • "}),$("#mydialog_map .modal-body ul").html(""+n)},t.getContainer().appendChild(o),o};var s=new a(e,n,i);"zh-cn"===$("#_language_type").val()&&t.addControl(s)},addMarkerClickHandler:function(t,e){t.addEventListener("click",function(){t.openInfoWindow(e)})},createInfoWindow:function(t,e){var n={width:200,title:t,enableMessage:!1};return new BMapGL.InfoWindow(e,n)},addMapOverlay:function(t,e,n,i,a){var o=new BMapGL.Point(i,a),r=new BMapGL.Marker(o,{title:"可移动改变位置"});t.addOverlay(r);var s=new BMapGL.Label(e,{offset:new BMapGL.Size(25,5)});r.setLabel(s);var d=Maps.createInfoWindow(e,n);return Maps.addMarkerClickHandler(r,d),r},initMap:function(t,e,n,i,a){var o=Maps.createMap(t,i,a);return Maps.setMapEvent(o),Maps.addMapControl(o,i,a,e),Maps.addMapOverlay(o,e,n,i,a)},txMapToBdMap:function(t,e){var n=52.35987755982988,i=e,a=t,o=Math.sqrt(i*i+a*a)+2e-5*Math.sin(a*n),r=Math.atan2(a,i)+3e-6*Math.cos(i*n);return e=o*Math.cos(r)+.0065,t=o*Math.sin(r)+.006,{lng:e,lat:t}},bMapToQQMap:function(t,e){var n=3.141592653589793,i=parseFloat(t)-.0065,a=parseFloat(e)-.006,o=Math.sqrt(i*i+a*a)-2e-5*Math.sin(a*n),r=Math.atan2(a,i)-3e-6*Math.cos(i*n),t=(o*Math.cos(r)).toFixed(7),e=(o*Math.sin(r)).toFixed(7);return{lng:t,lat:e}},GetPlatform:function(){var t={};try{var e=navigator.userAgent,n=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),i=e.match(/(Android);?[\s/]+([\d.]+)?/),a=function(){if(/iP(hone|od|ad)/.test(navigator.platform)){var t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3]||0,10)]}}(),o=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)\./);if(t)return parseInt(t[1],10)}(),r=a&&a[0]>=9,s=n&&i&&o&&o>18,d=!1;wx.miniProgram.getEnv(function(t){t.miniprogram&&(d=!0)}),t={trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),iOS:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weChat:e.indexOf("MicroMessenger")>-1,UC:e.indexOf("UCBrowser")>-1,u3:e.indexOf("U3")>-1,chrome:e.indexOf("Chrome")>-1,windowsPhone:e.indexOf("Windows Phone")>-1,samsung:e.indexOf("Samsung")>-1,QQ:null!=e.match(/\sQQ/i)&&" qq"==e.match(/\sQQ/i).toLowerCase(),isChrome:n,isAndroid:i,iosVersion:a,chromeVersion:o,ios9:r,chrome18:s,isMiniProgram:d}}catch(t){}return t},GetSupportedMapActions:function(){var t=Maps.GetPlatform();return t.android?t.weChat?t.isMiniProgram?Maps.GetMiniprogramSupportedMapActions():Maps.GetWebSupportedMapActions():Maps.GetAndroidSupportedMapActions():t.iOS?t.weChat?t.isMiniProgram?Maps.GetIOSMinprogramSupportedMapActions():Maps.GetIOSWechatSupportedMapActions():Maps.GetIOSSupportedMapActions():Maps.GetWebSupportedMapActions()},getActionData:function(t,e,n,i,a){var o={platform:t,type:e};Maps.OpenMapWithAction(o,n,i,a)},OpenMapWithAction:function(t,e,n,i){var a=t.platform,o=t.type,r="",s=!1;if("ios"==a)if("amap"==o)r="iosamap://navi?sourceApplication=xlwx&poiname="+i+"&lat="+n+"&lon="+e+"&dev=0";else if("baidu"==o)r="baidumap://map/navi?location="+n+","+e+"&query="+i;else if("tencent"==o){var d=Maps.bMapToQQMap(e,n);r="qqmap://map/marker?marker=coord:"+d.lat+","+d.lng+";title:"+i+"&referer=RBMBZ-VOACI-W7ZGO-5KPTA-6TDBV-SXFIY"}else"apple"==o&&(r="http://maps.apple.com/?sll="+n+","+e+"&address="+i);else if("android"==a){if("baidu"==o)r="bdapp://map/navi?location="+n+","+e+"&query="+i;else if("amap"==o)r="androidamap://navi?sourceApplication=xlwx&poiname="+i+"&lat="+n+"&lon="+e+"&dev=0&style=2";else if("tencent"==o){var l=Maps.bMapToQQMap(e,n);r="qqmap://map/marker?marker=coord:"+l.lat+","+l.lng+";title:"+i+"&referer=RBMBZ-VOACI-W7ZGO-5KPTA-6TDBV-SXFIY"}}else{if("miniProgram"===a){var c=Maps.bMapToQQMap(e,n);return console.log(c),wx.openLocation({latitude:Number(c.lat),longitude:Number(c.lng),name:i,address:i,scale:18,infoUrl:""}),!1}"baidu"==o&&(r="http://api.map.baidu.com/marker?location="+n+","+e+"&title=位置&content="+i+"&output=html&output=html&src=webapp.baidu.openAPIdemo",s=!0)}void 0!==r&&r.length>0&&(s?window.open(r,"_blank"):window.location.href=r)},GetIOSMinprogramSupportedMapActions:function(){return[{name:"打开地图",platform:"miniProgram",type:""}]},GetIOSWechatSupportedMapActions:function(){return[{name:"百度地图",platform:"web",type:"baidu"}]},GetIOSSupportedMapActions:function(){return[{name:"百度地图",platform:"ios",type:"baidu"},{name:"高德地图",platform:"ios",type:"amap"}]},GetWebSupportedMapActions:function(){return[{name:"百度地图",platform:"web",type:"baidu"}]},GetMiniprogramSupportedMapActions:function(){return[{name:"打开地图",platform:"miniProgram",type:""}]},GetAndroidSupportedMapActions:function(){return[{name:"百度地图",platform:"android",type:"baidu"},{name:"高德地图",platform:"android",type:"amap"}]}},Swipers={init:function(t){var e={direction:t.direction,effect:t.effect,loop:!!t.loop&&t.loop,observer:!0,observeParents:!0,on:{init:function(){swiperAnimateCache(this),swiperAnimate(this)},slideChangeTransitionStart:function(){},slideChangeTransitionEnd:function(){swiperAnimate(this)}},parallax:!!t.parallax};"1"!=t.full&&(e.width=t.width,e.height=t.height),"1"!=t.pagination&&"2"!=t.pagination||(e.pagination={el:"#swiper-pagination-"+t.id,clickable:!0,renderBullet:function(t,e){return"
    \n \n
    '}}),"1"==t.navigation&&(e.navigation={prevEl:"#swiper-button-"+t.id+" .swiper-button-prev",nextEl:"#swiper-button-"+t.id+" .swiper-button-next"}),"0"!=t.autoplay||"true"==t.autoplay?e.autoplay={delay:t.speed,disableOnInteraction:t.disableOnInteraction}:e.autoplay=!1,"coverflow"==t.effect&&(e.slidesPerView="auto",e.centeredSlides=!0,e.grabCursor=!0,e.loop=!0,e.coverflow={rotate:0,stretch:10,depth:250,modifier:1,slideShadows:!0});var n="#swiper-container-"+t.id;$(n).find(".swiper-wrapper .swiper-slide").attr("style",""),$(n).find(".swiper-wrapper").attr("style",""),$(n).attr("class","swiper-container");if(t.thumbs&&"coverflow"!=t.effect){var i="";"top"!=t.thumbs&&"bottom"!=t.thumbs||(i=new Swiper("#swiper-container-thumbs-"+t.id,{spaceBetween:30,centeredSlides:!0,slidesPerView:"auto",touchRatio:.2,slideToClickedSlide:!0,watchSlidesVisibility:!0,observer:!0,observeParents:!0})),"left"!=t.thumbs&&"right"!=t.thumbs||(i=new Swiper("#swiper-container-thumbs-"+t.id,{direction:"vertical",spaceBetween:30,centeredSlides:!0,slidesPerView:"auto",touchRatio:.2,slideToClickedSlide:!0,watchSlidesVisibility:!0,observer:!0,observeParents:!0})),e.thumbs={swiper:i,autoScrollOffset:1},Swipers["swiper-container-"+t.id]=new Swiper(n,e)}else Swipers["swiper-container-"+t.id]=new Swiper(n,e)},destroy:function(t){t.id,t.id;Swipers["swiper-container-"+t.id]&&Swipers["swiper-container-"+t.id].destroy()}},Videos={init:function(t){var e=document.getElementById("video-"+t.unique_key);"0"==t.muted&&(e.muted=!1),"1"==t.autoplay&&(e.autoplay=!0,e.controls=!0)},addEventListener:function(){$(document).on("click",".video-browse, .video-browse-play",function(){var t=$(this).attr("data-iframe"),e=$(this).attr("data-unique-key"),n=document.getElementById("video-"+e),i=$("#video-"+e).attr("src");i?"1"==t?($(".video-iframe").attr("src",i),$("#myVideoModal").modal("show")):(n.controls=!0,n.play(),$("#video-bg-"+e).hide()):alert("当前播放的视频地址为空")})}},ScrollNotice={init:function(t){var e={scrollamount:t.scrollamount,direction:t.direction,drag:!1},n="#scrollNotice-container-"+t.id;$(n).liMarquee(e)},destroy:function(t){var e="#scrollNotice-container-"+t.id;$(e).liMarquee("destroy")},update:function(t){var e="#scrollNotice-container-"+t.id;$(e).liMarquee("update")}},Pagination={init:function(t,e,n){var i={current:e?e.current:1,totalData:e?e.total:1,showData:e?e.pageSize:12,mode:"fixed",coping:!0,homePage:"<<",endPage:">>",callback:function(t){n(t)}},a="#pagination-container-"+t.id;$(a).pagination(i)}},DPlayerVideos={init:function(t){console.log(t);var e=new DPlayer({container:document.getElementById(t.id+"-dplayer-video"),mutex:!1,theme:"#b7daff",loop:!1,lang:"zh-cn",hotkey:!0,preload:"auto",volume:.7,playbackSpeed:[.5,.75,1,1.25,1.5,2],logo:"",video:{url:t.detail.video,pic:t.detail.imgSrc,type:"customHls",customType:{customHls:function(t,e){console.log(1212),console.log(t.src);var n=new Hls;n.on(Hls.Events.ERROR,function(t,e){}),n.loadSource(t.src),n.attachMedia(t)}}}});e.on("play",function(){console.log("播放")}),e.on("pause",function(){console.log("暂停")}),e.on("ended",function(){console.log("播放结束")}),e.on("error",function(){console.log("播放异常")}),e.on("timeupdate",function(n){parseInt(e.video.currentTime)>=t.detail.video_second&&0==t.detail.is_buy&&0!=t.detail.video_second&&(e.pause(),$("#"+t.id+"-dplayer-video").hide(),$(".trySee").show())})}},CountUps={init:function(t){var e=t.id+"-gw-countup",n=new CountUp(e,t.countup.start,t.countup.end,t.countup.decimal,t.countup.transition,t.countup.options);return n.start(),n},handleScroll:function(t){return $("#"+t.id+"-gw-countup").offset().top-$(window).height()-$(document).scrollTop()<0&&$("#"+t.id+"-gw-countup").offset().top-$(document).scrollTop()>0?(CountUps.init(t),!1):($("#"+t.id+"-gw-countup").text(t.countup.start),!0)}},rangeSlider={init:function(t){var e={skin:"big",min:t.price_set.range_min,max:t.price_set.range_max,from:t.price_set.from?t.price_set.from:t.price_set.range_min,to:t.price_set.to?t.price_set.to:t.price_set.range_max,type:"double",step:1,prefix:"",postfix:"",prettify:!0,hasGrid:!1,onChange:function(e){$("#slider-range-panel-"+t.id+" .gw-price1").html(e.from),$("#slider-range-panel-"+t.id+" .gw-price2").html(e.to)}},n="#slider-range-"+t.id;$(n).ionRangeSlider(e)}},ImgModal={copyText:function(t){var e=document.createElement("input");e.value=t,e.style.opacity=0,e.style.position="absolute",document.body.insertBefore(e,document.body.childNodes[0]),e.select(),document.execCommand("copy"),alert("复制成功"),e.remove()},getStyle1:function(t){var e='
    \n
    \n

    长按下方二维码

    \n \x3c!-- 加我微信 --\x3e\n
    \n \n
    \n
    ';return t.qrcode&&(e+='点击复制'),e+='

    打开微信扫一扫

    \n
    \n
    \n
    '},getStyle2:function(t){return'
    \n
    \n

    '+t.title+'

    \n
    \n \n
    \n
    \n

    扫一扫或者长按识别

    \n

    立即访问

    \n
    \n \n
    \n
    '},getStyle3:function(t){return'
    \n
    \n

    '+t.qrcode+" 复制

    \n
    \n \n
    \n
    \n 下载二维码\n

    用微信打开扫一扫二维码或

    \n

    搜索WeChat ID即可成为朋友

    \n
    \n \n
    \n
    '},init:function(){$("*[data-type='custom-img-modal']").on("click",function(t){ var e={qrcodePath:$(this).attr("data-qrcodepath"),qrcode:$(this).attr("data-qrcode"),scrollTop:$(this).scrollTop(),title:$(this).attr("data-title")?$(this).attr("data-title"):"长按下方二维码"},n=$(this).attr("data-style")?$(this).attr("data-style"):"1";$("body").find(".gw-custom-img-modal").length?($("body").find(".gw-custom-img-modal .qr-code-img").attr("src",e.qrcodePath),$("body").find(".gw-custom-img-modal .gw-copywxcount").attr("data-qrcode",e.qrcode),"2"==n&&$("body").find(".gw-custom-img-modal .model-title").html(e.title)):$("body").append(ImgModal["getStyle"+n](e)),$(".gw-custom-img-modal").show(),t.preventDefault()}),$("html").on("click",".gw-custom-img-modal",function(t){$(this).hide()}),$("html").on("click",".gw-custom-img-modal .gw-copywxcount",function(t){t.stopPropagation(),ImgModal.copyText($(this).attr("data-qrcode"))})}},SearchModal={getHtml:function(t){return"\n \n
    \n \n \n
    '},init:function(){$("*[data-type='custom-search-modal']").on("click",function(t){var e={primaryColor:$(this).parents(".general_components-basic").find(".gw-general-primaryColor").val(),types:$(this).parents(".general_components-basic").find(".gw-general-types").val(),languageType:$(this).parents(".general_components-basic").find(".gw-general-languageType").val()};$("body").find(".gw-custom-search-modal").length||$("body").append(SearchModal.getHtml(e)),$(".gw-search-popup").addClass("popup-visible")}),$(document).keydown(function(t){27===t.keyCode&&$(".gw-search-popup").removeClass("popup-visible")}),$(document).on("click",".close-search,.search-popup .overlay-layer",function(){$(".gw-search-popup").removeClass("popup-visible")})}},function(t,e){"function"==typeof define&&define.amd?define(e):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=e():t.ResizeSensor=e()}("undefined"!=typeof window?window:this,function(){function t(t,e){var n=Object.prototype.toString.call(t),i="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,a=0,o=t.length;if(i)for(;a=s&&(c+=o.value),"max"===o.mode&&d<=s&&(c+=o.value),l[u]||(l[u]=""),c&&-1===(" "+l[u]+" ").indexOf(" "+c+" ")&&(l[u]+=" "+c));for(var t in m)m.hasOwnProperty(t)&&(l[m[t]]?this.element.setAttribute(m[t],l[m[t]].substr(1)):this.element.removeAttribute(m[t]))}}function o(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new a(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,function(){e.elementQueriesSetupInformation.call()}))}function r(t,e,n,i){if(void 0===f[t]){f[t]=[];var a=h.length;p.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",p.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",h.push(t)}f[t].push({mode:e,property:n,value:i})}function s(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function d(t){var e=s(t);for(var n in f)if(f.hasOwnProperty(n))for(var i=e(n,t),a=0,r=i.length;aa[t].minWidth&&(n=t);if(n||(n=r),s!==n)if(d[n])i[s].style.display="none",i[n].style.display="block",s=n;else{var l=new Image;l.onload=function(){i[n].src=o[n],i[s].style.display="none",i[n].style.display="block",d[n]=!0,s=n},l.src=o[n]}else i[n].src=o[n]}var i=[],a=[],o=[],r=0,s=-1,d=[];for(var l in e.children)if(e.children.hasOwnProperty(l)&&e.children[l].tagName&&"img"===e.children[l].tagName.toLowerCase()){i.push(e.children[l]);var c=e.children[l].getAttribute("min-width")||e.children[l].getAttribute("data-min-width"),u=e.children[l].getAttribute("data-src")||e.children[l].getAttribute("url");o.push(u);var m={minWidth:c};a.push(m),c?e.children[l].style.display="none":(r=i.length-1,e.children[l].style.display="block")}s=r,e.resizeSensorInstance=new t(e,n),n()}function c(){for(var t=s(),e=t("[data-responsive-image],[responsive-image]"),n=0,i=e.length;n img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",p.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(p),w=!0);for(var n=0,i=document.styleSheets.length;nul>li>.second-icon").on("click",".gw-nav-cont-mobile .menu-list>ul>li>.second-icon",function(){return $(this).parent("li").next(".three-list").slideToggle(),$(this).toggleClass("fa-angle-right"),$(this).toggleClass("fa-angle-down"),!1}),$(document).off("click",".gw-nav-cont-mobile .first-nav-cont .second-icon").on("click",".gw-nav-cont-mobile .first-nav-cont .second-icon",function(){return $(this).parent(".first-nav-cont").siblings(".menu-list").slideToggle(),$(this).toggleClass("fa-angle-right"),$(this).toggleClass("fa-angle-down"),!1}),$(document).off("mouseenter",".gw-nav-cont-row .gw-nav").on("mouseenter",".gw-nav-cont-row .gw-nav",function(){$(this).parent(".gw-nav-cont-row").siblings(".menu-list-row").css("display","none");var t=parseInt($(this).attr("data-selfid"));t+1&&$(this).parent().siblings(".menu-list-row").each(function(){var e=$(this).parent().parent().css("width");$(this).css("width",e),$(this).attr("parent_id")==t&&($(this).css("display","block"),$(this).parents(".nav-component").find(".gw-browse-component").css("z-index","3"),$(this).parents(".nav-component").siblings(".nav-component").find(".gw-browse-component").css("z-index","2"))})}),$(document).off("mouseleave",".menu-list-row").on("mouseleave",".menu-list-row",function(){$(this).css("display","none"),$(this).parents(".nav-component").find(".gw-browse-component").css("z-index","2")}),$(document).off("mouseleave",".nav-component .gw-browse-component").on("mouseleave",".nav-component .gw-browse-component",function(){$(this).find(".menu-list-row").css("display","none")}),$(document).off("click",".arrow-icon").on("click",".arrow-icon",function(t){if("true"==$(this).attr("data-first_menu_active"))return $(this).parent(".classified-name-box").siblings(".child-classified-list").slideToggle(),$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active"),t.stopPropagation(),!1;var e=$(this).hasClass("active");return $(this).parent().siblings(".child-classified-list").length?($(this).parent(".classified-name-box").parent("li").siblings("li").children(".child-classified-list").slideUp(),$(this).parent(".classified-name-box").parent("li").siblings("li").find(".arrow-icon").removeClass("active")):($(this).siblings(".child-classified-list").slideUp(),$(this).siblings(".classified-list-cont").find(".arrow-icon").removeClass("active")),e?($(this).parent(".classified-name-box").parent("li").find(".child-classified-list").slideUp(),$(this).removeClass("active")):($(this).parent(".classified-name-box").parent("li").children(".child-classified-list").slideDown(),$(this).addClass("active")),t.stopPropagation(),!1}),$(".module-bg-effect").each(function(){var t=$(this).attr("data-id"),e=$(this).attr("data-effect");Effect[e](t)}),setPaddings(),$(".gw-jump-wechat").click(function(){$(".wechat-img").attr("src",$(this).data("src"))}),$(".gw-jump-image").click(function(){var t=$(".gw-jump-image").index($(this));n(t,$(".gw-jump-image"))}),$(".imageModal").click(function(){$(".imageModal").slideUp()});var n=function(t,e){var n=e,i=document.querySelectorAll(".pswp")[0],a=n.map(function(){return{src:$(this).attr("src"),w:$(this).width()?5*$(this).width():300,h:$(this).height()?5*$(this).height():200}}),o={index:t,history:!1,focus:!1,spacing:.05,tapToClose:!0,tapToToggleControls:!1,fullscreenEl:!1,shareEl:!1,captionEl:!1,showAnimationDuration:0,hideAnimationDuration:0};new PhotoSwipe(i,PhotoSwipeUI_Default,a,o).init()};$(".goods-detail-style5 .gallery-wrapper .gw-trigger-modal").click(function(t){var e=parseInt($(this).attr("data-num"));n(e,$(".goods-detail-style5 .gallery-wrapper .gw-trigger-modal").parent(".gallery-wrapper").find(".gw-img-wrapper").children("img"))}),$(document).on("click",'*[data-type="custom-tigger-modal"]',function(t){var e=parseInt(t.target.dataset.index);n(e,$(this).not("a").children("img"))}),$(".fr-element.fr-view img").parent().not("a").children("img").click(function(t){var e=$(".fr-element.fr-view img").parent().not("a").children("img").index($(this));n(e,$(".fr-element.fr-view img").parent().not("a").children("img"))}),$(".goods-detail-container .gw-scale-img").on("click",function(t){var e=$("#silderPro-goodsDetail-style2 .sp-slides,.goods-detail-box1 .swiper-slide").find("img").index($(this));n(e,$("#silderPro-goodsDetail-style2 .sp-slides,.goods-detail-box1 .swiper-slide").find("img"))}),$(".gw-go-anchor").click(function(){var t=$(this).attr("href");if(-1!=t.indexOf("#")){var e=window.location.pathname,n=t.split("#");n[0]==e&&scrollToView(n[1])}}),initForm(),initFormPlus(),initDynamicLoad(),Videos.addEventListener(),$(".datetime").datepicker({format:"yyyy-mm-dd"}),$(document).on("click","[href^='mailto:']",function(t){eventsAnalyst(3,t,7)}),$(document).on("click","[href^='http://wpa.qq.com/msgrd']",function(t){eventsAnalyst(4,t,7)}),$(document).on("click","[data-target='#myWechatModal']",function(t){eventsAnalyst(5,t)}),$(document).on("click","[href^='tel:']",function(t){eventsAnalyst(1,t,4)}),initCase(),initGoods(),initModalForm(),$(document).off("click",".gw-attribute-key-submit").on("click",".gw-attribute-key-submit",function(){var t={};$(this).parents(".attribute-menu-list").find(".gw-attribute-value-row.active").each(function(){if($(this).find(".string").length)$(this).find(".string").val()&&(t[$(this).attr("data-key")]?t[$(this).attr("data-key")].push({string:$(this).find(".string").val()}):(t[$(this).attr("data-key")]=[],t[$(this).attr("data-key")].push({string:$(this).find(".string").val()})));else if($(this).find(".number").length){var e="";$(this).find(".number").each(function(t){$(this).val()&&(e=t?e+"-"+$(this).val():$(this).val())}),e&&(t[$(this).attr("data-key")]?t[$(this).attr("data-key")].push({number:e}):(t[$(this).attr("data-key")]=[],t[$(this).attr("data-key")].push({number:e})))}else t[$(this).attr("data-key")]?t[$(this).attr("data-key")].push($(this).attr("data-value")):(t[$(this).attr("data-key")]=[],t[$(this).attr("data-key")].push($(this).attr("data-value")))});var e=$(".gw-attr-cat-type").val();window.location.href="?attrs="+JSON.stringify(t)+"&type="+e}),$(".gw-attr-select").change(function(){if($(this).attr("data-status")){var t=$(this).attr("data-key"),e=$(this).val(),n={};n[t]=[e];var i=$(".gw-attr-cat-type").val();window.location.href="?attrs="+JSON.stringify(n)+"&type="+i}}),$(document).off("click",".gw-attribute-search-submit").on("click",".gw-attribute-search-submit",function(){var t={},e=$(this).siblings(".gw-attribute-keywords").val();$(this).parents(".attribute-list-panel").find(".gw-attr-select").each(function(){var e=$(this).attr("data-key"),n=$(this).find("option:selected").attr("data-value");n&&(t[e]?t[e].push(n):(t[e]=[],t[e].push(n)))});var n=$(".gw-attr-cat-type").val();window.location.href="?attrs="+JSON.stringify(t)+"&keywords="+e+"&type="+n}),$(document).off("click",".gw-attribute-value-row").on("click",".gw-attribute-value-row",function(){$(this).toggleClass("active"),$(this).find(".number").length&&$(this).addClass("active"),$(this).find(".string").length&&$(this).addClass("active"),"全部"===$(this).attr("data-value")&&$(this).hasClass("active")&&($(this).siblings(".gw-attribute-value-row").removeClass("active"),$(this).siblings(".gw-attribute-value-row").find(".attr-input").val("")),$(this).hasClass("active")&&$(this).siblings(".gw-attribute-value-row").each(function(){"全部"==$(this).attr("data-value")&&$(this).removeClass("active")}),!$(this).hasClass("active")||$(this).find(".number").length||$(this).find(".string").length||$(this).parents(".attribute-menu-list").find(".gw-attribute-key-submit").trigger("click"),$(this).hasClass("active")||$(this).find(".number").length||$(this).find(".string").length||$(this).parents(".attribute-menu-list").find(".gw-attribute-key-submit").trigger("click")})}),$(document).on("change",".gw-province",function(){var t=$(this).val();region=t,getRegionList({id:$(this).find("option:selected").data("id"),type:"city"})}),$(document).on("change",".gw-city",function(){$(this).val();getRegionList({id:$(this).find("option:selected").data("id"),type:"district"})}),$(window).on("load",function(){customReport()});