1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13915966"],{"219d":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"commission"}},[i("c-title",{attrs:{hide:!1,text:"预计佣金"}}),t._l(t.datas,(function(e,s){return i("div",{key:s},[i("div",{staticClass:"tbs"},[i("ul",{staticClass:"item1"},[i("li",[t._v(t._s(e.order_sn))]),i("li",[t._v(t._s(e.price)+"元")])]),1==e.status?i("ul",{staticClass:"item2"},[i("li",{staticClass:"reg"},[t._v(" 佣金+"+t._s(e.commission)+" ")]),i("li",[t._v(t._s(e.created_at))])]):t._e(),0==e.status?i("ul",{staticClass:"item2"},[i("li",{staticClass:"unreg"},[t._v(" 佣金 +"+t._s(e.commission)+" ")]),i("li",{staticClass:"time"},[t._v(t._s(e.created_at))])]):t._e()])])}))],2)},o=[],a=(i("99af"),i("6968")),n=i("ac0d"),c={mixins:[n["a"]],data:function(){return{toi:this.fun.getKeyByI(),datas:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.toi=this.fun.getKeyByI(),this.datas=[],this.isLoadMore=!0,this.total_page=0,this.page=1,this.getData()},mounted:function(){this.toi=this.fun.getKeyByI()},methods:{getData:function(){var t=this,e={commission_type:"1",i:this.fun.getKeyByI(),type:this.fun.getTyep(),page:1};$http.get("plugin.commission.api.commission.get-commission-list",e,"加载中...").then((function(e){1==e.result&&(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.datas=e.data.data)}),(function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this;if(!(t.page>=t.total_page)){t.page+=1;var e={commission_type:"1",i:this.fun.getKeyByI(),type:this.fun.getTyep(),page:t.page};$http.get("plugin.commission.api.commission.get-commission-list",e,"加载中...").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.datas=t.datas.concat(i)})).catch((function(t){}))}}},components:{cTitle:a["a"]}},l=c,r=l,d=(i("2790"),i("2877")),m=Object(d["a"])(r,s,o,!1,null,"2643ce58",null);e["default"]=m.exports},2790:function(t,e,i){"use strict";i("4b05")},"4b05":function(t,e,i){var s=i("7b45");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=i("499e").default;o("348fb9b8",s,!0,{sourceMap:!1,shadowMode:!1})},"7b45":function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,"#commission .times[data-v-2643ce58]{text-align:left;text-indent:.625rem;line-height:2rem;background:#ddd}#commission .tbs[data-v-2643ce58]{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 .75rem;border-bottom:.0625rem solid #e2e2e2;font-size:14px}#commission .tbs li[data-v-2643ce58]{line-height:24px}#commission .tbs .item1[data-v-2643ce58]{color:#000;text-align:left}#commission .tbs .item1[data-v-2643ce58],#commission .tbs .item2[data-v-2643ce58]{-webkit-box-flex:50%;-webkit-flex:50%;-ms-flex:50%;flex:50%}#commission .tbs .item2[data-v-2643ce58]{text-align:right;color:#333}#commission .tbs .item2 .reg[data-v-2643ce58]{color:#259b24}#commission .tbs .item2 .unreg[data-v-2643ce58]{color:#333}#commission .tbs .item2 .time[data-v-2643ce58]{color:#8c8c8c}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var s=document.documentElement,o=document.body,a={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&s.clientHeight?Math.min(o.clientHeight,s.clientHeight):Math.max(o.clientHeight,s.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}}}]); |