| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[28,20],{498:function(t,e,o){var content=o(502);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(21).default)("1df0c15c",content,!0,{sourceMap:!1})},500:function(t,e,o){"use strict";o.r(e);o(309);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(501),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},501:function(t,e,o){"use strict";o(498)},502:function(t,e,o){var r=o(20)((function(i){return i[1]}));r.push([t.i,".price-format{align-items:baseline;display:flex}",""]),r.locals={},t.exports=r},547:function(t,e,o){var content=o(573);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(21).default)("6cc4987d",content,!0,{sourceMap:!1})},572:function(t,e,o){"use strict";o(547)},573:function(t,e,o){var r=o(20)((function(i){return i[1]}));r.push([t.i,".goods[data-v-4bc2619c]{border-radius:8px;margin-top:16px;padding:0 20px}.goods .goods-header[data-v-4bc2619c]{height:66px}.goods .goods-header .title[data-v-4bc2619c]{font-size:20px;text-align:center;width:100%}.goods .goods-lists[data-v-4bc2619c]{display:flex;flex-wrap:wrap}.goods .goods-lists .goods-item[data-v-4bc2619c]{border-radius:4px;margin-bottom:24px;width:212px}.goods .goods-lists .goods-item[data-v-4bc2619c]:not(:nth-of-type(5n)){margin-right:20px}.goods .goods-lists .goods-item .goods-image[data-v-4bc2619c]{height:0;padding-top:100%;position:relative}.goods .goods-lists .goods-item .goods-image .el-image[data-v-4bc2619c]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.goods .goods-lists .goods-item .goods-name[data-v-4bc2619c]{height:40px;line-height:20px;margin-bottom:10px;margin-top:14px}.goods .goods-lists .goods-item .goods-price[data-v-4bc2619c]{color:#ff2c3c}",""]),r.locals={},t.exports=r},627:function(t,e,o){"use strict";o.r(e);o(32),o(309);var r={props:{content:{type:[Object,Array]},styles:{type:[Object,Array]}},computed:{goods:function(){return this.content.data}}},n=(o(572),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods bg-white",staticStyle:{"padding-top":"30px"}},[e("div",{staticClass:"goods-header flex row-between"},[e("div",{staticClass:"title"},[e("div",[t._v("\n "+t._s(t.content.title)+"\n ")]),t._v(" "),e("span",{staticClass:"nr muted"},[t._v(t._s(t.content.subtitle))])]),t._v(" "),t.content.show_more?e("div",{staticClass:"more lighter",staticStyle:{position:"absolute",right:"200px"}},[e("nuxt-link",{staticStyle:{display:"flex","align-items":"center"},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:"380px"},attrs:{src:t.$getImageUri(t.content.adv_url),fit:"cover"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"goods-lists",staticStyle:{padding:"40px 100px"}},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",{staticStyle:{"border-radius":"20px"},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,"4bc2619c",null);e.default=component.exports;installComponents(component,{AppLink:o(206).default,PriceFormate:o(500).default})}}]);
|