{"version":3,"sources":["webpack:///./src/views/cms/catDetail.vue?5c6d","webpack:///./src/views/cms/catDetail.vue?05e1","webpack:///./src/views/cms/catDetail.vue","webpack:///./src/views/cms/catDetail.vue?f535","webpack:///./src/views/cms/catDetail.vue?59f3"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","cmsCategory","Name","id","_e","Children","length","staticRenderFns","catDetail","cmsCatTree","contentList","catId","PageStyle","$Api","cms","getCategoryByDevice","CatId","IsMobile","isMobile","then","result","document","title","catch","error","$message","message","type","getCategoryTree","Id","getContentsByCatId","Data","getSubCatContents","$route","params","$store","state","query","fromSearch","deep","components","Location","InsCmsParentCat","InsCmsCat1","InsCmsCat2","InsCmsCat3","InsCmsCat4","InsCmsCat5","InsCmsCat6","InsCmsCat7","InsCmsCat8","InsCmsCat9","InsCmsCat10","InsCmsCat11","InsCmsCat12","InsCmsCat13","InsCmsCat14","InsCmsTwoSwiper","component"],"mappings":"kHAAA,yBAAyoB,EAAG,G,gECA5oB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,cAAc,CAACF,EAAG,MAAM,CAACG,YAAY,kBAAkB,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,IAAI,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,YAAYC,eAAgBX,EAAIU,aAAa,IAAiB,UAAXV,EAAIY,GAAgBR,EAAG,qBAAqB,CAACE,MAAM,CAAC,YAAcN,EAAIU,eAAeV,EAAIa,KAAMb,EAAIU,YAAYI,UAAYd,EAAIU,YAAYI,SAASC,OAAO,EAAGX,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAAW,UAATP,EAAIY,GAAcR,EAAG,eAAe,CAACE,MAAM,CAAC,kBAAoBN,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wBA7FT,yBA+DI,OAAOvB,KAAKyC,OAAOC,OAAO/B,KA/D9B,+BAmEI,OAAOX,KAAK2C,OAAOC,MAAMlB,WAnE7B,iCAsEI,OAAO1B,KAAKyC,OAAOI,MAAMC,eAtE7B,GAA0C,QA6ExC,QADC,eAAM,KAAM,CAAEC,MAAM,K,0BAQpB,MAGD,QADC,eAAM,WAAY,CAAEA,MAAM,K,4BAQ1B,MA9FkB,EAAY,QAtBhC,eAAU,CACTC,WAAY,CACVC,SAAU,kBAAM,iDAChBC,gBAAiB,kBAAM,iDACvBC,WAAY,kBAAM,sFAClBC,WAAY,kBAAM,sFAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,WAAY,kBAAM,iDAClBC,YAAa,kBAAM,iDACnBC,YAAa,kBAAM,iDACnBC,YAAa,kBAAM,iDACnBC,YAAa,kBAAM,iDACnBC,YAAa,kBAAM,iDACnBC,gBAAiB,kBAAM,qDAIN,WC7Eya,I,wBCQ1bC,EAAY,eACd,EACApE,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAmD,E","file":"js/chunk-09fc5667.4f935070.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./catDetail.vue?vue&type=style&index=0&id=4a416335&scoped=true&lang=less&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./catDetail.vue?vue&type=style&index=0&id=4a416335&scoped=true&lang=less&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"container\"}},[_c('div',{staticClass:\"catDetailCover\"},[_c('div',{staticClass:\"bannerText\"},[_c('div',{staticClass:\"colorBg\"},[_c('p',[_vm._v(_vm._s(_vm.cmsCategory.Name))])])])]),(_vm.cmsCategory!={} && _vm.id !== '40112')?_c('ins-cms-parent-cat',{attrs:{\"cmsCategory\":_vm.cmsCategory}}):_vm._e(),(_vm.cmsCategory.Children && _vm.cmsCategory.Children.length>0)?_c('div',{staticClass:\"catDetailBox\"},[(_vm.id==='40127')?_c('ins-cms-cat2',{attrs:{\"cmsCategoryChilds\":_vm.cmsCategory.Children}}):(_vm.id==='40147'||_vm.id==='40156')?_c('ins-cms-cat3',{attrs:{\"cmsCategoryChilds\":_vm.cmsCategory.Children}}):(_vm.id==='40112')?_c('ins-cms-cat5',{attrs:{\"cmsCategoryChilds\":_vm.cmsCategory.Children}}):(_vm.id==='40145')?_c('ins-cms-cat10',{attrs:{\"cmsCategoryChilds\":_vm.cmsCategory.Children}}):_c('ins-cms-cat12',{attrs:{\"cmsCategory\":_vm.cmsCategory}})],1):_vm._e(),(_vm.cmsCategory.Children && _vm.cmsCategory.Children.length==0)?_c('div',{staticClass:\"catDetailBox\"},[(_vm.id==='40116'||_vm.id==='40128'||_vm.id==='40239'||_vm.id==='40136')?_c('ins-cms-cat1'):(_vm.id==='40214')?_c('ins-cms-cat4'):(_vm.id==='40191')?_c('ins-cms-cat7',{attrs:{\"cmsCategory\":_vm.cmsCategory}}):(_vm.id==='40134'||_vm.id==='40115'||_vm.id==='40141')?_c('ins-cms-cat8'):(_vm.id==='40143')?_c('ins-cms-cat9'):(_vm.id==='40146')?_c('ins-cms-cat11'):(_vm.id==='40113'||_vm.id==='40114')?_c('ins-cms-cat6',{attrs:{\"cmsCategory\":_vm.cmsCategory}}):(_vm.id==='40144')?_c('ins-cms-cat14',{attrs:{\"cmsCategory\":_vm.cmsCategory}}):(_vm.id==='40120')?_c('ins-cms-two-swiper',{attrs:{\"initSwiper\":true}}):_c('ins-cms-cat13',{attrs:{\"cmsCategory\":_vm.cmsCategory}})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n\r\n@Component({\r\n components: {\r\n Location: () => import('@/components/base/InsLocation.vue'),\r\n InsCmsParentCat: () => import('@/components/business/cms/InsCmsParentCat.vue'),\r\n InsCmsCat1: () => import('@/components/business/cms/InsCmsCat1.vue'),\r\n InsCmsCat2: () => import('@/components/business/cms/InsCmsCat2.vue'),\r\n InsCmsCat3: () => import('@/components/business/cms/InsCmsCat3.vue'),\r\n InsCmsCat4: () => import('@/components/business/cms/InsCmsCat4.vue'),\r\n InsCmsCat5: () => import('@/components/business/cms/InsCmsCat5.vue'),\r\n InsCmsCat6: () => import('@/components/business/cms/InsCmsCat6.vue'),\r\n InsCmsCat7: () => import('@/components/business/cms/InsCmsCat7.vue'),\r\n InsCmsCat8: () => import('@/components/business/cms/InsCmsCat8.vue'),\r\n InsCmsCat9: () => import('@/components/business/cms/InsCmsCat9.vue'),\r\n InsCmsCat10: () => import('@/components/business/cms/InsCmsCat10.vue'),\r\n InsCmsCat11: () => import('@/components/business/cms/InsCmsCat11.vue'),\r\n InsCmsCat12: () => import('@/components/business/cms/InsCmsCat12.vue'),\r\n InsCmsCat13: () => import('@/components/business/cms/InsCmsCat13.vue'),\r\n InsCmsCat14: () => import('@/components/business/cms/InsCmsCat14.vue'),\r\n InsCmsTwoSwiper: () => import('@/components/business/cms/InsCmsTwoSwiper.vue')\r\n }\r\n})\r\n\r\nexport default class InsCatDetail extends Vue {\r\n cmsCategory: object = {}; // cms下所有目录的信息\r\n catDetail: object = {}; // cms下单个目录的信息\r\n cmsCatTree: object[] = []; // cms目录\r\n contentList: object[] = []; // cms内容列表\r\n catId: number = 0; // Tree点击获取内容列表的目录id\r\n PageStyle: string = '0'; // catDetail页面类型\r\n\r\n // 根据设备类型获取CMSCategory信息\r\n getCategoryByDevice () {\r\n this.$Api.cms\r\n .getCategoryByDevice({ CatId: this.id, IsMobile: this.isMobile })\r\n .then(result => {\r\n console.log(result.Children, '当前catDetail Children数据');\r\n this.cmsCategory = result;\r\n this.PageStyle = result.PageStyle;\r\n // let seoData = require('@/sdk/common/SeoData');\r\n document.title = result.Name;\r\n })\r\n .catch(error => {\r\n console.log(error, 'error');\r\n this.$message({\r\n message: error,\r\n type: 'error'\r\n });\r\n });\r\n }\r\n // 获取cms该id下所有的Category\r\n getCategoryTree () {\r\n this.$Api.cms.getCategoryTree({ id: this.id }).then(result => {\r\n if (result && result.length) {\r\n this.cmsCatTree = result;\r\n this.catId = result[0].Id;\r\n this.getContentsByCatId();\r\n } else {\r\n this.getContentsByCatId();\r\n }\r\n });\r\n }\r\n // 获取cms该id下所有的cms\r\n getContentsByCatId () {\r\n let catId = this.catId || this.id;\r\n this.$Api.cms.getContentsByCatId(catId, 1, 20).then(result => {\r\n this.contentList = result.Data;\r\n console.log(this.contentList, '文章列表');\r\n });\r\n }\r\n // 获取 Category 和所有 SubCategory 的 cms 列表\r\n getSubCatContents () {\r\n this.$Api.cms\r\n .getSubCatContents({ CatId: this.id, IsMobile: this.isMobile })\r\n .then(result => {\r\n console.log(result, ' 获取所有 SubCategory 的 cms 列表');\r\n this.contentList = result.Data;\r\n });\r\n }\r\n // 树形控件选择的cms目录改变\r\n changeCatSelect (Id) {\r\n this.catId = Id;\r\n this.getContentsByCatId();\r\n }\r\n get id () {\r\n console.log(this.$route.params.id, '当前id');\r\n return this.$route.params.id;\r\n }\r\n\r\n get isMobile () {\r\n return this.$store.state.isMobile;\r\n }\r\n get fromSearch () {\r\n return this.$route.query.fromSearch;\r\n }\r\n mounted () {\r\n this.getCategoryByDevice();\r\n }\r\n\r\n @Watch('id', { deep: true })\r\n onKeyChange () {\r\n this.catDetail = {};\r\n this.cmsCatTree = [];\r\n this.contentList = [];\r\n this.catId = 0;\r\n this.cmsCategory = {};\r\n this.getCategoryByDevice();\r\n }\r\n\r\n @Watch('isMobile', { deep: true })\r\n onMediaChange () {\r\n this.catDetail = {};\r\n this.cmsCatTree = [];\r\n this.contentList = [];\r\n this.catId = 0;\r\n this.cmsCategory = {};\r\n this.getCategoryByDevice();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./catDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./catDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./catDetail.vue?vue&type=template&id=4a416335&scoped=true&\"\nimport script from \"./catDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./catDetail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./catDetail.vue?vue&type=style&index=0&id=4a416335&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4a416335\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}