chunk-652c5f51.1599131614611.js 5.14 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-652c5f51"],{1733:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAPCAYAAABqQqYpAAABjklEQVQ4jcXTMUhVcRQG8N99PpCEkoZQDIJ4RlAQFA5uhVAgBIoowluCAiEbCreGokWKQmippiCCKHAppyTEsTYHI5qaGgoarkPBc9CG/3l0sXvB6b0PDpz7nfu/3/c/59wsbzb68QRTOKBz+IM3WKjjBSY7KN5GH66iL8ubjR1kXTDRRqvWZQPQWyshVzGB3wVuAmuRj+F4RAPvgz+LD4UzS7hSeP6O0/i2V7DMxCesoImd4FbwOfL1ELyFBZwL/jAeRN7CfbzEZnBP8RNH92MCeqQb3q6oD+NCxJHgboTBr9LW5xgI8W08lxaxd+/H6hUiB6V2XsOpkvqjCHgldW0SQ3iGj7iMUSziDH7heplYlQnh+gvmSmp3o57hWHA98e6idPNVaWz3pNGNS3v0H6rG0cZDXCzhN/EW7/CjwM9hFydwSRrVTJiarxIp68QIzhdMvsas1FJhaiOijpMYjNogHks708adMDNeZSLLm43dqmKnUPPvN+wWWjVptt3Ecl3a8hzTONRB8S0s4+ZfrpxKJ/cIpTQAAAAASUVORK5CYII="},"1a59":function(t,i,a){"use strict";a.r(i);var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("div",{staticClass:"ebg"}),s("div",{staticClass:"content"},[s("div",{staticClass:"top-space"}),s("div",{staticClass:"box"},[s("div",{staticClass:"news"},t._l(t.news,(function(i,e){return s("div",{key:e,staticClass:"news-item",on:{click:function(a){return t.toNewsDetail(i.newsCode)}}},[s("div",{staticClass:"news-item-tit"},[s("div",{staticClass:"point"}),s("div",{staticClass:"tit"},[t._v(t._s(i.title))]),1==i.hadNewTag?s("img",{staticClass:"new",attrs:{src:a("1733")}}):t._e()]),s("div",{staticClass:"news-item-date"},[t._v(t._s(i.dateFormat))])])})),0),s("pagination",{ref:"pagination",staticClass:"pagination",attrs:{total:t.totalPage,totalItem:t.totalItem},on:{selpage:t.selPage}})],1)])])},e=[],n=(a("6d57"),a("4ec3")),o=a.n(n),c=a("ed0b"),r=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"comp"},[a("div",{staticClass:"pagination gird-g"},[a("div",[t._v(t._s(t.$t("pagination.total"))),a("span",{staticClass:"t1"},[t._v(t._s(t.totalItem))]),t._v(t._s(t.$t("pagination.unit")))]),a("div",{staticClass:"pagination-item"},[a("span",{staticClass:"pointer",class:{"pagination-disabled":1==t.cur}},[a("a",{on:{click:function(i){return t.prevPage()}}},[t._v(t._s(t.$t("pagination.firstPage")))])]),t._l(t.indexs,(function(i,s){return a("span",{key:s,staticClass:"page-num pointer",class:{active:t.cur==i},on:{click:function(a){return t.selPage(i)}}},[a("a",[t._v(t._s(i))])])})),a("span",{staticClass:"pointer",class:{"pagination-disabled":t.cur==t.total}},[a("a",{on:{click:function(i){return t.nextPage()}}},[t._v(t._s(t.$t("pagination.nextPage")))])])],2),a("div",{staticClass:"pagination-item"},[a("span",[t._v(t._s(t.$t("pagination.per")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.sel,expression:"sel"}],staticClass:"ipt",attrs:{placeholder:t.cur,type:"text"},domProps:{value:t.sel},on:{input:function(i){i.target.composing||(t.sel=i.target.value)}}}),a("span",[t._v("/ "+t._s(t.total)+t._s(t.$t("pagination.page")))]),a("span",{staticClass:"jump pointer",on:{click:t.jumpPage}},[t._v(t._s(t.$t("pagination.goto")))])])])])},u=[],l=(a("163d"),{name:"pagination",props:{total:{type:Number,default:1},totalItem:{type:Number,default:1}},data:function(){return{cur:1,sel:1}},components:{},computed:{offSet:function(){return 5*(this.cur-1)},indexs:function(){var t=1,i=this.total,a=[];this.total>=11&&(this.cur>5&&this.cur<this.total-4?(t=this.cur-5,i=this.cur+4):this.cur<=5?(t=1,i=10):(i=this.total,t=this.total-9));while(t<=i)a.push(t),t++;return a}},methods:{jumpPage:function(){this.cur=this.sel,this.cur<1&&(this.cur=1),this.cur>this.total&&(this.cur=this.total),this.sendPage()},selPage:function(t){t!=this.cur&&(this.cur=t,this.sel=this.cur,this.sendPage())},prevPage:function(){this.cur--,this.cur<1&&(this.cur=1),this.sel=this.cur,this.sendPage()},nextPage:function(){this.cur++,this.cur>this.total&&(this.cur=this.total),this.sel=this.cur,this.sendPage()},sendPage:function(){this.$emit("selpage",{page:this.cur})},initData:function(){}},mounted:function(){},created:function(){}}),p=l,h=(a("80b2"),a("4023")),d=Object(h["a"])(p,r,u,!1,null,"2ae4ffb0",null),g=d.exports,m=a("71e2"),v={name:"newsList",components:{Pagination:g},data:function(){return{key:"value",queryForm:{l:"tc",page:1,size:10},totalPage:0,totalItem:0,news:[]}},methods:{toNewsDetail:function(t){this.$router.push({path:"/news/detail",query:{c:t}})},selPage:function(t){var i=t.page;this.$router.push({path:"/news/list",query:{page:i}}),this.initData()},initData:function(){var t=this,i=this.$i18n.locale;this.queryForm.l=i;var a=this.$route.query.page||1;this.queryForm.page=a,this.$nextTick((function(){t.$refs.pagination.selPage(a)})),Object(c["b"])({url:o.a.newsList,data:this.queryForm}).then((function(i){var a=i.list;a.forEach((function(t){t.dateFormat=Object(m["e"])(t.createAt)})),t.$set(t,"news",a),t.totalPage=Math.ceil(i.total/t.queryForm.size),t.totalItem=i.total}))}},mounted:function(){},created:function(){var t=this;document.documentElement.scrollTop=0,document.body.scrollTop=0,this.initData(),this.$root.eventBus.$on("langChange",(function(){try{t.initData()}catch(i){}}))}},f=v,C=(a("8186"),Object(h["a"])(f,s,e,!1,null,"6c3b28f4",null));i["default"]=C.exports},"80b2":function(t,i,a){"use strict";var s=a("b488"),e=a.n(s);e.a},8186:function(t,i,a){"use strict";var s=a("dce1"),e=a.n(s);e.a},b488:function(t,i,a){},dce1:function(t,i,a){}}]);