index.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. exports.ids = [72,3,22];
  2. exports.modules = {
  3. /***/ 150:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 153:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_325df89a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(150);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_325df89a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_325df89a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_325df89a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Card_vue_vue_type_style_index_0_id_325df89a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 155:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Card.vue?vue&type=template&id=325df89a&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('nuxt-link', {
  27. staticClass: "card",
  28. attrs: {
  29. "to": {
  30. name: 'product-code',
  31. params: {
  32. code: _vm.cardData.product_code
  33. }
  34. }
  35. }
  36. }, [_c('figure', [_c('div', {
  37. staticClass: "card-img"
  38. }, [_c('el-image', {
  39. staticClass: "card-img-1",
  40. staticStyle: {
  41. "width": "100%",
  42. "height": "100%"
  43. },
  44. attrs: {
  45. "src": _vm.comImg,
  46. "fit": "cover"
  47. }
  48. }), _vm._v(" "), _vm.comBestIcon ? _c('img', {
  49. staticClass: "best_icon",
  50. attrs: {
  51. "src": _vm.comBestIcon
  52. }
  53. }) : _vm._e(), _vm._v(" "), _c('div', {
  54. staticClass: "cycle_icon"
  55. }, _vm._l(_vm.cardData.cycle_icon, function (item, index) {
  56. return _c('img', {
  57. key: index,
  58. attrs: {
  59. "src": item.images
  60. }
  61. });
  62. }), 0)], 1), _vm._v(" "), _vm.showPricing ? _c('p', {
  63. staticClass: "show-pricing"
  64. }, [_vm._v("Pricing")]) : _vm._e(), _vm._v(" "), _c('figcaption', {
  65. staticClass: "card-info"
  66. }, [_c('h1', [_vm._v(_vm._s(_vm.cardData.product_name))]), _vm._v(" "), _c('p', {
  67. staticClass: "card-info-point"
  68. }, [_vm._v(_vm._s(_vm.cardData.product_code))]), _vm._v(" "), _c('div', {
  69. staticClass: "card-info-icon"
  70. }, _vm._l(_vm.cardData.icon, function (item, index) {
  71. return _c('img', {
  72. key: index,
  73. attrs: {
  74. "src": item.url
  75. }
  76. });
  77. }), 0)])])]);
  78. };
  79. var staticRenderFns = [];
  80. // CONCATENATED MODULE: ./components/Card.vue?vue&type=template&id=325df89a&scoped=true
  81. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Card.vue?vue&type=script&lang=js
  82. /* harmony default export */ var Cardvue_type_script_lang_js = ({
  83. props: {
  84. cardData: {},
  85. showPricing: {
  86. type: Boolean,
  87. default: false
  88. }
  89. },
  90. data() {
  91. return {};
  92. },
  93. computed: {
  94. comImg() {
  95. var _this$cardData$main;
  96. return this.$utils.generateResizedImageUrl((_this$cardData$main = this.cardData.main) === null || _this$cardData$main === void 0 ? void 0 : _this$cardData$main.image, 300);
  97. },
  98. comBestIcon() {
  99. var _this$cardData$collec;
  100. const bestSeller = (_this$cardData$collec = this.cardData.collection_detail) === null || _this$cardData$collec === void 0 ? void 0 : _this$cardData$collec.find(item => item.name === "Best Seller");
  101. return bestSeller ? bestSeller.img : '';
  102. }
  103. },
  104. methods: {
  105. goProduct(cardData) {
  106. this.$router.push({
  107. name: "product-code",
  108. params: {
  109. code: cardData.product_code
  110. }
  111. });
  112. // let routeData = this.$router.resolve({
  113. // name: "product-code",
  114. // params:{ code: cardData.product_code },
  115. // });
  116. // window.open(routeData.href, '_blank');
  117. }
  118. }
  119. });
  120. // CONCATENATED MODULE: ./components/Card.vue?vue&type=script&lang=js
  121. /* harmony default export */ var components_Cardvue_type_script_lang_js = (Cardvue_type_script_lang_js);
  122. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  123. var componentNormalizer = __webpack_require__(2);
  124. // CONCATENATED MODULE: ./components/Card.vue
  125. function injectStyles (context) {
  126. var style0 = __webpack_require__(153)
  127. if (style0.__inject__) style0.__inject__(context)
  128. }
  129. /* normalize component */
  130. var component = Object(componentNormalizer["a" /* default */])(
  131. components_Cardvue_type_script_lang_js,
  132. render,
  133. staticRenderFns,
  134. false,
  135. injectStyles,
  136. "325df89a",
  137. "ccce3584"
  138. )
  139. /* harmony default export */ var Card = __webpack_exports__["default"] = (component.exports);
  140. /***/ }),
  141. /***/ 164:
  142. /***/ (function(module, exports) {
  143. // Exports
  144. module.exports = {
  145. };
  146. /***/ }),
  147. /***/ 184:
  148. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  149. "use strict";
  150. __webpack_require__.r(__webpack_exports__);
  151. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcTitle_vue_vue_type_style_index_0_id_8446d0ce_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(164);
  152. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcTitle_vue_vue_type_style_index_0_id_8446d0ce_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcTitle_vue_vue_type_style_index_0_id_8446d0ce_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  153. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcTitle_vue_vue_type_style_index_0_id_8446d0ce_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcTitle_vue_vue_type_style_index_0_id_8446d0ce_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  154. /***/ }),
  155. /***/ 195:
  156. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  157. "use strict";
  158. // ESM COMPAT FLAG
  159. __webpack_require__.r(__webpack_exports__);
  160. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PcTitle.vue?vue&type=template&id=8446d0ce&scoped=true
  161. var render = function render() {
  162. var _vm = this,
  163. _c = _vm._self._c;
  164. return _c('section', [_vm._ssrNode("<h1" + _vm._ssrStyle(null, {
  165. 'marginTop': _vm.marginTop + 'px'
  166. }, null) + " data-v-8446d0ce>" + _vm._ssrEscape("\n " + _vm._s(_vm.title) + "\n ") + "</h1> <span class=\"decoration\" data-v-8446d0ce></span>")]);
  167. };
  168. var staticRenderFns = [];
  169. // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=template&id=8446d0ce&scoped=true
  170. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PcTitle.vue?vue&type=script&lang=js
  171. /* harmony default export */ var PcTitlevue_type_script_lang_js = ({
  172. props: {
  173. title: String,
  174. marginTop: {
  175. type: Number
  176. }
  177. }
  178. });
  179. // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=script&lang=js
  180. /* harmony default export */ var components_PcTitlevue_type_script_lang_js = (PcTitlevue_type_script_lang_js);
  181. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  182. var componentNormalizer = __webpack_require__(2);
  183. // CONCATENATED MODULE: ./components/PcTitle.vue
  184. function injectStyles (context) {
  185. var style0 = __webpack_require__(184)
  186. if (style0.__inject__) style0.__inject__(context)
  187. }
  188. /* normalize component */
  189. var component = Object(componentNormalizer["a" /* default */])(
  190. components_PcTitlevue_type_script_lang_js,
  191. render,
  192. staticRenderFns,
  193. false,
  194. injectStyles,
  195. "8446d0ce",
  196. "67cde632"
  197. )
  198. /* harmony default export */ var PcTitle = __webpack_exports__["default"] = (component.exports);
  199. /***/ }),
  200. /***/ 248:
  201. /***/ (function(module, exports) {
  202. // Exports
  203. module.exports = {
  204. };
  205. /***/ }),
  206. /***/ 300:
  207. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  208. "use strict";
  209. __webpack_require__.r(__webpack_exports__);
  210. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_28142f78_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(248);
  211. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_28142f78_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_28142f78_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  212. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_28142f78_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_28142f78_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  213. /***/ }),
  214. /***/ 349:
  215. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  216. "use strict";
  217. // ESM COMPAT FLAG
  218. __webpack_require__.r(__webpack_exports__);
  219. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/product/index.vue?vue&type=template&id=28142f78&scoped=true
  220. var render = function render() {
  221. var _vm = this,
  222. _c = _vm._self._c;
  223. return _c('div', {
  224. staticClass: "com-main com-margin-auto com-width-1400"
  225. }, [_vm._ssrNode("<section class=\"com-width-1200 com-margin-auto\" data-v-28142f78>", "</section>", [_c('pc-title', {
  226. attrs: {
  227. "title": 'Related ltems'
  228. }
  229. }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-wrap com-margin-auto\" data-v-28142f78>", "</div>", _vm._l(_vm.indexGoodsRankLists, function (item, k) {
  230. return _c('card', {
  231. key: k,
  232. attrs: {
  233. "cardData": item
  234. }
  235. });
  236. }), 1)], 2)]);
  237. };
  238. var staticRenderFns = [];
  239. // CONCATENATED MODULE: ./pages/product/index.vue?vue&type=template&id=28142f78&scoped=true
  240. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/product/index.vue?vue&type=script&lang=js
  241. /* harmony default export */ var productvue_type_script_lang_js = ({
  242. layout: 'default',
  243. async asyncData({
  244. $axios
  245. }) {
  246. const indexGoodsRankLists = await $axios.get("/uk-api/home/indexGoodsRankList");
  247. return {
  248. indexGoodsRankLists: indexGoodsRankLists.result
  249. };
  250. },
  251. data() {
  252. return {};
  253. },
  254. methods: {}
  255. });
  256. // CONCATENATED MODULE: ./pages/product/index.vue?vue&type=script&lang=js
  257. /* harmony default export */ var pages_productvue_type_script_lang_js = (productvue_type_script_lang_js);
  258. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  259. var componentNormalizer = __webpack_require__(2);
  260. // CONCATENATED MODULE: ./pages/product/index.vue
  261. function injectStyles (context) {
  262. var style0 = __webpack_require__(300)
  263. if (style0.__inject__) style0.__inject__(context)
  264. }
  265. /* normalize component */
  266. var component = Object(componentNormalizer["a" /* default */])(
  267. pages_productvue_type_script_lang_js,
  268. render,
  269. staticRenderFns,
  270. false,
  271. injectStyles,
  272. "28142f78",
  273. "03d0eddc"
  274. )
  275. /* harmony default export */ var product = __webpack_exports__["default"] = (component.exports);
  276. /* nuxt-component-imports */
  277. installComponents(component, {PcTitle: __webpack_require__(195).default,Card: __webpack_require__(155).default})
  278. /***/ })
  279. };;
  280. //# sourceMappingURL=index.js.map