text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-992317f6"],{"33ff":function(t,e,i){},"4a77":function(t,e,i){"use strict";i("a638")},"92fa":function(t,e){var i=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var n,a,o,s,c;for(o in e)if(n=t[o],a=e[o],n&&i.test(o))if("class"===o&&("string"===typeof n&&(c=n,t[o]=n={},n[c]=!0),"string"===typeof a&&(c=a,e[o]=a={},a[c]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)n[s]=r(n[s],a[s]);else if(Array.isArray(n))t[o]=n.concat(a);else if(Array.isArray(a))t[o]=[n].concat(a);else for(s in a)n[s]=a[s];else t[o]=e[o];return t}),{})}},"99af":function(t,e,i){"use strict";var r=i("23e7"),n=i("d039"),a=i("e8b5"),o=i("861d"),s=i("7b0b"),c=i("50c4"),d=i("8418"),u=i("65f0"),l=i("1dde"),p=i("b622"),f=i("2d00"),h=p("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",m=f>=51||!n((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=l("concat"),v=function(t){if(!o(t))return!1;var e=t[h];return void 0!==e?!!e:a(t)},_=!m||!b;r({target:"Array",proto:!0,forced:_},{concat:function(t){var e,i,r,n,a,o=s(this),l=u(o,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],v(a)){if(n=c(a.length),p+n>g)throw TypeError(y);for(i=0;i<n;i++,p++)i in a&&d(l,p,a[i])}else{if(p>=g)throw TypeError(y);d(l,p++,a)}return l.length=p,l}})},a638:function(t,e,i){},bbf9:function(t,e,i){"use strict";i("33ff")},c4c8:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return a})),i.d(e,"b",(function(){return o})),i.d(e,"e",(function(){return s})),i.d(e,"a",(function(){return c})),i.d(e,"f",(function(){return d}));var r=i("b775");function n(t){return Object(r["a"])({url:"/product/list",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/product/category",method:"get",params:t})}function o(){return Object(r["a"])({url:"/product/freeShippingPrice",method:"get"})}function s(t){return Object(r["a"])({url:"/product/collect/".concat(t),method:"get"})}function c(t){return Object(r["a"])({url:"/product/collect/".concat(t),method:"post"})}function d(t){return Object(r["a"])({url:"/product/collect/".concat(t),method:"delete"})}},e330:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var r=i("92fa"),n=i.n(r),a=function(){return Math.random().toString(36).substring(2)},o={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(t,e){var i=e.props,r=e.data,o=e.children,s=i.uniqueKey?i.uniqueKey+"-idClip":a(),c=i.uniqueKey?i.uniqueKey+"-idGradient":a();return t("svg",n()([r,{attrs:{viewBox:"0 0 "+i.width+" "+i.height,version:"1.1",preserveAspectRatio:i.preserveAspectRatio}}]),[t("rect",{style:{fill:"url("+i.baseUrl+"#"+c+")"},attrs:{"clip-path":"url("+i.baseUrl+"#"+s+")",x:"0",y:"0",width:i.width,height:i.height}}),t("defs",[t("clipPath",{attrs:{id:s}},[o||t("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:i.width,height:i.height}})]),t("linearGradient",{attrs:{id:c}},[t("stop",{attrs:{offset:"0%","stop-color":i.primaryColor,"stop-opacity":i.primaryOpacity}},[i.animate?t("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:i.speed+"s",repeatCount:"indefinite"}}):null]),t("stop",{attrs:{offset:"50%","stop-color":i.secondaryColor,"stop-opacity":i.secondaryOpacity}},[i.animate?t("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:i.speed+"s",repeatCount:"indefinite"}}):null]),t("stop",{attrs:{offset:"100%","stop-color":i.primaryColor,"stop-opacity":i.primaryOpacity}},[i.animate?t("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:i.speed+"s",repeatCount:"indefinite"}}):null])])])])}}},e6e2:function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product"},[i("nav-bar",{attrs:{title:"商品列表"}}),i("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.topicContent)}}),i("div",{staticClass:"main"},[i("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(t,e){return i("product-item",{key:e,staticStyle:{"margin-bottom":"6px"},attrs:{"product-id":t.goodsId,img:t.img,title:t.title,desc:t.desc,price:t.discountPrice,"old-price":t.price}})})),1)],1)]),t.isSkeletonShow?i("Skeleton"):t._e()],1)},n=[],a=(i("99af"),i("2909")),o=i("c4c8"),s=i("e590"),c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"product-item",on:{click:t.onClick}},[i("image-pic",{attrs:{src:t.img,width:"90",height:"90"}}),i("div",{staticClass:"desc"},[i("div",{staticClass:"desc__top"},[i("h3",{staticClass:"desc__top__title"},[t._v(t._s(t.title))]),i("p",{staticClass:"desc__top__info"},[t._v(t._s(t.desc))])]),i("div",{staticClass:"desc__bottom"},[i("div",{staticClass:"desc__bottom__info"},[i("p",{staticClass:"price"},[i("span",{staticClass:"price--new"},[t._v("¥"+t._s(t._f("toDecimal")(t.price)))]),t.oldPrice!=t.price?i("span",{staticClass:"price--old"},[t._v("¥"+t._s(t._f("toDecimal")(t.oldPrice)))]):t._e()])]),i("div",{staticClass:"desc__bottom__btn"},[i("van-button",{staticClass:"btn",attrs:{size:"mini"}},[t._v("立即购买")])],1)])])],1)},d=[],u={props:["productId","img","title","desc","price","oldPrice","percentage"],methods:{onClick:function(){console.log(this.productId),this.$router.push({path:"/detail",query:{productId:this.productId,t:+new Date}})}}},l=u,p=(i("bbf9"),i("2877")),f=Object(p["a"])(l,c,d,!1,null,"c85b96f4",null),h=f.exports,g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"skeleton"},[i("ContentLoader",{attrs:{width:"325",height:"600"}},[i("rect",{attrs:{x:"10",y:"5",rx:"3",ry:"3",width:"305",height:"30"}}),i("rect",{attrs:{x:"10",y:"42",rx:"3",ry:"3",width:"305",height:"80"}}),i("rect",{attrs:{x:"10",y:"130",rx:"3",ry:"3",width:"305",height:"80"}}),i("rect",{attrs:{x:"10",y:"220",rx:"3",ry:"3",width:"305",height:"80"}}),i("rect",{attrs:{x:"10",y:"310",rx:"3",ry:"3",width:"305",height:"80"}}),i("rect",{attrs:{x:"10",y:"400",rx:"3",ry:"3",width:"305",height:"20"}}),i("rect",{attrs:{x:"60",y:"435",rx:"3",ry:"3",width:"205",height:"10"}}),i("rect",{attrs:{x:"60",y:"460",rx:"3",ry:"3",width:"205",height:"10"}})])],1)},y=[],m=i("e330"),b={components:{ContentLoader:m["a"]}},v=b,_=(i("fc6b"),Object(p["a"])(v,g,y,!1,null,"00d3b4da",null)),C=_.exports,x=i("cf1e"),w=i.n(x),S={name:"Product",components:{NavBar:s["a"],ProductItem:h,Skeleton:C},data:function(){return{list:[],pageNo:0,pageSize:8,loading:!1,finished:!1,refreshing:!1,isSkeletonShow:!0,topicContent:"",isCategory:!1}},computed:{variables:function(){return w.a}},methods:{getProductList:function(){var t=this;Object(o["c"])({topicId:this.$route.query.topicId,page:this.pageNo,size:this.pageSize}).then((function(e){var i=e.data.data.hotGoodsVo;t.topicContent=e.data.data.content,t.refreshing?(t.list=i,t.refreshing=!1,t.finished=!1):(t.list=[].concat(Object(a["a"])(t.list),Object(a["a"])(i)),i.length<t.pageSize&&(t.finished=!0)),t.loading=!1,t.isSkeletonShow=!1}))},onLoad:function(){this.finished||(this.loading=!0,this.pageNo+=1,this.getProductList())},onRefresh:function(){this.refreshing=!0,this.pageNo=1,this.getProductList()}}},O=S,k=(i("4a77"),Object(p["a"])(O,r,n,!1,null,"46740d28",null));e["default"]=k.exports},e8d4:function(t,e,i){},fc6b:function(t,e,i){"use strict";i("e8d4")}}]);
  //# sourceMappingURL=chunk-992317f6.5a0ba4ca.js.map