chunk-443f3894.0c22059a.js.map 16 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noNews.png","webpack:///./src/views/shop/news/NewsList.vue?fadc","webpack:///src/views/shop/news/NewsList.vue","webpack:///./src/views/shop/news/NewsList.vue?fe2d","webpack:///./src/views/shop/news/NewsList.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","imgUrls","length","attrs","swiperNew","_l","item","index","key","image_input","_e","on","onClick","model","value","callback","$$v","active","expression","title","path","id","_v","_s","add_time","itemImg","articleList","loadend","loading","page","staticRenderFns","name","components","swiper","swiperSlide","Tab","Tabs","Loading","props","data","limit","loadTitle","navLsit","cid","pagination","el","clickable","autoplay","disableOnInteraction","delay","loop","speed","observer","observeParents","mounted","articleBanner","articleCategory","articleHotList","$scroll","$refs","container","methods","that","res","getArticleLists","push","apply","component"],"mappings":"mGAAAA,EAAOC,QAAU,IAA0B,8B,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,YAAY,CAAEP,EAAIQ,QAAQC,OAAS,EAAGL,EAAG,MAAM,CAACG,YAAY,4BAA4B,CAACH,EAAG,SAAS,CAACG,YAAY,iBAAiBG,MAAM,CAAC,QAAUV,EAAIW,YAAYX,EAAIY,GAAIZ,EAAW,SAAE,SAASa,EAAKC,GAAO,OAAOV,EAAG,cAAc,CAACW,IAAID,EAAMP,YAAY,gBAAgB,CAACH,EAAG,MAAM,CAACG,YAAY,cAAcG,MAAM,CAAC,IAAMG,EAAKG,YAAY,WAAU,GAAGZ,EAAG,MAAM,CAACG,YAAY,uBAAuB,GAAGP,EAAIiB,KAAKb,EAAG,OAAO,CAACG,YAAY,aAAaG,MAAM,CAAC,cAAc,UAAU,aAAa,UAAU,MAAQ,UAAU,SAAW,GAAG,uBAAuB,IAAI,YAAY,UAAU,OA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ACA,MAIa,aAAAqC,E","file":"h5/js/chunk-443f3894.0c22059a.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\":\"#e93323\",\"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=\"#e93323\"\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@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./NewsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/_vue-loader@15.9.0@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=3795d2d6&\"\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@15.9.0@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":""}