index.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814
  1. exports.ids = [66,3,4,22,30,31];
  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. /***/ 210:
  201. /***/ (function(module, exports) {
  202. // Exports
  203. module.exports = {
  204. };
  205. /***/ }),
  206. /***/ 211:
  207. /***/ (function(module, exports) {
  208. // Exports
  209. module.exports = {
  210. };
  211. /***/ }),
  212. /***/ 212:
  213. /***/ (function(module, exports) {
  214. // Exports
  215. module.exports = {
  216. };
  217. /***/ }),
  218. /***/ 230:
  219. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  220. "use strict";
  221. __webpack_require__.r(__webpack_exports__);
  222. /* 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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(210);
  223. /* 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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  224. /* 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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  225. /***/ }),
  226. /***/ 231:
  227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  228. "use strict";
  229. __webpack_require__.r(__webpack_exports__);
  230. /* 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_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(211);
  231. /* 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_SubNav_vue_vue_type_style_index_0_id_caaef568_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_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  232. /* 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_SubNav_vue_vue_type_style_index_0_id_caaef568_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_SubNav_vue_vue_type_style_index_0_id_caaef568_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  233. /***/ }),
  234. /***/ 232:
  235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  236. "use strict";
  237. __webpack_require__.r(__webpack_exports__);
  238. /* 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_RowCard_vue_vue_type_style_index_0_id_42187791_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(212);
  239. /* 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_RowCard_vue_vue_type_style_index_0_id_42187791_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_RowCard_vue_vue_type_style_index_0_id_42187791_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  240. /* 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_RowCard_vue_vue_type_style_index_0_id_42187791_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_RowCard_vue_vue_type_style_index_0_id_42187791_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  241. /***/ }),
  242. /***/ 267:
  243. /***/ (function(module, exports) {
  244. // Exports
  245. module.exports = {
  246. };
  247. /***/ }),
  248. /***/ 289:
  249. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  250. "use strict";
  251. // ESM COMPAT FLAG
  252. __webpack_require__.r(__webpack_exports__);
  253. // 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/Carousel.vue?vue&type=template&id=5cbc4b7c&scoped=true
  254. var render = function render() {
  255. var _vm = this,
  256. _c = _vm._self._c;
  257. return _c('el-carousel', {
  258. attrs: {
  259. "interval": 5000,
  260. "arrow": "always",
  261. "height": _vm.height
  262. }
  263. }, _vm._l(_vm.banner, function (item) {
  264. return _c('el-carousel-item', {
  265. key: item.id
  266. }, [_c('a', {
  267. attrs: {
  268. "href": item.link,
  269. "target": "_blank"
  270. }
  271. }, [_c('div', {
  272. staticClass: "banner",
  273. style: {
  274. backgroundImage: `url(${item.image}`
  275. }
  276. })])]);
  277. }), 1);
  278. };
  279. var staticRenderFns = [];
  280. // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=template&id=5cbc4b7c&scoped=true
  281. // 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/Carousel.vue?vue&type=script&lang=js
  282. /* harmony default export */ var Carouselvue_type_script_lang_js = ({
  283. props: {
  284. banner: [],
  285. height: String
  286. }
  287. });
  288. // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=script&lang=js
  289. /* harmony default export */ var components_Carouselvue_type_script_lang_js = (Carouselvue_type_script_lang_js);
  290. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  291. var componentNormalizer = __webpack_require__(2);
  292. // CONCATENATED MODULE: ./components/Carousel.vue
  293. function injectStyles (context) {
  294. var style0 = __webpack_require__(230)
  295. if (style0.__inject__) style0.__inject__(context)
  296. }
  297. /* normalize component */
  298. var component = Object(componentNormalizer["a" /* default */])(
  299. components_Carouselvue_type_script_lang_js,
  300. render,
  301. staticRenderFns,
  302. false,
  303. injectStyles,
  304. "5cbc4b7c",
  305. "20e5688e"
  306. )
  307. /* harmony default export */ var Carousel = __webpack_exports__["default"] = (component.exports);
  308. /***/ }),
  309. /***/ 290:
  310. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  311. "use strict";
  312. // ESM COMPAT FLAG
  313. __webpack_require__.r(__webpack_exports__);
  314. // 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/SubNav.vue?vue&type=template&id=caaef568&scoped=true
  315. var render = function render() {
  316. var _vm = this,
  317. _c = _vm._self._c;
  318. return _c('section', {
  319. staticClass: "com-margin-auto sub-nav",
  320. style: {
  321. 'max-width': `${_vm.com_secondaryBannerLth * 350}px`,
  322. 'grid-template-columns': `repeat(${_vm.com_secondaryBannerLth}, 1fr)`
  323. }
  324. }, _vm._l(_vm.com_secondaryBanner, function (item) {
  325. return _vm._ssrNode("<figure data-v-caaef568>", "</figure>", [_vm._ssrNode("<a" + _vm._ssrAttr("href", item.link) + " target=\"_blank\" data-v-caaef568>", "</a>", [_c('el-image', {
  326. staticStyle: {
  327. "width": "100%"
  328. },
  329. style: {
  330. height: _vm.imageLoaded ? '100%' : '268px'
  331. },
  332. attrs: {
  333. "lazy": "",
  334. "src": item.image,
  335. "alt": item.title,
  336. "fit": "cover"
  337. },
  338. on: {
  339. "load": function ($event) {
  340. _vm.imageLoaded = true;
  341. }
  342. }
  343. })], 1)]);
  344. }), 0);
  345. };
  346. var staticRenderFns = [];
  347. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=template&id=caaef568&scoped=true
  348. // 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/SubNav.vue?vue&type=script&lang=js
  349. /* harmony default export */ var SubNavvue_type_script_lang_js = ({
  350. props: {
  351. secondaryBanner: []
  352. },
  353. data() {
  354. return {
  355. imageLoaded: false
  356. };
  357. },
  358. computed: {
  359. com_secondaryBanner() {
  360. return this.secondaryBanner.slice(0, 4);
  361. },
  362. com_secondaryBannerLth() {
  363. var _this$com_secondaryBa;
  364. return (_this$com_secondaryBa = this.com_secondaryBanner) === null || _this$com_secondaryBa === void 0 ? void 0 : _this$com_secondaryBa.length;
  365. }
  366. }
  367. });
  368. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=script&lang=js
  369. /* harmony default export */ var components_SubNavvue_type_script_lang_js = (SubNavvue_type_script_lang_js);
  370. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  371. var componentNormalizer = __webpack_require__(2);
  372. // CONCATENATED MODULE: ./components/SubNav.vue
  373. function injectStyles (context) {
  374. var style0 = __webpack_require__(231)
  375. if (style0.__inject__) style0.__inject__(context)
  376. }
  377. /* normalize component */
  378. var component = Object(componentNormalizer["a" /* default */])(
  379. components_SubNavvue_type_script_lang_js,
  380. render,
  381. staticRenderFns,
  382. false,
  383. injectStyles,
  384. "caaef568",
  385. "8420d41e"
  386. )
  387. /* harmony default export */ var SubNav = __webpack_exports__["default"] = (component.exports);
  388. /***/ }),
  389. /***/ 291:
  390. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  391. "use strict";
  392. // ESM COMPAT FLAG
  393. __webpack_require__.r(__webpack_exports__);
  394. // 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/RowCard.vue?vue&type=template&id=42187791&scoped=true
  395. var render = function render() {
  396. var _vm = this,
  397. _c = _vm._self._c;
  398. return _c('a', {
  399. attrs: {
  400. "href": _vm.data.link,
  401. "target": "_target"
  402. }
  403. }, [_vm._ssrNode("<figure class=\"card\" data-v-42187791><div class=\"img\"" + _vm._ssrStyle(null, {
  404. backgroundImage: 'url(' + _vm.data.image + ')'
  405. }, null) + " data-v-42187791></div> <figcaption class=\"card-title\" data-v-42187791>" + _vm._ssrEscape("\n " + _vm._s(_vm.data.title) + "\n ") + "</figcaption> <figcaption class=\"card-info\" data-v-42187791><p data-v-42187791>" + _vm._ssrEscape(_vm._s(_vm._f("setTime")(_vm.data.update_time))) + "</p> <p data-v-42187791>" + _vm._ssrEscape(_vm._s(_vm.data.description)) + "</p></figcaption></figure>")]);
  406. };
  407. var staticRenderFns = [];
  408. // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=template&id=42187791&scoped=true
  409. // 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/RowCard.vue?vue&type=script&lang=js
  410. /* harmony default export */ var RowCardvue_type_script_lang_js = ({
  411. props: {
  412. data: {}
  413. },
  414. filters: {
  415. setTime(val) {
  416. let tempArr = val.split(' ');
  417. let timeStr = tempArr[0];
  418. let timeArr = timeStr.split('-');
  419. return `${timeArr[2]}-${timeArr[1]}-${timeArr[0]}`;
  420. }
  421. }
  422. });
  423. // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=script&lang=js
  424. /* harmony default export */ var components_RowCardvue_type_script_lang_js = (RowCardvue_type_script_lang_js);
  425. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  426. var componentNormalizer = __webpack_require__(2);
  427. // CONCATENATED MODULE: ./components/RowCard.vue
  428. function injectStyles (context) {
  429. var style0 = __webpack_require__(232)
  430. if (style0.__inject__) style0.__inject__(context)
  431. }
  432. /* normalize component */
  433. var component = Object(componentNormalizer["a" /* default */])(
  434. components_RowCardvue_type_script_lang_js,
  435. render,
  436. staticRenderFns,
  437. false,
  438. injectStyles,
  439. "42187791",
  440. "605ada4c"
  441. )
  442. /* harmony default export */ var RowCard = __webpack_exports__["default"] = (component.exports);
  443. /***/ }),
  444. /***/ 323:
  445. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  446. "use strict";
  447. __webpack_require__.r(__webpack_exports__);
  448. /* 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_662450c8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(267);
  449. /* 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_662450c8_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_662450c8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  450. /* 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_662450c8_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_662450c8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  451. /***/ }),
  452. /***/ 364:
  453. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  454. "use strict";
  455. // ESM COMPAT FLAG
  456. __webpack_require__.r(__webpack_exports__);
  457. // 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/index.vue?vue&type=template&id=662450c8&scoped=true
  458. var render = function render() {
  459. var _vm$midBanner$, _vm$midBanner$2;
  460. var _vm = this,
  461. _c = _vm._self._c;
  462. return _c('div', {
  463. staticClass: "com-main"
  464. }, [_vm.indexBanner.length ? _c('carousel', {
  465. attrs: {
  466. "banner": _vm.indexBanner,
  467. "height": '538px'
  468. }
  469. }) : _vm._e(), _vm._ssrNode(" "), _c('sub-nav', {
  470. attrs: {
  471. "secondaryBanner": _vm.secondaryBanner
  472. }
  473. }), _vm._ssrNode(" "), _vm._ssrNode("<section class=\"com-width-1200 com-margin-auto\" data-v-662450c8>", "</section>", [_c('pc-title', {
  474. attrs: {
  475. "title": 'Trending Products'
  476. }
  477. }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-wrap com-margin-auto\" data-v-662450c8>", "</div>", [_vm._l(_vm.indexGoodsRankLists, function (item, k) {
  478. return _c('card', {
  479. key: k,
  480. ref: "card",
  481. refInFor: true,
  482. attrs: {
  483. "cardData": item
  484. },
  485. on: {
  486. "addCompare": _vm.addCompareList
  487. }
  488. });
  489. }), _vm._ssrNode(" "), _c('transition', {
  490. on: {
  491. "before-enter": _vm.beforeEnter,
  492. "enter": _vm.enter,
  493. "after-enter": _vm.afterEnter
  494. }
  495. }, [_c('div', {
  496. directives: [{
  497. name: "show",
  498. rawName: "v-show",
  499. value: _vm.shopCarBall,
  500. expression: "shopCarBall"
  501. }],
  502. ref: "ball",
  503. staticClass: "ball"
  504. }, [_c('div', {
  505. staticClass: "linner_ball"
  506. })])])], 2)], 2), _vm._ssrNode(" "), _vm.midBanner.length ? _vm._ssrNode("<a" + _vm._ssrAttr("href", (_vm$midBanner$ = _vm.midBanner[0]) === null || _vm$midBanner$ === void 0 ? void 0 : _vm$midBanner$.link) + " target=\"_target\" data-v-662450c8>", "</a>", [_c('el-image', {
  507. staticClass: "middle_banner",
  508. attrs: {
  509. "lazy": "",
  510. "src": (_vm$midBanner$2 = _vm.midBanner[0]) === null || _vm$midBanner$2 === void 0 ? void 0 : _vm$midBanner$2.image,
  511. "alt": "why choose us",
  512. "fit": "cover"
  513. }
  514. })], 1) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<section class=\"com-width-1400 com-margin-auto row-card\" data-v-662450c8>", "</section>", _vm._l(_vm.articleList, function (item, k) {
  515. return _c('row-card', {
  516. key: k,
  517. attrs: {
  518. "data": item
  519. }
  520. });
  521. }), 1), _vm._ssrNode(" "), _c('no-ssr', [_c('div', {
  522. directives: [{
  523. name: "show",
  524. rawName: "v-show",
  525. value: !_vm.canUseCookie,
  526. expression: "!canUseCookie"
  527. }],
  528. staticClass: "cookie-dialog"
  529. }, [_c('div', {
  530. staticClass: "cookie-dialog-wrap"
  531. }, [_c('div', {
  532. staticClass: "cookie-dialog-title"
  533. }, [_vm._v("Our Cookies")]), _vm._v(" "), _c('div', {
  534. staticClass: "cookie-dialog-content"
  535. }, [_vm._v("\n We use cookies to provide website functionality, to analyze traffic\n on our website, personalize content, serve targeted advertisements\n and to enable social media functionality.\n ")]), _vm._v(" "), _c('div', {
  536. staticClass: "flex center"
  537. }, [_c('button', {
  538. staticClass: "btn",
  539. on: {
  540. "click": function ($event) {
  541. _vm.dialogAskCookieVisible = true;
  542. }
  543. }
  544. }, [_vm._v("\n Privacy policy\n ")]), _vm._v(" "), _c('button', {
  545. staticClass: "btn",
  546. on: {
  547. "click": _vm.allowCookie
  548. }
  549. }, [_vm._v("\n Allow all\n ")])])])])]), _vm._ssrNode(" "), _c('el-dialog', {
  550. attrs: {
  551. "visible": _vm.dialogAskCookieVisible,
  552. "width": "400",
  553. "title": "Privacy policy"
  554. },
  555. on: {
  556. "update:visible": function ($event) {
  557. _vm.dialogAskCookieVisible = $event;
  558. }
  559. }
  560. }, [_vm._v("\n We use cookies to provide website functionality, to analyze traffic on our\n website, personalize content, serve targeted advertisements and to enable\n social media functionality. Our cookie statement provides more information\n in our Privacy Policy page.\n ")])], 2);
  561. };
  562. var staticRenderFns = [];
  563. // CONCATENATED MODULE: ./pages/index.vue?vue&type=template&id=662450c8&scoped=true
  564. // 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/index.vue?vue&type=script&lang=js
  565. /* harmony default export */ var lib_vue_loader_options_pagesvue_type_script_lang_js = ({
  566. name: 'IndexPage',
  567. layout: 'default',
  568. async asyncData({
  569. $axios,
  570. req
  571. }) {
  572. // type:1、首页顶部banner,2、首页小图推荐,3、中部banner,4、,5、推荐文章栏目,6、底部banner,7、社交链接
  573. const indexBanner = await $axios.post('/uk-api/home/indexBanner', {
  574. type: 1
  575. });
  576. const secondaryBanner = await $axios.post('/uk-api/home/indexBanner', {
  577. type: 2
  578. });
  579. const indexGoodsRankLists = await $axios.post('/uk-api/home/indexGoodsRankList');
  580. const midBanner = await $axios.post('/uk-api/home/indexBanner', {
  581. type: 3
  582. });
  583. const articleList = await $axios.post('/uk-api/home/indexBanner', {
  584. type: 5
  585. });
  586. return {
  587. indexBanner: indexBanner.result.data,
  588. secondaryBanner: secondaryBanner.result.data,
  589. indexGoodsRankLists: indexGoodsRankLists.result,
  590. midBanner: midBanner.result.data,
  591. articleList: articleList.result.data
  592. };
  593. },
  594. data() {
  595. return {
  596. indexBanner: [],
  597. secondaryBanner: [],
  598. indexGoodsRankLists: [],
  599. midBanner: [],
  600. articleList: [],
  601. shopCarBall: false,
  602. shopCarBallEl: null,
  603. ss: null,
  604. canUseCookie: false,
  605. dialogAskCookieVisible: false
  606. };
  607. },
  608. beforeMount() {
  609. this.canUseCookie = !!this.$cookies.get('can-use-cookie') || false;
  610. },
  611. methods: {
  612. allowCookie() {
  613. this.$cookies.set('can-use-cookie', true);
  614. this.$nextTick(() => {
  615. this.canUseCookie = this.$cookies.get('can-use-cookie') || false;
  616. });
  617. },
  618. addCompareList(target) {
  619. this.shopCarBallEl = target;
  620. this.shopCarBall = true;
  621. },
  622. // 动画开始
  623. beforeEnter(el) {
  624. // 获取元素的大小及其相对于视口的位置
  625. if (false) {}
  626. },
  627. enter(el, done) {
  628. // 触发重绘,来实现动画的移动过程
  629. if (false) {}
  630. },
  631. afterEnter(el) {
  632. this.shopCarBall = false;
  633. el.style.display = 'none';
  634. }
  635. }
  636. });
  637. // CONCATENATED MODULE: ./pages/index.vue?vue&type=script&lang=js
  638. /* harmony default export */ var pagesvue_type_script_lang_js = (lib_vue_loader_options_pagesvue_type_script_lang_js);
  639. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  640. var componentNormalizer = __webpack_require__(2);
  641. // CONCATENATED MODULE: ./pages/index.vue
  642. function injectStyles (context) {
  643. var style0 = __webpack_require__(323)
  644. if (style0.__inject__) style0.__inject__(context)
  645. }
  646. /* normalize component */
  647. var component = Object(componentNormalizer["a" /* default */])(
  648. pagesvue_type_script_lang_js,
  649. render,
  650. staticRenderFns,
  651. false,
  652. injectStyles,
  653. "662450c8",
  654. "f293a608"
  655. )
  656. /* harmony default export */ var pages = __webpack_exports__["default"] = (component.exports);
  657. /* nuxt-component-imports */
  658. installComponents(component, {Carousel: __webpack_require__(289).default,SubNav: __webpack_require__(290).default,PcTitle: __webpack_require__(195).default,Card: __webpack_require__(155).default,RowCard: __webpack_require__(291).default})
  659. /***/ })
  660. };;
  661. //# sourceMappingURL=index.js.map