chunk-443f3894.55d095a9.js.map 16 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noNews.png","webpack:///./src/views/shop/news/NewsList.vue?3ea8","webpack:///src/views/shop/news/NewsList.vue","webpack:///./src/views/shop/news/NewsList.vue?62aa","webpack:///./src/views/shop/news/NewsList.vue"],"names":["module","exports","__webpack_require__","p","render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","imgUrls","length","attrs","options","swiperNew","_l","item","index","key","src","image_input","_e","line-height","line-width","color","animated","title-inactive-color","nav-right","sticky","on","click","onClick","model","value","callback","$$v","active","expression","title","title-active-color","to","path","id","_v","_s","add_time","itemImg","articleList","loaded","loadend","loading","page","staticRenderFns","NewsListvue_type_script_lang_js_","name","components","swiper","vue_awesome_swiper","swiperSlide","Tab","tab","Tabs","tabs","Loading","props","data","limit","loadTitle","navLsit","cid","pagination","el","clickable","autoplay","disableOnInteraction","delay","loop","speed","observer","observeParents","mounted","_this","articleBanner","articleCategory","articleHotList","$scroll","$refs","container","getArticleLists","methods","that","Object","api_public","then","res","q","push","apply","news_NewsListvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"mGAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,uECAxC,IAAAC,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,YAAAC,YAAA,YAAuC,CAAAP,EAAAQ,QAAAC,OAAA,EAAAL,EAAA,OAAqCG,YAAA,4BAAuC,CAAAH,EAAA,UAAeG,YAAA,iBAAAG,MAAA,CAAoCC,QAAAX,EAAAY,YAAyBZ,EAAAa,GAAAb,EAAA,iBAAAc,EAAAC,GAA2C,OAAAX,EAAA,eAAyBY,IAAAD,EAAAR,YAAA,gBAAqC,CAAAH,EAAA,OAAYG,YAAA,cAAAG,MAAA,CAAiCO,IAAAH,EAAAI,YAAA,UAA+B,GAAAd,EAAA,OAA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,KAAAuC,EAAAvC,KAAA,MAGApB,QAAA,SAAAuB,GACA,IAAAA,EAAAnD,KAAAiF,kBAEAjF,KAAAkE,IAAAlE,KAAAiE,QAAAd,GAAAZ,GACAvC,KAAA4C,YAAA,GACA5C,KAAAgD,KAAA,EACAhD,KAAA8C,SAAA,EACA9C,KAAA+C,SAAA,EACA/C,KAAAqF,gBAAAlC,OCzMgX4C,EAAA,cCOhXC,EAAgBR,OAAAS,EAAA,KAAAT,CACdO,EACAjG,EACAmD,GACF,EACA,KACA,KACA,MAIeiD,EAAA,WAAAF","file":"h5/js/chunk-443f3894.55d095a9.js","sourcesContent":["module.exports = __webpack_public_path__ + \"h5/img/noNews.5f227afa.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"newsList\"},[(_vm.imgUrls.length > 0)?_c('div',{staticClass:\"slider-banner swiperNews\"},[_c('swiper',{staticClass:\"swiper-wrapper\",attrs:{\"options\":_vm.swiperNew}},_vm._l((_vm.imgUrls),function(item,index){return _c('swiperSlide',{key:index,staticClass:\"swiper-slide\"},[_c('img',{staticClass:\"slide-image\",attrs:{\"src\":item.image_input[0]}})])}),1),_c('div',{staticClass:\"swiper-pagination\"})],1):_vm._e(),_c('Tabs',{staticClass:\"newsSwitch\",attrs:{\"line-height\":\"0.04rem\",\"line-width\":\"0.24rem\",\"color\":\"#00c049\",\"animated\":\"\",\"title-inactive-color\":\"2\",\"nav-right\":\"0.46rem\",\"sticky\":\"\"},on:{\"click\":_vm.onClick},model:{value:(_vm.active),callback:function ($$v) {_vm.active=$$v},expression:\"active\"}},_vm._l((_vm.navLsit),function(item,index){return _c('Tab',{key:index,attrs:{\"title\":item.title,\"title-inactive-color\":\"#999\",\"title-active-color\":\"#282828\"}},[_vm._l((_vm.articleList),function(item,index){return _c('div',{key:index,staticClass:\"list\"},[(item.image_input.length === 1)?_c('router-link',{staticClass:\"item acea-row row-between-wrapper\",attrs:{\"to\":{ path: '/news_detail/' + item.id }}},[_c('div',{staticClass:\"text acea-row row-column-between\"},[_c('div',{staticClass:\"name line2\"},[_vm._v(_vm._s(item.title))]),_c('div',[_vm._v(_vm._s(item.add_time))])]),_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":item.image_input[0]}})])]):_vm._e(),(item.image_input.length === 2)?_c('router-link',{staticClass:\"item\",attrs:{\"to\":{ path: '/news_detail/' + item.id }}},[_c('div',{staticClass:\"title line1\"},[_vm._v(\"\\n \"+_vm._s(item.title)+\"\\n \")]),_c('div',{staticClass:\"picList acea-row row-between-wrapper\"},_vm._l((item.image_input),function(itemImg,index){return _c('div',{key:index,staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":itemImg}})])}),0),_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(item.add_time))])]):_vm._e(),(item.image_input.length === 3)?_c('router-link',{staticClass:\"item\",attrs:{\"to\":{ path: '/news_detail/' + item.id }}},[_c('div',{staticClass:\"title line1\"},[_vm._v(\"\\n \"+_vm._s(item.title)+\"\\n \")]),_c('div',{staticClass:\"picList on acea-row row-between-wrapper\"},_vm._l((item.image_input),function(itemImg,index){return _c('div',{key:index,staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":itemImg}})])}),0),_c('div',{staticClass:\"time\"},[_vm._v(_vm._s(item.add_time))])]):_vm._e()],1)}),(index > 0 && _vm.articleList.length > 0)?_c('Loading',{attrs:{\"loaded\":_vm.loadend,\"loading\":_vm.loading}}):_vm._e(),(_vm.articleList.length === 0 && _vm.page > 1)?_c('div',{staticClass:\"noCommodity\"},[_c('div',{staticClass:\"noPictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":require(\"@assets/images/noNews.png\")}})])]):_vm._e()],2)}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"newsList\" ref=\"container\">\r\n <div class=\"slider-banner swiperNews\" v-if=\"imgUrls.length > 0\">\r\n <swiper class=\"swiper-wrapper\" :options=\"swiperNew\">\r\n <swiperSlide\r\n class=\"swiper-slide\"\r\n v-for=\"(item, index) in imgUrls\"\r\n :key=\"index\"\r\n >\r\n <img :src=\"item.image_input[0]\" class=\"slide-image\" />\r\n </swiperSlide>\r\n </swiper>\r\n <div class=\"swiper-pagination\"></div>\r\n </div>\r\n <Tabs\r\n @click=\"onClick\"\r\n class=\"newsSwitch\"\r\n line-height=\"0.04rem\"\r\n line-width=\"0.24rem\"\r\n color=\"#00c049\"\r\n v-model=\"active\"\r\n animated\r\n title-inactive-color=\"2\"\r\n nav-right=\"0.46rem\"\r\n sticky\r\n >\r\n <Tab\r\n v-for=\"(item, index) in navLsit\"\r\n :key=\"index\"\r\n :title=\"item.title\"\r\n title-inactive-color=\"#999\"\r\n title-active-color=\"#282828\"\r\n >\r\n <div class=\"list\" v-for=\"(item, index) in articleList\" :key=\"index\">\r\n <router-link\r\n :to=\"{ path: '/news_detail/' + item.id }\"\r\n class=\"item acea-row row-between-wrapper\"\r\n v-if=\"item.image_input.length === 1\"\r\n >\r\n <div class=\"text acea-row row-column-between\">\r\n <div class=\"name line2\">{{ item.title }}</div>\r\n <div>{{ item.add_time }}</div>\r\n </div>\r\n <div class=\"pictrue\"><img :src=\"item.image_input[0]\" /></div>\r\n </router-link>\r\n <router-link\r\n :to=\"{ path: '/news_detail/' + item.id }\"\r\n class=\"item\"\r\n v-if=\"item.image_input.length === 2\"\r\n >\r\n <div class=\"title line1\">\r\n {{ item.title }}\r\n </div>\r\n <div class=\"picList acea-row row-between-wrapper\">\r\n <div\r\n class=\"pictrue\"\r\n v-for=\"(itemImg, index) in item.image_input\"\r\n :key=\"index\"\r\n >\r\n <img :src=\"itemImg\" />\r\n </div>\r\n </div>\r\n <div class=\"time\">{{ item.add_time }}</div>\r\n </router-link>\r\n <router-link\r\n :to=\"{ path: '/news_detail/' + item.id }\"\r\n class=\"item\"\r\n v-if=\"item.image_input.length === 3\"\r\n >\r\n <div class=\"title line1\">\r\n {{ item.title }}\r\n </div>\r\n <div class=\"picList on acea-row row-between-wrapper\">\r\n <div\r\n class=\"pictrue\"\r\n v-for=\"(itemImg, index) in item.image_input\"\r\n :key=\"index\"\r\n >\r\n <img :src=\"itemImg\" />\r\n </div>\r\n </div>\r\n <div class=\"time\">{{ item.add_time }}</div>\r\n </router-link>\r\n </div>\r\n <Loading\r\n :loaded=\"loadend\"\r\n :loading=\"loading\"\r\n v-if=\"index > 0 && articleList.length > 0\"\r\n ></Loading>\r\n <!--暂无新闻-->\r\n <div class=\"noCommodity\" v-if=\"articleList.length === 0 && page > 1\">\r\n <div class=\"noPictrue\">\r\n <img src=\"@assets/images/noNews.png\" class=\"image\" />\r\n </div>\r\n </div>\r\n </Tab>\r\n </Tabs>\r\n </div>\r\n</template>\r\n<script>\r\nimport { swiper, swiperSlide } from \"vue-awesome-swiper\";\r\nimport \"@assets/css/swiper.min.css\";\r\nimport { Tab, Tabs } from \"vant\";\r\nimport {\r\n getArticleBanner,\r\n getArticleCategory,\r\n getArticleHotList,\r\n getArticleList\r\n} from \"@api/public\";\r\nimport Loading from \"@components/Loading\";\r\n\r\nexport default {\r\n name: \"NewsList\",\r\n components: {\r\n swiper,\r\n swiperSlide,\r\n Tab,\r\n Tabs,\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n page: 1,\r\n limit: 20,\r\n loadTitle: \"\",\r\n loading: false,\r\n loadend: false,\r\n imgUrls: [],\r\n navLsit: [],\r\n articleList: [],\r\n active: 0,\r\n cid: 0,\r\n swiperNew: {\r\n pagination: {\r\n el: \".swiper-pagination\",\r\n clickable: true\r\n },\r\n autoplay: {\r\n disableOnInteraction: false,\r\n delay: 2000\r\n },\r\n loop: true,\r\n speed: 1000,\r\n observer: true,\r\n observeParents: true\r\n }\r\n };\r\n },\r\n mounted: function() {\r\n this.articleBanner();\r\n this.articleCategory();\r\n this.articleHotList();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loading && this.getArticleLists();\r\n });\r\n },\r\n methods: {\r\n articleBanner: function() {\r\n let that = this;\r\n getArticleBanner().then(res => {\r\n that.imgUrls = res.data;\r\n });\r\n },\r\n articleCategory: function() {\r\n let that = this;\r\n getArticleCategory().then(res => {\r\n that.navLsit = res.data;\r\n });\r\n },\r\n articleHotList: function() {\r\n let that = this;\r\n getArticleHotList().then(res => {\r\n that.articleList = res.data;\r\n });\r\n },\r\n getArticleLists: function() {\r\n let that = this;\r\n if (that.loading) return; //阻止下次请求(false可以进行请求);\r\n if (that.loadend) return; //阻止结束当前请求(false可以进行请求);\r\n that.loading = true;\r\n let q = {\r\n page: that.page,\r\n limit: that.limit\r\n };\r\n getArticleList(q, that.cid).then(res => {\r\n that.loading = false;\r\n //apply();js将一个数组插入另一个数组;\r\n that.articleList.push.apply(that.articleList, res.data);\r\n that.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;\r\n that.page = that.page + 1;\r\n });\r\n },\r\n onClick: function(name) {\r\n if (name === 0) this.articleHotList();\r\n else {\r\n this.cid = this.navLsit[name].id;\r\n this.articleList = [];\r\n this.page = 1;\r\n this.loadend = false;\r\n this.loading = false;\r\n this.getArticleLists(name);\r\n }\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NewsList.vue?vue&type=template&id=697af033&\"\nimport script from \"./NewsList.vue?vue&type=script&lang=js&\"\nexport * from \"./NewsList.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}