require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/news_list/index"],{"1a6d":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1d3c");n(i("3240"));var a=n(i("1bce"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"1bce":function(t,e,i){"use strict";i.r(e);var n=i("f957"),a=i("d003");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("fe7d");var o=i("828b"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"0be517a0",null,!1,n["a"],void 0);e["default"]=c.exports},"45af":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("3c22"),s=n(i("4d9b")),o=getApp(),c={components:{tuiSkeleton:function(){Promise.all([i.e("common/vendor"),i.e("components/base/tui-skeleton")]).then(function(){return resolve(i("caab"))}.bind(null,i)).catch(i.oe)}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),showSkeleton:!0,isNodes:0,imgUrls:[{imageInput:""}],articleList:[{imageInput:"",title:"占位占位",createTime:"占位"}],indicatorDots:!1,circular:!0,autoplay:!0,interval:3e3,duration:500,navList:[{id:0,name:"占位"},{id:0,name:"占位"},{id:0,name:"占位"}],active:0,page:1,limit:8,status:!1,scrollLeft:0,isShow:!1,theme:o.globalData.theme,loading:!1}},onLoad:function(){var t=this;setTimeout((function(){t.isNodes++}),500),this.articleList=[],this.getArticleHot(),this.getArticleBanner(),this.getArticleCate(),this.status=!1,this.page=1,this.getCidArticle()},onShow:function(){},onReachBottom:function(){this.getCidArticle()},methods:{getArticleHot:function(){var t=this;t.loading=!0,(0,a.getArticleHotList)().then((function(e){t.$set(t,"articleList",e.data),t.loading=!1}))},getArticleBanner:function(){var t=this,e=this;(0,a.getArticleBannerList)().then((function(i){e.imgUrls=i.data,setTimeout((function(){t.showSkeleton=!1}),1e3)}))},getCidArticle:function(){var t=this;if(0!=t.active){var e=t.limit,i=t.page,n=t.articleList;t.status||(t.loading=!0,(0,a.getArticleList)(t.active,{page:i,limit:e}).then((function(i){var a,s=i.data.list.length;a=n.concat(i.data.list),t.page++,t.$set(t,"articleList",a),t.status=e>s,t.page=t.page,t.isShow=!0,t.loading=!1})))}},getArticleCate:function(){var t=this,e=this;(0,a.getArticleCategoryList)().then((function(i){var n=i.data;n.unshift({id:0,name:"热门"}),e.$set(e,"navList",n),setTimeout((function(){t.showSkeleton=!1}),1e3)}))},tabSelect:function(t,e){this.active=t,this.scrollLeft=60*e,0==this.active?this.getArticleHot():(this.$set(this,"articleList",[]),this.page=1,this.status=!1,this.getCidArticle())},toNewDetail:function(e){t.navigateTo({animationType:s.default.type,animationDuration:s.default.duration,url:"/pages/goods/news_details/index?id="+e})},setShare:function(){this.$wechat.isWeixin()&&this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],{desc:this.articleList[0].title,title:this.articleList[0].title,link:location.href,imgUrl:this.articleList[0].imageInput}).then((function(t){})).catch((function(t){}))}}};e.default=c}).call(this,i("df3c")["default"])},d003:function(t,e,i){"use strict";i.r(e);var n=i("45af"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},f532:function(t,e,i){},f957:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.imgUrls.length),i=0==this.articleList.length&&(1!=this.page||0==this.active)&&this.isShow;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},a=[]},fe7d:function(t,e,i){"use strict";var n=i("f532"),a=i.n(n);a.a}},[["1a6d","common/runtime","common/vendor"]]]);