index.js 4.1 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_spread_user/index"],{"3c68":function(n,e,i){"use strict";(function(n){var o=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i("d1ea"),s=i("5d9d"),u=i("86eb"),r=i("26cb"),a=o(i("19b6")),f={components:{authorize:function(){i.e("components/Authorize").then(function(){return resolve(i("ad23"))}.bind(null,i)).catch(i.oe)},home:function(){Promise.all([i.e("common/vendor"),i.e("components/home/index")]).then(function(){return resolve(i("3b71"))}.bind(null,i)).catch(i.oe)}},mixins:[a.default],data:function(){return{userInfo:{},yesterdayPrice:0,isAuto:!1,isShowAuth:!1}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(n,e){n&&this.getUserInfo()},deep:!0}},onLoad:function(){this.isLogin?this.getUserInfo():(0,u.toLogin)()},methods:{onLoadFun:function(){this.getUserInfo()},jumbPath:function(e){1==e?n.navigateTo({url:"/pages/users/user_spread_money/index?type=1"}):n.navigateTo({url:"/pages/users/user_distribution_level/index"})},authColse:function(n){this.isShowAuth=n},openSubscribe:function(e){n.showLoading({title:this.$t("正在加载")}),(0,s.openExtrctSubscribe)().then((function(i){n.hideLoading(),n.navigateTo({url:e})})).catch((function(){n.hideLoading()}))},getUserInfo:function(){var n=this;(0,t.getUserInfo)().then((function(e){n.$set(n,"userInfo",e.data),e.data.spread_status||n.$util.Tips({title:n.$t("您目前暂无推广权限")},{tab:1,url:"/pages/index/index"})}))}}};e.default=f}).call(this,i("543d")["default"])},6127:function(n,e,i){"use strict";i.r(e);var o=i("bf50"),t=i("a227");for(var s in t)["default"].indexOf(s)<0&&function(n){i.d(e,n,(function(){return t[n]}))}(s);i("9c9c");var u=i("f0c5"),r=Object(u["a"])(t["default"],o["b"],o["c"],!1,null,"f8fdc4d0",null,!1,o["a"],void 0);e["default"]=r.exports},7088:function(n,e,i){"use strict";(function(n,e){var o=i("4ea4");i("4789");o(i("66fd"));var t=o(i("6127"));n.__webpack_require_UNI_MP_PLUGIN__=i,e(t.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},"9c9c":function(n,e,i){"use strict";var o=i("e861"),t=i.n(o);t.a},a227:function(n,e,i){"use strict";i.r(e);var o=i("3c68"),t=i.n(o);for(var s in o)["default"].indexOf(s)<0&&function(n){i.d(e,n,(function(){return o[n]}))}(s);e["default"]=t.a},bf50:function(n,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return t})),i.d(e,"a",(function(){}));var o=function(){var n=this,e=n.$createElement,i=(n._self._c,n.userInfo.is_agent_level&&n.userInfo.agent_level_name?n.$t(n.userInfo.agent_level_name):null),o=n.userInfo.is_agent_level&&!n.userInfo.agent_level_name?n.$t("分销等级"):null,t=n.$t("昨日收益"),s=n.$t("累积已提"),u=n.userInfo.division_open&&n.userInfo.agent_apply_open&&(n.userInfo.is_division&&n.userInfo.division_invite&&n.userInfo.division_status||!n.userInfo.is_division&&!n.userInfo.is_agent)&&n.userInfo.is_division?n.$t("邀请码"):null,r=n.userInfo.division_open&&n.userInfo.agent_apply_open&&(n.userInfo.is_division&&n.userInfo.division_invite&&n.userInfo.division_status||!n.userInfo.is_division&&!n.userInfo.is_agent)&&!n.userInfo.is_division&&!n.userInfo.is_agent?n.$t("代理商申请"):null,a=n.$t("立即提现"),f=n.$t("推广名片"),d=n.$t("推广人统计"),c=n.$t("佣金明细"),l=n.userInfo.division_open&&!n.userInfo.is_agent&&!n.userInfo.is_division||!n.userInfo.division_open?n.$t("推广人订单"):null,_=n.userInfo.division_open&&(n.userInfo.is_agent||n.userInfo.is_division)&&n.userInfo.is_division?n.$t("事业部"):null,v=n.userInfo.division_open&&(n.userInfo.is_agent||n.userInfo.is_division)&&!n.userInfo.is_division?n.$t("代理商"):null,I=n.userInfo.division_open&&(n.userInfo.is_agent||n.userInfo.is_division)?n.$t("推广订单"):null,m=n.$t("推广人排行"),p=n.$t("佣金排行"),g=n.userInfo.division_open&&n.userInfo.is_agent?n.$t("员工列表"):null;n.$mp.data=Object.assign({},{$root:{m0:i,m1:o,m2:t,m3:s,m4:u,m5:r,m6:a,m7:f,m8:d,m9:c,m10:l,m11:_,m12:v,m13:I,m14:m,m15:p,m16:g}})},t=[]},e861:function(n,e,i){}},[["7088","common/runtime","common/vendor"]]]);