index.js 2.9 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/extension/invite_friend/index"],{"0cc7":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("59a4");i(e("66fd"));var o=i(e("d782"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},1109:function(t,n,e){},"478c":function(t,n,e){"use strict";var i=e("1109"),o=e.n(i);o.a},5584:function(t,n,e){"use strict";e.r(n);var i=e("b6fc"),o=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=o.a},b6fc:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("4818"),s=i(e("5c3b")),a=e("8e8a"),u=e("26cb"),c=e("865e"),r=(getApp(),{components:{home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("377d"))}.bind(null,e)).catch(e.oe)}},mixins:[s.default],data:function(){return{inviteShow:!0,loading:!0,sel:0,userList:[],agentInfoData:{},page:1,limit:5,total:0,imgHost:c.HTTP_REQUEST_URL,isShowAuth:!1}},computed:(0,u.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){},deep:!0}},onLoad:function(t){this.type=t.type,this.isLogin&&(this.getAgentList(0),this.getAgentInfo())},onShow:function(){t.removeStorageSync("form_type_cart"),this.isLogin||(0,a.toLogin)()},methods:{onLoadFun:function(){this.getAgentList(0),this.getAgentInfo(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getList:function(t){this.sel=t,this.userList=[],this.page=1,this.getAgentList(t)},invite:function(){t.navigateTo({url:"/pages/users/user_spread_code/index"})},getAgentList:function(t){var n=this;(0,o.agentUserList)(t,this.page,this.limit).then((function(t){n.total=t.data.count;t.data.list.length;var e,i=t.data.list;e=n.userList.concat(i),n.$set(n,"userList",e)}))},getAgentInfo:function(){var t=this;(0,o.agentInfo)().then((function(n){t.agentInfoData=n.data}))},showAll:function(){this.page++,this.getAgentList(this.sel)}}});n.default=r}).call(this,e("543d")["default"])},d782:function(t,n,e){"use strict";e.r(n);var i=e("e3de"),o=e("5584");for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);e("478c");var a=e("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"45c4a254",null,!1,i["a"],void 0);n["default"]=u.exports},e3de: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(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.inviteShow&&t.loading?t.userList.length:null),i=t.inviteShow&&t.loading&&e?t.userList.length:null,o=t.inviteShow&&t.loading&&e&&i?t.userList.length:null,s=t.inviteShow&&t.loading?!t.userList.length&&0==t.sel||!t.userList.length&&1==t.sel:null;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:o,g3:s}})},o=[]}},[["0cc7","common/runtime","common/vendor"]]]);