1 |
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesD/invite-list"],{"18d8":function(t,n,e){"use strict";e.r(n);var i=e("2c2e"),o=e("81f8");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("f10c");var c=e("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},"2c2e":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"3211"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"88c7"))}},o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.show=!0},t.e1=function(n){t.show=!1})},a=[]},"3cc9":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("9f7d");i(e("66fd"));var o=i(e("18d8"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"81f8":function(t,n,e){"use strict";e.r(n);var i=e("b6a4"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},b6a4:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("2e9d"),o={data:function(){return{page:1,total:0,list:[],sum:"",tabs:[{id:"1",name:"我的邀请人"},{id:"2",name:"上级邀请人"}],tab_active:0,content:"",show:!1}},onLoad:function(t){this.getlist(),this.getconfig(),this.commissionData()},onReachBottom:function(){this.total!=this.list.length&&(this.page++,this.getlist())},methods:{getlist:function(){var t=this;(0,i.invite_list)({page:this.page}).then((function(n){t.list=t.list.concat(n.data.data),t.total=n.data.total}))},getdata:function(){var t=this;(0,i.parent_info)().then((function(n){t.list=[],t.list.push(n.data)}))},commissionData:function(){var t=this;(0,i.commissionData)().then((function(n){t.sum=Number(n.data.invite).toFixed(1)}))},getconfig:function(){var t=this;(0,i.get_agreement_detail)({code:"commission_balance"}).then((function(n){t.content=n.data.content}))},changetab:function(t){this.tab_active=t,"0"==t?(this.page=1,this.getlist()):this.getdata()}}};n.default=o},d554:function(t,n,e){},f10c:function(t,n,e){"use strict";var i=e("d554"),o=e.n(i);o.a}},[["3cc9","common/runtime","common/vendor"]]]);
|