1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter-order/index"],{"0cf4":function(t,e,i){"use strict";i.r(e);var n=i("2791"),o=i("a9e3");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("72a2");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"21060489",null,!1,n["a"],void 0);e["default"]=r.exports},2791:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.recordList.length),i=this.recordList.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},o=[]},"3c43":function(t,e,i){},"72a2":function(t,e,i){"use strict";var n=i("3c43"),o=i.n(n);o.a},"9efe":function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("59a4");n(i("66fd"));var o=n(i("0cf4"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},a9e3:function(t,e,i){"use strict";i.r(e);var n=i("e2cf"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},e2cf:function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("4818"),a=i("8e8a"),s=i("26cb"),r=n(i("5c3b")),c=t.getSystemInfoSync().statusBarHeight+"px",u={components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("d358"))}.bind(null,i)).catch(i.oe)},home:function(){Promise.all([i.e("common/vendor"),i.e("components/home/index")]).then(function(){return resolve(i("377d"))}.bind(null,i)).catch(i.oe)},timeSlot:function(){i.e("components/timeSlot/index").then(function(){return resolve(i("579a"))}.bind(null,i)).catch(i.oe)}},mixins:[r.default],data:function(){return{sysHeight:c,page:1,limit:8,status:!1,loading:!1,recordList:[],times:[],time:"",recordCount:0,count:0,total:0,sum_brokerage:0,keyword:"",isAuto:!1,isShowAuth:!1,start:0,stop:0}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?this.getRecordOrderList():(0,a.toLogin)()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{searchSubmitValue:function(t){this.keyword=t?t.detail.value:"",this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.$set(this,"times",[]),this.getRecordOrderList()},changeTime:function(t){this.start=t.start,this.stop=t.stop,this.searchSubmitValue()},onLoadFun:function(){this.getRecordOrderList(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getRecordOrderList:function(){var t=this,e=this,i=e.page,n=e.limit,a=e.status;e.loading||1!=a&&(e.loading=!0,(0,o.spreadOrder)({start:this.start,stop:this.stop,keyword:this.keyword,page:i,limit:n}).then((function(i){t.total=i.data.count,t.sum_brokerage=i.data.sum_brokerage;for(var n=0;n<i.data.time.length;n++)t.times.includes(i.data.time[n].time)||(t.times.push(i.data.time[n].time),t.recordList.push({time:i.data.time[n].time,count:i.data.time[n].count,child:[]}));for(var o=0;o<t.times.length;o++)for(var a=0;a<i.data.list.length;a++)t.times[o]===i.data.list[a].time_key&&t.recordList[o].child.push(i.data.list[a]);e.count=i.data.count||0,e.status=i.data.list.length<5,e.page+=1,e.loading=!1})).catch((function(t){e.loading=!1})))}},onReachBottom:function(){this.getRecordOrderList()}};e.default=u}).call(this,i("543d")["default"])}},[["9efe","common/runtime","common/vendor"]]]);
|