require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/team/order"],{"02e5":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("f076");a(n("3240"));var i=a(n("0716"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"0716":function(t,e,n){"use strict";n.r(e);var a=n("b918"),i=n("4dba");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("5ec7");var s=n("828b"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=c.exports},"09bc":function(t,e,n){},"4dba":function(t,e,n){"use strict";n.r(e);var a=n("ff70"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"5ec7":function(t,e,n){"use strict";var a=n("09bc"),i=n.n(a);i.a},b918:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this.hasTeamAuth?this.list.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},ff70:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("89cc")),o=n("92f9"),s=t.getWindowInfo().statusBarHeight,c={name:"",data:function(){return{sysHeight:s,where:{keyword:"",start:0,stop:0,page:1,limit:10},count:0,sumBrokerage:"0.00",list:[],loadend:!1,hasTeamAuth:!1}},components:{tabBar:function(){n.e("pages/users/team/components/tabBar").then(function(){return resolve(n("7bec"))}.bind(null,n)).catch(n.oe)},timeSlot:function(){n.e("pages/users/components/timeSlot/index").then(function(){return resolve(n("5603"))}.bind(null,n)).catch(n.oe)},emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("398a"))}.bind(null,n)).catch(n.oe)}},mixins:[i.default],onLoad:function(){this.checkTeamAuth()},methods:{checkTeamAuth:function(){var t=this;(0,o.divisionTeamInfoApi)().then((function(e){[1,2,3].includes(Number(e.data.role_type||0))?(t.hasTeamAuth=!0,t.getList(!0)):t.noTeamAuth()}))},noTeamAuth:function(){t.showModal({title:"提示",content:"您暂无团队分销权限",showCancel:!1,success:function(){t.switchTab({url:"/pages/user/index"})}})},changeTime:function(t){this.where.start=t.start,this.where.stop=t.stop,this.getList(!0)},getList:function(t){var e=this;t&&(this.where.page=1,this.loadend=!1,this.list=[]),(0,o.divisionTeamOrdersApi)(this.where).then((function(t){e.count=t.data.count||0,e.sumBrokerage=t.data.sum_brokerage||"0.00";var n=t.data.list||[];e.list=1==e.where.page?n:e.list.concat(n),e.loadend=n.length<e.where.limit}))},searchSubmit:function(){this.getList(!0)},clearWord:function(){this.where.keyword="",this.getList(!0)},copyId:function(e){t.setClipboardData({data:e})}},onReachBottom:function(){this.loadend||(this.where.page++,this.getList())}};e.default=c}).call(this,n("df3c")["default"])}},[["02e5","common/runtime","common/vendor"]]]);