3f7cb9c.js 2.1 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[29],{578:function(t,e,n){t.exports={}},611:function(t,e,n){"use strict";n(578)},688:function(t,e,n){"use strict";n.r(e);n(43),n(79),n(42);var c={props:{cardData:{},toggle:{type:Boolean,default:!1}},data:function(){return{}},watch:{"cardData.media_url":function(t,e){t!==e&&this.$refs.video&&this.$refs.video.load()}},methods:{emitLabel:function(t){this.$emit("labelEvent",t)},handLeftBtn:function(){this.$emit("leftBtnEvent")},handRightBtn:function(){this.$emit("rightBtnEvent")}}},r=(n(611),n(21)),component=Object(r.a)(c,(function(){var t=this,e=t._self._c;return e("figure",{class:["card",{row:t.toggle}]},[e("div",{staticClass:"card-media",on:{click:t.handLeftBtn}},[5===t.cardData.type&&t.toggle?e("video",{ref:"video",staticClass:"card-media-content",attrs:{controls:""}},[e("source",{attrs:{src:t.cardData.media_url}}),t._v("\n Your browser does not support the video tag.\n ")]):e("el-image",{staticClass:"card-img-1",staticStyle:{width:"100%",height:"100%"},attrs:{src:1===t.cardData.type||8===t.cardData.type?t.cardData.media_url:t.cardData.image,fit:"contain"}}),t._v(" "),t.cardData.typeName&&!t.toggle?e("div",{staticClass:"type-icon"},[t._v("\n "+t._s(t.cardData.typeName.toUpperCase())+"\n ")]):t._e()],1),t._v(" "),e("figcaption",{staticClass:"card-info"},[e("div",{staticClass:"card-info-1"},[e("h1",[t._v(t._s(t.cardData.name))]),t._v(" "),e("p",{staticClass:"card-info-point",domProps:{innerHTML:t._s(t.cardData.description)}}),t._v(" "),e("ul",{staticClass:"card-info-label"},[t._l(t.cardData.mapLabel,(function(n,c){return e("li",{key:c,on:{click:function(e){return t.emitLabel(n)}}},[t._v("\n "+t._s(n)+"\n ")])})),t._v(" "),t._l(t.cardData.sku,(function(n,i){return e("nuxt-link",{key:n+i,attrs:{to:{name:"product-code",params:{code:n}},target:"_blank"}},[e("li",[t._v(t._s(n))])])}))],2)]),t._v(" "),e("div",{staticClass:"card-info-btn"},[t.toggle?t._e():e("el-button",{on:{click:t.handLeftBtn}},[t._v("View")]),t._v(" "),e("el-button",{on:{click:t.handRightBtn}},[t._v("Download")])],1)])])}),[],!1,null,"69177590",null);e.default=component.exports}}]);
  2. //# sourceMappingURL=3f7cb9c.js.map