require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/invitation/rank"],{1560:function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("f076");e(i("3240"));var a=e(i("caa3"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},5935:function(t,n,i){},"5a82":function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i("4d38"),a=i("92f9"),o=t.getWindowInfo().statusBarHeight,c={name:"",components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)},NavBar:function(){i.e("components/NavBar").then(function(){return resolve(i("a7d8"))}.bind(null,i)).catch(i.oe)}},data:function(){return{sysHeight:o,imgHost:e.HTTP_REQUEST_URL,pageScrollStatus:!1,activityId:0,page:1,limit:20,list:[],loading:!1,finished:!1,my:{avatar:e.HTTP_REQUEST_URL+"/statics/images/avatar.png",nickname:"我",rank:0,invite_count:0}}},computed:{headerBg:function(){return{backgroundImage:"url("+e.HTTP_REQUEST_URL+"/statics/images/v4_2/Invitation_rank_bg.png)"}},contentTop:function(){return{top:292+2*o+"rpx"}}},onLoad:function(t){var n={};t.scene&&(n=this.$util.getUrlParams(decodeURIComponent(t.scene)));var i=parseInt(t.invite_gift_id||t.id||n.invite_gift_id||n.id||0);this.activityId=Number.isNaN(i)?0:i,this.getList()},onReachBottom:function(){this.getList()},onPageScroll:function(t){this.pageScrollStatus=t.scrollTop>130},methods:{getList:function(){var t=this;!this.activityId||this.loading||this.finished||(this.loading=!0,(0,a.inviteGiftRank)(this.activityId,{page:this.page,limit:this.limit}).then((function(n){var i=n.data||{},e=i.list||[];t.list=t.list.concat(e),t.my=i.my||t.my,t.page+=1,t.finished=e.length<t.limit,t.loading=!1})).catch((function(n){t.loading=!1,t.$util.Tips({title:n})})))}}};n.default=c}).call(this,i("df3c")["default"])},"6f26":function(t,n,i){"use strict";var e=i("5935"),a=i.n(e);a.a},a129:function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,i=(t._self._c,t.__get_style([t.headerBg])),e=t.__get_style([t.contentTop]),a=t.list.length,o=t.list.length&&t.finished;t.$mp.data=Object.assign({},{$root:{s0:i,s1:e,g0:a,g1:o}})},a=[]},bca0:function(t,n,i){"use strict";i.r(n);var e=i("5a82"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},caa3:function(t,n,i){"use strict";i.r(n);var e=i("a129"),a=i("bca0");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("6f26");var c=i("828b"),s=Object(c["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=s.exports}},[["1560","common/runtime","common/vendor"]]]);