王总上门按摩后台代码
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.
shangmenanmo/public/h6/static/js/agent-pages-income-commissi...

1 line
19 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-income-commission"],{"252e":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223");var n=a(i("9b1b")),s=a(i("2634")),o=a(i("2fdc")),c=i("8f59"),r=a(i("cd23")),l=a(i("13f3")),u={components:{wPicker:l.default},data:function(){return{isLoad:!1,popupHeight:"",curDay:"",curMonth:"",startYear:"",showKey:"",showDate:!1,time_text:"",prev_time:{activeIndex:0,month:"",start_time:"",end_time:""},check_time:{activeIndex:0,month:"",start_time:"",end_time:""},activeIndex:0,tabList:[{id:1,title:"月份选择"},{id:2,title:"自定义时间"}],typeIndex:0,typeList:[{title:"全部",id:-1},{title:"未到账",id:0},{title:"已到账",id:1}],statusType:{0:"未到账",1:"已到账"},cityType:["","城市","区县","省"],param:{page:1,start_time:"",end_time:""},list:{data:[]},loading:!0}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$util.showLoading(),i=new Date(Math.ceil((new Date).getTime())),t.curDay=t.$util.formatTime(i,"YY-M-D"),t.curMonth=t.$util.formatTime(i,"YY-M"),t.startYear=t.$util.formatTime(i,"YY"),e.next=7,t.initIndex();case 7:t.isLoad=!0;case 8:case"end":return e.stop()}}),e)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.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:(0,n.default)((0,n.default)({},(0,c.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,o.default)((0,s.default)().mark((function i(){var a;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function i(){var a,n,o,c,r,l,u,m,v,d,p;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t&&(e.param.page=1,e.list.data=[],uni.pageScrollTo({scrollTop:0})),a=e.list,n=e.param,o=e.activeIndex,c=e.typeIndex,r=e.typeList,l=r[c].id,-1!=l&&(n.have_tx=l),u=e.$util.deepCopy(e.check_time),m=u.month,v=u.start_time,d=u.end_time,0==o&&(n.month=m?e.$util.DateToUnix("".concat(m,"-01")):""),1==o&&(n.start_time=v&&d?e.$util.DateToUnix(v):"",n.end_time=v&&d?e.$util.DateToUnix(d)+86400-1:""),i.next=9,e.$api.agent.commList(n);case 9:p=i.sent,1==e.param.page||(p.data=a.data.concat(p.data)),e.list=p,e.loading=!1,e.$util.hideAll();case 13:case"end":return i.stop()}}),i)})))()},initFixHeight:function(t){this.popupHeight=t},handerTabChange:function(t){this.activeIndex=t,this.check_time.activeIndex=t},handerTypeChange:function(t){this.typeIndex=t,this.getList(1),this.$refs.show_status_item.close()},toChangeType:function(t){this.active=t},toShowTimePopup:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.check_time=this.$util.deepCopy(this.prev_time),e&&0!=e&&(this.activeIndex=0,this.curMonth=e,this.check_time.month=e),this.activeIndex=this.check_time.activeIndex,this.$refs.show_choose_time.open()},toReset:function(){var t=this.activeIndex;0!=t?(this.check_time.start_time="",this.check_time.end_time="",this.getList(1)):this.check_time.month=""},toClose:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i,a,n,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.activeIndex,