1 line
4.3 KiB
JavaScript
Executable File
1 line
4.3 KiB
JavaScript
Executable File
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{507:function(t,e,n){var content=n(595);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("2065e928",content,!0,{sourceMap:!1})},594:function(t,e,n){"use strict";n(507)},595:function(t,e,n){var r=n(13)(!1);r.push([t.i,".index .banner{margin-left:160px;margin-bottom:16px;height:440px}.index .banner .swiper-container{--swiper-navigation-size:20px;--swiper-pagination-color:#fff}.index .banner .swiper-item{height:440px}.index .banner .swiper-item a{display:inline-block;width:100%;height:100%}.index .category-list .category-hd{height:79px}.index .category-list .category-hd .title{font-size:28px}.index .category-list .category-hd .category-two{margin-left:24px}.index .category-list .category-hd .category-two .item{margin-right:24px}.index .category-list .category-hd .category-two .item:hover{color:#333}.index .category-list .category-con{align-items:flex-start}.index .category-list .category-con>.ad-img{width:224px;height:636px}",""]),t.exports=r},625:function(t,e,n){"use strict";n.r(e);var r=n(3),o=(n(47),n(513)),l=n(111),c=(n(420),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},components:{ActivityArea:o.default},directives:{swiper:l.directive},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,o,l,c,d,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,r=n("ad/lists",{params:{pid:2,client:2}}),o=n("pc/index"),e.next=5,r;case 5:return l=e.sent,c=l.data,e.next=9,o;case 9:return d=e.sent,x=d.data,e.abrupt("return",{bannerList:c,indexData:x});case 12:case"end":return e.stop()}}),e)})))()},data:function(){var t=this;return{bannerList:[],swiperOptions:{pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},width:1020,preventClicks:!0,loop:!0,observer:!0,observeParents:!0,on:{slideChangeTransitionStart:function(){console.log(this.activeIndex,"active",this.realIndex),console.log(this.isEnd,"isBegin",this.isBeginning),this.isEnd&&this.slideToLoop(0),this.isBeginning&&this.slideTo(t.bannerList.length)}}}}},created:function(){},mounted:function(){},beforeDestroy:function(){},destroyed:function(){},computed:{mySwiper:function(){return this.$refs.mySwiper}},methods:{}}),d=(n(594),n(8)),component=Object(d.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"index"},[n("div",{staticClass:"banner"},[n("client-only",[n("el-carousel",{attrs:{height:"440px",autoplay:""}},t._l(t.bannerList,(function(t,e){return n("el-carousel-item",{key:e,staticClass:"swiper-item"},[n("ad-item",{attrs:{item:t}})],1)})),1)],1)],1),t._v(" "),n("activity-area",{attrs:{title:"热销榜单",desc:"实时更新热销火爆商品",url:"/goods_list/1",list:t.indexData.host_list,banner:t.indexData.host_ad}}),t._v(" "),n("activity-area",{attrs:{title:"新品推荐",desc:"品质好货 件件是精品",url:"/goods_list/2",list:t.indexData.new_list,banner:t.indexData.new_ad}}),t._v(" "),n("activity-area",{attrs:{title:"好物优选",desc:"精挑细选 挑你喜欢",url:"/goods_list/3",list:t.indexData.best_list,banner:t.indexData.best_ad}}),t._v(" "),t._l(t.indexData.category_list,(function(e,r){return n("div",{key:r,staticClass:"category-list"},[n("div",{staticClass:"category-hd row"},[n("div",{staticClass:"title bold line1"},[t._v("F"+t._s(r+1)+" / "+t._s(e.name))]),t._v(" "),n("div",{staticClass:"row category-two flex1 wrap"},t._l(e.sons,(function(e,r){return n("nuxt-link",{key:r,staticClass:"item muted mt8",attrs:{to:"/category?id="+e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),1),t._v(" "),n("nuxt-link",{staticClass:"more",attrs:{to:"/category?id="+e.id}},[t._v("更多 "),n("i",{staticClass:"el-icon-arrow-right"})])],1),t._v(" "),n("div",{staticClass:"category-con row"},[e.ad.image?n("div",{staticClass:"flexnone mr16 ad-img"},[n("ad-item",{attrs:{item:e.ad}})],1):t._e(),t._v(" "),n("goods-list",{attrs:{list:e.goods_list,num:e.ad.image?4:5}})],1)])}))],2)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{AdItem:n(434).default,ActivityArea:n(513).default,GoodsList:n(433).default})}}]); |