0bd4dcb.js 4.9 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[28,20],{483:function(t,e,o){var content=o(487);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("bc98bd04",content,!0,{sourceMap:!1})},485:function(t,e,o){"use strict";o.r(e);o(300);var r={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},n=(o(486),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?e("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),e("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?e("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},486:function(t,e,o){"use strict";o(483)},487:function(t,e,o){var r=o(19)((function(i){return i[1]}));r.push([t.i,".price-format{align-items:baseline;display:flex}",""]),r.locals={},t.exports=r},533:function(t,e,o){var content=o(560);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(20).default)("19e2862c",content,!0,{sourceMap:!1})},559:function(t,e,o){"use strict";o(533)},560:function(t,e,o){var r=o(19)((function(i){return i[1]}));r.push([t.i,".goods[data-v-66c21049]{border-radius:8px;margin-top:16px;padding:0 20px}.goods .goods-header[data-v-66c21049]{height:66px}.goods .goods-header .title[data-v-66c21049]{font-size:20px}.goods .goods-lists[data-v-66c21049]{display:flex;flex-wrap:wrap}.goods .goods-lists .goods-item[data-v-66c21049]{border-radius:4px;margin-bottom:24px;width:212px}.goods .goods-lists .goods-item[data-v-66c21049]:not(:nth-of-type(5n)){margin-right:20px}.goods .goods-lists .goods-item .goods-image[data-v-66c21049]{height:0;padding-top:100%;position:relative}.goods .goods-lists .goods-item .goods-image .el-image[data-v-66c21049]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.goods .goods-lists .goods-item .goods-name[data-v-66c21049]{height:40px;line-height:20px;margin-bottom:10px;margin-top:14px}.goods .goods-lists .goods-item .goods-price[data-v-66c21049]{color:#ff2c3c}",""]),r.locals={},t.exports=r},612:function(t,e,o){"use strict";o.r(e);o(30),o(300);var r={props:{content:{type:[Object,Array]},styles:{type:[Object,Array]}},computed:{goods:function(){return this.content.data}}},n=(o(559),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods bg-white"},[e("div",{staticClass:"goods-header flex row-between"},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t.content.title)+"\n "),e("span",{staticClass:"nr muted"},[t._v(t._s(t.content.subtitle))])]),t._v(" "),t.content.show_more?e("div",{staticClass:"more lighter"},[e("nuxt-link",{attrs:{to:"/goods_list"}},[t._v("\n 更多 "),e("i",{staticClass:"el-icon-arrow-right"})])],1):t._e()]),t._v(" "),1==t.content.show_adv?e("div",{staticClass:"banner m-b-16"},[e("app-link",{attrs:{to:{path:t.content.adv_link.path,query:t.content.adv_link.params}}},[e("el-image",{staticStyle:{width:"100%",height:"200px"},attrs:{src:t.$getImageUri(t.content.adv_url),fit:"cover"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"goods-lists"},t._l(t.goods,(function(o,r){return e("nuxt-link",{key:r,staticClass:"goods-item",attrs:{to:"/goods_details?id=".concat(o.id)}},[e("div",{staticClass:"goods-image"},[e("el-image",{attrs:{src:o.image,fit:"cover"}})],1),t._v(" "),e("div",{staticClass:"goods-name line-2"},[t._v("\n "+t._s(o.name)+"\n ")]),t._v(" "),e("div",{staticClass:"goods-price flex-1 flex col-baseline"},[e("div",{staticClass:"price weight-500 m-r-5 xl"},[e("price-formate",{attrs:{price:o.sell_price,"first-size":18}})],1),t._v(" "),Number(o.lineation_price)?e("div",{staticClass:"muted line-through xs"},[e("price-formate",{attrs:{price:o.lineation_price,"first-size":12,"second-size":12,"subscript-size":12}})],1):t._e(),t._v(" "),e("div",{staticClass:"flex-1"}),t._v(" "),e("div",{staticClass:"muted xs"},[t._v(t._s(o.sales_num)+"人购买")])])])})),1)])}),[],!1,null,"66c21049",null);e.default=component.exports;installComponents(component,{AppLink:o(194).default,PriceFormate:o(485).default})}}]);