{"version":3,"sources":["webpack:///./src/components/business/home/InsPromotion.vue?f1b2","webpack:///./src/components/business/home/InsPromotion.vue?84e0","webpack:///./src/components/business/home/InsPromotion.vue","webpack:///./src/components/business/home/InsPromotion.vue?b896","webpack:///./src/components/business/home/InsPromotion.vue?c6d8"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","contents","_v","_s","PromotionTitle","Name","_e","attrs","isMobile","_l","cms","index","key","Url","Image","Content","ref","swiperOption","slot","staticRenderFns","Page","PageSize","slidesPerView","spaceBetween","pagination","el","clickable","navigation","nextEl","prevEl","observer","observeParents","page","$Api","promotion","getPromotion","then","result","Promotion","BannerList","length","getContents","$store","state","default","deep","component"],"mappings":"kHAAA,yBAAoqB,EAAG,G,2CCAvqB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAAEN,EAAIO,SAAe,OAAEH,EAAG,MAAM,CAAEJ,EAAY,SAAEI,EAAG,IAAI,CAACE,YAAY,WAAW,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,eAAeC,SAASX,EAAIY,KAAMZ,EAAY,SAAEI,EAAG,SAAS,CAACE,YAAY,OAAOO,MAAM,CAAC,OAASb,EAAIc,SAAW,GAAK,KAAKd,EAAIe,GAAIf,EAAY,UAAE,SAASgB,EAAIC,GAAO,OAAOb,EAAG,SAAS,CAACc,IAAID,EAAMJ,MAAM,CAAC,KAAO,GAAG,GAAK,IAAI,CAACT,EAAG,IAAI,CAACS,MAAM,CAAC,KAAOG,EAAIG,MAAM,CAACf,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACS,MAAM,CAAC,IAAMG,EAAII,WAAWhB,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,IAAI,CAACE,YAAY,SAAS,CAACN,EAAIQ,GAAGR,EAAIS,GAAGO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AC,GAExDA,EAAOC,UAAUC,WAAWC,OAAS,IACvC,EAAKpC,eAAiBiC,EAAOC,UAC7B,EAAKrC,SAAWoC,EAAOC,UAAUC,iBAnCzC,gCA6CI5C,KAAK8C,gBA7CT,sCAkDI9C,KAAK8C,gBAlDT,+BAyCI,OAAO9C,KAAK+C,OAAOC,MAAMnC,aAzC7B,GAAwC,QACf,QAAtB,eAAK,CAAEoC,QAAS,M,6BAgDjB,QADC,eAAM,WAAY,CAAEC,MAAM,K,4BAG1B,MAnDkB,EAAU,QAD9B,QACoB,WC/C8b,I,wBCQ/cC,EAAY,eACd,EACArD,EACA0B,GACA,EACA,KACA,WACA,MAIa,aAAA2B,E","file":"js/chunk-1971a858.fd512fd7.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!./InsPromotion.vue?vue&type=style&index=0&id=3b7b2751&lang=less&scoped=true&\"; 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!./InsPromotion.vue?vue&type=style&index=0&id=3b7b2751&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"cms-list\"},[(_vm.contents.length)?_c('div',[(_vm.contents)?_c('p',{staticClass:\"catName\"},[_vm._v(_vm._s(_vm.PromotionTitle.Name))]):_vm._e(),(_vm.isMobile)?_c('el-row',{staticClass:\"list\",attrs:{\"gutter\":_vm.isMobile ? 20 : 58}},_vm._l((_vm.contents),function(cms,index){return _c('el-col',{key:index,attrs:{\"span\":24,\"sm\":8}},[_c('a',{attrs:{\"href\":cms.Url}},[_c('div',{staticClass:\"cover\"},[_c('img',{attrs:{\"src\":cms.Image}})]),_c('div',{staticClass:\"info\"},[_c('p',{staticClass:\"title\"},[_vm._v(_vm._s(cms.Content))])])])])}),1):_c('div',{staticClass:\"list\"},[_c('swiper',{ref:\"mySwiper\",staticClass:\"list_swipt\",attrs:{\"options\":_vm.swiperOption}},_vm._l((_vm.contents),function(cms,index){return _c('swiper-slide',{key:index},[_c('a',{attrs:{\"href\":cms.Url}},[_c('div',{staticClass:\"cover\"},[_c('img',{attrs:{\"src\":cms.Image}})]),_c('div',{staticClass:\"info\"},[_c('p',{staticClass:\"title\"},[_vm._v(_vm._s(cms.Content))])])])])}),1),_c('div',{staticClass:\"swiper-button-prev swiperList-button-prev\",attrs:{\"slot\":\"button-prev\"},slot:\"button-prev\"}),_c('div',{staticClass:\"swiper-button-next swiperList-button-next\",attrs:{\"slot\":\"button-next\"},slot:\"button-next\"})],1)],1):_c('div',{staticClass:\"nocontents\"},[_c('p',{staticClass:\"catName\"},[_vm._v(\"活動重溫\")]),_vm._v(\"\\n 暂时没内容,快將推出,敬請期待!\\n \")])])}\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\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n@Component\r\nexport default class InsCmsList extends Vue {\r\n @Prop({ default: '' }) private catKey!: string; // key值\r\n private Page: number = 1;\r\n private PageSize: number | null = 0;\r\n contents: object[] = [];\r\n PromotionTitle: object[] = [];\r\n\r\n swiperOption: object = {\r\n slidesPerView: 3,\r\n spaceBetween: 60,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n clickable: true\r\n },\r\n navigation: {\r\n nextEl: '.swiperList-button-next',\r\n prevEl: '.swiperList-button-prev'\r\n },\r\n // autoHeight: true, // 高度随内容变化\r\n observer: true, // 修改swiper自己或子元素时,自动初始化swiper\r\n observeParents: true // 修改swiper的父元素时,自动初始化swiper\r\n };\r\n\r\n // 获取关于cms内容列表\r\n getContents () {\r\n if (this.isMobile) {\r\n this.PageSize = 3;\r\n } else {\r\n this.PageSize = null;\r\n }\r\n var page = 'Home';\r\n this.$Api.promotion.getPromotion(page, 1, this.isMobile).then(result => {\r\n console.log(result, 'getPromotion');\r\n if (result.Promotion.BannerList.length > 0) {\r\n this.PromotionTitle = result.Promotion;\r\n this.contents = result.Promotion.BannerList;\r\n }\r\n });\r\n }\r\n\r\n get isMobile () {\r\n return this.$store.state.isMobile;\r\n }\r\n\r\n mounted () {\r\n this.getContents();\r\n }\r\n\r\n @Watch('isMobile', { deep: true })\r\n onMediaChange () {\r\n this.getContents();\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!./InsPromotion.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!./InsPromotion.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InsPromotion.vue?vue&type=template&id=3b7b2751&scoped=true&\"\nimport script from \"./InsPromotion.vue?vue&type=script&lang=ts&\"\nexport * from \"./InsPromotion.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InsPromotion.vue?vue&type=style&index=0&id=3b7b2751&lang=less&scoped=true&\"\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 \"3b7b2751\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}