require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/salequota/index"],{"175e":function(t,n,i){"use strict";var e=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e(i("af34")),u={data:function(){return{total:[],list:[],page:1,type:0,currentTab:0,isLoading:!1}},computed:{tabList:function(){return this.total.map((function(t,n){return{name:t.title}}))}},onLoad:function(t){this.init(),this.getList()},onReachBottom:function(){this.getList()},methods:{init:function(){var t=this;this.$util.get("salequota/user/info").then((function(n){t.total=n.data||[]}))},getList:function(){var t=this;if(!this.isLoading){this.isLoading=!0;var n={page:this.page,type:this.type};this.$util.get("salequota/user/getList",n).then((function(i){1==i.code?(1==t.page?t.list=i.data.list:t.list=[].concat((0,a.default)(t.list),(0,a.default)(i.data.list)),t.currentTab=n.type,t.type=n.type,10==i.data.list.length&&t.page++):1==t.page&&(t.list=[])})).finally((function(){t.isLoading=!1}))}},onTabChange:function(t){this.isLoading||(this.currentTab=t.index,this.type=t.index,this.page=1,this.getList())}}};n.default=u},2201:function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("4c1a");e(i("3240"));var a=e(i("a9f2"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"2e8b":function(t,n,i){"use strict";i.r(n);var e=i("175e"),a=i.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(u);n["default"]=a.a},"8b44":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return u})),i.d(n,"a",(function(){return e}));var e={uTabs:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(i.bind(null,"614b"))},uEmpty:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(i.bind(null,"f174"))}},a=function(){var t=this.$createElement,n=(this._self._c,this.$util.lightColor(this.mainColor,.3)),i=this.list.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},u=[]},a9f2:function(t,n,i){"use strict";i.r(n);var e=i("8b44"),a=i("2e8b");for(var u in a)["default"].indexOf(u)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(u);i("fba6");var o=i("828b"),s=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"17ed1152",null,!1,e["a"],void 0);n["default"]=s.exports},f748:function(t,n,i){},fba6:function(t,n,i){"use strict";var e=i("f748"),a=i.n(e);a.a}},[["2201","common/runtime","common/vendor"]]]);