768d41e.js 30 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[20,21,22,23,24],{518:function(t,e,r){"use strict";var n=r(3),o=r(35),l=r(14),c=r(9),path=r(315),d=r(6),f=r(113),m=r(15),v=r(203),h=r(63),_=r(112),y=r(314),O=r(5),k=r(92).f,w=r(57).f,T=r(26).f,L=r(316),j=r(313).trim,C="Number",I=c[C],S=path[C],x=I.prototype,E=c.TypeError,N=d("".slice),P=d("".charCodeAt),$=function(t){var e=y(t,"number");return"bigint"==typeof e?e:D(e)},D=function(t){var e,r,n,o,l,c,d,code,f=y(t,"number");if(_(f))throw E("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=j(f),43===(e=P(f,0))||45===e){if(88===(r=P(f,2))||120===r)return NaN}else if(48===e){switch(P(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(c=(l=N(f,2)).length,d=0;d<c;d++)if((code=P(l,d))<48||code>o)return NaN;return parseInt(l,n)}return+f},A=f(C,!I(" 0o1")||!I("0b1")||I("+0x1")),G=function(t){return h(x,t)&&O((function(){L(t)}))},R=function(t){var e=arguments.length<1?0:I($(t));return G(this)?v(Object(e),this,R):e};R.prototype=x,A&&!o&&(x.constructor=R),n({global:!0,constructor:!0,wrap:!0,forced:A},{Number:R});var F=function(t,source){for(var e,r=l?k(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)m(source,e=r[n])&&!m(t,e)&&T(t,e,w(source,e))};o&&S&&F(path[C],S),(A||o)&&F(path[C],I)},521:function(t,e,r){t.exports=r(527)},526:function(t,e,r){var n=r(3),o=r(533);n({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},527:function(t,e,r){"use strict";r.r(e);r(518),r(8),r(74),r(73),r(312);var n={replace:!0,data:function(){return{tipShow:!0,msTime:{show:!1,day:"",hour:"",minutes:"",seconds:""},star:"",end:"",current:""}},watch:{currentTime:function(t,e){this.gogogo()}},props:{tipText:{type:String,default:"距离开始"},tipTextEnd:{type:String,default:"距离结束"},id:{type:String,default:"1"},currentTime:{type:Number},startTime:{type:Number},endTime:{type:Number},endText:{type:String,default:"已结束"},dayTxt:{type:String,default:":"},hourTxt:{type:String,default:":"},minutesTxt:{type:String,default:":"},secondsTxt:{type:String,default:":"},secondsFixed:{type:Boolean,default:!1}},mounted:function(){console.log(this),this.gogogo()},methods:{gogogo:function(){var t=this;10==this.startTime.toString().length?this.star=1e3*this.startTime:this.star=this.startTime,10==this.endTime.toString().length?this.end=1e3*this.endTime:this.end=this.endTime,this.currentTime?10==this.currentTime.toString().length?this.current=1e3*this.currentTime:this.current=this.currentTime:this.current=(new Date).getTime(),this.end<this.current?(this.msTime.show=!1,this.end_message()):this.current<this.star?(this.$set(this,"tipShow",!0),setTimeout((function(){t.runTime(t.star,t.current,t.start_message)}),1)):(this.end>this.current&&this.star<this.current||this.star==this.current)&&(this.$set(this,"tipShow",!1),this.msTime.show=!0,this.$emit("start_callback",this.msTime.show),setTimeout((function(){t.runTime(t.end,t.star,t.end_message,!0)}),1))},runTime:function(t,e,r,n){var o=this,l=this.msTime,c=t-e;if(c>0){this.msTime.show=!0,l.day=Math.floor(c/864e5),c-=864e5*l.day,l.hour=Math.floor(c/36e5),c-=36e5*l.hour,l.minutes=Math.floor(c/6e4),c-=6e4*l.minutes,l.seconds=Math.floor(c/1e3).toFixed(0),c-=1e3*l.seconds,l.hour<10&&(l.hour="0"+l.hour),l.minutes<10&&(l.minutes="0"+l.minutes),l.seconds<10&&(l.seconds="0"+l.seconds);var d=Date.now(),f=Date.now();setTimeout((function(){n?o.runTime(o.end,e+=1e3,r,!0):o.runTime(o.star,e+=1e3,r)}),1e3-(f-d))}else r()},start_message:function(){var t=this;this.$set(this,"tipShow",!1),this.$emit("start_callback",this.msTime.show),setTimeout((function(){t.runTime(t.end,t.star,t.end_message,!0)}),1)},end_message:function(){this.msTime.show=!1,this.currentTime<=0||this.$emit("end_callback",this.msTime.show)}}},o=r(7),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",[t.msTime.show?e("p",[t.msTime.day>0?e("span",[e("span",[t._v(t._s(t.msTime.day))]),e("i",[t._v(t._s(t.dayTxt))])]):t._e(),t._v(" "),e("span",[t._v(t._s(t.msTime.hour))]),e("i",[t._v(t._s(t.hourTxt))]),t._v(" "),e("span",[t._v(t._s(t.msTime.minutes))]),e("i",[t._v(t._s(t.minutesTxt))]),t._v(" "),e("span",[t._v(t._s(t.msTime.seconds))]),e("i",[t._v(t._s(t.secondsTxt))])]):t._e()])}),[],!1,null,null,null);e.default=component.exports},532:function(t,e,r){"use strict";r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"e",(function(){return d})),r.d(e,"c",(function(){return f})),r.d(e,"d",(function(){return m})),r.d(e,"g",(function(){return v}));var n=r(1);function o(t){return Object(n.a)({url:"/seckill/api/ordercreate/payment",data:t,forceLogin:!0})}function l(t){return Object(n.a)({url:"/seckill/api/ordercreate/calculate",data:t,forceLogin:!0})}function c(){return Object(n.a)({url:"/api/goodsevaluate/config",data:{},forceLogin:!0})}function d(t){return Object(n.a)({url:"/seckill/api/ordercreate/create",data:t,forceLogin:!0})}function f(t){return Object(n.a)({url:"/seckill/api/seckillgoods/page",data:t})}function m(t){return Object(n.a)({url:"/seckill/api/seckillgoods/detail",data:t})}function v(t){return Object(n.a)({url:"/seckill/api/seckill/lists",data:t})}},533:function(t,e,r){var n=r(9),o=r(5),l=r(6),c=r(18),d=r(313).trim,f=r(208),m=n.parseInt,v=n.Symbol,h=v&&v.iterator,_=/^[+-]?0x/i,y=l(_.exec),O=8!==m(f+"08")||22!==m(f+"0x16")||h&&!o((function(){m(Object(h))}));t.exports=O?function(t,e){var r=d(c(t));return m(r,e>>>0||(y(_,r)?16:10))}:m},540:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return l}));var n=r(1);function o(t){return Object(n.a)({url:"/api/notice/page",data:t})}function l(t){return Object(n.a)({url:"/api/notice/info",data:t})}},543:function(t,e,r){},544:function(t,e,r){},545:function(t,e,r){},546:function(t,e,r){},554:function(t,e,r){"use strict";r(543)},555:function(t,e,r){"use strict";r(544)},556:function(t,e,r){"use strict";r(545)},557:function(t,e,r){"use strict";r(546)},628:function(t,e,r){},629:function(t,e,r){},633:function(t,e,r){"use strict";r.r(e);r(318),r(526),r(518),r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n=r(4),o=r(12);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var c={name:"floor-style-1",props:{data:{type:Object}},data:function(){return{}},created:function(){},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(o.b)(["defaultGoodsImage"])),methods:{goSku:function(t){this.$util.pushToTab("/sku/"+t)},imageError:function(t){this.data.value.goodsList.value.list[t].goods_image=this.defaultGoodsImage}}},d=c,f=(r(554),r(7)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"floor-style-1"},[t.data.value.title.value.text?e("div",{staticClass:"head-wrap"},[e("h2",{style:{color:t.data.value.title.value.color},on:{click:function(e){return t.$util.pushToTab(t.data.value.title.value.link.url)}}},[t._v(t._s(t.data.value.title.value.text))])]):t._e(),t._v(" "),e("div",{staticClass:"body-wrap"},[t.data.value.leftImg.value.url?e("div",{staticClass:"left-wrap"},[e("img",{attrs:{src:t.$img(t.data.value.leftImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.leftImg.value.link.url)}}})]):t._e(),t._v(" "),e("ul",{staticClass:"goods-list"},t._l(t.data.value.goodsList.value.list,(function(r,n){return e("li",{key:n,attrs:{title:r.goods_name},on:{click:function(e){return t.goSku(r.sku_id)}}},[e("div",{staticClass:"img-wrap"},[e("img",{attrs:{alt:"商品图片",src:t.$img(r.goods_image.split(",")[0],{size:"mid"})},on:{error:function(e){return t.imageError(n)}}})]),t._v(" "),e("h3",[t._v(t._s(r.goods_name))]),t._v(" "),e("p",{staticClass:"desc"},[t._v(t._s(r.introduction))]),t._v(" "),e("p",{staticClass:"price"},[e("span",{staticClass:"num"},[t._v(t._s(r.discount_price)+"元")]),t._v(" "),e("del",{directives:[{name:"show",rawName:"v-show",value:Number.parseInt(r.market_price),expression:"Number.parseInt(item.market_price)"}]},[t._v(t._s(r.market_price)+"元")])])])})),0)]),t._v(" "),t.data.value.bottomImg.value.url?e("div",{staticClass:"bottom-wrap"},[e("img",{attrs:{src:t.$img(t.data.value.bottomImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.bottomImg.value.link.url)}}})]):t._e()])}),[],!1,null,null,null);e.default=component.exports},634:function(t,e,r){"use strict";r.r(e);r(318),r(526),r(518),r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n=r(4),o=r(12);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var c={name:"floor-style-2",props:{data:{type:Object}},data:function(){return{}},created:function(){},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(o.b)(["defaultGoodsImage"])),methods:{goSku:function(t){this.$router.push("/sku/"+t)},imageError:function(t){this.data.value.goodsList.value.list[t].goods_image=this.defaultGoodsImage}}},d=c,f=(r(555),r(7)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"floor-style-2"},[t.data.value.title.value.text?e("div",{staticClass:"head-wrap"},[e("h2",{style:{textAlign:t.data.value.title.value.textAlign,color:t.data.value.title.value.color},on:{click:function(e){return t.$util.pushToTab(t.data.value.title.value.link.url)}}},[t._v(t._s(t.data.value.title.value.text))]),t._v(" "),t.data.value.subTitle.value.text?e("p",{style:{color:t.data.value.subTitle.value.color},on:{click:function(e){return t.$util.pushToTab(t.data.value.subTitle.value.link.url)}}},[t._v(t._s(t.data.value.subTitle.value.text))]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"body-wrap"},[e("ul",{staticClass:"goods-list"},t._l(t.data.value.goodsList.value.list,(function(r,n){return e("li",{key:n,attrs:{title:r.goods_name},on:{click:function(e){return t.goSku(r.sku_id)}}},[e("div",{staticClass:"img-wrap"},[e("img",{attrs:{alt:"商品图片",src:r.goods_image?t.$img(r.goods_image.split(",")[0],{size:"mid"}):t.defaultGoodsImage},on:{error:function(e){return t.imageError(n)}}})]),t._v(" "),e("h3",[t._v(t._s(r.goods_name))]),t._v(" "),e("p",{staticClass:"desc"},[t._v(t._s(r.introduction))]),t._v(" "),e("p",{staticClass:"price"},[e("span",{staticClass:"num"},[t._v(t._s(r.discount_price)+"元")]),t._v(" "),e("del",{directives:[{name:"show",rawName:"v-show",value:Number.parseInt(r.market_price),expression:"Number.parseInt(item.market_price)"}]},[t._v(t._s(r.market_price)+"元")])])])})),0)]),t._v(" "),t.data.value.bottomImg.value.url?e("div",{staticClass:"bottom-wrap"},[e("img",{attrs:{src:t.$img(t.data.value.bottomImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.bottomImg.value.link.url)}}})]):t._e()])}),[],!1,null,null,null);e.default=component.exports},635:function(t,e,r){"use strict";r.r(e);r(318),r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n=r(4),o=r(12);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var c={name:"floor-style-3",props:{data:{type:Object}},data:function(){return{}},created:function(){},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(o.b)(["defaultGoodsImage"])),methods:{goSku:function(t){this.$util.pushToTab("/sku/"+t)},imageErrorRight:function(t){this.data.value.rightGoodsList.value.list[t].goods_image=this.defaultGoodsImage},imageErrorBottom:function(t){this.data.value.bottomGoodsList.value.list[t].goods_image=this.defaultGoodsImage}}},d=c,f=(r(556),r(7)),component=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"floor-style-3"},[e("div",{staticClass:"item-wrap"},[e("div",{staticClass:"head-wrap"},[t.data.value.title.value.text?e("div",{staticClass:"title-name"},[e("span",{style:{backgroundColor:t.data.value.title.value.color}}),t._v(" "),e("h2",{style:{color:t.data.value.title.value.color},on:{click:function(e){return t.$util.pushToTab(t.data.value.title.value.link.url)}}},[t._v(t._s(t.data.value.title.value.text))])]):t._e(),t._v(" "),e("div",{staticClass:"category-wrap"},t._l(t.data.value.categoryList.value.list,(function(r,n){return e("li",{key:n},[e("router-link",{attrs:{target:"_blank",to:{path:"/goods/list",query:{category_id:r.category_id,level:r.level}}}},[t._v(t._s(r.category_name))])],1)})),0)]),t._v(" "),e("div",{staticClass:"body-wrap"},[e("div",{staticClass:"left-img-wrap"},[t.data.value.leftImg.value.url?e("img",{attrs:{src:t.$img(t.data.value.leftImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.leftImg.value.link.url)}}}):t._e()]),t._v(" "),e("ul",{staticClass:"right-goods-wrap"},t._l(t.data.value.rightGoodsList.value.list,(function(r,n){return e("li",{key:n,on:{click:function(e){return t.goSku(r.sku_id)}}},[e("h4",[t._v(t._s(r.goods_name))]),t._v(" "),e("p",{staticClass:"ns-text-color"},[t._v(t._s(r.introduction))]),t._v(" "),e("div",{staticClass:"img-wrap"},[e("img",{attrs:{alt:"商品图片",src:t.$img(r.goods_image.split(",")[0],{size:"mid"})},on:{error:function(e){return t.imageErrorRight(n)}}})])])})),0),t._v(" "),e("ul",{staticClass:"bottom-goods-wrap"},t._l(t.data.value.bottomGoodsList.value.list,(function(r,n){return e("li",{key:n,on:{click:function(e){return t.goSku(r.sku_id)}}},[e("div",{staticClass:"info-wrap"},[e("h4",[t._v(t._s(r.goods_name))]),t._v(" "),e("p",{staticClass:"ns-text-color"},[t._v(t._s(r.introduction))])]),t._v(" "),e("div",{staticClass:"img-wrap"},[e("img",{attrs:{alt:"商品图片",src:t.$img(r.goods_image.split(",")[0],{size:"mid"})},on:{error:function(e){return t.imageErrorBottom(n)}}})])])})),0)])])])}),[],!1,null,null,null);e.default=component.exports},636:function(t,e,r){"use strict";r.r(e);r(318),r(526),r(518),r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n,o=r(4),l=(r(65),r(12));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var d=(n={name:"floor-style-4",props:{data:{type:Object}},data:function(){return{}},created:function(){},mounted:function(){},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(l.b)(["defaultGoodsImage"]))},Object(o.a)(n,"computed",{goodsList:function(){var t=[];try{t=this.data.value.goodsList.value.list}catch(e){t=[]}return t},itemNum:function(){var t=[0,this.goodsList.length],e=t[0],r=t[1];return e=parseInt(r/3),parseInt(r%3)>0&&(e+=1),e}}),Object(o.a)(n,"methods",{goSku:function(t){this.$util.pushToTab("/sku/"+t)},imageError:function(t){this.data.value.goodsList.value.list[t].goods_image=this.defaultGoodsImage},itemList:function(t){if(t-=1,!this.goodsList.length)return[];var e=3*t,r=3*t+3;return this.goodsList.slice(e,r)}}),n),f=d,m=(r(557),r(7)),component=Object(m.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"floor-style-4"},[t.data.value.title.value.text?e("div",{staticClass:"head-wrap"},[e("h2",{style:{color:t.data.value.title.value.color},on:{click:function(e){return t.$util.pushToTab(t.data.value.title.value.link.url)}}},[t._v(t._s(t.data.value.title.value.text))])]):t._e(),t._v(" "),e("div",{staticClass:"body-wrap"},[t.data.value.leftImg.value.url?e("div",{staticClass:"left-wrap"},[e("img",{attrs:{src:t.$img(t.data.value.leftImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.leftImg.value.link.url)}}})]):t._e(),t._v(" "),e("el-carousel",{attrs:{trigger:"click",height:"324px","indicator-position":"none",arrow:"never"}},t._l(t.itemNum,(function(r){return e("el-carousel-item",{key:r},[e("ul",{staticClass:"goods-list"},t._l(t.itemList(r),(function(r,n){return e("li",{key:n,attrs:{title:r.goods_name},on:{click:function(e){return t.goSku(r.sku_id)}}},[e("div",{staticClass:"img-wrap"},[e("img",{attrs:{alt:"商品图片",src:t.$img(r.goods_image.split(",")[0],{size:"mid"})},on:{error:function(e){return t.imageError(n)}}})]),t._v(" "),e("div",{staticClass:"price"},[e("span",{staticClass:"num"},[t._v("¥"+t._s(r.discount_price))]),t._v(" "),e("del",{directives:[{name:"show",rawName:"v-show",value:Number.parseInt(r.market_price),expression:"Number.parseInt(item.market_price)"}]},[t._v("¥"+t._s(r.market_price))])]),t._v(" "),e("h3",{staticClass:"name"},[t._v(t._s(r.goods_name))]),t._v(" "),r.sale_num?e("div",{staticClass:"other-info"},[e("span",[t._v("已售"+t._s(r.sale_num)+"件")])]):t._e()])})),0)])})),1)],1),t._v(" "),t.data.value.bottomImg.value.url?e("div",{staticClass:"bottom-wrap"},[e("img",{attrs:{src:t.$img(t.data.value.bottomImg.value.url)},on:{click:function(e){return t.$util.pushToTab(t.data.value.bottomImg.value.link.url)}}})]):t._e()])}),[],!1,null,null,null);e.default=component.exports},733:function(t,e,r){"use strict";r(628)},734:function(t,e,r){"use strict";r(629)},750:function(t,e,r){"use strict";r.r(e);r(318),r(25),r(24),r(23),r(8),r(29),r(17),r(30);var n=r(20),o=r(4),l=(r(94),r(27)),c=r(633),d=r(634),f=r(635),m=r(636),v=(r(153),r(540),r(268)),h=r(12),_=r(532),y=r(521);function O(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function k(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?O(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):O(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var w={name:"index",components:{CountDown:r.n(y).a},data:function(){return{loadingAd:!0,loadingFloor:!0,adList:[],adLeftList:[],adRightList:[],adCenterList:[],floorList:[],floatLayer:{is_show:!1,link:{url:""}},indexFloatLayerNum:0,isSub:!1,siteId:0,listData:[],seckillTimeMachine:{currentTime:0,startTime:0,endTime:0},seckillText:"距离结束",backgroundColor:"",keyword:"",defaultSearchWords:"",isShow:!1}},watch:{},created:function(){this.getAdList(),this.getBigAdList(),this.getSmallAdList(),this.getCategoryBelowList(),this.getFloors(),this.getFloatLayer(),this.addonIsExit&&1==this.addonIsExit.seckill&&this.getTimeList()},mounted:function(){window.addEventListener("scroll",this.handleScroll)},computed:k(k({},Object(h.b)(["defaultHeadImage","addonIsExit","defaultGoodsImage","member","siteInfo","cartCount"])),{},{optionLeft:function(){return{direction:2,limitMoveNum:2}}}),methods:{countDownS_cb:function(){},countDownE_cb:function(){this.seckillText="活动已结束"},getAdList:function(){var t=this;Object(l.a)({keyword:"NS_PC_INDEX"}).then((function(e){t.adList=e.data.adv_list,t.$store.dispatch("app/is_show",{is_show:t.adList.length}).then((function(t){}));for(var i=0;i<t.adList.length;i++)t.adList[i].adv_url&&(t.adList[i].adv_url=JSON.parse(t.adList[i].adv_url));t.backgroundColor=t.adList[0].background,t.loadingAd=!1})).catch((function(e){t.loadingAd=!1}))},handleChange:function(t,pre){this.backgroundColor=this.adList[t].background},getBigAdList:function(){var t=this;Object(l.a)({keyword:"NS_PC_INDEX_MID_LEFT"}).then((function(e){t.adLeftList=e.data.adv_list;for(var i=0;i<t.adLeftList.length;i++)t.adLeftList[i].adv_url&&(t.adLeftList[i].adv_url=JSON.parse(t.adLeftList[i].adv_url));t.loadingAd=!1})).catch((function(e){t.loadingAd=!1}))},getSmallAdList:function(){var t=this;Object(l.a)({keyword:"NS_PC_INDEX_MID_RIGHT"}).then((function(e){t.adRightList=e.data.adv_list;for(var i=0;i<t.adRightList.length;i++)t.adRightList[i].adv_url&&(t.adRightList[i].adv_url=JSON.parse(t.adRightList[i].adv_url));t.loadingAd=!1})).catch((function(e){t.loadingAd=!1}))},getCategoryBelowList:function(){var t=this;Object(l.a)({keyword:"NS_PC_INDEX_CATEGORY_BELOW"}).then((function(e){t.adCenterList=e.data.adv_list;for(var i=0;i<t.adCenterList.length;i++)t.adCenterList[i].adv_url&&(t.adCenterList[i].adv_url=JSON.parse(t.adCenterList[i].adv_url));t.loadingAd=!1})).catch((function(e){t.loadingAd=!1}))},getTimeList:function(){var t=this;Object(_.g)().then((function(e){if(0==e.code&&e.data){var time=new Date(1e3*e.timestamp),r=60*time.getHours()*60+60*time.getMinutes()+time.getSeconds();e.data.list.forEach((function(n,o){if(n.seckill_start_time<=r&&r<n.seckill_end_time){var l=n.seckill_id;t.getGoodsList(l);var c=parseInt(time.getTime()/1e3)+(n.seckill_end_time-r);t.seckillTimeMachine={currentTime:e.timestamp,startTime:e.timestamp,endTime:c}}}))}})).catch((function(t){}))},getGoodsList:function(t){var e=this;Object(_.c)({page_size:0,seckill_id:t,site_id:this.siteId}).then((function(t){0==t.code&&t.data.list&&(e.listData=t.data.list)})).catch((function(t){}))},imageError:function(t){this.listData[t].sku_image=this.defaultGoodsImage},adLeftImageError:function(t){this.adLeftList[t].adv_image=this.defaultGoodsImage},adRightImageError:function(t){this.adRightList[t].adv_image=this.defaultGoodsImage},adCenterImageError:function(t){this.adCenterList[t].adv_image=this.defaultGoodsImage},getFloors:function(){var t=this;Object(v.c)().then((function(e){t.floorList=e.data})).catch((function(t){console.log(t)}))},getFloatLayer:function(){var t=this;Object(v.b)().then((function(e){if(0==e.code&&e.data)if(t.floatLayer=e.data,1==t.floatLayer.is_show){if(t.floatLayer.link=JSON.parse(t.floatLayer.url),!t.floatLayer.img_url)return;var r=t.$store.state.app.indexFloatLayerNum;parseInt(t.floatLayer.number)>=1?r>=parseInt(t.floatLayer.number)?t.floatLayer.is_show_type=!1:t.floatLayer.is_show_type=!0:0==parseInt(t.floatLayer.number)&&(t.floatLayer.is_show_type=!0)}else t.floatLayer.is_show_type=!1})).catch((function(t){return t}))},closeFloat:function(){var t=this.$store.state.app.indexFloatLayerNum;if(0==parseInt(this.floatLayer.number))this.$store.commit("app/SET_FLOAT_LAYER",0);else if(parseInt(this.floatLayer.number)>=1&&t!=parseInt(this.floatLayer.number)){var e=t+1;this.$store.commit("app/SET_FLOAT_LAYER",e)}else t==parseInt(this.floatLayer.number)&&this.$store.commit("app/SET_FLOAT_LAYER",this.floatLayer.number);this.floatLayer.is_show_type=!1,this.$forceUpdate()},handleScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;this.isShow=t>=680},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)}}},T=r(61);function L(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var j={components:{floorStyle1:c.default,floorStyle2:d.default,floorStyle3:f.default,floorStyle4:m.default,NsHeaderMid:T.a},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?L(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):L(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(h.b)(["siteInfo"])),mixins:[w],fetch:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.store,t.params,e.next=3,r.dispatch("site/siteInfo");case 3:case"end":return e.stop()}}),e)})))()},head:function(){return{title:this.siteInfo.seo_title?this.siteInfo.seo_title:this.siteInfo.site_title,meta:[{name:"description",content:this.siteInfo.seo_description},{name:"keyword",content:this.siteInfo.seo_keywords},{property:"og:title",content:this.siteInfo.seo_title},{property:"og:description",content:this.siteInfo.seo_description},{property:"og:type",content:"website"}]}}},C=j,I=(r(733),r(734),r(7)),component=Object(I.a)(C,(function(){var t=this,e=t._self._c;return e("div",[t.adList.length?e("div",{staticClass:"index-wrap",style:{background:t.backgroundColor}},[e("div",{staticClass:"index"},[e("div",{staticClass:"banner"},[e("el-carousel",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingAd,expression:"loadingAd"}],attrs:{height:"500px",arrow:"never"},on:{change:t.handleChange}},t._l(t.adList,(function(r){return e("el-carousel-item",{key:r.adv_id},[e("el-image",{attrs:{src:t.$img(r.adv_image),fit:"cover"},on:{click:function(e){return t.$util.pushToTab(r.adv_url.url)}}})],1)})),1)],1)])]):t._e(),t._v(" "),e("div",{staticClass:"content"},[t.adCenterList.length?e("ul",{staticClass:"adv-middle"},t._l(t.adCenterList,(function(r,n){return e("li",{key:n,staticClass:"adv-middle-item"},[e("el-image",{attrs:{src:t.$img(r.adv_image),fit:"cover"},on:{error:function(e){return t.adCenterImageError(n)},click:function(e){return t.$util.pushToTab(r.adv_url.url)}}})],1)})),0):t._e(),t._v(" "),t.adLeftList.length>0||t.adRightList.length>0?e("div",{staticClass:"content-div"},[e("div",{staticClass:"ad-wrap"},[t.adLeftList.length>0?e("div",{staticClass:"ad-big"},t._l(t.adLeftList,(function(r,n){return e("div",{key:n,staticClass:"ad-big-img"},[e("el-image",{attrs:{src:t.$img(r.adv_image),fit:"cover"},on:{error:function(e){return t.adLeftImageError(n)},click:function(e){return t.$util.pushToTab(r.adv_url.url)}}})],1)})),0):t._e(),t._v(" "),t.adRightList.length>0?e("div",{staticClass:"ad-small"},t._l(t.adRightList,(function(r,n){return e("div",{key:n,staticClass:"ad-small-img"},[e("el-image",{attrs:{src:t.$img(r.adv_image),fit:"cover"},on:{error:function(e){return t.adRightImageError(n)},click:function(e){return t.$util.pushToTab(r.adv_url.url)}}})],1)})),0):t._e()])]):t._e(),t._v(" "),1==t.addonIsExit.seckill&&t.listData.length>0?e("div",{staticClass:"content-div"},[e("div",{staticClass:"seckill-wrap"},[e("div",{staticClass:"seckill-time"},[e("div",{staticClass:"seckill-time-left"},[e("i",{staticClass:"iconfont icon-miaosha1 ns-text-color"}),t._v(" "),e("span",{staticClass:"seckill-time-title ns-text-color"},[t._v("限时秒杀")]),t._v(" "),e("span",[t._v(t._s(t.seckillText))]),t._v(" "),e("count-down",{staticClass:"count-down",attrs:{currentTime:t.seckillTimeMachine.currentTime,startTime:t.seckillTimeMachine.startTime,endTime:t.seckillTimeMachine.endTime,dayTxt:":",hourTxt:":",minutesTxt:":",secondsTxt:""},on:{start_callback:function(e){return t.countDownS_cb()},end_callback:function(e){return t.countDownE_cb()}}})],1),t._v(" "),e("div",{staticClass:"seckill-time-right",on:{click:function(e){return t.$router.push("/promotion/seckill")}}},[e("span",[t._v("更多商品")]),t._v(" "),e("i",{staticClass:"iconfont icon-arrow-right"})])]),t._v(" "),e("div",{staticClass:"seckill-content"},[e("vue-seamless-scroll",{staticClass:"seamless-warp2",attrs:{data:t.listData,"class-option":t.optionLeft}},[e("ul",{staticClass:"item",style:{width:250*t.listData.length+"px"}},t._l(t.listData,(function(r,n){return e("li",{key:n},[e("div",{staticClass:"seckill-goods",on:{click:function(e){return t.$router.push("/promotion/seckill/"+r.id)}}},[e("div",{staticClass:"seckill-goods-img"},[e("img",{attrs:{src:t.$img(r.sku_image,{size:"mid"})},on:{error:function(e){return t.imageError(n)}}})]),t._v(" "),e("p",[t._v(t._s(r.sku_name))]),t._v(" "),e("div",{staticClass:"seckill-price-wrap"},[e("p",{staticClass:"ns-text-color"},[t._v("\n ¥\n "),e("span",[t._v(t._s(r.seckill_price))])]),t._v(" "),e("p",{staticClass:"primary-price"},[t._v("¥"+t._s(r.price))])])])])})),0)])],1)])]):t._e(),t._v(" "),e("div",{staticClass:"content-div"},[e("div",{staticClass:"floor"},t._l(t.floorList,(function(r,n){return e("div",{key:n,staticClass:"floor_item"},["floor-style-1"==r.block_name?e("floor-style-1",{attrs:{data:r}}):t._e(),t._v(" "),"floor-style-2"==r.block_name?e("floor-style-2",{attrs:{data:r}}):t._e(),t._v(" "),"floor-style-3"==r.block_name?e("floor-style-3",{attrs:{data:r}}):t._e(),t._v(" "),"floor-style-4"==r.block_name?e("floor-style-4",{attrs:{data:r}}):t._e()],1)})),0)]),t._v(" "),t.floatLayer.is_show_type?e("div",{staticClass:"floatLayer-wrap"},[e("div",{staticClass:"floatLayer"},[e("div",{staticClass:"img-wrap"},[e("img",{attrs:{src:t.$img(t.floatLayer.img_url)},on:{click:function(e){return t.$util.pushToTab(t.floatLayer.link.url)}}})]),t._v(" "),e("i",{staticClass:"el-icon-circle-close",on:{click:t.closeFloat}})])]):t._e(),t._v(" "),e("div",{staticClass:"fixed-box",style:{display:t.isShow?"block":"none"}},[e("ns-header-mid")],1)])])}),[],!1,null,null,null);e.default=component.exports}}]);