bztang-admin/addons/yun_shop/static/app/js/chunk-7ac77144.e77b2f2e.js

1 line
7.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ac77144","chunk-2d0d83d6"],{"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},8328:function(t,e,i){var a=i("c858");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var l=i("499e").default;l("2cd3bf07",a,!0,{sourceMap:!1,shadowMode:!1})},"99fb":function(t,e,i){"use strict";i("8328")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,l=document.body,o={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(){}}}},b9243: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:"referral_officer"}},[i("c-title",{attrs:{hide:!1,text:t.info.custom_name}}),i("div",{staticClass:"member_info"},[i("img",{staticClass:"avatar",attrs:{src:t.info.avatar,alt:""}}),i("div",{staticClass:"text"},[i("p",{staticClass:"name"},[t._v(t._s(t.info.nickname))]),i("div",{staticStyle:{display:"flex"}},[i("div",{staticClass:"grade"},[t._v(t._s(t.info.level_name))])])])]),i("div",{staticClass:"total_list"},[i("div",{staticClass:"total_child"},[i("p",{staticClass:"num"},[t._v(t._s(t.info.acount?t.info.acount[1].total:"-"))]),i("p",{staticClass:"num_name"},[t._v("累计金额(元)")])]),i("div",{staticClass:"total_child"},[i("p",{staticClass:"num"},[t._v(t._s(t.info.acount?t.info.acount[0].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.getInfo},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}},t._l(t.list,(function(e){return i("router-link",{key:e.id,staticClass:"list_child",attrs:{to:t.fun.getUrl("referral_officerDetail",{id:e.id}),tag:"div"}},[i("div",{staticClass:"childs"},[i("div",{staticClass:"order_sn"},[t._v("提成ID:"+t._s(e.id))]),i("div",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+" "+t._s(e.reward_money))])]),i("div",{staticClass:"childs"},[i("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))]),i("div",{staticClass:"status"},[t._v(t._s(e.state_name))])])])})),1)})),1)],1),i("yz-blank",{attrs:{datas:t.list}})],1)},l=[],o=(i("e7e5"),i("d399")),r=(i("99af"),i("ac0d")),c=i("eb17"),s={mixins:[r["a"]],data:function(){return{info:{},list:{},active:0,isLoadMore:!0,page:1,total_page:0,arr:["全部","未结算","已结算"]}},activated:function(){this.init(),this.getInfo(!0)},components:{yzBlank:c["default"]},computed:{},methods:{init:function(){this.list=[],this.isLoadMore=!0,this.page=1,this.total_page=0},getInfo:function(t){var e=this;$http.post("plugin.recommender.api.index.index",{state:this.active},"").then((function(i){1===i.result?(e.info=i.data,e.isLoadMore=!0,e.total_page=i.data.list.last_page,e.total_page||(e.total_page=0),e.list=i.data.list.data,t&&e.fun.setWXTitle(e.info.custom_name)):Object(o["a"])(i.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page)){var e={state:this.active};this.page=this.page+1,e.page=this.page,$http.post("plugin.recommender.api.index.index",e,"加载中").then((function(e){var i=e.data;if(t.isLoadMore=!0,1===i.result){var a=i.data.list.data;t.list=t.list.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){}))}}}},n=s,d=(i("99fb"),i("2877")),f=Object(d["a"])(n,a,l,!1,null,"b5c7d76c",null);e["default"]=f.exports},c858:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#referral_officer .member_info[data-v-b5c7d76c]{height:7.375rem;background-color:#ee2e2b;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:0 1rem}#referral_officer .member_info .avatar[data-v-b5c7d76c]{width:3.125rem;height:3.125rem;border:3px solid #fff;border-radius:100%;overflow:hidden;margin:0 .5rem 0 0}#referral_officer .member_info .text[data-v-b5c7d76c]{overflow:hidden;text-align:left;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#referral_officer .member_info .text .name[data-v-b5c7d76c]{font-size:1rem;line-height:1.5rem;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#referral_officer .member_info .text .grade[data-v-b5c7d76c]{padding:0 .875rem;color:#fff;border-radius:1rem;height:1.25rem;line-height:1.25rem;background:hsla(0,0%,100%,.4);font-size:.75rem}#referral_officer .total_list[data-v-b5c7d76c]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;background:#fff;margin-bottom:.65rem}#referral_officer .total_list[data-v-b5c7d76c],#referral_officer .total_list .total_child[data-v-b5c7d76c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#referral_officer .total_list .total_child[data-v-b5c7d76c]{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}#referral_officer .total_list .total_child .num[data-v-b5c7d76c]{font-size:1rem;color:#333;margin-bottom:.5rem}#referral_officer .total_list .total_child .num_name[data-v-b5c7d76c]{font-size:.875rem;color:#666}#referral_officer .tab_box[data-v-b5c7d76c]{padding:0 .75rem;background:#fff}#referral_officer .tab_box .list_child[data-v-b5c7d76c]{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}#referral_officer .tab_box .list_child .childs[data-v-b5c7d76c]{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}#referral_officer .tab_box .list_child .childs .order_sn[data-v-b5c7d76c]{color:#000}#referral_officer .tab_box .list_child .childs .money[data-v-b5c7d76c]{color:#f15353}#referral_officer .tab_box .list_child .childs .status[data-v-b5c7d76c],#referral_officer .tab_box .list_child .childs .time[data-v-b5c7d76c]{color:#666}",""]),t.exports=e}}]);