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
18 KiB
1 lines
18 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-income-cash-integral"],{"3cf4":function(t,e,i){"use strict";var a=i("7554"),n=i.n(a);n.a},5864:function(t,e,i){"use strict";i.r(e);var a=i("a1b2"),n=i("6b30");for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);i("3cf4");var s=i("828b"),o=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"7fe6872a",null,!1,a["a"],void 0);e["default"]=o.exports},"6b30":function(t,e,i){"use strict";i.r(e);var a=i("a736"),n=i.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(c);e["default"]=n.a},7554:function(t,e,i){var a=i("ef80");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("e36e6464",a,!0,{sourceMap:!1,shadowMode:!1})},a1b2:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return a}));var a={wPicker:i("13f3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"technician-cash-integral"},[i("fixed",{attrs:{zIndex:"997"}},[i("v-uni-view",{staticClass:"record-search-info fill-body pt-md pl-md c-base"},[i("v-uni-view",{staticClass:"record-info radius-32",style:{background:t.primaryColor}},[i("v-uni-view",{staticClass:"search-item flex-between ml-lg mr-lg f-desc b-1px-b"},[i("v-uni-view",[t._v("查询时间")]),i("v-uni-view",{staticClass:"flex-y-center",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTimePopup(e)}}},[t._v(t._s(t._f("handleTimeText")(t.prev_time,1))),i("i",{staticClass:"iconfont icon-right"})])],1),i("v-uni-view",{staticClass:"record-list flex-x-center pt-lg pb-lg f-paragraph"},[i("v-uni-view",{staticClass:"list-item flex-center flex-column"},[i("v-uni-view",{staticClass:"f-sm-title text-bold"},[t._v("¥"+t._s(t.count.total_cash||0))]),i("v-uni-view",{staticClass:"f-caption"},[t._v("累计佣金")])],1),i("v-uni-view",{staticClass:"list-item flex-center flex-column"},[i("v-uni-view",{staticClass:"f-sm-title text-bold"},[t._v(t._s(t.count.total_integral||0))]),i("v-uni-view",{staticClass:"f-caption"},[t._v("累计积分")])],1)],1)],1)],1)],1),t.isLoad&&t.list.data.length>0?i("v-uni-view",{staticClass:"fill-base"},[t._l(t.list.data,(function(e,a){return[0==t.prev_time.activeIndex&&(0==a||a>0&&e.month!=t.list.data[a-1].month)?i("v-uni-view",{key:a+"_0",staticClass:"count-item fill-body pl-md pr-md",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toShowTimePopup(i,e.month)}}},[i("veiw",{staticClass:"title flex-y-center"},[i("v-uni-view",{staticClass:"f-title c-title text-bold"},[t._v(t._s(e.month_text))]),i("i",{staticClass:"iconfont iconxia"})],1),i("v-uni-view",{staticClass:"flex-y-center f-caption c-caption"},[t._v("共计佣金¥"+t._s(e.total_cash)),i("v-uni-view",{staticClass:"ml-md"},[t._v("共计积分 "+t._s(e.total_integral))])],1)],1):t._e(),1==t.prev_time.activeIndex&&0==a?i("v-uni-view",{key:a+"_1",staticClass:"count-item fill-body pl-md pr-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTimePopup(e)}}},[i("veiw",{staticClass:"title flex-y-center"},[i("v-uni-view",{staticClass:"f-title c-title text-bold"},[t._v(t._s(t._f("handleTimeText")(t.prev_time,2)))]),i("i",{staticClass:"iconfont iconxia"})],1),i("v-uni-view",{staticClass:"flex-y-center f-caption c-caption"},[t._v("共计佣金¥"+t._s(t.count.cash)),i("v-uni-view",{staticClass:"ml-md"},[t._v("共计积分 "+t._s(t.count.integral))])],1)],1):t._e(),i("v-uni-view",{key:a+"_2",staticClass:"list-item pt-lg pb-lg ml-lg mr-lg flex-center",class:[{"b-1px-t":0!=a}]},[i("v-uni-view",{staticClass:"item-icon flex-center c-base radius",style:{background:t.primaryColor}},[i("i",{staticClass:"iconfont",class:[{iconjifenmingxi:0==e.type},{iconfenchengmingxi:1==e.type}]})]),i("v-uni-view",{staticClass:"flex-1"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-center f-mini-title c-title text-bold"},[t._v("充值金额"),i("v-uni-view",{staticClass:"ml-sm"},[t._v(t._s(e.user_cash))])],1),i("v-uni-view",{staticClass:"flex-y-center f-sm-title",style:{color:t.primaryColor}},[t._v(t._s(0==e.type?e.integral:"¥"+e.integral)),0==e.type?i("v-uni-view",{staticClass:"f-caption ml-sm"},[t._v("积分")]):t._e()],1)],1),i("v-uni-view",{staticClass:"flex-y-center f-desc c-paragraph"},[t._v("充值用户"),i("v-uni-view",{staticClass:"ml-md"},[t._v(t._s(e.nickName||"-"))])],1),i("v-uni-view",{staticClass:"flex-y-center f-caption c-caption mt-sm"},[t._v("充值时间"),i("v-uni-view",{staticClass:"ml-md"},[t._v(t._s(e.create_time))])],1)],1)],1)]}))],2):t._e(),t.loading?i("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?i("abnor"):t._e(),i("v-uni-view",{staticClass:"space-footer"}),i("uni-popup",{ref:"show_choose_time",attrs:{type:"bottom"}},[i("v-uni-view",{staticClass:"popup-choose-time fill-base"},[i("v-uni-view",{staticClass:"pl-lg pr-lg"},[i("v-uni-view",{staticClass:"flex-between b-1px-b"},[i("tab",{attrs:{list:t.tabList,activeIndex:1*t.activeIndex,activeColor:t.primaryColor,height:"100rpx"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handerTabChange.apply(void 0,arguments)}}}),i("i",{staticClass:"iconfont icon-close",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toClose.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"flex-center mt-md pt-lg pb-lg"},[i("v-uni-view",{staticClass:"flex-1 flex-y-baseline"},[i("v-uni-view",{staticClass:"f-paragraph c-title text-bold"},[t._v(t._s(0==t.activeIndex?"选择月份":"自定义时间"))]),1==t.activeIndex?i("v-uni-view",{staticClass:"f-caption c-warning ml-sm"},[t._v("最长可查找时间跨度一年的交易")]):t._e()],1),0==t.activeIndex&&t.check_time.month||1==t.activeIndex&&(t.check_time.start_time||t.check_time.end_time)?i("v-uni-view",{staticClass:"f-paragraph",staticStyle:{color:"#5A677E"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toReset.apply(void 0,arguments)}}},[t._v("清除")]):t._e()],1),0==t.activeIndex?i("v-uni-view",{staticClass:"flex-center pb-lg"},[i("v-uni-view",{staticClass:"item-child flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTime("month")}}},[i("v-uni-view",[t._v("开始月份")]),i("v-uni-view",{staticClass:"mt-sm",style:{color:t.check_time.month?t.primaryColor:"#999"}},[t._v(t._s(t.check_time.month||"选择月份"))])],1)],1):t._e(),1==t.activeIndex?i("v-uni-view",{staticClass:"flex-center pb-lg"},[i("v-uni-view",{staticClass:"item-child flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTime("start_time")}}},[i("v-uni-view",[t._v("开始时间")]),i("v-uni-view",{staticClass:"mt-sm",style:{color:t.check_time.start_time?t.primaryColor:"#999"}},[t._v(t._s(t.check_time.start_time||"选择时间"))])],1),i("v-uni-view",{staticClass:"item-child flex-center flex-column b-1px-l",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowTime("end_time")}}},[i("v-uni-view",[t._v("结束时间")]),i("v-uni-view",{staticClass:"mt-sm",style:{color:t.check_time.end_time?t.primaryColor:"#999"}},[t._v(t._s(t.check_time.end_time||"选择时间"))])],1)],1):t._e()],1),i("v-uni-view",{staticClass:"flex-center flex-column fill-body"},[i("v-uni-view",{staticClass:"space-lg"}),i("v-uni-view",{staticClass:"confirm-btn flex-center f-title c-base radius-16",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toConfirm.apply(void 0,arguments)}}},[t._v("确定")]),i("v-uni-view",{staticClass:"space-lg"}),i("v-uni-view",{staticClass:"space-safe"})],1)],1)],1),i("w-picker",{ref:"day",attrs:{mode:"date",startYear:1*t.startYear-10,endYear:t.startYear,value:0==t.activeIndex?t.curMonth:t.curDay,current:!1,fields:0==t.activeIndex?"month":"day","disabled-after":!1,themeColor:t.primaryColor,visible:t.showDate},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm(e)},"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.showDate=e}}})],1)},c=[]},a736:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("18f7"),i("de6c"),i("c223");var n=a(i("9b1b")),c=a(i("2634")),s=a(i("2fdc")),o=i("8f59"),r=a(i("cd23")),l=a(i("13f3")),u={components:{wPicker:l.default},data:function(){return{isLoad:!1,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:""},count:{},activeIndex:0,tabList:[{id:1,title:"月份选择"},{id:2,title:"自定义时间"}],param:{page:1},list:{data:[]},loading:!0}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.initIndex();case 2: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,o.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,c.default)().mark((function i(){var a,n;return(0,c.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 e.$util.setNavigationBarColor({bg:e.primaryColor}),n=new Date(Math.ceil((new Date).getTime())),e.curDay=e.$util.formatTime(n,"YY-M-D"),e.curMonth=e.$util.formatTime(n,"YY-M"),e.startYear=e.$util.formatTime(n,"YY"),i.next=12,Promise.all([e.getCount(),e.getList()]);case 12:e.isLoad=!0;case 13:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getCount:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){var i,a,n,s,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.activeIndex,a=t.$util.deepCopy(t.check_time),n=a.start_time,s=a.end_time,o={},1==i&&n&&s&&(o.start_time=t.$util.DateToUnix(n),o.end_time=t.$util.DateToUnix(s)+86400-1),e.next=6,t.$api.technician.balanceCommissionData(o);case 6:t.count=e.sent;case 7:case"end":return e.stop()}}),e)})))()},getList:function(t){var e=this;return(0,s.default)((0,c.default)().mark((function i(){var a,n,s,o,r,l,u,d;return(0,c.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.activeIndex,s=e.$util.deepCopy(e.param),o=e.$util.deepCopy(e.check_time),r=o.month,l=o.start_time,u=o.end_time,0==n&&(s.month=r?e.$util.DateToUnix("".concat(r,"-01")):""),1==n&&(s.start_time=l&&u?e.$util.DateToUnix(l):"",s.end_time=l&&u?e.$util.DateToUnix(u)+86400-1:""),i.next=8,e.$api.technician.balanceCommissionList(s);case 8:d=i.sent,1==e.param.page||(d.data=a.data.concat(d.data)),e.list=d,e.loading=!1,e.$util.hideAll();case 12:case"end":return i.stop()}}),i)})))()},handerTabChange:function(t){this.activeIndex=t,this.check_time.activeIndex=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,s.default)((0,c.default)().mark((function e(){var i,a,n,s,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.activeIndex,a=t.check_time,n=a.month,s=a.start_time,o=a.end_time,(0!=i||n)&&(1!=i||s&&o)||(1!=i||s&&o||(t.activeIndex=0,t.check_time.activeIndex=0,t.check_time.month=""),t.prev_time=t.$util.deepCopy(t.check_time)),(0==i&&n||1==i&&s&&o)&&(t.check_time=t.$util.deepCopy(t.prev_time)),t.$refs.show_choose_time.close(),1!=t.activeIndex){e.next=8;break}return e.next=8,t.getCount();case 8:t.getList(1);case 9:case"end":return e.stop()}}),e)})))()},toShowTime:function(t){var e=this.activeIndex;if(1!=e||"end_time"!=t||this.check_time.start_time){var i=this.check_time[t];i&&("month"==t?this.curMonth=i:this.curDay=i),this.showKey=t,this.showDate=!0}else this.$util.showToast({title:"请选择开始时间"})},onConfirm:function(t){var e=this;return(0,s.default)((0,c.default)().mark((function i(){var a,n,s,o,r,l,u,d,v,h,f,m;return(0,c.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=e.check_time,n=a.start_time,s=a.end_time,o=e.showKey,r=e.activeIndex,l=void 0===r?0:r,u=e.$util.DateToUnix("month"==o?"".concat(t.result,"-01"):t.result),d=n?e.$util.DateToUnix(n):0,v=s?e.$util.DateToUnix(s):0,h=e.$util.formatTime(new Date(Math.ceil((new Date).getTime())),"YY-M-D"),f=e.$util.DateToUnix(h)+1,m={month:"开始月份",start_time:"开始时间",end_time:"结束时间"},!(u>f)){i.next=11;break}return e.$util.showToast({title:"".concat(m[o],"不能选择未来时间哦")}),i.abrupt("return");case 11:if(1!=l||!("start_time"==o&&v&&v<e.$util.DateToUnix(t.result)||"end_time"==o&&d&&d>e.$util.DateToUnix(t.result))){i.next=14;break}return e.$util.showToast({title:"结束时间不能小于开始时间"}),i.abrupt("return");case 14:e.check_time[o]=t.result;case 15:case"end":return i.stop()}}),i)})))()},toConfirm:function(){var t=this;return(0,s.default)((0,c.default)().mark((function e(){var i,a,n,s,o,r,l,u,d,v,h;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.check_time,a=i.month,n=void 0===a?"":a,s=i.start_time,o=void 0===s?"":s,r=i.end_time,l=void 0===r?"":r,u=t.activeIndex,d=void 0===u?0:u,v=1e3*t.$util.DateToUnix(o),h=1e3*t.$util.DateToUnix(l),0!=d||n){e.next=7;break}return t.$util.showToast({title:"请选择开始月份"}),e.abrupt("return");case 7:if(1!=d||o&&l&&!(h-v>31536e6)){e.next=10;break}return t.$util.showToast({title:o?l?"查询时间跨度最长为一年哦":"请选择结束时间":"请选择开始时间"}),e.abrupt("return");case 10:if(t.check_time.activeIndex=d,t.prev_time=t.$util.deepCopy(t.check_time),t.$refs.show_choose_time.close(),1!=d){e.next=16;break}return e.next=16,t.getCount();case 16:t.getList(1);case 17:case"end":return e.stop()}}),e)})))()}}),filters:{handleTimeText:function(t,e){var i="请选择",a=t.activeIndex,n=t.month,c=t.start_time,s=t.end_time;0==a&&n&&(i=r.default.formatTime(1e3*r.default.DateToUnix("".concat(n,"-01")),"YY年M月"));var o=1==e?"YY.M.D":"YY年M月D日";return 1==a&&c&&s&&(i=r.default.formatTime(1e3*r.default.DateToUnix(c),o)+" - "+r.default.formatTime(1e3*r.default.DateToUnix(s),o)),i}}};e.default=u},ef80:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.technician-cash-integral .record-search-info[data-v-7fe6872a]{width:%?750?%;height:%?270?%}.technician-cash-integral .record-search-info .record-info[data-v-7fe6872a]{width:%?710?%}.technician-cash-integral .record-search-info .record-info .search-item[data-v-7fe6872a]{height:%?100?%}.technician-cash-integral .record-search-info .record-info .search-item .text[data-v-7fe6872a]{color:#3d2c1b}.technician-cash-integral .record-search-info .record-info .search-item .iconfont[data-v-7fe6872a]{font-size:%?26?%}.technician-cash-integral .record-search-info .record-info .record-list .list-item[data-v-7fe6872a]{width:50%}.technician-cash-integral .count-item[data-v-7fe6872a]{height:%?120?%}.technician-cash-integral .count-item .title[data-v-7fe6872a]{padding-top:%?18?%}.technician-cash-integral .count-item .title .iconfont[data-v-7fe6872a]{font-size:%?16?%}.technician-cash-integral .list-item .item-icon[data-v-7fe6872a]{width:%?120?%;height:%?120?%;margin-right:%?24?%}.technician-cash-integral .list-item .item-icon .iconfont[data-v-7fe6872a]{font-size:%?58?%}.technician-cash-integral .popup-choose-time[data-v-7fe6872a]{width:%?750?%;border-radius:%?30?% %?30?% 0 0}.technician-cash-integral .popup-choose-time .icon-close[data-v-7fe6872a]{color:#a8aeb8;font-size:%?40?%}.technician-cash-integral .popup-choose-time .item-child[data-v-7fe6872a]{width:50%}.technician-cash-integral .popup-choose-time .confirm-btn[data-v-7fe6872a]{width:%?670?%;height:%?100?%}',""]),t.exports=e}}]); |