cxybn/public/pc/_nuxt/b14635f.js
2023-10-23 16:11:09 +08:00

1 line
8.9 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[32,20],{440:function(t,e,n){t.exports=n.p+"img/bg_coupon_s.3f57cfd.png"},473:function(t,e,n){var content=n(493);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("6d2943b2",content,!0,{sourceMap:!1})},492:function(t,e,n){"use strict";n(473)},493:function(t,e,n){var r=n(15)(!1);r.push([t.i,".server-explain-header[data-v-28fb058c]{margin-bottom:10px;cursor:pointer;line-height:30px}.server-explain-content[data-v-28fb058c]{height:400px;overflow-y:auto}.server-explain[data-v-28fb058c] .el-dialog__header{display:none}.server-explain[data-v-28fb058c] .el-dialog{top:50%;transform:translateY(-50%);border-radius:6px}.server-explain-footer[data-v-28fb058c]{margin-top:20px}",""]),t.exports=r},495:function(t,e,n){"use strict";n.r(e);var r=n(6),o=(n(48),{asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$get;case 1:case"end":return e.stop()}}),e)})))()},data:function(){return{content:"",dialogTableVisible:!1}},methods:{onConfirm:function(){localStorage.setItem("FIRSTENTRY",!0),this.dialogTableVisible=!1},getPolicyServerFunc:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("policy/service");case 2:n=e.sent,data=n.data,t.content=data;case 5:case"end":return e.stop()}}),e)})))()},jumpUrl:function(t){window.open("server_explan?type=".concat(t),"_blank")}},mounted:function(){try{var t;null==(null!==(t=JSON.parse(localStorage.getItem("FIRSTENTRY")))&&void 0!==t?t:null)&&(this.dialogTableVisible=!0,this.getPolicyServerFunc())}catch(t){console.log(t)}}}),l=(n(492),n(7)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"server-explain"},[n("el-dialog",{attrs:{visible:t.dialogTableVisible,width:"800px","show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,top:"0"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("div",{staticClass:"server-explain-header"},[n("div",{staticClass:"lg"},[t._v("\n 协议声明\n ")]),t._v(" "),n("div",{staticClass:"m-t-16 nr"},[n("span",{staticClass:"primary",attrs:{to:"/server_explan?type=1"},on:{click:function(e){return t.jumpUrl(1)}}},[t._v("《服务协议》、")]),n("span",{staticClass:"primary",attrs:{to:"/server_explan?type=2"},on:{click:function(e){return t.jumpUrl(2)}}},[t._v("《隐私政策》")]),t._v("\n 请您仔细阅读以上协议,其中有对您权利义务的特别约定等重要条款,请点击同意后方可正常使用\n ")])]),t._v(" "),n("div",{staticClass:"server-explain-content"},[n("div",{domProps:{innerHTML:t._s(t.content)}})]),t._v(" "),n("div",{staticClass:"server-explain-footer flex row-center"},[n("el-button",{attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("同意并继续")])],1)])],1)}),[],!1,null,"28fb058c",null);e.default=component.exports},527:function(t,e,n){var content=n(615);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(16).default)("2065e928",content,!0,{sourceMap:!1})},614:function(t,e,n){"use strict";n(527)},615:function(t,e,n){var r=n(15),o=n(174),l=n(440),c=r(!1),d=o(l);c.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}.index .coupons-list{padding:0 18px;flex-wrap:wrap;position:relative}.index .coupons-list .item{margin-bottom:20px;margin-right:16px;position:relative;cursor:pointer}.index .coupons-list .item .info{padding:0 10px;background:url("+d+") no-repeat;width:240px;height:80px;background-size:100%}",""]),t.exports=c},646:function(t,e,n){"use strict";n.r(e);var r=n(6),o=(n(48),n(533)),l=n(115),c=(n(426),n(495),{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,v,f,x,h,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,r=t.store,o=n("ad_content/lists",{params:{pid:2,client:2}}),l=n("pc/index"),e.next=5,o;case 5:return c=e.sent,d=c.data,e.next=9,l;case 9:if(v=e.sent,f=v.data,x=[],!r.getters.isLogin){e.next=18;break}return e.next=15,n("coupon/registerSendCoupon");case 15:h=e.sent,data=h.data,x=data;case 18:return e.abrupt("return",{bannerList:d,indexData:f,couponList:x});case 19:case"end":return e.stop()}}),e)})))()},data:function(){var t=this;return{bannerList:[],showCoupon:!1,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:{},watch:{couponList:{immediate:!0,handler:function(t){t.length&&(this.showCoupon=!0,this.$store.dispatch("getPublicData"))}}}}),d=(n(614),n(7)),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)])})),t._v(" "),n("div",{staticClass:"coupon-popup"},[n("el-dialog",{attrs:{title:"新人送券",visible:t.showCoupon,width:"700px",center:"",top:"30vh"},on:{"update:visible":function(e){t.showCoupon=e}}},[n("div",{staticClass:"column-center black"},[n("div",{staticClass:"coupons-list row"},[t._l(t.couponList,(function(e,r){return[n("div",{key:r,staticClass:"item"},[n("div",{class:["info white"]},[n("div",{staticClass:"info-hd row"},[n("div",[n("price-formate",{attrs:{price:e.money,"first-size":38,"second-size":38}})],1),t._v(" "),n("div",{staticClass:"ml8 flex1"},[n("div",{staticClass:"line1"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"xs line1"},[t._v(t._s(e.use_goods_type))])])])])])]}))],2)]),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticStyle:{width:"200px"},attrs:{type:"primary"},on:{click:function(e){t.showCoupon=!1}}},[t._v("确定")])],1)])],1),t._v(" "),n("server-explan")],2)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{AdItem:n(448).default,ActivityArea:n(533).default,GoodsList:n(447).default,PriceFormate:n(419).default,ServerExplan:n(495).default})}}]);