webpackJsonp([17],{AKrT:function(t,s){},ZK1V:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("Dd8w"),a=e.n(i),n=e("qkow"),l=e("NYxO"),r=(e("gsqX"),{data:function(){return{type:"攻略",banner:[],flag:!0,currentPage:0,list:[]}},watch:{type:function(){this.currentPage=0,this.flag=!0,this.getData()}},created:function(){var t=this;setTimeout(function(){new Swiper(".swiper-container",{slidesPerView:"auto",pagination:".swiper-pagination",paginationClickable:!0,autoplay:5e3,paginationBulletRender:function(t,s,e){return'<div class="'+e+'"></div>'}})},500),this.$http.get({url:"/newsInfo/all",data:{recommend:"Y"}}).then(function(s){s.success&&(t.banner=s.data)}),this.getData()},computed:a()({},Object(l.b)(["locationInfo"])),methods:{getData:function(){var t=this;this.flag||retrun,0==this.currentPage&&(this.list=[]),this.currentPage++;var s={newsType:"攻略"==this.type?0:1,currentPage:this.currentPage,pageNumber:20,recommend:"N"};this.$http.get({url:"/newsInfo/page",data:s}).then(function(s){s.success&&(s.data.pp.forEach(function(s){t.list.push(s)}),s.data.page.currentPage<s.data.page.totalPage&&(t.flag=!0))})},menu:function(){this.$refs.list.scrollTop+this.$refs.list.offsetHeight>=this.$refs.list.scrollHeight&&this.getData()}},components:{GmButton:n.a}}),c={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"container"},[e("div",{staticClass:"top"},[e("div",{staticClass:"select"},[e("div",{staticClass:"selelct-item",class:["攻略"==t.type?"active":""],on:{click:function(s){t.type="攻略"}}},[t._v("\n                攻略指南\n            ")]),t._v(" "),e("div",{staticClass:"selelct-item",class:["资讯"==t.type?"active":""],on:{click:function(s){t.type="资讯"}}},[t._v("\n                新鲜资讯\n            ")]),t._v(" "),e("div",{staticClass:"select-box",style:{left:"攻略"==t.type?"0":"50%"}})])]),t._v(" "),e("div",{ref:"list",staticClass:"list",on:{scroll:t.menu}},["攻略"==t.type?[e("div",{staticClass:"swiper-container"},[e("div",{staticClass:"swiper-wrapper"},t._l(t.banner,function(t,s){return e("router-link",{staticClass:"swiper-slide",style:{backgroundImage:"url("+t.image+")"},attrs:{to:t.newsUrl}})})),t._v(" "),e("div",{staticClass:"swiper-pagination"})]),t._v(" "),e("div",{staticClass:"newsList"},t._l(t.list,function(s){return e("router-link",{staticClass:"news-item",attrs:{to:s.newsUrl}},[e("div",{staticClass:"images-Left",style:{backgroundImage:"url("+s.image+")"}}),t._v(" "),e("div",{staticClass:"right"},[e("div",{staticClass:"title"},[t._v("\n                            "+t._s(s.title)+"\n                        ")]),t._v(" "),e("div",{staticClass:"subtitle"},[t._v("\n                            "+t._s(s.subtitle)+"\n                        ")])])])}))]:e("div",{staticClass:"newsList"},t._l(t.list,function(s){return e("router-link",{staticClass:"news-large-item",style:{backgroundImage:"url("+s.image+")"},attrs:{to:s.newsUrl}},[e("div",{staticClass:"bottom"},[e("div",{staticClass:"title"},[t._v("\n                        "+t._s(s.title)+"\n                    ")])])])}))],2)])},staticRenderFns:[]};var o=e("VU/8")(r,c,!1,function(t){e("AKrT")},"data-v-716dbd40",null);s.default=o.exports}});
//# sourceMappingURL=17.80c8c3c765d6c33841b4.js.map