1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11e26b8b"],{"7fc8":function(t,e,a){var s=a("24fb");e=s(!1),e.push([t.i,"#detailed .today_bonus[data-v-a2144632]{width:100%;height:5.125rem;margin-top:.625rem;background:#fff;padding:1rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;border-bottom:.0625rem solid #e2e2e2}#detailed .today_bonus li.line[data-v-a2144632]{position:absolute;width:.0625rem;height:3.25rem;background:#e2e2e2;top:1rem;right:34%}#detailed .today_bonus li.line .careat[data-v-a2144632]{width:.375rem;height:.375rem;border:.0625rem solid #ddd;border-left:0;border-bottom:0;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:#fff;position:absolute;top:1.4375rem;right:-.1875rem}#detailed .today_bonus li[data-v-a2144632]{text-align:center;float:left}#detailed .today_bonus li span[data-v-a2144632]{font-size:17px;line-height:1.625rem;display:inline-block;margin-bottom:.625rem}#detailed .today_bonus li b[data-v-a2144632]{font-size:11px;color:#333}#detailed .today_bonus li.data[data-v-a2144632]{width:22%}#detailed .today_bonus li.data span[data-v-a2144632]{color:#ffa800}#detailed .today_bonus li[data-v-a2144632]:first-child,#detailed .today_bonus li[data-v-a2144632]:nth-child(2){border-right:.0625rem solid #e2e2e2}#detailed .today_bonus li.mounth[data-v-a2144632]{width:34%}#detailed .today_bonus li.mounth span[data-v-a2144632]{color:#fc6a70}#detailed a[data-v-a2144632]{color:#000}#detailed .mint-navbar[data-v-a2144632]{margin-bottom:.125rem}#detailed .mint-navbar .mint-tab-item[data-v-a2144632]{padding:.875rem 0}#detailed .times[data-v-a2144632]{text-align:left;text-indent:.625rem;line-height:2rem;background:#fff}#detailed .tbs[data-v-a2144632]{background:#fff;overflow:hidden;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:.625rem .875rem;border-bottom:.0625rem solid #ebebeb;font-size:14px}#detailed .tbs .item2[data-v-a2144632]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:left}#detailed .tbs .item2 li[data-v-a2144632]{line-height:1.875rem}#detailed .tbs .item3[data-v-a2144632]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:right}#detailed .tbs .item3 .red[data-v-a2144632]{color:red}#detailed .tbs .item3 .green[data-v-a2144632]{color:green}#detailed .tbs .item3 .yellow[data-v-a2144632]{color:#ff0}#detailed .tbs .item3 .reduce[data-v-a2144632]{color:#e51c23}#detailed .tbs .item3 span[data-v-a2144632]{line-height:1.875rem}#detailed .tbs .item3 p[data-v-a2144632]{line-height:1.875rem;color:#8c8c8c}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var s=document.documentElement,i=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return s&&s.scrollTop?t=s.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&s.clientHeight?Math.min(i.clientHeight,s.clientHeight):Math.max(i.clientHeight,s.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,s.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(){}}}},ad08:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"detailed"}},[a("c-title",{attrs:{hide:!1,text:"store"===t.orderType||"storeBalance"===t.orderType?"我的提成":"我的"+this.fun.initWithdrawal()}}),"store"===t.orderType||"storeBalance"===t.orderType?a("ul",{staticClass:"today_bonus"},[t._l(t.ratioDatas,(function(e,s){return a("li",{key:s,class:e.name},[a("span",[t._v(t._s(e.money))]),a("br"),a("b",[t._v(t._s(e.data))])])})),t._m(0)],2):t._e(),a("van-tabs",{on:{click:t.swichTabTItem},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},["storeBalance"!==t.orderType?["store"!==t.orderType?a("van-tab",{attrs:{name:"",title:"全部"}}):t._e(),"store"===t.orderType?a("van-tab",{attrs:{name:"3",title:"全部"}},[t._v("全部 ")]):t._e(),a("van-tab",{attrs:{name:"0",title:"store"!==t.orderType?"申请中":"未结算"}}),a("van-tab",{attrs:{name:"1",title:"store"!==t.orderType?"待打款":"已结算"}}),"store"!==t.orderType?a("van-tab",{attrs:{name:"2",title:"已打款"}}):t._e(),a("van-tab",{attrs:{name:"-1",title:"supplier"==t.orderType?"驳回":"已失效"}})]:t._e(),"storeBalance"===t.orderType?[a("van-tab",{attrs:{name:"1",title:"已结算"}}),a("van-tab",{attrs:{name:"2",title:"已分账"}}),a("van-tab",{attrs:{name:"0",title:"全部"}})]:t._e()],2),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:"storeBalance"===t.orderType,expression:"orderType === 'storeBalance'"}]},t._l(t.allBalance,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.status_name))])])])])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:3==t.selected,expression:"selected==3"}]},t._l(t.all,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:""==t.selected,expression:"selected==''"}]},["supplier"===t.orderType?a("div",t._l(t.all,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.apply_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.apply_money))]),"supplier"===t.orderType?a("p",[t._v(t._s(e.status_obj.name))]):t._e()])])])})),0):t._e(),"extension"===t.orderType?a("div",t._l(t.all,(function(e,s){return a("router-link",{key:s,attrs:{to:t.fun.getUrl("presentationDetails",{record_id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.type_name))]),a("li",[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(e.status_name))]),a("p",[t._v(t._s(e.created_at))])])])])})),1):t._e(),"store"===t.orderType?a("div",t._l(t.all,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.selected,expression:"selected==0"}]},["supplier"===t.orderType?a("div",t._l(t.review,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.apply_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.apply_money))]),"supplier"===t.orderType?a("p",[t._v(t._s(e.status_obj.name))]):t._e()])])])})),0):t._e(),"extension"===t.orderType?a("div",t._l(t.review,(function(e,s){return a("router-link",{key:s,attrs:{to:t.fun.getUrl("presentationDetails",{record_id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.type_name))]),a("li",[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(e.status_name))]),a("p",[t._v(t._s(e.created_at))])])])])})),1):t._e(),"store"===t.orderType?a("div",t._l(t.review,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.selected,expression:"selected==1"}]},["supplier"===t.orderType?a("div",t._l(t.waitPay,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.apply_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.apply_money))]),"supplier"===t.orderType?a("p",[t._v(t._s(e.status_obj.name))]):t._e()])])])})),0):t._e(),"extension"===t.orderType?a("div",t._l(t.waitPay,(function(e,s){return a("router-link",{key:s,attrs:{to:t.fun.getUrl("presentationDetails",{record_id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.type_name))]),a("li",[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(e.status_name))]),a("p",[t._v(t._s(e.created_at))])])])])})),1):t._e(),"store"===t.orderType?a("div",t._l(t.waitPay,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.selected,expression:"selected==2"}]},["supplier"===t.orderType?a("div",t._l(t.pay,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.apply_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.apply_money))]),"supplier"===t.orderType?a("p",[t._v(t._s(e.status_obj.name))]):t._e()])])])})),0):t._e(),"extension"===t.orderType?a("div",t._l(t.pay,(function(e,s){return a("router-link",{key:s,attrs:{to:t.fun.getUrl("presentationDetails",{record_id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.type_name))]),a("li",[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(e.status_name))]),a("p",[t._v(t._s(e.created_at))])])])])})),1):t._e(),"store"===t.orderType?a("div",t._l(t.pay,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:-1==t.selected,expression:"selected==-1"}]},["supplier"===t.orderType?a("div",t._l(t.invalid,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.apply_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.apply_money))]),"supplier"===t.orderType?a("p",[t._v(t._s(e.status_obj.name))]):t._e()])])])})),0):t._e(),"extension"===t.orderType?a("div",t._l(t.invalid,(function(e,s){return a("router-link",{key:s,attrs:{to:t.fun.getUrl("presentationDetails",{record_id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v(t._s(e.type_name))]),a("li",[t._v(t._s(t.$i18n.t("money"))+t._s(e.amounts))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v(t._s(e.status_name))]),a("p",[t._v(t._s(e.created_at))])])])])})),1):t._e(),"store"===t.orderType?a("div",t._l(t.invalid,(function(e,s){return a("div",{key:s},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"item2"},[a("li",[t._v("订单号:"+t._s(e.order_sn))]),a("li",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"red"},[t._v("提成+"+t._s(e.amount))]),a("p",[t._v(t._s(e.settlement))])])])])})),0):t._e()])])],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"line"},[a("div",{staticClass:"careat"})])}],l=(a("e7e5"),a("d399")),r=(a("b0c0"),a("14d9"),a("99af"),a("6968")),d=a("ac0d"),n={mixins:[d["a"]],data:function(){return{selected:"",waitPay:[],pay:[],review:[],invalid:[],all:[],allBalance:[],loading:!1,allLoaded:!1,goload:!1,orderType:"",ratioDatas:[],api:"",withdrawal_type:"",isLoadMore:!0,page:1,total_page:0}},created:function(){var t=["","0","1","2","-1"],e=this.$route.query.selectIndex||0;this.selected=t[e]},methods:{swichTabTItem:function(){"supplier"===this.orderType?this.getSupplierNetData():"extension"===this.orderType?this.getData(this.selected):"storeBalance"==this.orderType?this.getBalanceData(this.selected):this.getNetData(this.selected)},getNetData:function(t){var e=this,a=this;a.isLoadMore=!1,a.page=1,$http.get("finance.withdraw.withdraw-list",{status:t,withdrawal_type:this.withdrawal_type},"正在获取列表").then((function(t){if(1===t.result){a.allLoaded=!1,a.isLoadMore=!0,a.total_page=t.data.last_page,a.total_page||(a.total_page=0),e.ratioDatas=[];var s={};s.money=t.data.today,s.data="今日",s.name="data",a.ratioDatas.push(s);var i={};i.money=t.data.yesterday,i.data="昨日",i.name="data",a.ratioDatas.push(i);var r={};r.money=t.data.lastweek,r.data="本周",r.name="data",a.ratioDatas.push(r);var d={};d.money=t.data.thismonth,d.data="本月累计提成",d.name="mounth",a.ratioDatas.push(d);var n=t.data.data;0==a.selected.length||3==a.selected?a.all=n:0==a.selected?a.review=n:1==a.selected?a.waitPay=n:2==a.selected?a.pay=n:-1==a.selected&&(a.invalid=n)}else Object(l["a"])(t.msg)}),(function(t){}))},getData:function(t){var e=this;e.isLoadMore=!1,e.page=1,$http.get("finance.withdraw.withdraw-log",{status:t},"正在获取列表").then((function(t){if(1===t.result){e.allLoaded=!1,e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0);var a=t.data.data;0==e.selected.length?e.all=a:0==e.selected?e.review=a:1==e.selected?e.waitPay=a:2==e.selected?e.pay=a:-1==e.selected&&(e.invalid=a)}else Object(l["a"])(t.msg)}),(function(t){}))},getSupplierNetData:function(){0==this.selected.length||3==this.selected?this.api="plugin.supplier.frontend.withdraw-log.index":0==this.selected?this.api="plugin.supplier.frontend.withdraw-log.applying":1==this.selected?this.api="plugin.supplier.frontend.withdraw-log.pending":2==this.selected?this.api="plugin.supplier.frontend.withdraw-log.already":-1==this.selected&&(this.api="plugin.supplier.frontend.withdraw-log.reject");var t=this;$http.get(t.api,{member_id:t.member_id},"正在获取列表").then((function(e){var a=e.data.data;t.total_page=e.data.last_page,t.allLoaded=!1,t.isLoadMore=!0,t.total_page||(t.total_page=0),0==t.selected.length||3==t.selected?t.all=a:0==t.selected?t.review=a:1==t.selected?t.waitPay=a:2==t.selected?t.pay=a:-1==t.selected&&(t.invalid=a)}),(function(t){}))},getMoreData:function(){var t=this,e=this,a={};"supplier"===this.orderType?a={status:this.selected,member_id:e.member_id}:"extension"===this.orderType?(this.api="finance.withdraw.withdraw-log",a={status:this.selected}):"storeBalance"===this.orderType?(this.api="plugin.store-cashier.frontend.store.balance.award.store",a={status:this.selected}):(this.api="finance.withdraw.withdraw-list",a={status:this.selected,withdrawal_type:this.withdrawal_type}),e.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,a.page=this.page,$http.get(this.api,a,"加载中").then((function(a){if(e.isLoadMore=!0,e.loading=!1,e.allLoaded=!1,1===a.result){var s=a.data.data;if("storeBalance"==t.orderType)return void(t.allBalance=t.allBalance.concat(a.data.list.data));0==e.selected.length||3==e.selected?e.all=e.all.concat(s):0==e.selected?e.review=e.review.concat(s):1==e.selected?e.waitPay=e.waitPay.concat(s):2==e.selected?e.pay=e.pay.concat(s):-1==e.selected&&(e.invalid=e.invalid.concat(s))}else e.page=e.page-1,e.isLoadMore=!1,e.loading=!0,e.allLoaded=!0}),(function(t){})).catch((function(t){})))},getMoreData1:function(t,e){var a=this;if(this.page!=this.total_page)return this.page>=this.total_page?(a.loading=!0,void(a.allLoaded=!0)):(this.page=this.page+1,void $http.get(a.api,{page:this.page,member_id:a.member_id},"正在获取更多订单").then((function(t){if(1!==t.result)return a.page=a.page-1,a.loading=!0,a.allLoaded=!0,void(a.isLoadMore=!1);var s=t.data.data;a.loading=!1,a.allLoaded=!1,0==e.length?a.all=a.all.concat(s):0==e?a.review=a.review.concat(s):1==e?a.waitPay=a.waitPay.concat(s):2==e?a.pay=a.pay.concat(s):-1==e&&(a.invalid=a.invalid.concat(s))}),(function(t){})))},initData:function(){this.page=1,this.goload=!0,this.total_page=0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.ratioDatas=[]},getBalanceData:function(t){var e=this,a=this;a.isLoadMore=!1,a.page=1,$http.get(this.api,{status:t},"").then((function(t){if(a.isLoadMore=!0,a.loading=!1,a.total_page=t.data.list.last_page,a.total_page||(a.total_page=0),1===t.result){var s=t.data.list.data;e.allBalance=s,e.ratioDatas=[];var i={};i.money=t.data.statistic.today,i.data="今日",i.name="data",a.ratioDatas.push(i);var l={};l.money=t.data.statistic.yesterday,l.data="昨日",l.name="data",a.ratioDatas.push(l);var r={};r.money=t.data.statistic.week,r.data="本周",r.name="data",a.ratioDatas.push(r);var d={};d.money=t.data.statistic.month,d.data="本月",d.name="mounth",a.ratioDatas.push(d)}else a.page=a.page-1,a.isLoadMore=!1,a.loading=!0,a.allLoaded=!0}),(function(t){})).catch((function(t){}))}},activated:function(){this.initData(),this.withdrawal_type=this.$route.query.from,"supplier"===this.$route.params.supplier?(this.orderType="supplier",this.member_id=this.$route.params.member_id,this.fun.setWXTitle("我的"+this.fun.initWithdrawal()),this.getSupplierNetData()):"extension"===this.$route.query.extension?(this.orderType="extension",this.api="finance.withdraw.withdraw-log",this.getData(this.selected)):"storeBalance"==this.$route.query.from?(this.orderType="storeBalance",this.api="plugin.store-cashier.frontend.store.balance.award.store",this.getBalanceData(this.selected),this.fun.setWXTitle("我的提成")):(this.orderType="store",this.selected="3",this.getNetData(3))},components:{cTitle:r["a"]}},o=n,c=o,p=(a("c8a3"),a("2877")),_=Object(p["a"])(c,s,i,!1,null,"a2144632",null);e["default"]=_.exports},b98d:function(t,e,a){var s=a("7fc8");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=a("499e").default;i("192009aa",s,!0,{sourceMap:!1,shadowMode:!1})},c8a3:function(t,e,a){"use strict";a("b98d")}}]); |