bztang-admin/addons/yun_shop/static/app/js/chunk-5db9a971.0d1e2f8f.js

1 line
3.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5db9a971"],{"64de":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("c-title",{attrs:{text:"提成概括"}}),i("div",{staticClass:"top-tab-select"},[i("tab-select",{attrs:{rightBoxText:"合计金额",orderTotal:t.order_total,countAmount:t.total_amount,recommendText:t.recommend_text,noRecommendTtext:t.no_recommend_text,showTypeTab:t.showTypeTab},on:{loadData:t.switchTab}})],1),t.rewardList.length>0?i("div",{staticClass:"list"},[i("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.getData}},t._l(t.rewardList,(function(e){return i("van-cell",{key:e},[[i("div",{staticClass:"top"},[i("span",[t._v(t._s(e.order_sn))]),i("span",{staticClass:"money"},[t._v(t._s(e.amount))])]),i("div",{staticClass:"bottom"},[i("span",{staticClass:"timer"},[t._v(t._s(e.created_at))]),i("span",{staticClass:"status"},[t._v(t._s(e.status_name))])])]],2)})),1)],1):i("div",{staticClass:"empty"},[i("img",{attrs:{src:a("22af")}}),i("div",{staticClass:"text"},[t._v("还没有记录哦")])])],1)},s=[],o=a("c7eb"),n=a("1da1"),r=(a("99af"),a("6968")),d=a("94b4"),c=a("8890"),l={data:function(){return{showTypeTab:!0,time_type:1,order_type:0,loading:!1,finished:!1,page:1,rewardList:[],order_total:0,total_amount:0,recommend_text:"",no_recommend_text:""}},computed:{},activated:function(){this.initData(),this.getData()},methods:{switchTab:function(t){this.initData(),this.order_type=t.orderType||this.order_type,this.time_type=t.dataFormat||this.time_type,this.getData()},getData:function(t){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.finished&&!e.loading){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.next=5,$http.get("plugin.team-dividend.api.commission-survey.index",{page:e.page,recommend_ytpe:e.order_type,time_type:e.time_type},"正在获取列表");case 5:if(a=t.sent,1===a.result){t.next=9;break}return Toast(a.msg),t.abrupt("return");case 9:if(e.page++,e.loading=!1,e.total_amount=a.data.total_amount,e.order_total=a.data.order_total,e.recommend_text=a.data.recommend_text,e.no_recommend_text=a.data.no_recommend_text,i=a.data.list,(i.last_page===i.current_page||i.data.length<i.per_page)&&(e.finished=!0),!(i.current_page>1)){t.next=20;break}return e.rewardList=e.rewardList.concat(i.data),t.abrupt("return");case 20:e.rewardList=i.data;case 21:case"end":return t.stop()}}),t)})))()},initData:function(){this.loading=!1,this.finished=!1,this.page=1,this.order_type=0,this.time_type=1,this.rewardList=[],this.order_total=0,this.total_amount=0}},components:{cTitle:r["a"],DList:d["a"],tabSelect:c["a"]}},p=l,m=(a("fe30"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"40aed561",null);e["default"]=u.exports},"70ea7":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list[data-v-40aed561]{margin-top:10px}.list .bottom[data-v-40aed561],.list .top[data-v-40aed561]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;color:#202020}.list .bottom .money[data-v-40aed561],.list .top .money[data-v-40aed561]{color:#f15353}.list .bottom .timer[data-v-40aed561],.list .top .timer[data-v-40aed561]{font-size:12px;color:#8c8c8c}.empty[data-v-40aed561]{padding:2rem 0 4rem 0}.empty img[data-v-40aed561]{width:6rem;height:6rem}.empty .text[data-v-40aed561]{margin-top:15px;color:#ccc;font-size:14px}",""]),t.exports=e},a824f:function(t,e,a){var i=a("70ea7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("70417120",i,!0,{sourceMap:!1,shadowMode:!1})},fe30:function(t,e,a){"use strict";a("a824f")}}]);