123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802 |
- exports.ids = [84,5,6,23,38,39];
- exports.modules = {
- /***/ 140:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 147:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 153:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('nuxt-link', {
- staticClass: "card",
- attrs: {
- "to": {
- name: 'product-code',
- params: {
- code: _vm.cardData.product_code
- }
- }
- }
- }, [_c('figure', [_c('div', {
- staticClass: "card-img"
- }, [_c('el-image', {
- staticClass: "card-img-1",
- staticStyle: {
- "width": "100%",
- "height": "100%"
- },
- attrs: {
- "src": _vm.comImg,
- "fit": "cover"
- }
- }), _vm._v(" "), _vm.comBestIcon ? _c('img', {
- staticClass: "best_icon",
- attrs: {
- "src": _vm.comBestIcon
- }
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "cycle_icon"
- }, _vm._l(_vm.cardData.cycle_icon, function (item, index) {
- return _c('img', {
- key: index,
- attrs: {
- "src": item.images
- }
- });
- }), 0)], 1), _vm._v(" "), _vm.showPricing ? _c('p', {
- staticClass: "show-pricing"
- }, [_vm._v("Pricing")]) : _vm._e(), _vm._v(" "), _c('figcaption', {
- staticClass: "card-info"
- }, [_c('h1', [_vm._v(_vm._s(_vm.cardData.product_name))]), _vm._v(" "), _c('p', {
- staticClass: "card-info-point"
- }, [_vm._v(_vm._s(_vm.cardData.product_code))]), _vm._v(" "), _c('div', {
- staticClass: "card-info-icon"
- }, _vm._l(_vm.cardData.icon, function (item, index) {
- return _c('img', {
- key: index,
- attrs: {
- "src": item.url
- }
- });
- }), 0)])])]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Card.vue?vue&type=template&id=0c1bd2af&scoped=true
- // 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
- /* harmony default export */ var Cardvue_type_script_lang_js = ({
- props: {
- cardData: {},
- showPricing: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {};
- },
- computed: {
- comImg() {
- var _this$cardData$main;
- return this.$utils.generateResizedImageUrl((_this$cardData$main = this.cardData.main) === null || _this$cardData$main === void 0 ? void 0 : _this$cardData$main.image, 300);
- },
- comBestIcon() {
- var _this$cardData$collec;
- 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");
- return bestSeller ? bestSeller.img : '';
- }
- },
- methods: {
- addCompareList(id, e) {
- this.$axios.post("home/compare_add", {
- id,
- compare_keys: "keys"
- }).then(res => {
- if (res.code === 1) {
- this.$store.dispatch("getCompareList");
- this.$emit("addCompare", e.target);
- } else {
- this.$message({
- message: res.msg,
- type: "warning"
- });
- }
- }).catch(() => {});
- },
- goProduct(cardData) {
- this.$router.push({
- name: "product-code",
- params: {
- code: cardData.product_code
- }
- });
- // let routeData = this.$router.resolve({
- // name: "product-code",
- // params:{ code: cardData.product_code },
- // });
- // window.open(routeData.href, '_blank');
- }
- }
- });
- // CONCATENATED MODULE: ./components/Card.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Cardvue_type_script_lang_js = (Cardvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Card.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(147)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Cardvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "0c1bd2af",
- "24e8a21e"
-
- )
- /* harmony default export */ var Card = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 165:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 193:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 203:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('section', [_vm._ssrNode("<h1" + _vm._ssrStyle(null, {
- 'marginTop': _vm.marginTop + 'px'
- }, null) + " data-v-8446d0ce>" + _vm._ssrEscape("\n " + _vm._s(_vm.title) + "\n ") + "</h1> <span class=\"decoration\" data-v-8446d0ce></span>")]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=template&id=8446d0ce&scoped=true
- // 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
- /* harmony default export */ var PcTitlevue_type_script_lang_js = ({
- props: {
- title: String,
- marginTop: {
- type: Number
- }
- }
- });
- // CONCATENATED MODULE: ./components/PcTitle.vue?vue&type=script&lang=js
- /* harmony default export */ var components_PcTitlevue_type_script_lang_js = (PcTitlevue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/PcTitle.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(193)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_PcTitlevue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "8446d0ce",
- "bf74b7f2"
-
- )
- /* harmony default export */ var PcTitle = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 219:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 220:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 221:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 249:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 250:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 251:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 297:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 316:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('el-carousel', {
- attrs: {
- "interval": 5000,
- "arrow": "always",
- "height": _vm.height
- }
- }, _vm._l(_vm.banner, function (item) {
- return _c('el-carousel-item', {
- key: item.id
- }, [_c('a', {
- attrs: {
- "href": item.link,
- "target": "_blank"
- }
- }, [_c('div', {
- staticClass: "banner",
- style: {
- backgroundImage: `url(${item.image}`
- }
- })])]);
- }), 1);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=template&id=5cbc4b7c&scoped=true
- // 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
- /* harmony default export */ var Carouselvue_type_script_lang_js = ({
- props: {
- banner: [],
- height: String
- }
- });
- // CONCATENATED MODULE: ./components/Carousel.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Carouselvue_type_script_lang_js = (Carouselvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Carousel.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(249)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Carouselvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "5cbc4b7c",
- "5b689524"
-
- )
- /* harmony default export */ var Carousel = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 317:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('section', {
- staticClass: "com-margin-auto sub-nav",
- style: {
- 'max-width': `${_vm.com_secondaryBannerLth * 350}px`,
- 'grid-template-columns': `repeat(${_vm.com_secondaryBannerLth}, 1fr)`
- }
- }, _vm._l(_vm.com_secondaryBanner, function (item) {
- 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', {
- staticStyle: {
- "width": "100%"
- },
- style: {
- height: _vm.imageLoaded ? '100%' : '268px'
- },
- attrs: {
- "lazy": "",
- "src": item.image,
- "alt": item.title,
- "fit": "cover"
- },
- on: {
- "load": function ($event) {
- _vm.imageLoaded = true;
- }
- }
- })], 1)]);
- }), 0);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=template&id=caaef568&scoped=true
- // 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
- /* harmony default export */ var SubNavvue_type_script_lang_js = ({
- props: {
- secondaryBanner: []
- },
- data() {
- return {
- imageLoaded: false
- };
- },
- computed: {
- com_secondaryBanner() {
- return this.secondaryBanner.slice(0, 4);
- },
- com_secondaryBannerLth() {
- var _this$com_secondaryBa;
- return (_this$com_secondaryBa = this.com_secondaryBanner) === null || _this$com_secondaryBa === void 0 ? void 0 : _this$com_secondaryBa.length;
- }
- }
- });
- // CONCATENATED MODULE: ./components/SubNav.vue?vue&type=script&lang=js
- /* harmony default export */ var components_SubNavvue_type_script_lang_js = (SubNavvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/SubNav.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(250)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_SubNavvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "caaef568",
- "9778ca5e"
-
- )
- /* harmony default export */ var SubNav = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 318:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('a', {
- attrs: {
- "href": _vm.data.link,
- "target": "_target"
- }
- }, [_vm._ssrNode("<figure class=\"card\" data-v-42187791><div class=\"img\"" + _vm._ssrStyle(null, {
- backgroundImage: 'url(' + _vm.data.image + ')'
- }, 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>")]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=template&id=42187791&scoped=true
- // 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
- /* harmony default export */ var RowCardvue_type_script_lang_js = ({
- props: {
- data: {}
- },
- filters: {
- setTime(val) {
- let tempArr = val.split(' ');
- let timeStr = tempArr[0];
- let timeArr = timeStr.split('-');
- return `${timeArr[2]}-${timeArr[1]}-${timeArr[0]}`;
- }
- }
- });
- // CONCATENATED MODULE: ./components/RowCard.vue?vue&type=script&lang=js
- /* harmony default export */ var components_RowCardvue_type_script_lang_js = (RowCardvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/RowCard.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(251)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_RowCardvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "42187791",
- "3487716c"
-
- )
- /* harmony default export */ var RowCard = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 369:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* 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);
- /* 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__);
- /* 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__));
- /***/ }),
- /***/ 414:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // 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
- var render = function render() {
- var _vm$midBanner$, _vm$midBanner$2;
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "com-main"
- }, [_vm.indexBanner.length ? _c('carousel', {
- attrs: {
- "banner": _vm.indexBanner,
- "height": '538px'
- }
- }) : _vm._e(), _vm._ssrNode(" "), _c('sub-nav', {
- attrs: {
- "secondaryBanner": _vm.secondaryBanner
- }
- }), _vm._ssrNode(" "), _vm._ssrNode("<section class=\"com-width-1200 com-margin-auto\" data-v-b6c9942a>", "</section>", [_c('pc-title', {
- attrs: {
- "title": 'Trending Products'
- }
- }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-wrap com-margin-auto\" data-v-b6c9942a>", "</div>", [_vm._l(_vm.indexGoodsRankLists, function (item, k) {
- return _c('card', {
- key: k,
- ref: "card",
- refInFor: true,
- attrs: {
- "cardData": item
- },
- on: {
- "addCompare": _vm.addCompareList
- }
- });
- }), _vm._ssrNode(" "), _c('transition', {
- on: {
- "before-enter": _vm.beforeEnter,
- "enter": _vm.enter,
- "after-enter": _vm.afterEnter
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: _vm.shopCarBall,
- expression: "shopCarBall"
- }],
- ref: "ball",
- staticClass: "ball"
- }, [_c('div', {
- staticClass: "linner_ball"
- })])])], 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', {
- staticClass: "middle_banner",
- attrs: {
- "lazy": "",
- "src": (_vm$midBanner$2 = _vm.midBanner[0]) === null || _vm$midBanner$2 === void 0 ? void 0 : _vm$midBanner$2.image,
- "alt": "why choose us",
- "fit": "cover"
- }
- })], 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) {
- return _c('row-card', {
- key: k,
- attrs: {
- "data": item
- }
- });
- }), 1)], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./pages/index.vue?vue&type=template&id=b6c9942a&scoped=true
- // 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
- /* harmony default export */ var lib_vue_loader_options_pagesvue_type_script_lang_js = ({
- name: 'IndexPage',
- layout: 'default',
- async asyncData({
- $axios,
- req
- }) {
- // type:1、首页顶部banner,2、首页小图推荐,3、中部banner,4、,5、推荐文章栏目,6、底部banner,7、社交链接
- const temp = await $axios.get('/c-api/banner/list').then(res => {
- var _res$result;
- return ((_res$result = res.result) === null || _res$result === void 0 ? void 0 : _res$result.data) || [];
- }).catch(e => {
- console.log(e);
- });
- const indexBanner = temp.filter(i => i.type === 1);
- const secondaryBanner = temp.filter(i => i.type === 2);
- // await $axios
- // .post('home/indexBanner', {
- // site: 1,
- // type: 2,
- // })
- // .catch(e => {
- // console.log(e)
- // })
- const indexGoodsRankLists = await $axios.post('home/indexGoodsRankLists', {
- site: 1
- }).catch(e => {
- console.log(e);
- });
- const midBanner = await $axios.post('home/indexBanner', {
- site: 1,
- type: 3
- }).catch(e => {
- console.log(e);
- });
- const articleList = await $axios.post('home/indexBanner', {
- site: 1,
- type: 5
- }).catch(e => {
- console.log(e);
- });
- // console.log(indexBanner.result.data, 'indexBanner')
- return {
- indexBanner,
- secondaryBanner,
- indexGoodsRankLists: indexGoodsRankLists.result,
- midBanner: midBanner.result.data,
- articleList: articleList.result.data
- };
- },
- data() {
- return {
- indexBanner: [],
- secondaryBanner: [],
- indexGoodsRankLists: [],
- midBanner: [],
- articleList: [],
- shopCarBall: false,
- shopCarBallEl: null,
- ss: null
- };
- },
- created() {},
- methods: {
- addCompareList(target) {
- this.shopCarBallEl = target;
- this.shopCarBall = true;
- },
- // 动画开始
- beforeEnter(el) {
- // 获取元素的大小及其相对于视口的位置
- if (false) {}
- },
- enter(el, done) {
- // 触发重绘,来实现动画的移动过程
- if (false) {}
- },
- afterEnter(el) {
- this.shopCarBall = false;
- el.style.display = 'none';
- }
- }
- });
- // CONCATENATED MODULE: ./pages/index.vue?vue&type=script&lang=js
- /* harmony default export */ var pagesvue_type_script_lang_js = (lib_vue_loader_options_pagesvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./pages/index.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(369)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- pagesvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "b6c9942a",
- "8bb14c48"
-
- )
- /* harmony default export */ var pages = __webpack_exports__["default"] = (component.exports);
- /* nuxt-component-imports */
- 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})
- /***/ })
- };;
- //# sourceMappingURL=index.js.map
|