bztang-admin/addons/yun_shop/static/app/js/chunk-4798cf79.54f366ae.js

1 line
5.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4798cf79"],{"83a7d":function(t,e,a){"use strict";a("d040")},"99ff":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#award_detail[data-v-66b40140]{background:#fff}#award_detail #title[data-v-66b40140]{position:fixed;top:0;background:#fff;width:100%;height:2.5rem;line-height:2.5rem;border-bottom:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#award_detail #title i[data-v-66b40140]{width:2.5rem;height:2.5rem;font-size:1.5rem;color:#666;line-height:2.5rem}#award_detail #title p[data-v-66b40140]{font-weight:700;font-size:16px;color:#333}#award_detail #title p span[data-v-66b40140]{font-weight:400;color:#8c8c8c;margin-left:.625rem;font-size:14px}#award_detail #content[data-v-66b40140]{background:#fff}#award_detail #content .list[data-v-66b40140]{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-left:.875rem}#award_detail #content .list .img[data-v-66b40140]{width:2.5rem;height:2.5rem;border-radius:2rem;border:.0625rem solid #f5f5f5;overflow:hidden}#award_detail #content .list .img img[data-v-66b40140]{width:100%}#award_detail #content .list .name[data-v-66b40140]{width:19.6875rem;margin-left:.625rem;border-bottom:.0625rem solid #ebebeb}#award_detail #content .list .name li[data-v-66b40140]{line-height:3.75rem;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:18px;padding-right:.875rem}#award_detail #content .list .name li span[data-v-66b40140]:first-child{max-width:12.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.pcStyle[data-v-66b40140]{width:375px!important}",""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var i=document.documentElement,o=document.body,l={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},b17d:function(t,e,a){t.exports=a.p+"static/app/img/photo-mr.5cc2c462.jpg"},d040:function(t,e,a){var i=a("99ff");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("5d6695ab",i,!0,{sourceMap:!1,shadowMode:!1})},fdad: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",{attrs:{id:"award_detail"}},[i("div",{class:[{mout:t.amout},3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"title"}},[i("i",{staticClass:"fa fa-angle-left",on:{click:t.goBack}}),i("p",[t._v(t._s(t.title)),i("span",[t._v("(合计:"+t._s(t.total_num)+"人)")])])]),i("div",{staticStyle:{height:"40px"}}),i("div",{attrs:{id:"content"}},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.member_arr,(function(e,o){return i("div",{key:o,staticClass:"list"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.has_one_member.avatar?e.has_one_member.avatar:a("b17d")}})]),i("ul",{staticClass:"name"},[i("li",[i("span",[t._v(t._s(e.has_one_member.nickname))]),i("span",[t._v("ID:"+t._s(e.has_one_member.uid))])])])])})),0)],1)])},o=[],l=(a("99af"),a("6968")),n=a("ac0d"),r="plugin.mryt.api.home.get-member-list",s="plugin.mryt.api.home.get-sales-member-list",d={mixins:[n["a"]],data:function(){return{title:"",url:"",member_arr:[],total_num:0,loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,isLoading:!1}},activated:function(){this.initData(),this.getData()},methods:{goBack:function(){window.history.length<=1?this.$router.push(this.fun.getUrl("home",{})):this.$router.go(-1)},initData:function(){this.title="",this.url="",this.loading=!1,this.allLoaded=!1,this.goload=!0,this.total_num=0,this.isLoadMore=!0,this.total_page=0,this.member_arr=[]},getData:function(){var t=this,e="",a={};"team_cost_count"==this.$route.params.team_type?e=s:(e=r,a={page:this.page,member_type:this.$route.params.team_type,level:this.$route.params.level}),$http.get(e,a,"加载中...").then((function(e){1==e.result&&(t.member_arr=e.data.member.data,t.total_page=e.data.member.last_page,t.title=e.data.level_name,t.total_num=e.data.member.total?e.data.member.total:0,t.isLoading=!1)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore){if(this.page==this.total_page)return;if(this.page>=this.total_page)return this.loading=!0,void(this.allLoaded=!0);this.page=this.page+1;var e="",a={};"team_cost_count"==this.$route.params.team_type?e=s:(e=r,a={page:this.page,member_type:this.$route.params.team_type,level:this.$route.params.level}),$http.get(e,a,"加载中...").then((function(e){if(1!=e.result)return t.page=t.page-1,t.loading=!0,t.allLoaded=!0,void(t.isLoadMore=!1);t.loading=!1,t.allLoaded=!1,t.member_arr=t.member_arr.concat(e.data.member.data)})).catch((function(t){}))}},loadTop:function(){this.initData(),this.getData()}},components:{cTitle:l["a"]}},c=d,m=c,h=(a("83a7d"),a("2877")),p=Object(h["a"])(m,i,o,!1,null,"66b40140",null);e["default"]=p.exports}}]);