bztang-admin/addons/yun_shop/static/app/js/chunk-65ffdb78.e10c155e.js

1 line
6.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65ffdb78"],{"419b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-statistics"},[a("c-title",{attrs:{text:"数据统计"}}),a("header",{staticClass:"header"},[t.agency_info&&t.agency_info.has_one_member?a("van-image",{attrs:{round:"",width:"3.4375rem",height:"3.4375rem",src:t.agency_info.has_one_member.avatar_image}}):t._e(),t.agency_info&&t.agency_info.has_one_member&&t.agency_info.has_one_level?a("div",{staticClass:"user-info"},[a("p",{staticClass:"nick-name"},[t._v(t._s(t.agency_info.has_one_member.nickname))]),a("p",{staticClass:"level"},[t._v(t._s(t.agency_info.has_one_level.level_name))])]):t._e(),a("div",{staticClass:"achievement"},[a("span",[t._v("累计团队业绩")]),t.agency_info.team_order_price?a("span",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.agency_info.team_order_price))]):t._e()])],1),a("div",{staticClass:"h-31"}),a("main",{staticClass:"main"},[a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"直推下级"}})],1),0==t.active?[a("van-cell-group",[t.list&&0!==t.list.length?t._l(t.list,(function(e){return a("van-cell",{key:e.id,scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"flex align-center"},[a("van-image",{attrs:{round:"",width:"2.1875rem",height:"2.1875rem",src:e.has_one_member?e.has_one_member.avatar_image:""}}),a("div",{staticClass:"user-info"},[a("p",{staticClass:"nick-name"},[t._v(t._s(e.has_one_member?e.has_one_member.nickname:""))]),a("p",{staticClass:"user-id"},[t._v("ID:"+t._s(e.uid))])])],1)]},proxy:!0},{key:"default",fn:function(){return[a("div",{staticClass:"content-right"},[a("p",{staticClass:"tram"},[t._v("团队业绩:"),a("span",{staticClass:"money"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.team_order_price))])]),a("p",{staticClass:"tel"},[t._v("手机号:"+t._s(e.has_one_member?e.has_one_member.mobile:""))])])]},proxy:!0}],null,!0)})})):t._e()],2)]:t._e()],2),0==t.list.length?a("van-empty",{attrs:{description:"暂无数据"}}):t._e()],1)},s=[],n=(a("4056"),a("44bf")),o=(a("99af"),a("ac0d")),l={mixins:[o["a"]],data:function(){return{agency_info:{},active:0,list:[],page:1,last_page:1,loading:!1,isLoadMore:!0}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.love-speed-pool.frontend.statistic.index").then((function(e){if(0==e.result)return t.$toast(e.msg);t.agency_info=e.data.agency_info||{},t.list=e.data.child_list.data||[],t.last_page=e.data.child_list.last_page}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.last_page||(this.page=this.page+1,$http.get("plugin.love-speed-pool.frontend.statistic.index",{page:this.page}).then((function(e){if(t.isLoadMore=!0,0==e.result)return t.$toast(e.msg);t.list=t.list.concat(e.data.child_list.data),t.last_page=e.data.child_list.last_page,t.page=e.data.child_list.current_page})))}},components:{VanImage:n["a"]}},r=l,c=(a("564ef"),a("2877")),d=Object(c["a"])(r,i,s,!1,null,"217a8587",null);e["default"]=d.exports},"4e7b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".data-statistics[data-v-217a8587] .van-cell{margin-bottom:.625rem;border-radius:.3125rem}.data-statistics[data-v-217a8587] .van-cell-group{background-color:unset}.data-statistics .flex[data-v-217a8587]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.data-statistics .align-center[data-v-217a8587]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.data-statistics .h-31[data-v-217a8587]{height:1.9375rem}.data-statistics .header[data-v-217a8587]{background:#ff8924;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.2813rem 0 2.625rem .9688rem;text-align:left}.data-statistics .header .money[data-v-217a8587]{color:#f14e4e}.data-statistics .header .achievement[data-v-217a8587]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;left:.625rem;bottom:-1.25rem;background:#fff;width:22.1875rem;height:2.5rem;border-radius:.3125rem;padding:0 .8438rem}.data-statistics .header .user-info[data-v-217a8587]{margin-left:.4375rem}.data-statistics .header .nick-name[data-v-217a8587]{color:#fff}.data-statistics .header .level[data-v-217a8587]{margin-top:.9688rem;text-align:center;border-radius:.625rem;font-size:.6875rem;padding:.2125rem .625rem;color:#ba750c;background:#fff}.data-statistics .main[data-v-217a8587]{margin:0 .625rem}.data-statistics .main .money[data-v-217a8587]{color:#f14e4e}.data-statistics .main .tram[data-v-217a8587]{font-size:.75rem;color:#363636}.data-statistics .main .tel[data-v-217a8587]{font-size:.6875rem}.data-statistics .main .nick-name[data-v-217a8587]{font-size:.8125rem}.data-statistics .main .user-info[data-v-217a8587]{margin-left:.4375rem;text-align:left}.data-statistics .main .user-id[data-v-217a8587]{font-size:.6875rem;color:#696969}",""]),t.exports=e},"564ef":function(t,e,a){"use strict";a("e44a")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,s=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 i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,i.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(){}}}},e44a:function(t,e,a){var i=a("4e7b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("3597df03",i,!0,{sourceMap:!1,shadowMode:!1})}}]);