index.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. exports.ids = [84,5,6,23,38,39];
  2. exports.modules = {
  3. /***/ 140:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 147:
  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_0c1bd2af_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
  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_0c1bd2af_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_0c1bd2af_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_0c1bd2af_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_0c1bd2af_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 153:
  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=0c1bd2af&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=0c1bd2af&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. addCompareList(id, e) {
  106. this.$axios.post("home/compare_add", {
  107. id,
  108. compare_keys: "keys"
  109. }).then(res => {
  110. if (res.code === 1) {
  111. this.$store.dispatch("getCompareList");
  112. this.$emit("addCompare", e.target);
  113. } else {
  114. this.$message({
  115. message: res.msg,
  116. type: "warning"
  117. });
  118. }
  119. }).catch(() => {});
  120. },
  121. goProduct(cardData) {
  122. this.$router.push({
  123. name: "product-code",
  124. params: {
  125. code: cardData.product_code
  126. }
  127. });
  128. // let routeData = this.$router.resolve({
  129. // name: "product-code",
  130. // params:{ code: cardData.product_code },
  131. // });
  132. // window.open(routeData.href, '_blank');
  133. }
  134. }
  135. });
  136. // CONCATENATED MODULE: ./components/Card.vue?vue&type=script&lang=js
  137. /* harmony default export */ var components_Cardvue_type_script_lang_js = (Cardvue_type_script_lang_js);
  138. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  139. var componentNormalizer = __webpack_require__(2);
  140. // CONCATENATED MODULE: ./components/Card.vue
  141. function injectStyles (context) {
  142. var style0 = __webpack_require__(147)
  143. if (style0.__inject__) style0.__inject__(context)
  144. }
  145. /* normalize component */
  146. var component = Object(componentNormalizer["a" /* default */])(
  147. components_Cardvue_type_script_lang_js,
  148. render,
  149. staticRenderFns,
  150. false,
  151. injectStyles,
  152. "0c1bd2af",
  153. "24e8a21e"
  154. )
  155. /* harmony default export */ var Card = __webpack_exports__["default"] = (component.exports);
  156. /***/ }),
  157. /***/ 165:
  158. /***/ (function(module, exports) {
  159. // Exports
  160. module.exports = {
  161. };
  162. /***/ }),
  163. /***/ 193:
  164. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  165. "use strict";
  166. __webpack_require__.r(__webpack_exports__);
  167. /* 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__(165);
  168. /* 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__);
  169. /* 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__));
  170. /***/ }),
  171. /***/ 203:
  172. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  173. "use strict";
  174. // ESM COMPAT FLAG
  175. __webpack_require__.r(__webpack_exports__);
  176. // 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
  177. var render = function render() {
  178. var _vm = this,
  179. _c = _vm._self._c;
  180. return _c('section', [_vm._ssrNode("<h1" + _vm._ssrStyle(null, {
  181. 'marginTop': _vm.marginTop + 'px'
  182. }, null) + " data-v-8446d0ce>" + _vm._ssrEscape("\n " + _vm._s(_vm.title) + "\n ") + "</h1> <span class=\"decoration\" data-v-8446d0ce></span>")]);
  183. };
  184. var staticRenderFns = [];
  185. // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=template&id=8446d0ce&scoped=true
  186. // 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
  187. /* harmony default export */ var PcTitlevue_type_script_lang_js = ({
  188. props: {
  189. title: String,
  190. marginTop: {
  191. type: Number
  192. }
  193. }
  194. });
  195. // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=script&lang=js
  196. /* harmony default export */ var components_PcTitlevue_type_script_lang_js = (PcTitlevue_type_script_lang_js);
  197. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  198. var componentNormalizer = __webpack_require__(2);
  199. // CONCATENATED MODULE: ./components/PcTitle.vue
  200. function injectStyles (context) {
  201. var style0 = __webpack_require__(193)
  202. if (style0.__inject__) style0.__inject__(context)
  203. }
  204. /* normalize component */
  205. var component = Object(componentNormalizer["a" /* default */])(
  206. components_PcTitlevue_type_script_lang_js,
  207. render,
  208. staticRenderFns,
  209. false,
  210. injectStyles,
  211. "8446d0ce",
  212. "bf74b7f2"
  213. )
  214. /* harmony default export */ var PcTitle = __webpack_exports__["default"] = (component.exports);
  215. /***/ }),
  216. /***/ 219:
  217. /***/ (function(module, exports) {
  218. // Exports
  219. module.exports = {
  220. };
  221. /***/ }),
  222. /***/ 220:
  223. /***/ (function(module, exports) {
  224. // Exports
  225. module.exports = {
  226. };
  227. /***/ }),
  228. /***/ 221:
  229. /***/ (function(module, exports) {
  230. // Exports
  231. module.exports = {
  232. };
  233. /***/ }),
  234. /***/ 249:
  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_Carousel_vue_vue_type_style_index_0_id_5cbc4b7c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(219);
  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_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__);
  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_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__));
  241. /***/ }),
  242. /***/ 250:
  243. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  244. "use strict";
  245. __webpack_require__.r(__webpack_exports__);
  246. /* 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__(220);
  247. /* 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__);
  248. /* 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__));
  249. /***/ }),
  250. /***/ 251:
  251. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  252. "use strict";
  253. __webpack_require__.r(__webpack_exports__);
  254. /* 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__(221);
  255. /* 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__);
  256. /* 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__));
  257. /***/ }),
  258. /***/ 297:
  259. /***/ (function(module, exports) {
  260. // Exports
  261. module.exports = {
  262. };
  263. /***/ }),
  264. /***/ 316:
  265. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  266. "use strict";
  267. // ESM COMPAT FLAG
  268. __webpack_require__.r(__webpack_exports__);
  269. // 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
  270. var render = function render() {
  271. var _vm = this,
  272. _c = _vm._self._c;
  273. return _c('el-carousel', {
  274. attrs: {
  275. "interval": 5000,
  276. "arrow": "always",
  277. "height": _vm.height
  278. }
  279. }, _vm._l(_vm.banner, function (item) {
  280. return _c('el-carousel-item', {
  281. key: item.id
  282. }, [_c('a', {
  283. attrs: {
  284. "href": item.link,
  285. "target": "_blank"
  286. }
  287. }, [_c('div', {
  288. staticClass: "banner",
  289. style: {
  290. backgroundImage: `url(${item.image}`
  291. }
  292. })])]);
  293. }), 1);
  294. };
  295. var staticRenderFns = [];
  296. // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=template&id=5cbc4b7c&scoped=true
  297. // 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
  298. /* harmony default export */ var Carouselvue_type_script_lang_js = ({
  299. props: {
  300. banner: [],
  301. height: String
  302. }
  303. });
  304. // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=script&lang=js
  305. /* harmony default export */ var components_Carouselvue_type_script_lang_js = (Carouselvue_type_script_lang_js);
  306. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  307. var componentNormalizer = __webpack_require__(2);
  308. // CONCATENATED MODULE: ./components/Carousel.vue
  309. function injectStyles (context) {
  310. var style0 = __webpack_require__(249)
  311. if (style0.__inject__) style0.__inject__(context)
  312. }
  313. /* normalize component */
  314. var component = Object(componentNormalizer["a" /* default */])(
  315. components_Carouselvue_type_script_lang_js,
  316. render,
  317. staticRenderFns,
  318. false,
  319. injectStyles,
  320. "5cbc4b7c",
  321. "5b689524"
  322. )
  323. /* harmony default export */ var Carousel = __webpack_exports__["default"] = (component.exports);
  324. /***/ }),
  325. /***/ 317:
  326. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  327. "use strict";
  328. // ESM COMPAT FLAG
  329. __webpack_require__.r(__webpack_exports__);
  330. // 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
  331. var render = function render() {
  332. var _vm = this,
  333. _c = _vm._self._c;
  334. return _c('section', {
  335. staticClass: "com-margin-auto sub-nav",
  336. style: {
  337. 'max-width': `${_vm.com_secondaryBannerLth * 350}px`,
  338. 'grid-template-columns': `repeat(${_vm.com_secondaryBannerLth}, 1fr)`
  339. }
  340. }, _vm._l(_vm.com_secondaryBanner, function (item) {
  341. 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', {
  342. staticStyle: {
  343. "width": "100%"
  344. },
  345. style: {
  346. height: _vm.imageLoaded ? '100%' : '268px'
  347. },
  348. attrs: {
  349. "lazy": "",
  350. "src": item.image,
  351. "alt": item.title,
  352. "fit": "cover"
  353. },
  354. on: {
  355. "load": function ($event) {
  356. _vm.imageLoaded = true;
  357. }
  358. }
  359. })], 1)]);
  360. }), 0);
  361. };
  362. var staticRenderFns = [];
  363. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=template&id=caaef568&scoped=true
  364. // 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
  365. /* harmony default export */ var SubNavvue_type_script_lang_js = ({
  366. props: {
  367. secondaryBanner: []
  368. },
  369. data() {
  370. return {
  371. imageLoaded: false
  372. };
  373. },
  374. computed: {
  375. com_secondaryBanner() {
  376. return this.secondaryBanner.slice(0, 4);
  377. },
  378. com_secondaryBannerLth() {
  379. var _this$com_secondaryBa;
  380. return (_this$com_secondaryBa = this.com_secondaryBanner) === null || _this$com_secondaryBa === void 0 ? void 0 : _this$com_secondaryBa.length;
  381. }
  382. }
  383. });
  384. // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=script&lang=js
  385. /* harmony default export */ var components_SubNavvue_type_script_lang_js = (SubNavvue_type_script_lang_js);
  386. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  387. var componentNormalizer = __webpack_require__(2);
  388. // CONCATENATED MODULE: ./components/SubNav.vue
  389. function injectStyles (context) {
  390. var style0 = __webpack_require__(250)
  391. if (style0.__inject__) style0.__inject__(context)
  392. }
  393. /* normalize component */
  394. var component = Object(componentNormalizer["a" /* default */])(
  395. components_SubNavvue_type_script_lang_js,
  396. render,
  397. staticRenderFns,
  398. false,
  399. injectStyles,
  400. "caaef568",
  401. "9778ca5e"
  402. )
  403. /* harmony default export */ var SubNav = __webpack_exports__["default"] = (component.exports);
  404. /***/ }),
  405. /***/ 318:
  406. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  407. "use strict";
  408. // ESM COMPAT FLAG
  409. __webpack_require__.r(__webpack_exports__);
  410. // 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
  411. var render = function render() {
  412. var _vm = this,
  413. _c = _vm._self._c;
  414. return _c('a', {
  415. attrs: {
  416. "href": _vm.data.link,
  417. "target": "_target"
  418. }
  419. }, [_vm._ssrNode("<figure class=\"card\" data-v-42187791><div class=\"img\"" + _vm._ssrStyle(null, {
  420. backgroundImage: 'url(' + _vm.data.image + ')'
  421. }, 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>")]);
  422. };
  423. var staticRenderFns = [];
  424. // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=template&id=42187791&scoped=true
  425. // 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
  426. /* harmony default export */ var RowCardvue_type_script_lang_js = ({
  427. props: {
  428. data: {}
  429. },
  430. filters: {
  431. setTime(val) {
  432. let tempArr = val.split(' ');
  433. let timeStr = tempArr[0];
  434. let timeArr = timeStr.split('-');
  435. return `${timeArr[2]}-${timeArr[1]}-${timeArr[0]}`;
  436. }
  437. }
  438. });
  439. // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=script&lang=js
  440. /* harmony default export */ var components_RowCardvue_type_script_lang_js = (RowCardvue_type_script_lang_js);
  441. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  442. var componentNormalizer = __webpack_require__(2);
  443. // CONCATENATED MODULE: ./components/RowCard.vue
  444. function injectStyles (context) {
  445. var style0 = __webpack_require__(251)
  446. if (style0.__inject__) style0.__inject__(context)
  447. }
  448. /* normalize component */
  449. var component = Object(componentNormalizer["a" /* default */])(
  450. components_RowCardvue_type_script_lang_js,
  451. render,
  452. staticRenderFns,
  453. false,
  454. injectStyles,
  455. "42187791",
  456. "3487716c"
  457. )
  458. /* harmony default export */ var RowCard = __webpack_exports__["default"] = (component.exports);
  459. /***/ }),
  460. /***/ 369:
  461. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  462. "use strict";
  463. __webpack_require__.r(__webpack_exports__);
  464. /* 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_b6c9942a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(297);
  465. /* 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_b6c9942a_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_b6c9942a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  466. /* 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_b6c9942a_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_b6c9942a_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  467. /***/ }),
  468. /***/ 414:
  469. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  470. "use strict";
  471. // ESM COMPAT FLAG
  472. __webpack_require__.r(__webpack_exports__);
  473. // 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=b6c9942a&scoped=true
  474. var render = function render() {
  475. var _vm$midBanner$, _vm$midBanner$2;
  476. var _vm = this,
  477. _c = _vm._self._c;
  478. return _c('div', {
  479. staticClass: "com-main"
  480. }, [_vm.indexBanner.length ? _c('carousel', {
  481. attrs: {
  482. "banner": _vm.indexBanner,
  483. "height": '538px'
  484. }
  485. }) : _vm._e(), _vm._ssrNode(" "), _c('sub-nav', {
  486. attrs: {
  487. "secondaryBanner": _vm.secondaryBanner
  488. }
  489. }), _vm._ssrNode(" "), _vm._ssrNode("<section class=\"com-width-1200 com-margin-auto\" data-v-b6c9942a>", "</section>", [_c('pc-title', {
  490. attrs: {
  491. "title": 'Trending Products'
  492. }
  493. }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-wrap com-margin-auto\" data-v-b6c9942a>", "</div>", [_vm._l(_vm.indexGoodsRankLists, function (item, k) {
  494. return _c('card', {
  495. key: k,
  496. ref: "card",
  497. refInFor: true,
  498. attrs: {
  499. "cardData": item
  500. },
  501. on: {
  502. "addCompare": _vm.addCompareList
  503. }
  504. });
  505. }), _vm._ssrNode(" "), _c('transition', {
  506. on: {
  507. "before-enter": _vm.beforeEnter,
  508. "enter": _vm.enter,
  509. "after-enter": _vm.afterEnter
  510. }
  511. }, [_c('div', {
  512. directives: [{
  513. name: "show",
  514. rawName: "v-show",
  515. value: _vm.shopCarBall,
  516. expression: "shopCarBall"
  517. }],
  518. ref: "ball",
  519. staticClass: "ball"
  520. }, [_c('div', {
  521. staticClass: "linner_ball"
  522. })])])], 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-b6c9942a>", "</a>", [_c('el-image', {
  523. staticClass: "middle_banner",
  524. attrs: {
  525. "lazy": "",
  526. "src": (_vm$midBanner$2 = _vm.midBanner[0]) === null || _vm$midBanner$2 === void 0 ? void 0 : _vm$midBanner$2.image,
  527. "alt": "why choose us",
  528. "fit": "cover"
  529. }
  530. })], 1) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<section class=\"com-width-1400 com-margin-auto row-card\" data-v-b6c9942a>", "</section>", _vm._l(_vm.articleList, function (item, k) {
  531. return _c('row-card', {
  532. key: k,
  533. attrs: {
  534. "data": item
  535. }
  536. });
  537. }), 1)], 2);
  538. };
  539. var staticRenderFns = [];
  540. // CONCATENATED MODULE: ./pages/index.vue?vue&type=template&id=b6c9942a&scoped=true
  541. // 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
  542. /* harmony default export */ var lib_vue_loader_options_pagesvue_type_script_lang_js = ({
  543. name: 'IndexPage',
  544. layout: 'default',
  545. async asyncData({
  546. $axios,
  547. req
  548. }) {
  549. // type:1、首页顶部banner,2、首页小图推荐,3、中部banner,4、,5、推荐文章栏目,6、底部banner,7、社交链接
  550. const temp = await $axios.get('/c-api/banner/list').then(res => {
  551. var _res$result;
  552. return ((_res$result = res.result) === null || _res$result === void 0 ? void 0 : _res$result.data) || [];
  553. }).catch(e => {
  554. console.log(e);
  555. });
  556. const indexBanner = temp.filter(i => i.type === 1);
  557. const secondaryBanner = temp.filter(i => i.type === 2);
  558. // await $axios
  559. // .post('home/indexBanner', {
  560. // site: 1,
  561. // type: 2,
  562. // })
  563. // .catch(e => {
  564. // console.log(e)
  565. // })
  566. const indexGoodsRankLists = await $axios.post('home/indexGoodsRankLists', {
  567. site: 1
  568. }).catch(e => {
  569. console.log(e);
  570. });
  571. const midBanner = await $axios.post('home/indexBanner', {
  572. site: 1,
  573. type: 3
  574. }).catch(e => {
  575. console.log(e);
  576. });
  577. const articleList = await $axios.post('home/indexBanner', {
  578. site: 1,
  579. type: 5
  580. }).catch(e => {
  581. console.log(e);
  582. });
  583. // console.log(indexBanner.result.data, 'indexBanner')
  584. return {
  585. indexBanner,
  586. secondaryBanner,
  587. indexGoodsRankLists: indexGoodsRankLists.result,
  588. midBanner: midBanner.result.data,
  589. articleList: articleList.result.data
  590. };
  591. },
  592. data() {
  593. return {
  594. indexBanner: [],
  595. secondaryBanner: [],
  596. indexGoodsRankLists: [],
  597. midBanner: [],
  598. articleList: [],
  599. shopCarBall: false,
  600. shopCarBallEl: null,
  601. ss: null
  602. };
  603. },
  604. created() {},
  605. methods: {
  606. addCompareList(target) {
  607. this.shopCarBallEl = target;
  608. this.shopCarBall = true;
  609. },
  610. // 动画开始
  611. beforeEnter(el) {
  612. // 获取元素的大小及其相对于视口的位置
  613. if (false) {}
  614. },
  615. enter(el, done) {
  616. // 触发重绘,来实现动画的移动过程
  617. if (false) {}
  618. },
  619. afterEnter(el) {
  620. this.shopCarBall = false;
  621. el.style.display = 'none';
  622. }
  623. }
  624. });
  625. // CONCATENATED MODULE: ./pages/index.vue?vue&type=script&lang=js
  626. /* harmony default export */ var pagesvue_type_script_lang_js = (lib_vue_loader_options_pagesvue_type_script_lang_js);
  627. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  628. var componentNormalizer = __webpack_require__(2);
  629. // CONCATENATED MODULE: ./pages/index.vue
  630. function injectStyles (context) {
  631. var style0 = __webpack_require__(369)
  632. if (style0.__inject__) style0.__inject__(context)
  633. }
  634. /* normalize component */
  635. var component = Object(componentNormalizer["a" /* default */])(
  636. pagesvue_type_script_lang_js,
  637. render,
  638. staticRenderFns,
  639. false,
  640. injectStyles,
  641. "b6c9942a",
  642. "8bb14c48"
  643. )
  644. /* harmony default export */ var pages = __webpack_exports__["default"] = (component.exports);
  645. /* nuxt-component-imports */
  646. installComponents(component, {Carousel: __webpack_require__(316).default,SubNav: __webpack_require__(317).default,PcTitle: __webpack_require__(203).default,Card: __webpack_require__(153).default,RowCard: __webpack_require__(318).default})
  647. /***/ })
  648. };;
  649. //# sourceMappingURL=index.js.map