(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15b8eb16"],{"09ce":function(e,t,i){"use strict";i("435d")},"0fc1":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className},[i("div",{domProps:{innerHTML:e._s(e.css)}}),i("div",{style:{height:e.datas.show_search.value?e.datas.search_height.value+(e.datas.title_list.value&&e.datas.title_list.value.length>0?e.datas.title_height.value-1:0)+"px":e.datas.title_height.value+"px"}}),i("div",{staticClass:"advertising-preview",style:{width:e.clientWidth+"px",top:e.isfollow?"2.875rem":""}},[e.datas.show_search.value?[1==e.datas.logo_style.value?i("div",{staticClass:"weixin-title",class:[{hidestyle:e.amout&&e.datas.scroll_hide_search.value}]},[e.datas.show_logo.value?i("div",{staticClass:"weixin-logo-one"},[i("img",{attrs:{src:e.datas.logo.value||e.emptyImage},on:{click:e.gotoUrl}})]):e._e(),i("div",{staticClass:"weixin-sousuo",class:{w:3==e.datas.choose_search_style.value,center:2==e.datas.choose_search_style.value,padding:3==e.datas.choose_search_style.value},on:{click:e.tosearch}},[1==e.datas.choose_search_style.value||2==e.datas.choose_search_style.value?i("i",{staticClass:"iconfont icon-all_search_2"}):e._e(),i("div",[e._v(e._s(e.datas.search_title.value))])]),3==e.datas.choose_search_style.value?i("span",{staticClass:"block",class:{borderOne:3==e.datas.choose_search_style.value},on:{click:e.tosearch}},[e._v("搜索")]):e._e()]):i("div",{staticClass:"weixin-title",class:[{hidestyle:e.amout&&e.datas.scroll_hide_search.value}]},[3==e.datas.choose_search_style.value?i("span",{staticClass:"block",class:{borderTwo:3==e.datas.choose_search_style.value},on:{click:e.tosearch}},[e._v("搜索")]):e._e(),i("div",{staticClass:"weixin-sousuo",class:{w:3==e.datas.choose_search_style.value,center:2==e.datas.choose_search_style.value,padding:3==e.datas.choose_search_style.value},on:{click:e.tosearch}},[1==e.datas.choose_search_style.value||2==e.datas.choose_search_style.value?i("i",{staticClass:"iconfont icon-all_search_2"}):e._e(),i("div",[e._v(e._s(e.datas.search_title.value))])]),e.datas.show_logo.value?i("div",{staticClass:"weixin-logo-two"},[i("img",{attrs:{src:e.datas.logo.value||e.emptyImage},on:{click:e.gotoUrl}})]):e._e()])]:e._e(),e.datas.title_list.value&&e.datas.title_list.value.length>0?i("div",{staticClass:"weixin-bd"},[i("ul",{staticClass:"weixin-menu",class:{scroll:!0,"not-pc-style":3!=e.fun.getPhoneEnv()},style:{fontWeight:e.datas.title_style.value.includes("1")?"bold":"",fontStyle:e.datas.title_style.value.includes("2")?"italic":""},attrs:{id:"weixin-menu"}},e._l(e.datas.title_list.value,(function(t,n){return i("li",{key:n,staticClass:"menu-item",on:{click:function(i){return e.selectedMenu(n,t)}}},[1==t.is_minApp?i("div",{staticClass:"menu-item-title",class:{current:e.isChoose==e.urlParse(t.h5_link)||e.page_id==e.urlParse(t.h5_link)}},["2"==e.datas.choose_style.value?i("img",{attrs:{src:t.image||e.emptyImage}}):e._e(),i("span",[e._v(e._s(t.text))])]):e._e(),2==t.is_minApp?i("div",{staticClass:"menu-item-title",domProps:{innerHTML:e._s(t.html)},on:{click:function(e){e.stopPropagation()}}}):e._e()])})),0)]):e._e()],2)])},o=[],a=(i("99af"),i("a9e3"),i("9911"),i("d81d"),i("b64b"),i("ac1f"),i("466d"),i("5319"),i("4d63"),i("c607"),i("2c3e"),i("25f0"),i("2042")),s=i.n(a),r=function(){var e=this.datas,t=e.title_height,i=e.title_size,n=e.choose_title_color,o=e.title_bg_color,a=e.title_color,s=e.navigate_color,r=e.preview_color,l=e.search_color,d=e.font_color,c=e.search_height,u=e.border_style,h=e.border_color,p=e.search_border_radius,f=e.border_radius;return"\n\t\t .component-".concat(this.id," .weixin-title{\n height: ").concat(c.value,"px;\n background-color: ").concat(r.value||"#ffffff",";\n\t }\n\n\t .component-").concat(this.id," .weixin-sousuo {\n\t background-color: ").concat(l.value,";\n\t color: ").concat(d.value,";\n\t border-radius: ").concat(p.value,"px;\n border: solid ").concat(u.value,"px ").concat(h.value,";\n\t }\n\t .component-").concat(this.id," .weixin-logo-one img, .component-").concat(this.id," .weixin-logo-two img{\n\t border-radius: ").concat(f.value,"px;\n\t }\n\n .component-").concat(this.id," .advertising-preview .weixin-menu{\n height: ").concat(t.value,"px;\n font-size: ").concat(i.value,"px;\n color: ").concat(a.value||"#333333",";\n background-color: ").concat(s.value||"#ffffff",";\n }\n .component-").concat(this.id," .advertising-preview .weixin-menu .menu-item {\n height: ").concat(t.value,"px;\n line-height: ").concat(t.value,"px;\n }\n .component-").concat(this.id," .advertising-preview .weixin-menu .current{\n color: ").concat(n.value||"#333333",";\n background-color: ").concat(o.value||"#ffffff",";\n }\n\n ")},l={props:["id","datas","isfollow"],data:function(){return{amout:!1,selectedMenuIndex:0,clientWidth:"375",emptyImage:s.a,isChoose:"",page_id:""}},computed:{css:function(){return""},className:function(){var e=["component-wrapper","component-".concat(this.id)];return e}},watch:{$route:function(e,t){this.isChoose=e.path,this.page_id=this.fun.getKey("page_id")}},mounted:function(){var e=this;this.isChoose=this.$route.path,this.page_id=this.fun.getKey("page_id"),3==this.fun.getPhoneEnv()?this.clientWidth=375:this.clientWidth=document.body.clientWidth,this.slider(),this.$nextTick((function(){e.initButtons()}))},activated:function(){var e=this;this.isChoose=this.$route.path,this.page_id=this.fun.getKey("page_id"),3==this.fun.getPhoneEnv()?this.clientWidth=375:this.clientWidth=document.body.clientWidth,this.slider(),this.$nextTick((function(){e.initButtons()}))},methods:{initButtons:function(){for(var e=0;e').concat(this.datas.title_list.value[e].text,""),this.datas.title_list.value[e].html='').concat(t.outerHTML,"")}this.datas.title_list.value.reverse().reverse()},slider:function(){var e=this;window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;e.amout=!(t<90)}},tosearch:function(){this.$router.push(this.fun.getUrl("search",{fromHome:1}))},gotoUrl:function(){var e=this.datas.notice_link&&this.datas.notice_link.value||{};2==Number(e.is_h5)&&this.fun.isApp()?YDB.MiniWX(e.gh_id,e.minApp_link):1==Number(e.is_h5)&&e.link&&(window.location.href=e.link)},handle_data:function(e){var t={};return Object.keys(e).map((function(i){t[i]=e[i].value})),t},selectedMenu:function(e,t){this.selectedMenuIndex=e,t.h5_link&&t.h5_link!==window.location.href&&(window.location.href=this.fun.changeURLArg(t.h5_link,"mid",this.fun.getKeyByMid()))},urlParse:function(e){if(void 0!=e){var t=e.match(/#\/(\S*)\?i=/);if(t instanceof Array&&void 0!=t[1]){var i="/"+t[1];return"/newDiy"==this.isChoose?this.page_id?(new RegExp("[?|&]page_id=([^&;]+?)(&|#|;|$)").exec(e)||[,""])[1].replace(/\+/g,"%20"):"-1":void 0!=t&&i==this.isChoose?i:"-1"}return"/newDiy"==this.isChoose&&this.page_id?(new RegExp("[?|&]page_id=([^&;]+?)(&|#|;|$)").exec(e)||[,""])[1].replace(/\+/g,"%20"):"-1"}return""}}},d=l,c=(i("a326"),i("2877")),u=Object(c["a"])(d,n,o,!1,null,"29d45d2e",null);t["a"]=u.exports},"3cbd":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".cover .fullScreen[data-v-36866866]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:9999}.cover .fullScreen .full-image[data-v-36866866]{position:relative;width:100%;height:100%}.cover .fullScreen .full-image img[data-v-36866866]{width:100%;height:100%}.cover .fullScreen .full-image .close[data-v-36866866]{position:absolute;right:1rem;top:1rem;color:#fff;font-size:16px}.cover .fullScreen .full-image .close .skip[data-v-36866866]{margin-right:.5rem}.cover .mask-blank .pop[data-v-36866866]{width:65%;position:fixed;z-index:8888;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.cover .mask-blank .pop.pcStyle[data-v-36866866]{width:270px}.cover .mask-blank .pop .pop-image[data-v-36866866]{position:relative}.cover .mask-blank .pop .pop-image img[data-v-36866866]{width:100%;height:100%}.cover .mask-blank .pop .pop-image .icon_close[data-v-36866866]{top:0;right:0;position:absolute;background-color:#333;width:1.5rem;height:1.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:-.75rem;margin-right:-.75rem;border-radius:50%;color:#fff}.minLink[data-v-36866866]{width:100%;height:100%;position:absolute;top:0;left:0}.noPowerShow[data-v-36866866]{width:100%;height:100vh;overflow:hidden;background:#999;position:relative}.noPowerShow .warnTestBox[data-v-36866866]{position:absolute;display:inline-block;top:50%;left:50%;margin-top:-1.5rem;margin-left:-5rem;color:#fff;width:10rem;height:3rem;line-height:3rem;border-radius:.5rem;background:#333}.modal-mask[data-v-36866866]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%}",""]),e.exports=t},"434c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.showPage?i("div",{attrs:{id:"new_diy"}},[1==e.$store.state.isWatchDiypage?[e.top_info.group_title?i("top_navigation",{attrs:{id:e.id,datas:e.top_info}}):e._e(),e._l(e.components,(function(t,n){return[i(t.component_key,{key:n,ref:t.component_key,refInFor:!0,tag:"component",attrs:{isBottom:e.isBottom,lastIndex:e.lastIndex,btnFlag:e.btnFlag,id:t.id,page_id:e.page_id,component_key:t.component_key,datas:t.remote_data,index:n,store_id:e.store_id},on:{refresh:e.refreshComponent}})]})),i("div",{staticClass:"cover"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.fullShow,expression:"fullShow"}],staticClass:"fullScreen"},[i("div",{staticClass:"full-image"},[i("img",{attrs:{src:e.full_screen.image},on:{click:e.turnFullTo}}),i("span",{staticClass:"close"},[i("span",{staticClass:"skip",on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[e._v("跳过")]),e._v(e._s(e.full_screen.show_time))])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1===e.advertising.is_default,expression:"advertising.is_default === 1"}],staticClass:"mask"},[e.advertising.datas&&e.advertising.datas.background_over&&e.popShow?i("div",{staticClass:"modal-mask",style:{backgroundColor:"rgba(0, 0, 0, "+e.advertising.datas.background_over/100+")"}}):e._e(),i("div",{staticClass:"mask-blank"},[e.popShow?i("div",{staticClass:"pop",class:[3==e.fun.getPhoneEnv()?"pcStyle":""]},[i("div",{staticClass:"pop-image"},[i("img",{attrs:{src:e.advertising.image},on:{click:e.turnTo}}),2==e.advertising.url_type?i("div",{staticClass:"minLink",domProps:{innerHTML:e._s(e.advertising.html)},on:{click:function(t){return t.stopPropagation(),e.onClickADUrl.apply(null,arguments)}}}):e._e(),i("div",{staticClass:"icon_close"},[i("i",{staticClass:"iconfont icon-close11",on:{click:e.closePop}})])])]):e._e()])])])]:e._e(),0==e.$store.state.isWatchDiypage?[e._m(0)]:e._e(),e.bottom_info?i("U_foot",{attrs:{id:e.id+"1",diydatas:e.bottom_info}}):e._e()],2):e._e()},o=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"noPowerShow"},[i("div",{staticClass:"warnTestBox"},[e._v("暂无浏览权限!")])])}],a=(i("a9e3"),i("e9c4"),i("99af"),i("b0c0"),i("d81d"),i("caad"),i("2532"),i("9911"),i("d3b7"),i("159b"),i("3ca3"),i("ddb0"),i("9727")),s=i("0fc1"),r=document.documentElement,l=document.body;window.page_idAdvertisings=[],window.page_idFull_screens=[];var d={data:function(){return{page_id:"",clientWidth:"375",page_name:"",isInHome:0,id:"M"+(new Date).getTime(),fullShow:!1,popShow:!1,advertising:{},full_screen:{},top_info:{},bottom_info:"",components:[],showPage:!0,isBottom:!1,btnFlag:!1,isMounted:!1,current_page:1,total_page:0,isLoadMore:!0,lastIndex:"",is_store:!1,store_id:0,isInitVideoScrollFn:!0}},mounted:function(){window.diyHomeScrollTop=0,this.isInHome=1,this.getTemp(),this.isMounted=!0},activated:function(){if(this.isInitVideoScrollFn=!0,3==this.fun.getPhoneEnv()?this.clientWidth=375:this.clientWidth=document.body.clientWidth,window.page_id!=this.fun.getKey("page_id")||window.isInHome)this.isMounted||(this.fun.setWXTitle(""),this.isInHome=1,this.getTemp());else{var e=window.localStorage.getItem("diypage_title");this.fun.setWXTitle(e),window.location.href.indexOf("#/newDiy?")>-1&&setTimeout((function(){window.scrollTo(0,window.diyHomeScrollTop)}),200)}this.isMounted&&(this.isMounted=!1),this.page_id=this.fun.getKey("page_id"),window.page_id=this.fun.getKey("page_id"),window.isInDiy=1,window.addEventListener("scroll",this.debounce(this.handleScroll,50))},deactivated:function(){window.removeEventListener("scroll",this.debounce(this.handleScroll,50))},beforeRouteLeave:function(e,t,i){window.diyHomeScrollTop=document.documentElement.scrollTop||document.body.scrollTop,i()},methods:{getImg:function(e,t){var i=new Image;i.src=e,i.complete?t(Number(i.height)/Number(i.width)):(i.onload=function(){t(Number(i.height)/Number(i.width))},i.onerror=function(){})},onClickADUrl:function(){if(this.fun.isCPS()){var e={mini_route:this.advertising.s_url,mini_id:this.advertising.s_id};"ios"===this.fun.isIosOrAndroid()?miniWXIOS({body:"miniWXIOS",json:JSON.stringify(e)}):miniWXAndroid(JSON.stringify(e))}else;},initAdvertising:function(){var e=this;this.getImg(this.advertising.image,(function(t){var i=document.createElement("script");i.type="text/wxtag-template",i.text='
'),e.advertising.html='').concat(i.outerHTML,""),e.$forceUpdate()}))},getTemp:function(){var e=this;this.showPage=!1;var t="home-page.index",i={page_id:this.fun.getKey("page_id")};this.is_store=!1,this.fun.getKey("store_id")&&(this.store_id=this.fun.getKey("store_id"),this.is_store=!0,t="plugin.store-cashier.frontend.store.get-store-info.get-the-provider",i={page_id:this.fun.getKey("page_id"),store_id:this.fun.getKey("store_id")}),$http.get(t,i,"loading").then((function(t){if(t){if(e.is_store&&t.data.store_decorate&&t.data.store_decorate.datas)return e.showPage=!0,e.components=t.data.store_decorate.datas,e.store_pageInfo=t.data.store_decorate.page_info,e.page_name=e.store_pageInfo&&e.store_pageInfo.page_title?e.store_pageInfo.page_title:e.$store.state.temp.mailInfo.name,-1==t.data.store_decorate.foot_type?e.bottom_info="":1==t.data.store_decorate.foot_type?t.data.store_decorate.foot_id&&t.data.store_decorate.foot_id&&t.data.store_decorate.foot_id.page_info?e.bottom_info=JSON.parse(t.data.store_decorate.foot_id.page_info):e.bottom_info={defaultData:!0}:2==t.data.store_decorate.foot_type&&(t.data.store_decorate.foot_id instanceof Array?e.bottom_info={}:e.bottom_info=JSON.parse(t.data.store_decorate.foot_id.page_info)),e.shareInfo=t.data.store_decorate.page_info||{},e.getShareData(),void e.fun.setWXTitle(e.page_name);if(t.data.item){e.showPage=!0,t.data.item.page&&(e.total_page=t.data.item.page.total_page,e.current_page=t.data.item.page.current_page,e.lastIndex=t.data.item.page.count-1,e.isLoadMore=!0);var i=["U_location","U_stores","U_goodsnearby","U_community","U_goodstores"];e.components=t.data.item.datas,e.components&&e.components.length>0&&e.components.map((function(t){i.includes(t.component_key)&&(e.isLocation=!0)})),t.data.item.page_info&&(e.advertising=t.data.item.page_info.advertising_id,e.advertising.id&&e.advertising.datas&&(e.advertising.datas=JSON.parse(e.advertising.datas)),e.full_screen=t.data.item.page_info.full_screen_id),t.data.item.top&&t.data.item.top.id&&(e.top_info=JSON.parse(t.data.item.top.page_info)),e.fun.isCPS()&&e.fun.isCPSAPPI()&&t.data.item.cps_foot_type?-1==t.data.item.cps_foot_type?e.bottom_info="":1==t.data.item.cps_foot_type?t.data.item.foot&&t.data.item.foot&&t.data.item.foot.page_info?e.bottom_info=JSON.parse(t.data.item.foot.page_info):e.bottom_info={defaultData:!0}:2==t.data.item.cps_foot_type&&(t.data.item.foot instanceof Array?e.bottom_info={}:e.bottom_info=JSON.parse(t.data.item.foot.page_info)):-1==t.data.item.foot_type?e.bottom_info="":1==t.data.item.foot_type?t.data.item.foot&&t.data.item.foot&&t.data.item.foot.page_info?e.bottom_info=JSON.parse(t.data.item.foot.page_info):e.bottom_info={defaultData:!0}:2==t.data.item.foot_type&&(t.data.item.foot instanceof Array?e.bottom_info={}:e.bottom_info=JSON.parse(t.data.item.foot.page_info)),e.full_screen&&e.full_screen.id&&1===e.full_screen.show_rule&&(window.page_idFull_screens.includes(e.page_id)||(window.page_idFull_screens.push(e.page_id),e.fullShow=!0,e.countDown(e.full_screen.show_time))),e.advertising&&e.advertising.id&&1===e.advertising.show_rule&&(window.page_idAdvertisings.includes(e.page_id)||(window.page_idAdvertisings.push(e.page_id),e.popShow=!0,e.$nextTick((function(){e.initAdvertising()})))),window.isInHome=0,e.isInHome=0,e.page_name=t.data.item.page_info&&t.data.item.page_info.page_title?t.data.item.page_info.page_title:e.$store.state.temp.mailInfo.name,e.fun.setWXTitle(e.page_name),window.localStorage.setItem("diypage_title",e.page_name),window.location.href.indexOf("#/newDiy?")>-1&&setTimeout((function(){window.scrollTo(0,window.diyHomeScrollTop)}),200),t.data.item.page_info&&(e.shareInfo=t.data.item.page_info||{},e.getShareData(t.data.item.page_info),e.$store.commit("setWatchDiypage",t.data.item.pageinfo.params.allowauth),0==t.data.item.pageinfo.params.allowauth&&t.data.item.page_info.member_level_url&&t.data.item.page_info.member_level_url.link&&(e.timer=setTimeout((function(){clearTimeout(e.timer),window.location.href=t.data.item.page_info.member_level_url.link}),3e3)))}else window.isInHome=1}}),(function(e){}))},getMoreDecorate:function(){var e=this;this.isLoadMore=!1,this.current_page60,Number(this.getScrollTop()+this.getClientHeight()+105)>=this.getScrollHeight()?(this.isLoadMore&&this.getMoreDecorate(),this.isBottom=!0):this.isBottom=!1,this.videoScrollHandle()},videoScrollHandle:function(){if(this.$refs.U_video){var e=this.$refs.U_video||[];e.forEach((function(e,t){var i=e.$el.getBoundingClientRect(),n=i.top+200,o=i.bottom;n-200<=window.innerHeight&&o>=0?e.showComponent():e.pauseFn()}))}},pauseVideoOther:function(e){if(this.$refs.U_video){var t=this.$refs.U_video||[];t.forEach((function(t,i){t.id!=e&&t.pauseFn()}))}},initVideoScrollFn:function(){var e=this;this.$nextTick((function(){e.videoScrollHandle()}))},refreshComponent:function(e){e&&("selfpick"==e.type?this.initShare_v2():"video"==e.type?this.pauseVideoOther(e.id):"initVideo"==e.type&&this.isInitVideoScrollFn&&(this.isInitVideoScrollFn=!1,this.initVideoScrollFn()))},getShareData:function(){var e=this;this.fun.wxShare("",{page_id:this.fun.getKey("page_id")},{title:this.shareInfo.page_title||"",imgUrl:this.shareInfo.page_icon||"",description:this.shareInfo.page_description||""},(function(){}),(function(){for(var t=0;t