295ea99.js 2.0 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{543:function(t,c,r){t.exports={}},547:function(t,c,r){"use strict";var n=r(2),o=r(99).find,e=r(218),d="find",l=!0;d in[]&&Array(1)[d]((function(){l=!1})),n({target:"Array",proto:!0,forced:l},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(d)},548:function(t,c,r){"use strict";r.r(c);r(547),r(42),r(11);var n={props:{cardData:{},showPricing:{type:Boolean,default:!1}},data:function(){return{}},computed:{comImg:function(){var t;return this.$utils.generateResizedImageUrl(null===(t=this.cardData.main)||void 0===t?void 0:t.image,300)},comBestIcon:function(){var t,c=null===(t=this.cardData.collection_detail)||void 0===t?void 0:t.find((function(t){return"Best Seller"===t.name}));return c?c.img:""}},methods:{goProduct:function(t){this.$router.push({name:"product-code",params:{code:t.product_code}})}}},o=(r(552),r(21)),component=Object(o.a)(n,(function(){var t=this,c=t._self._c;return c("nuxt-link",{staticClass:"card",attrs:{to:{name:"product-code",params:{code:t.cardData.product_code}}}},[c("figure",[c("div",{staticClass:"card-img"},[c("el-image",{staticClass:"card-img-1",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.comImg,fit:"cover"}}),t._v(" "),t.comBestIcon?c("img",{staticClass:"best_icon",attrs:{src:t.comBestIcon}}):t._e(),t._v(" "),c("div",{staticClass:"cycle_icon"},t._l(t.cardData.cycle_icon,(function(t,r){return c("img",{key:r,attrs:{src:t.images}})})),0)],1),t._v(" "),t.showPricing?c("p",{staticClass:"show-pricing"},[t._v("Pricing")]):t._e(),t._v(" "),c("figcaption",{staticClass:"card-info"},[c("h1",[t._v(t._s(t.cardData.product_name))]),t._v(" "),c("p",{staticClass:"card-info-point"},[t._v(t._s(t.cardData.product_code))]),t._v(" "),c("div",{staticClass:"card-info-icon"},t._l(t.cardData.icon,(function(t,r){return c("img",{key:r,attrs:{src:t.url}})})),0)])])])}),[],!1,null,"325df89a",null);c.default=component.exports},552:function(t,c,r){"use strict";r(543)}}]);
  2. //# sourceMappingURL=295ea99.js.map