123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- exports.ids = [2];
- exports.modules = {
- /***/ 213:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 233:
- /***/ (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_Breadcrumb_vue_vue_type_style_index_0_id_d96596a6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(213);
- /* 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_Breadcrumb_vue_vue_type_style_index_0_id_d96596a6_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_Breadcrumb_vue_vue_type_style_index_0_id_d96596a6_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_Breadcrumb_vue_vue_type_style_index_0_id_d96596a6_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_Breadcrumb_vue_vue_type_style_index_0_id_d96596a6_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 291:
- /***/ (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/Breadcrumb.vue?vue&type=template&id=d96596a6&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "wrap"
- }, [_c('el-breadcrumb', {
- attrs: {
- "separator-class": "el-icon-arrow-right"
- }
- }, [_c('el-breadcrumb-item', {
- attrs: {
- "to": {
- path: '/'
- }
- }
- }, [_vm._v("Home")]), _vm._v(" "), _c('el-breadcrumb-item', {
- nativeOn: {
- "click": function ($event) {
- return _vm.goCategory();
- }
- }
- }, [_vm._v("All")]), _vm._v(" "), _vm._l(_vm.comCategoryList, function (item, index) {
- return _c('el-breadcrumb-item', {
- key: item.id,
- nativeOn: {
- "click": function ($event) {
- return _vm.goCategory(index);
- }
- }
- }, [_vm._v(_vm._s(item.name))]);
- }), _vm._v(" "), _c('el-breadcrumb-item', {
- staticClass: "last-bread"
- }, [_vm._v(_vm._s(_vm.pageData.product_code))])], 2)], 1);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Breadcrumb.vue?vue&type=template&id=d96596a6&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/Breadcrumb.vue?vue&type=script&lang=js
- /* harmony default export */ var Breadcrumbvue_type_script_lang_js = ({
- props: {
- pageData: {
- type: Object,
- default: () => {}
- }
- },
- computed: {
- comCategoryList() {
- let arr = [];
- this.recursive(arr, this.pageData.category_list);
- return arr;
- }
- },
- methods: {
- recursive(arr = [], obj) {
- let temp = {};
- temp.id = obj.id ? obj.id : null;
- temp.name = obj.name ? obj.name : null;
- temp.pid = obj.pid ? obj.pid : null;
- arr.push(temp);
- if (obj.child) {
- this.recursive(arr, obj.child);
- }
- },
- goCategory(index) {
- switch (index) {
- case 0:
- this.$router.push({
- name: "category-firstCategory",
- params: {
- firstCategory: this.comCategoryList[0].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase()
- }
- });
- break;
- case 1:
- this.$router.push({
- name: "category-firstCategory-secondCategory",
- params: {
- firstCategory: this.comCategoryList[0].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase(),
- secondCategory: this.comCategoryList[1].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase()
- }
- });
- break;
- case 2:
- this.$router.push({
- name: "category-firstCategory-secondCategory-thirdCategory",
- params: {
- firstCategory: this.comCategoryList[0].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase(),
- secondCategory: this.comCategoryList[1].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase(),
- thirdCategory: this.comCategoryList[2].name.replace(/\s+/g, "-").replace("-&", "").toLowerCase()
- }
- });
- break;
- default:
- this.$router.push({
- path: '/category'
- });
- }
- }
- }
- });
- // CONCATENATED MODULE: ./components/Breadcrumb.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Breadcrumbvue_type_script_lang_js = (Breadcrumbvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Breadcrumb.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(233)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Breadcrumbvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "d96596a6",
- "0db93f9e"
-
- )
- /* harmony default export */ var Breadcrumb = __webpack_exports__["default"] = (component.exports);
- /***/ })
- };;
- //# sourceMappingURL=breadcrumb.js.map
|