require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/invitation/friend"],{3716:function(t,n,e){"use strict";e.r(n);var i=e("c98e"),a=e("9387");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("bcff");var c=e("828b"),s=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},"5b4d":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("f076");i(e("3240"));var a=i(e("3716"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},7647:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("7ca3")),o=e("4d38"),c=e("92f9"),s=t.getWindowInfo().statusBarHeight,r=(0,a.default)({name:"",components:{emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("398a"))}.bind(null,e)).catch(e.oe)},NavBar:function(){e.e("components/NavBar").then(function(){return resolve(e("a7d8"))}.bind(null,e)).catch(e.oe)}},data:function(){return{sysHeight:s,imgHost:o.HTTP_REQUEST_URL,pageScrollStatus:!1,activityId:0,page:1,limit:20,total:0,list:[],loading:!1,finished:!1}},computed:{headerBg:function(){return{backgroundImage:"url("+o.HTTP_REQUEST_URL+"/statics/images/v4_2/Invitation_friend_bg.png)"}},textDescTop:function(){return{top:222+2*s+"rpx"}},headerZs:function(){return{backgroundImage:"url("+o.HTTP_REQUEST_URL+"/statics/images/v4_2/Invitation_pic_6.png)",top:92+2*s+"rpx"}},contentTop:function(){return{top:292+2*s+"rpx"}}},onLoad:function(t){var n={};t.scene&&(n=this.$util.getUrlParams(decodeURIComponent(t.scene)));var e=parseInt(t.invite_gift_id||t.id||n.invite_gift_id||n.id||0);this.activityId=Number.isNaN(e)?0:e,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,c.inviteGiftRecords)(this.activityId,{page:this.page,limit:this.limit}).then((function(n){var e=n.data||{},i=e.list||[];t.total=e.count||0,t.list=t.list.concat(i),t.page+=1,t.finished=t.list.length>=t.total||i.length<t.limit,t.loading=!1})).catch((function(n){t.loading=!1,t.$util.Tips({title:n})})))}}},"onReachBottom",(function(){this.getList()}));n.default=r}).call(this,e("df3c")["default"])},9387:function(t,n,e){"use strict";e.r(n);var i=e("7647"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},a663:function(t,n,e){},bcff:function(t,n,e){"use strict";var i=e("a663"),a=e.n(i);a.a},c98e:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__get_style([t.headerBg])),i=t.__get_style([t.textDescTop]),a=t.__get_style([t.headerZs]),o=t.__get_style([t.contentTop]),c=t.list.length,s=t.list.length&&t.finished;t.$mp.data=Object.assign({},{$root:{s0:e,s1:i,s2:a,s3:o,g0:c,g1:s}})},a=[]}},[["5b4d","common/runtime","common/vendor"]]]);