(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/pages/integral-rank/integral-rank"],{"1b03":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("057a"),i={data:function(){return{rankList:[],list:[{name:"总榜单"},{name:"昨日榜单"}],current:0,params:{page_index:1,page_size:15,type:"all"},totalPage:0,person:"",exc_gifts:0}},onShow:function(){this.getIntegral(),this.getRank()},methods:{change:function(t){this.current=t,this.params.type=0==t?"all":"yesterday",this.params.page_index=1,this.rankList=[],this.getRank(),this.goTop()},goTop:function(){t.pageScrollTo&&t.pageScrollTo({scrollTop:0})},getIntegral:function(){var n=this;(0,a.getIntegral)().then((function(e){200==e.code?(n.person=e.data,n.exc_gifts=e.data.exc_gifts):t.showModal({content:e.msg||"获取数据失败",showCancel:!1})}))},skipPage:function(n){if(0==this.exc_gifts&&0==n)return t.showToast({title:"暂未开启，敬请期待~",icon:"none"}),!1;var e="";e=0==n?"../integral-store/integral-store?integral="+this.person.store.integral:"../integral-detail/integral-detail",t.navigateTo({url:e})},getRank:function(n){var e=this;t.showLoading({title:"加载中..."});var i=this.params;(0,a.integralRank)(i).then((function(a){200==a.code?(e.rankList=n?e.rankList.concat(a.data.list):a.data.list,e.totalPage=Math.ceil(a.data.total/e.params.page_size)):t.showModal({content:a.msg||"获取排名失败",showCancel:!1}),t.hideLoading()})).catch((function(n){t.hideLoading()}))},getMore:function(){if(this.params.page_index>=this.totalPage)return t.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getRank(!0)}}};n.default=i}).call(this,e("543d")["default"])},2234:function(t,n,e){"use strict";e.r(n);var a=e("a3da"),i=e("8438");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("5ddd");var r,s=e("f0c5"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"1d93d791",null,!1,a["a"],r);n["default"]=c.exports},"5ddd":function(t,n,e){"use strict";var a=e("c324"),i=e.n(a);i.a},8438:function(t,n,e){"use strict";e.r(n);var a=e("1b03"),i=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"87e4":function(t,n,e){"use strict";(function(t){e("fdf4");a(e("66fd"));var n=a(e("2234"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},a3da:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uTabs:function(){return e.e("node-modules/uview-ui/components/u-tabs/u-tabs").then(e.bind(null,"e0ad"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.rankList,(function(n,e){var a=t.__get_orig(n),i=t._f("getName")(n.name,10);return{$orig:a,f0:i}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},o=[]},c324:function(t,n,e){}},[["87e4","common/runtime","common/vendor"]]]);