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.
 
 
 
 
xxdj1/unpackage/dist/build/h5/static/js/user-pages-channel-income.5...

1 lines
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-channel-income"],{"0fbd":function(t,e,i){"use strict";i.r(e);var n=i("12df"),a=i("fac1");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("b826");var r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"63ae908c",null,!1,n["a"],void 0);e["default"]=c.exports},"12df":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||e;return i("v-uni-view",{staticClass:"custom-tabbar fix flex-center fill-base b-1px-t"},t._l(t.configInfo.tabBar,(function(e,n){return i("v-uni-view",{key:n,staticClass:"flex-center flex-column mt-sm",style:{width:100/t.configInfo.tabBar.length+"%",color:t.cur==n?t.primaryColor:"#666"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeTab(n)}}},[i("i",{staticClass:"iconfont",class:t.cur==n?e.selected_img:e.default_img}),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name))])],1)})),1)},a=[]},"2b5c":function(t,e,i){var n=i("e74b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("02a30136",n,!0,{sourceMap:!1,shadowMode:!1})},"420b":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||e;return t.isLoad?i("v-uni-view",{staticClass:"user-channel-index"},[i("v-uni-view",{staticClass:"mine-menu-list c-base",style:{background:t.primaryColor}},[i("v-uni-view",{staticClass:"flex-between pt-md pl-lg pb-lg"},[i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"f-desc mr-sm"},[t._v("渠道分销商")]),i("v-uni-view",{staticClass:"f-title"},[t._v(t._s(t.detail.cate_text))])],1),i("v-uni-view",{staticClass:"channel-code flex-center f-icontext",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/channel/poster"})}}},[i("i",{staticClass:"iconfont iconerweima"}),t._v("渠道码"),i("i",{staticClass:"iconfont icon-down"})])],1),i("v-uni-view",{staticClass:"money-count flex-center pb-md"},[i("v-uni-view",{staticClass:"item-child flex-center flex-column"},[i("v-uni-view",{staticClass:"num text-bold"},[t._v(t._s(t.detail.order_price))]),i("v-uni-view",{staticClass:"f-caption"},[t._v("订单总金额")])],1),i("v-uni-view",{staticClass:"line"}),i("v-uni-view",{staticClass:"item-child flex-center flex-column"},[i("v-uni-view",{staticClass:"num text-bold"},[t._v(t._s(t.detail.order_count))]),i("v-uni-view",{staticClass:"f-caption"},[t._v("订单数量")])],1)],1)],1),i("v-uni-view",{staticClass:"search-info flex-between fill-base"},[i("v-uni-view",{staticClass:"item-search"},[i("search",{attrs:{type:"input",placeholder:"请输入服务名称/订单号"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.toSearch.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toSearch.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"flex-center pr-md f-paragraph c-title",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$refs.rank_item.open()}}},[t._v("筛选"),i("i",{staticClass:"iconfont iconshaixuanxia-1"})])],1),i("v-uni-view",{staticClass:"order-pages"},t._l(t.list.data,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-between pb-lg"},[i("v-uni-view",{staticClass:"f-paragraph c-title max-350 ellipsis"},[t._v("下单人:"+t._s(e.address_info.user_name))]),i("v-uni-view",{staticClass:"f-caption c-caption"},[t._v(t._s(e.create_time))])],1),t._l(e.order_goods,(function(n,a){return i("v-uni-view",{key:a,staticClass:"flex-center mb-lg"},[i("v-uni-image",{staticClass:"avatar lg radius-16",attrs:{mode:"aspectFill",src:n.goods_cover}}),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"goods-title f-title c-title ellipsis",class:[{"max-300":n.refund_num>0}]},[t._v(t._s(n.goods_name))]),n.refund_num>0?i("v-uni-view",{staticClass:"f-caption c-warning"},[t._v("已退x"+t._s(n.refund_num))]):t._e()],1),i("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm"},[t._v("服务技师:"+t._s(e.coach_info.coach_name||""))]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-baseline f-caption c-warning"},[t._v("¥"),i("v-uni-view",{staticClass:"f-title text-bold"},[t._v(t._s(n.true_price))])],1),i("v-uni-view",{staticClass:"c-paragraph"},[t._v("x"+t._s(n.num))])],1)],1)],1)})),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",[1*e.refund_price>0?i("v-uni-view",{staticClass:"flex-y-center f-caption"},[t._v("总计退款:"),i("v-uni-view",{staticClass:"c-warning"},[t._v("¥"+t._s(e.refund_price))])],1):t._e()],1),i("v-uni-view",{staticClass:"flex-y-center f-desc c-title"},[t._v("付款:"),i("v-uni-view",{staticClass:"text-bold"},[t._v("¥"+t._s(e.true_service_price))])],1)],1)],2)})),1),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:"rank_item",attrs:{type:"bottom",maskClick:!1}},[i("v-uni-view",{staticClass:"popup-rank fill-base"},[i("v-uni-view",{staticClass:"flex-between pd-lg"},[i("v-uni-view",{staticClass:"f-title c-title text-bold"},[t._v("选择筛选条件")]),i("v-uni-view",{staticClass:"f-caption c-caption",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm(1)}}},[t._v("取消")])],1),i("v-uni-view",{staticClass:"pd-lg"},[i("v-uni-view",{staticClass:"pt-lg pb-lg f-paragraph text-bold"},[t._v("时间")]),i("v-uni-view",{staticClass:"flex-warp pb-lg"},t._l(t.tabList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item-rank flex-center f-desc c-title radius-16",class:[{"ml-md":0!=n}],style:{background:n==t.tabInd?t.primaryColor:"",color:n==t.tabInd?"#fff":"",borderColor:n==t.tabInd?t.primaryColor:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toChangeItem(n,"tabInd")}}},[t._v(t._s(e.title))])})),1),3==t.tabInd?i("v-uni-view",{staticClass:"flex-between pt-lg pb-lg"},[i("v-uni-view",{staticClass:"f-paragraph text-bold"},[t._v("开始时间")]),i("v-uni-picker",{attrs:{mode:"date",start:"1900-01-01",end:t.today},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.pickerChange(e,"start_time")}}},[i("v-uni-view",{staticClass:"flex-y-center f-title",class:[{"c-title":t.tabList[3].start_time},{"f-caption c-caption":!t.tabList[3].start_time}]},[t._v(t._s(t.tabList[3].start_time||"请选择")),i("i",{staticClass:"iconfont icon-right c-caption"})])],1)],1):t._e(),3==t.tabInd?i("v-uni-view",{staticClass:"flex-between pt-md pb-lg"},[i("v-uni-view",{staticClass:"f-paragraph text-bold"},[t._v("结束时间")]),i("v-uni-picker",{attrs:{mode:"date",start:"1900-01-01",end:t.today},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.pickerChange(e,"end_time")}}},[i("v-uni-view",{staticClass:"flex-y-center f-title",class:[{"c-title":t.tabList[3].end_time},{"f-caption c-caption":!t.tabList[3].end_time}]},[t._v(t._s(t.tabList[3].end_time||"请选择")),i("i",{staticClass:"iconfont icon-right c-caption"})])],1)],1):t._e()],1),i("v-uni-view",{staticClass:"btn-info flex-center pd-lg"},[i("v-uni-view",{staticClass:"item-child flex-center fill-base f-desc radius",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm(2)}}},[t._v("重置")]),i("v-uni-view",{staticClass:"item-child flex-center f-desc c-base radius",style:{background:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm(3)}}},[t._v("查询")])],1),i("v-uni-view",{staticClass:"space-safe"})],1)],1)],1):t._e()},a=[]},"594c":function(t,e,i){"use strict";var n=i("2b5c"),a=i.n(n);a.a},"62e4e":function(t,e,i){"use strict";i.r(e);var n=i("420b"),a=i("9cea");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("594c");var r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0efba0b8",null,!1,n["a"],void 0);e["default"]=c.exports},6901:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530"));i("a9e3"),i("e9c4"),i("ac1f");var s=i("26cb"),r={components:{},props:{cur:{type:Number||String,default:function(){return"0"}}},data:function(){return{}},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},activeIndex:function(t){return t.order.activeIndex}}),mounted:function(){var t=this,e=uni.getSystemInfoSync().windowHeight,i=JSON.parse(JSON.stringify(this.configInfo)),n=i.navBarHeight,a=uni.createSelectorQuery().in(this);a.select(".custom-tabbar").boundingClientRect((function(a){var s=e-a.height-n;i.curSysHeight=s,i.tabbarHeight=a.height,t.updateConfigItem({key:"configInfo",val:i})})).exec()},methods:(0,a.default)((0,a.default)({},(0,s.mapMutations)(["updateConfigItem"])),{},{changeTab:function(t){var e=this.activeIndex,i={0:"/pages/service",1:"/pages/technician",2:"/pages/order?tab=".concat(e),3:"/pages/mine"};t!=this.cur&&this.$util.goUrl({url:i[t],openType:"reLaunch"})}})};e.default=r},7993:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.custom-tabbar[data-v-63ae908c]{height:%?98?%;bottom:0;height:calc(%?98?% + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.custom-tabbar .iconfont[data-v-63ae908c]{font-size:%?40?%}.custom-tabbar .text[data-v-63ae908c]{font-size:%?22?%;margin-top:%?5?%;height:%?32?%}',""]),t.exports=e},"9cea":function(t,e,i){"use strict";i.r(e);var n=i("c711"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},b826:function(t,e,i){"use strict";var n=i("face"),a=i.n(n);a.a},c711:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var a=n(i("c7eb")),s=n(i("1da1")),r=n(i("5530")),c=i("26cb"),o=n(i("0fbd")),l={components:{tabbar:o.default},data:function(){return{isLoad:!1,today:"",preCheck:{tabInd:0,start_time:"",end_time:""},tabInd:0,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,c.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(){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,r.default)((0,r.default)({},(0,c.mapMutations)([])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,a.default)().mark((function i(){var n,s,r,c;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!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.showLoading(),s=new Date(Math.ceil((new Date).getTime())),r=e.$util.formatTime(s,"YY-M-D"),864e5,c=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(c-6048e5,"YY-M-D"),e.tabList[1].end_time=r,e.tabList[2].start_time=e.$util.formatTime(c-2592e6,"YY-M-D"),e.tabList[2].end_time=r,i.next=19,e.getList();case 19:e.$util.setNavigationBarColor({bg:e.primaryColor}),e.isLoad=!0,e.$util.hideAll();case 22: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,s.default)((0,a.default)().mark((function e(){var i,n,s,r,c,o,l,u,d;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.list,n=t.tabInd,s=t.tabList,r=s[n],c=r.start_time,o=r.end_time,l=t.$util.deepCopy(t.param),l.start_time=t.$util.DateToUnix(c),l.end_time=t.$util.DateToUnix(o)+86400-1,1!=l.page){e.next=11;break}return u=t.$util.deepCopy(l),delete u.page,e.next=10,t.$api.channel.index(u);case 10:t.detail=e.sent;case 11:return e.next=13,t.$api.channel.orderList(l);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,s=i.end_time,r=void 0===s?"":s,c=2==t?{tabInd:0}:3==t?this:this.preCheck,o=c.tabInd;if(3==t){if((!a||!r)&&3==o)return void this.$util.showToast({title:a?"请选择结束时间":"请选择开始时间"});this.preCheck.start_time=a,this.preCheck.end_time=r,this.preCheck.tabInd=o}else this.tabList[e].start_time=a,this.tabList[e].end_time=r,this.tabInd=o;2!=t&&(this.$refs.rank_item.close(),this.param.page,this.getList())}})};e.default=l},e74b:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.user-channel-index .mine-menu-list[data-v-0efba0b8]{height:%?235?%}.user-channel-index .mine-menu-list .channel-code[data-v-0efba0b8]{width:%?134?%;height:%?54?%;background:hsla(0,0%,100%,.1);border-radius:%?100?% 0 0 %?100?%}.user-channel-index .mine-menu-list .channel-code .iconerweima[data-v-0efba0b8]{font-size:%?28?%;margin:0 %?5?%}.user-channel-index .mine-menu-list .channel-code .icon-down[data-v-0efba0b8]{font-size:%?18?%;-webkit-transform:scale(.5) rotate(270deg);transform:scale(.5) rotate(270deg)}.user-channel-index .mine-menu-list .money-count .item-child[data-v-0efba0b8]{width:50%}.user-channel-index .mine-menu-list .money-count .item-child .num[data-v-0efba0b8]{font-size:%?49?%}.user-channel-index .mine-menu-list .money-count .line[data-v-0efba0b8]{width:%?1?%;height:%?47?%;background:hsla(0,0%,100%,.3)}.user-channel-index .search-info[data-v-0efba0b8]{border-radius:0 0 %?16?% %?16?%;overflow:hidden}.user-channel-index .search-info .item-search[data-v-0efba0b8]{width:%?630?%}.user-channel-index .search-info .iconshaixuanxia-1[data-v-0efba0b8]{font-size:%?20?%;color:#cdcdcd;-webkit-transform:scale(.65);transform:scale(.65)}.user-channel-index .popup-rank[data-v-0efba0b8]{border-radius:%?34?% %?34?% 0 0}.user-channel-index .popup-rank .item-rank[data-v-0efba0b8]{width:%?157?%;height:%?72?%;border:1px solid #e5e5e5}.user-channel-index .popup-rank .btn-info[data-v-0efba0b8]{background:#f9f9f9}.user-channel-index .popup-rank .btn-info .item-child[data-v-0efba0b8]{width:%?320?%;height:%?80?%;background:#fff;border:%?1?% solid #c7c7c7;margin:0 %?14?%}.user-channel-index .popup-rank .space-safe[data-v-0efba0b8]{background:#f9f9f9}',""]),t.exports=e},fac1:function(t,e,i){"use strict";i.r(e);var n=i("6901"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},face:function(t,e,i){var n=i("7993");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("203d86c0",n,!0,{sourceMap:!1,shadowMode:!1})}}]);