You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
6.0 KiB
1 lines
6.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/channel/income"],{"130c":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.isLoad?t.__map(t.list.data,(function(e,i){var n=t.__get_orig(e),a=t.$t("action.attendantName");return{$orig:n,m0:a}})):null),n=t.isLoad&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,a=t.isLoad?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t._isMounted||(t.e0=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/user/pages/channel/poster"})},t.e1=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/user/pages/distribution/record?type=4"})},t.e2=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/user/pages/cash-out?type=channel"})},t.e3=function(e){return t.$refs.rank_item.open()}),t.$mp.data=Object.assign({},{$root:{l0:i,g0:n,g1:a}})},a=[]},"57c8":function(t,e,i){"use strict";i.r(e);var n=i("130c"),a=i("6291");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("8b90");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},6291:function(t,e,i){"use strict";i.r(e);var n=i("d6e1"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"88ea":function(t,e,i){},"8b90":function(t,e,i){"use strict";var n=i("88ea"),a=i.n(n);a.a},d6e1:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("7eb4")),r=n(i("ee10")),o=n(i("7ca3")),s=i("8f59");function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){(0,o.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={components:{},data:function(){return{isLoad:!1,today:"",preCheck:{tabInd:0,start_time:"",end_time:""},tabInd:2,tabList:[{id:1,title:"今日",start_time:"",end_time:""},{id:2,title:"近7日",start_time:"",end_time:""},{id:3,title:"近30日",start_time:"",end_time:""},{id:4,title:"自定义",start_time:"",end_time:""}],detail:{},param:{page:1,name:""},list:{data:[]},loading:!0}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){this.initIndex()},onUnload:function(){this.$util.back()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:c(c({},(0,s.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)(a.default.mark((function i(){var n,r,o;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.length>0&&void 0!==t[0]&&t[0],e.$util.showLoading(),n=new Date(Math.ceil((new Date).getTime())),r=e.$util.formatTime(n,"YY-M-D"),864e5,o=1e3*e.$util.DateToUnix(r),e.today=r,e.tabList[0].start_time=r,e.tabList[0].end_time=r,e.tabList[1].start_time=e.$util.formatTime(o-6048e5,"YY-M-D"),e.tabList[1].end_time=r,e.tabList[2].start_time=e.$util.formatTime(o-2592e6,"YY-M-D"),e.tabList[2].end_time=r,i.next=15,e.getList();case 15:e.$util.setNavigationBarColor({bg:e.primaryColor}),e.isLoad=!0,e.$util.hideAll();case 18:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page,this.initIndex(!0)},toSearch:function(t){this.param.page=1,this.param.name=t,this.getList()},getList:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var i,n,r,o,s,u,c,l,d;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.list,n=t.tabInd,r=t.tabList,o=r[n],s=o.start_time,u=o.end_time,c=t.$util.deepCopy(t.param),c.start_time=t.$util.DateToUnix(s),c.end_time=t.$util.DateToUnix(u)+86400-1,1!=c.page){e.next=11;break}return l=t.$util.deepCopy(c),delete l.page,e.next=10,t.$api.channel.index(l);case 10:t.detail=e.sent;case 11:return e.next=13,t.$api.channel.orderList(c);case 13:d=e.sent,1==t.param.page||(d.data=i.data.concat(d.data)),t.list=d,t.loading=!1,t.$util.hideAll();case 17:case"end":return e.stop()}}),e)})))()},pickerChange:function(t,e){var i=this.tabList[3],n=i.start_time,a=i.end_time;"start_time"==e?n=t.detail.value:a=t.detail.value,n&&a&&this.$util.DateToUnix(n)>this.$util.DateToUnix(a)?this.$util.showToast({title:"开始时间不能大于结束时间"}):this.tabList[3][e]=t.detail.value},toChangeItem:function(t,e){this[e]=t},toConfirm:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;2==t&&(e=0);var i=1==t?this.preCheck:this.tabList[e],n=i.start_time,a=void 0===n?"":n,r=i.end_time,o=void 0===r?"":r,s=2==t?{tabInd:2}:3==t?this:this.preCheck,u=s.tabInd;if(3==t){if((!a||!o)&&3==u)return void this.$util.showToast({title:a?"请选择结束时间":"请选择开始时间"});this.preCheck.start_time=a,this.preCheck.end_time=o,this.preCheck.tabInd=u}else this.tabList[e].start_time=a,this.tabList[e].end_time=o,this.tabInd=u;2!=t&&(this.$refs.rank_item.close(),this.param.page,this.getList())}})};e.default=l}).call(this,i("df3c")["default"])},d9d3:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("7043");n(i("3240"));var a=n(i("57c8"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])}},[["d9d3","common/runtime","common/vendor"]]]); |