(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/healthy/index"],{"3ca1":function(t,e,n){"use strict";var a=n("cb25"),o=n.n(a);o.a},"5a01":function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("9184"),i=a(n("cde5")),c={mixins:[i.default],data:function(){return{top:"0px",cates:[],choseCateId:0,statusBarHeight:t.getStorageSync("menuInfo").statusBarHeight,searchValue:"",mescroll:null,downOption:{},upOption:{onScroll:!0,use:!0,page:{num:0,size:10},noMoreSize:10,empty:{icon:"/static/images/no_data.png",tip:"暂无数据"},textNoMore:"已经到底了"},dataList:[]}},onShow:function(){this.getArticleCate();var e=this;setTimeout((function(){var n=t.createSelectorQuery().select(".top-content");n.boundingClientRect((function(t){console.log(t.height),e.top=t.height+"px"})).exec()}),500)},methods:{doSearch:function(){console.log(this.searchValue),this.mescroll.resetUpScroll()},getArticleCate:function(){var e=this;(0,o.getArticleCate)({}).then((function(n){200==n.code?e.cates=n.data:t.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},mescrollInit:function(t){this.mescroll=t},downCallback:function(t){t.resetUpScroll()},upCallback:function(e){var n=this,a={keyword:this.searchValue,cateId:this.choseCateId,page:e.num,pageSize:e.size};(0,o.getArticleList)(a).then((function(a){200==a.code?(1==e.num?n.dataList=a.data.list:n.dataList=n.dataList.concat(a.data.list),n.mescroll.endBySize(a.data.list.length,a.data.total)):(t.showToast({icon:"none",title:"请求失败"}),n.dataList=null,n.mescroll.endErr())}))},choseCate:function(t){this.choseCateId=t.cateId,this.mescroll.resetUpScroll()},showDetail:function(e){t.navigateTo({url:"./detail?articleId="+e.articleId})}}};e.default=c}).call(this,n("df3c")["default"])},b9ae:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={mescrollBody:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(n.bind(null,"fb9a"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.dataList,(function(e,n){var a=t.__get_orig(e),o=null!=e.viewsList&&e.viewsList.length>0;return{$orig:a,g0:o}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},cb25:function(t,e,n){},dea2:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("584a");a(n("3240"));var o=a(n("eef4"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},eef4:function(t,e,n){"use strict";n.r(e);var a=n("b9ae"),o=n("f372");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("3ca1");var c=n("828b"),l=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=l.exports},f372:function(t,e,n){"use strict";n.r(e);var a=n("5a01"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a}},[["dea2","common/runtime","common/vendor"]]]);