require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/fenxiao/order"],{1208:function(e,t,o){"use strict";o.r(t);var n=o("3101"),i=o.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"2f47":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n}));var n={nsEmpty:function(){return o.e("components/ns-empty/ns-empty").then(o.bind(null,"a84f"))},nsLogin:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-login/ns-login")]).then(o.bind(null,"17d0"))},loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"0773"))}},i=function(){var e=this,t=e.$createElement,o=(e._self._c,e.storeToken?e.__map(e.orderList,(function(t,o){var n=e.__get_orig(t),i=e.$util.img(t.sku_image,{size:"mid"}),r=e.$lang("common.currencySymbol"),s=parseFloat(t.commission).toFixed(2).split("."),a=parseFloat(t.commission).toFixed(2).split("."),l=e.$lang("common.currencySymbol"),d=parseFloat(t.price).toFixed(2).split("."),c=parseFloat(t.price).toFixed(2).split("."),u=e.$util.timeStampTurnTime(t.create_time),m=e.$lang("common.currencySymbol"),f=parseFloat(t.real_goods_money).toFixed(2).split("."),g=parseFloat(t.real_goods_money).toFixed(2).split(".");return{$orig:n,g0:i,m0:r,g1:s,g2:a,m1:l,g3:d,g4:c,g5:u,m2:m,g6:f,g7:g}})):null),n=e.storeToken?0==e.selectId&&0==e.orderList.length&&e.emptyShow:null,i=e.storeToken?1==e.selectId&&0==e.orderList.length&&e.emptyShow:null,r=e.storeToken?2==e.selectId&&0==e.orderList.length&&e.emptyShow:null,s=e.storeToken?3==e.selectId&&0==e.orderList.length&&e.emptyShow:null;e.$mp.data=Object.assign({},{$root:{l0:o,g8:n,g9:i,g10:r,g11:s}})},r=[]},3101:function(e,t,o){"use strict";var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o("48d4")),r={data:function(){return{category:[{id:0,name:"全部",number:2},{id:1,name:"待结算",number:0},{id:2,name:"已结算",number:0},{id:3,name:"已退款",number:0}],selectId:0,orderList:[],emptyShow:!1,fenxiaoId:"",subMemberId:""}},mixins:[i.default],onLoad:function(e){void 0!=e.type&&(this.selectId=e.type)},onShow:function(){var e=this;setTimeout((function(){e.addonIsExist.fenxiao||(e.$util.showToast({title:"商家未开启分销",mask:!0,duration:2e3}),setTimeout((function(){e.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),this.fenxiaoWords&&this.fenxiaoWords.concept&&this.$langConfig.title(this.fenxiaoWords.concept+"订单"),this.storeToken||this.$nextTick((function(){e.$refs.login.open("/pages_promotion/fenxiao/order")}))},methods:{getData:function(e){var t=this;this.emptyShow=!1,1==e.num&&(this.orderList=[]),this.$api.sendRequest({url:"/fenxiao/api/order/page",data:{page:e.num,page_size:e.size,is_settlement:this.selectId},success:function(o){t.emptyShow=!0;var n=[];o.message;0==o.code&&o.data&&o.data.list?n=o.data.list:t.$util.showToast({title:o.message}),e.endSuccess(n.length),1==e.num&&(t.orderList=[]),t.orderList=t.orderList.concat(n),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(o){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},selectCate:function(e){this.selectId=e,this.$refs.mescroll.refresh()},toDetail:function(e){this.$util.redirectTo("/pages_promotion/fenxiao/order_detail",{id:e})},imageError:function(e){this.orderList[e].sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()}},watch:{storeToken:function(e,t){e&&this.$refs.mescroll.refresh()}}};t.default=r},"70da":function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("1dee");n(o("3240"));var i=n(o("d033"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},9145:function(e,t,o){},c330:function(e,t,o){"use strict";var n=o("9145"),i=o.n(n);i.a},d033:function(e,t,o){"use strict";o.r(t);var n=o("2f47"),i=o("1208");for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(r);o("c330");var s=o("828b"),a=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=a.exports}},[["70da","common/runtime","common/vendor","pages_promotion/common/vendor"]]]);