index.js 3.9 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter-order/index"],{"0b33":function(t,e,n){"use strict";var o=n("938e"),r=n.n(o);r.a},"0feb":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("4789");o(n("66fd"));var r=o(n("71ec"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"3cd8":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("累计推广订单")),o=t.$t("单"),r=t.recordList.length,i=r>0?t.__map(t.recordList,(function(e,n){var o=t.__get_orig(e),r=t.$t("本月累计推广订单"),i=t.$t("单"),a=t.$t("订单编号"),u=t.$t("下单时间"),c=t.__map(e.child,(function(e,n){var o=t.__get_orig(e),r="brokerage"==e.type?t.$t("返佣"):null,i="brokerage"==e.type?t.$t("¥"):null,a="brokerage"!=e.type?t.$t("暂未返佣"):null,u="brokerage"!=e.type?t.$t("¥"):null,c=e.children&&e.children.length,l=c&&e.open?t.$t("收起"):null,s=c&&!e.open?t.$t("更多"):null,d=e.open?t.__map(e.children,(function(e,n){var o=t.__get_orig(e),r=t.$t("单号"),i="brokerage"==e.type?t.$t("返佣"):null,a="brokerage"==e.type?t.$t("¥"):null,u="brokerage"!=e.type?t.$t("暂未返佣"):null,c="brokerage"!=e.type?t.$t("¥"):null;return{$orig:o,m12:r,m13:i,m14:a,m15:u,m16:c}})):null;return{$orig:o,m4:r,m5:i,m6:a,m7:u,g1:c,m10:l,m11:s,l0:d}}));return{$orig:o,m2:r,m3:i,m8:a,m9:u,l1:c}})):null,a=t.recordList.length,u=0==a?t.$t("暂无推广订单~"):null;t.$mp.data=Object.assign({},{$root:{m0:n,m1:o,g0:r,l2:i,g2:a,m17:u}})},r=[]},"71ec":function(t,e,n){"use strict";n.r(e);var o=n("3cd8"),r=n("afa0");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("0b33");var a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"29c302ad",null,!1,o["a"],void 0);e["default"]=u.exports},"938e":function(t,e,n){},afa0:function(t,e,n){"use strict";n.r(e);var o=n("fb21"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},fb21:function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("d1ea"),i=n("86eb"),a=n("26cb"),u=o(n("19b6")),c={components:{authorize:function(){n.e("components/Authorize").then(function(){return resolve(n("ad23"))}.bind(null,n)).catch(n.oe)},emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("42ff"))}.bind(null,n)).catch(n.oe)},home:function(){Promise.all([n.e("common/vendor"),n.e("components/home/index")]).then(function(){return resolve(n("3b71"))}.bind(null,n)).catch(n.oe)}},mixins:[u.default],data:function(){return{page:1,limit:8,status:!1,recordList:[],times:[],recordCount:0,count:0,orderType:0,isAuto:!1,isShowAuth:!1}},computed:(0,a.mapGetters)(["isLogin"]),onLoad:function(t){this.isLogin?(this.orderType=t.type||0,this.getRecordOrderList(t.type)):(0,i.toLogin)()},methods:{open:function(t){t.open=!t.open},onLoadFun:function(){this.getRecordOrderList()},authColse:function(t){this.isShowAuth=t},getRecordOrderList:function(){var e,n=this,o=this,i=o.page,a=o.limit,u=o.status;1!=u&&(this.orderType?(e=r.divisionOrder,t.setNavigationBarTitle({title:o.$t("推广订单列表")})):e=r.spreadOrder,e({page:i,limit:a}).then((function(t){for(var e=0;e<t.data.time.length;e++)n.times.includes(t.data.time[e].time)||(n.times.push(t.data.time[e].time),n.recordList.push({time:t.data.time[e].time,count:t.data.time[e].count,child:[]}));for(var r=0;r<n.times.length;r++)for(var i=0;i<t.data.list.length;i++)n.times[r]===t.data.list[i].time_key&&(t.data.list[i].open=!1,n.recordList[r].child.push(t.data.list[i]));o.count=t.data.count||0,o.status=t.data.list.length<8,o.page+=1})))}},onReachBottom:function(){this.getRecordOrderList()}};e.default=c}).call(this,n("543d")["default"])}},[["0feb","common/runtime","common/vendor"]]]);