webpackJsonp([56],{iina:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});e("eqfM");var s=e("/QYm"),n=e("CCn6"),l={name:"inviteRecordList",data:function(){return{total:0,height:0,pullup:!0,page:1,loading:!0,finished:!1,list:[]}},mounted:function(){this.height=window.innerHeight-this.$refs.title.getBoundingClientRect().bottom-this.$refs.title.getBoundingClientRect().height,this.getInviteList()},methods:{onReachBottom:function(){var t=this;if(!this.finished&&this.loading){this.page++,this.loading=!1,s.a.loading({mask:!0,message:""}),this.page++;var i={page:this.page,limit:20};Object(n.t)(i,this.id).then(function(i){i&&i.list&&i.list.length>0&&(i.list.forEach(function(i){t.records.push(i)}),i.total==t.records.length&&(t.finished=!0)),s.a.clear()})}},getInviteList:function(){var t=this,i={page:this.page,limit:20},e=this.$route.query.shopId;this.id=e,Object(n.t)(i,this.id).then(function(i){i&&i.list&&i.list.length>0&&(t.list=i.list)})}}},a={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"invite-record-list"},[e("div",{ref:"title",staticClass:"title"},[e("span",[t._v("已邀好友")]),t._v(" "),e("span",[t._v("购买时间")])]),t._v(" "),e("scroll",{ref:"scrollItem",staticClass:"scrollItem",attrs:{data:t.list,pullup:t.pullup,bounce:!1},on:{pullup:t.onReachBottom}},[e("div",{staticClass:"container"},[e("ul",t._l(t.list,function(i,s){return e("li",{key:s},[e("p",[t._v(t._s(i.nickname))]),t._v(" "),e("p",[t._v(t._s(i.pay_at))])])})),t._v(" "),t.finished?e("div",{staticClass:"none"},[t._v("没有更多了~")]):t._e()])])],1)},staticRenderFns:[]};var o=e("VU/8")(l,a,!1,function(t){e("jgOh")},"data-v-8411f3f4",null);i.default=o.exports},jgOh:function(t,i){}});