bztang-admin/addons/yun_shop/static/app/js/chunk-f02f8800.5e3d84a0.js

1 line
7.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f02f8800","chunk-2d0d83d6"],{"5ea1":function(t,e,i){"use strict";i("8c11")},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},"8c11":function(t,e,i){var a=i("8c41");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var l=i("499e").default;l("4ad45619",a,!0,{sourceMap:!1,shadowMode:!1})},"8c41":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#install_income .member_info[data-v-5d377d8e]{height:7.375rem;background-color:#f15353;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#install_income .member_info .avatar[data-v-5d377d8e]{width:3.125rem;height:3.125rem;border:3px solid #fff;border-radius:100%;overflow:hidden;margin:0 0 .5rem}#install_income .member_info .name[data-v-5d377d8e]{font-size:1rem;line-height:1.5rem;color:#fff}#install_income .total_list[data-v-5d377d8e]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;background:#fff;margin-bottom:.65rem}#install_income .total_list[data-v-5d377d8e],#install_income .total_list .total_child[data-v-5d377d8e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#install_income .total_list .total_child[data-v-5d377d8e]{height:5.875rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#install_income .total_list .total_child .num[data-v-5d377d8e]{font-size:1rem;color:#333;margin-bottom:.5rem}#install_income .total_list .total_child .num_name[data-v-5d377d8e]{font-size:.875rem;color:#666}#install_income .tab_box[data-v-5d377d8e]{padding:0 .75rem;background:#fff}#install_income .tab_box .list_child[data-v-5d377d8e]{width:100%;height:4.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#install_income .tab_box .list_child .childs[data-v-5d377d8e]{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;line-height:1.625rem}#install_income .tab_box .list_child .childs .order_sn[data-v-5d377d8e]{color:#000}#install_income .tab_box .list_child .childs .money[data-v-5d377d8e]{color:#f15353}#install_income .tab_box .list_child .childs .status[data-v-5d377d8e],#install_income .tab_box .list_child .childs .time[data-v-5d377d8e]{color:#666}",""]),t.exports=e},a55c:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"install_income"}},[i("c-title",{attrs:{hide:!1,text:t.diyName}}),i("div",{staticClass:"member_info"},[i("img",{staticClass:"avatar",attrs:{src:t.info.avatar,alt:""}}),i("p",{staticClass:"name"},[t._v(t._s(t.info.nickname))])]),i("div",{staticClass:"total_list"},[i("div",{staticClass:"total_child"},[i("p",{staticClass:"num"},[t._v(t._s(t.info.grand_total))]),i("p",{staticClass:"num_name"},[t._v("累计金额(元)")])]),i("div",{staticClass:"total_child"},[i("p",{staticClass:"num"},[t._v(t._s(t.info.unsettlement_total))]),i("p",{staticClass:"num_name"},[t._v("未结算(元)")])]),i("div",{staticClass:"total_child"},[i("p",{staticClass:"num"},[t._v(t._s(t.info.settlement_total))]),i("p",{staticClass:"num_name"},[t._v("已结算(元)")])])]),i("div",{staticClass:"tab_box"},[i("van-tabs",{attrs:{sticky:"","offset-top":39,swipeable:""},on:{click:t.getList},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.arr,(function(e,a){return i("van-tab",{key:a,attrs:{title:e.title}},t._l(t.list,(function(e){return i("div",{key:e.id,staticClass:"list_child"},[i("div",{staticClass:"childs"},[i("div",{staticClass:"order_sn"},[t._v("订单号:"+t._s(e.order_sn))]),i("div",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(e.amount))])]),i("div",{staticClass:"childs"},[i("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))]),i("div",{staticClass:"status"},[t._v(t._s(1==e.status?"已结算":"未结算"))])])])})),0)})),1)],1),i("yz-blank",{attrs:{datas:t.list}})],1)},l=[],n=(i("e7e5"),i("d399")),s=(i("99af"),i("6968")),o=i("ac0d"),c=i("eb17"),r={mixins:[o["a"]],data:function(){return{info:{},list:{},active:0,url:"",isLoadMore:!0,page:1,total_page:0,arr:[],diyName:JSON.parse(window.localStorage.getItem("globalParameter")).assemble_worker_name||""}},activated:function(){this.init(),this.getInfo()},components:{cTitle:s["a"],yzBlank:c["default"]},computed:{},methods:{init:function(){this.list=[],this.isLoadMore=!0,this.page=1,this.total_page=0},getInfo:function(){var t=this;$http.post("plugin.assemble.Frontend.Modules.Income.Controllers.page",{},"").then((function(e){1===e.result?(t.info=e.data,1==e.data.identity?t.arr=[{title:t.diyName,url:"plugin.assemble.Frontend.Modules.Income.Controllers.wages"}]:2==e.data.identity?t.arr=[{title:"区域代理",url:"plugin.assemble.Frontend.Modules.Income.Controllers.bonus"}]:3==e.data.identity&&(t.arr=[{title:t.diyName,url:"plugin.assemble.Frontend.Modules.Income.Controllers.wages"},{title:"区域代理",url:"plugin.assemble.Frontend.Modules.Income.Controllers.bonus"}]),t.getList()):Object(n["a"])(e.msg)})).catch((function(t){}))},getList:function(){var t=this;this.url=this.arr[this.active].url,$http.post(this.url,{},"").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.list=e.data.data):Object(n["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page)){var e={};this.page=this.page+1,e.page=this.page,$http.post(this.url,e,"加载中").then((function(e){var i=e.data;if(t.isLoadMore=!0,1===i.result){var a=i.data.data;t.list=t.list.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}}},d=r,m=(i("5ea1"),i("2877")),u=Object(m["a"])(d,a,l,!1,null,"5d377d8e",null);e["default"]=u.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,l=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 a&&a.scrollTop?t=a.scrollTop:l&&(t=l.scrollTop),t},getClientHeight:function(){var t=0;return t=l.clientHeight&&a.clientHeight?Math.min(l.clientHeight,a.clientHeight):Math.max(l.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(l.scrollHeight,a.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(){}}}}}]);