1 line
6.6 KiB
JavaScript
1 line
6.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c09eff9a","chunk-2d0d83d6"],{6732:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-23cf64a7]{background:#ebebeb;min-height:100vh}.header[data-v-23cf64a7]{width:100%;height:7.344rem;padding-top:2rem;padding-left:1.531rem;background-color:#ee2e2b}.header[data-v-23cf64a7],.header .header-wrapper[data-v-23cf64a7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.header .header-wrapper .face[data-v-23cf64a7]{width:2.875rem;height:2.875rem}.header .header-wrapper .face img[data-v-23cf64a7]{width:2.875rem;height:2.875rem;border-radius:50%}.header .header-wrapper .name[data-v-23cf64a7]{padding-left:.688rem;font-size:1rem;color:#fff}.cumulative[data-v-23cf64a7]{height:2.844rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:.875rem;font-size:1rem;color:#333;background:#fff}.cumulative .red[data-v-23cf64a7]{color:#ee2e2b}.hr[data-v-23cf64a7]{width:100%;height:.625rem;background-color:#ebebeb}.listData .list-item[data-v-23cf64a7]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:6.719rem;padding:.7rem .9rem;margin-bottom:.625rem;background-color:#fff}.listData .list-item[data-v-23cf64a7],.listData .list-item .cc[data-v-23cf64a7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.listData .list-item .cc[data-v-23cf64a7]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:left}.listData .list-item .order_sn[data-v-23cf64a7]{font-size:.813rem;color:#333}.listData .list-item .price[data-v-23cf64a7]{font-size:.938rem;color:#f15353}.listData .list-item .c2[data-v-23cf64a7]{font-size:.75rem;color:#8c8c8c}.listData .list-item .c3[data-v-23cf64a7]{display:inline-block;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;font-size:.813rem;color:#333}.listData .list-item .c4[data-v-23cf64a7]{font-size:.75rem;color:#8c8c8c}",""]),t.exports=e},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},"7f3a":function(t,e,a){var i=a("6732");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0f52158c",i,!0,{sourceMap:!1,shadowMode:!1})},8562:function(t,e,a){"use strict";a("7f3a")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b380e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page"},[a("c-title",{attrs:{text:"门店预约"}}),a("div",{staticClass:"header"},[a("div",{staticClass:"header-wrapper"},[a("div",{staticClass:"face"},[a("img",{attrs:{src:t.details.member_avatar,alt:""}})]),a("div",{staticClass:"name"},[t._v(t._s(t.details.member_nickname))])])]),a("div",{staticClass:"cumulative"},[t._v(" 累计收益金额: "),a("span",{staticClass:"red"},[t._v(t._s(t.details.total_amount))])]),a("div",{staticClass:"hr"}),a("van-tabs",{on:{change:t.tabChange},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{title:"门店收益"}}),a("van-tab",{attrs:{title:"技师收益"}}),t.details.is_open_attract?a("van-tab",{attrs:{title:"招商员收益"}}):t._e()],1),a("loading",{attrs:{show:!t.networkLoading}}),t.networkLoading&&t.listData.length>0?a("div",{staticClass:"listData"},t._l(t.listData,(function(e){return a("div",{key:e.service_id,staticClass:"list-item"},[a("div",{staticClass:"cc c1"},[a("div",{staticClass:"order_sn"},[t._v(t._s(e.order_sn))]),a("div",{staticClass:"price"},[t._v("¥"+t._s(e.amount))])]),a("div",{staticClass:"cc c2"},[t._v(t._s(e.created_time_str))]),a("div",{staticClass:"cc c3"},[t._v(" 预约ID:"+t._s(e.service_id)+" "),a("span",{staticStyle:{"margin-left":"1rem"}},[t._v(t._s(e.project_title))])]),a("div",{staticClass:"cc c4"},[t._v(" 分红总金额:¥"+t._s(e.total_commission)+" "),a("span",{staticStyle:{"margin-left":"1rem"}},[t._v("项目次数:"+t._s(e.total_count))])])])})),0):t._e(),t.networkLoading&&0==t.listData.length?[a("yz-blank",{attrs:{text:"暂无数据",isBtn:!1}})]:t._e()],2)},s=[],n=(a("99af"),a("ac0d")),l=a("c428"),o=a("eb17"),c={components:{loading:l["a"],yzBlank:o["default"]},mixins:[n["a"]],data:function(){return{activeName:0,listData:[],isLoadMore:!0,page:1,total_page:0,networkLoading:!1,details:{}}},created:function(){this.getDetails(),this.getListData()},methods:{initPage:function(){this.listData=[],this.page=1,this.total_page=0,this.isLoadMore=!0,this.networkLoading=!1},getDetails:function(){var t=this;$http.get("plugin.appointment.frontend.income.index").then((function(e){1===e.result&&(t.details=e.data)}))},tabChange:function(t){this.getListData()},getListData:function(){var t=this;this.initPage();var e={income_type:this.activeName};$http.get("plugin.appointment.frontend.income.get-list",e).then((function(e){t.networkLoading=!0,1===e.result&&(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.listData=e.data.data)}))},getMoreData:function(){var t=this,e={income_type:this.activeName};this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,e.page=this.page,$http.get("plugin.appointment.frontend.income.get-list",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))}}},r=c,d=(a("8562"),a("2877")),f=Object(d["a"])(r,i,s,!1,null,"23cf64a7",null);e["default"]=f.exports}}]); |