{"version":3,"sources":["webpack:///./src/views/cms/content.vue?ea20","webpack:///./src/views/cms/content.vue","webpack:///./src/views/cms/content.vue?0e95","webpack:///./src/views/cms/content.vue?20a1","webpack:///./src/views/cms/content.vue?f12e"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","domProps","_s","content","Body","photos","_e","id","staticRenderFns","CateName","hasPhotoGallery","$Api","cms","getContentByDevice","ContentId","IsMobile","isMobile","then","result","CMS","Name","$nextTick","Title","document","title","i","CmsControl","length","ControlId","ControlImageLis","window","__PRERENDER_INJECTED","seoData","keywords","createElement","setAttribute","seoItem","keyword","head","appendChild","description","dispatchEvent","Event","e","getContent","checkPhotos","$route","params","$store","state","deep","components","InsPhotoGallery","InsHomeRnp","component"],"mappings":"yHAAA,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,cAAc,CAACH,EAAG,MAAM,CAACG,YAAY,WAAWC,SAAS,CAAC,UAAYR,EAAIS,GAAGT,EAAIU,QAAQC,SAAUX,EAAmB,gBAAEI,EAAG,oBAAoB,CAACE,MAAM,CAAC,OAASN,EAAIY,UAAUZ,EAAIa,KAAiB,UAAXb,EAAIc,GAAgBV,EAAG,gBAAgBJ,EAAIa,MAAM,MAChYE,EAAkB,G,oFCmBD,EAArB,YAPA,iD,+DAQE,EAAAC,SAAmB,GACnB,EAAAN,QAAa,GACb,EAAAO,iBAA2B,EAC3B,EAAAL,OAAmB,GAXrB,EAOA,gFAOY,WACRX,KAAKgB,iBAAkB,EACvBhB,KAAKiB,KAAKC,IAAIC,mBAAmB,CAAEC,UAAWpB,KAAKa,GAAIQ,SAAUrB,KAAKsB,WAAYC,MAAK,SAAAC,GACrF,EAAKf,QAAUe,EAAOC,IACtB,EAAKV,SAAWS,EAAOC,IAAIC,K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ACA,WACA,MAIa,aAAA8C,E,6FCnBf,yBAAuoB,EAAG","file":"js/chunk-9c5b1984.2c19f029.js","sourcesContent":["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:\"CmsContent\"},[_c('div',{staticClass:\"cms-html\",domProps:{\"innerHTML\":_vm._s(_vm.content.Body)}}),(_vm.hasPhotoGallery)?_c('ins-photo-gallery',{attrs:{\"photos\":_vm.photos}}):_vm._e(),(_vm.id === '20317')?_c('ins-home-rnp'):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n@Component({\r\n components: {\r\n // Location: () => import('@/components/base/InsLocation.vue')\r\n InsPhotoGallery: () => import('@/components/business/cms/InsPhotoGallery.vue'),\r\n InsHomeRnp: () => import('@/components/business/home/InsHomeRNP.vue')\r\n }\r\n})\r\nexport default class InsCmsContent extends Vue {\r\n CateName: string = '';\r\n content: any={};\r\n hasPhotoGallery: boolean = false; // 是否有图片集功能\r\n photos: object[] = [];\r\n\r\n // 获取关于我们cms内容\r\n getContent () {\r\n this.hasPhotoGallery = false;\r\n this.$Api.cms.getContentByDevice({ ContentId: this.id, IsMobile: this.isMobile }).then(result => {\r\n this.content = result.CMS;\r\n this.CateName = result.CMS.Name;\r\n\r\n this.$nextTick(() => {\r\n if (result.CMS.Title) document.title = result.CMS.Title;\r\n });\r\n\r\n for (let i = 0; i < this.content.CmsControl.length; i++) {\r\n if (this.content.CmsControl[i].ControlId === 'd765d5eb-da01-49ad-b1f8-31072b980b83') {\r\n this.hasPhotoGallery = true;\r\n this.photos = this.content.CmsControl[i].ControlImageLis;\r\n break;\r\n }\r\n }\r\n // this.$HiddenLayer();\r\n });\r\n }\r\n\r\n checkPhotos () {\r\n\r\n }\r\n\r\n get 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\r\n created () {\r\n if ((window as any).__PRERENDER_INJECTED) {\r\n try {\r\n let seoData = require('../../sdk/common/SeoData');\r\n let keywords = document.createElement('meta');\r\n keywords.setAttribute('name', 'keywords');\r\n keywords.setAttribute('content', seoData.seoItem['cms' + this.id].keyword);\r\n document.head.appendChild(keywords);\r\n let description = document.createElement('meta');\r\n description.setAttribute('name', 'description');\r\n description.setAttribute('content', seoData.seoItem['cms' + this.id].description);\r\n document.head.appendChild(description);\r\n document.title = seoData.seoItem['cms' + this.id].title;\r\n document.dispatchEvent(new Event('render-event'));\r\n } catch (e) {\r\n console.log('當前頁面無需SEO。');\r\n }\r\n }\r\n }\r\n\r\n mounted () {\r\n this.getContent();\r\n this.checkPhotos();\r\n }\r\n\r\n @Watch('isMobile', { deep: true })\r\n onMediaChange () {\r\n this.getContent();\r\n }\r\n\r\n @Watch('id', { deep: true })\r\n onKeyChange () {\r\n this.content = {};\r\n this.getContent();\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!./content.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!./content.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./content.vue?vue&type=template&id=3a798530&scoped=true&\"\nimport script from \"./content.vue?vue&type=script&lang=ts&\"\nexport * from \"./content.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./content.vue?vue&type=style&index=0&id=3a798530&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 \"3a798530\",\n null\n \n)\n\nexport default component.exports","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!./content.vue?vue&type=style&index=0&id=3a798530&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!./content.vue?vue&type=style&index=0&id=3a798530&scoped=true&lang=less&\""],"sourceRoot":""}