bztang-admin/addons/yun_shop/static/app/js/chunk-6f2e1862.71e731f2.js

1 line
7.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f2e1862"],{"385f":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:"myFridens"}},[i("c-title",{attrs:{hide:!1,text:t.diyName}}),i("div",{attrs:{id:"content"}},[i("div",{staticClass:"nav"},[i("div",{staticClass:"nav_box"},[i("ul",{staticClass:"nav_item"},t._l(t.tabs,(function(e,a){return i("li",{key:a,class:t.selected===a?"tab-item tab":"tab-item",on:{click:function(i){return t.changeTab(e,a)}}},[t._v(" "+t._s(e.level_name)),i("i",{staticStyle:{color:"#000"}},[t._v("("+t._s(e.count)+")")]),i("i",{staticStyle:{color:"#f15353"}},[t._v("("+t._s(e.count_order)+")")])])})),0)]),i("div",{staticClass:"list_box"},[t._l(t.bossList,(function(e,a){return i("div",{key:a,staticClass:"box"},[e.has_one_member?i("div",{staticClass:"client"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.has_one_member.avatar_image}})]),i("ul",{staticClass:"name"},[i("li",[i("h2",[t._v(" "+t._s(e.has_one_member.nickname)+"("+t._s(e.level_name)+") ")]),i("span",[t._v("会员ID:"+t._s(e.has_one_member.uid))]),i("span",{staticClass:"rightTime"},[t._v(t._s(e.created_at))])]),i("li",{staticClass:"btnList"},[i("span",{class:{activeClass:e.member_count>0}},[t._v("直推:"+t._s(e.member_count))]),i("span",{class:{activeClass:e.member_child_count>0}},[t._v("团队:"+t._s(e.member_child_count))]),i("span",{class:{activeClass:e.order_count>0}},[t._v("业绩:"+t._s(e.order_count))])])])]):t._e()])})),t.showNoText?i("h2",[t._v("没有搜索到相关数据")]):t._e()],2)])])],1)},n=[],o=(i("e7e5"),i("d399")),s=(i("99af"),i("6968")),l=i("ac0d"),r=document.documentElement,c={mixins:[l["a"]],data:function(){return{tabs:[],selected:0,tabID:0,bossList:[],detail:{},uid:0,inNickName:"",showNoText:!1,diyName:"我的朋友",isLoadMore:!0,page:1,total_page:0}},activated:function(){this.bossList=[],this.initData(),this.getTab()},methods:{initData:function(){this.tabs=[],this.selected=0,this.tabID=0,this.detail={},this.uid=0,this.page=1,this.total_page=0,this.isLoadMore=!0,this.bossList=[]},getTab:function(){var t=this;$http.get("plugin.my-friend.api.my-friend.get-columns",{}).then((function(e){1===e.result?(t.tabs=e.data.columns,t.tabID=t.tabs[0].id,t.diyName=e.data.my_friend_name||"我的朋友",t.fun.setWXTitle(t.diyName),t.getData()):Object(o["a"])(e.msg)}),(function(t){Object(o["a"])(t.msg)}))},changeTab:function(t,e){this.selected=e,this.tabID=t.id,r.scrollTop=0,this.getData()},getData:function(){var t=this;t.isLoadMore=!1,t.page=1,$http.post("plugin.my-friend.api.my-friend.get-list",{id:t.tabID},"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.list.last_page,t.total_page||(t.total_page=0),t.bossList=e.data.list.data,t.showNoText=t.fun.isTextEmpty(t.bossList)):Object(o["a"])(e.msg)}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.my-friend.api.my-friend.get-list",{id:t.tabID,page:t.page},"加载中...").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.list.data;t.bossList=t.bossList.concat(i)}),(function(t){})))}},components:{cTitle:s["a"]}},d=c,m=d,b=(i("9fc8"),i("2877")),h=Object(b["a"])(m,a,n,!1,null,"f9731176",null);e["default"]=h.exports},6517:function(t,e,i){var a=i("da70");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("dcfb0862",a,!0,{sourceMap:!1,shadowMode:!1})},"9fc8":function(t,e,i){"use strict";i("6517")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,n=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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},da70:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#myFridens #content .nav .nav_box[data-v-f9731176]{border-bottom:.0625rem solid #ebebeb;padding:0 .625rem;margin-bottom:.5rem;background-color:#fff;text-align:center}#myFridens #content .nav .nav_box .nav_item[data-v-f9731176]{height:2.75rem;line-height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;white-space:nowrap;overflow-x:auto}#myFridens #content .nav .nav_box .nav_item li[data-v-f9731176]{margin:0 .625rem;font-size:15px;max-width:14rem;display:inline-block}#myFridens #content .nav .nav_box .nav_item .tab[data-v-f9731176]{border-bottom:5px solid #f15353;color:#f15353;-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:5px}#myFridens #content .nav .nav_box .nav[data-v-f9731176]::-webkit-scrollbar,#myFridens #content .nav .nav_box[data-v-f9731176]::-webkit-scrollbar{display:none}#myFridens #content .nav .list_box[data-v-f9731176]{margin-top:.375rem}#myFridens #content .nav .list_box .box .client[data-v-f9731176]{background-color:#fff;padding:.75rem 1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;border-bottom:.0625rem solid #ebebeb}#myFridens #content .nav .list_box .box .client .show_detail[data-v-f9731176]{-webkit-transform:rotate(90deg);transform:rotate(90deg)}#myFridens #content .nav .list_box .box .client .img[data-v-f9731176]{width:3rem;height:3rem;border-radius:1.5rem;overflow:hidden}#myFridens #content .nav .list_box .box .client .img img[data-v-f9731176]{width:3rem;height:3rem;background-size:cover}#myFridens #content .nav .list_box .box .client .name[data-v-f9731176]{text-align:left;margin-left:.625rem;width:18rem}#myFridens #content .nav .list_box .box .client .name li h2[data-v-f9731176]{font-weight:400;color:#000}#myFridens #content .nav .list_box .box .client .name li span[data-v-f9731176]{font-weight:400;color:#8c8c8c;font-size:.75rem;width:50%;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#myFridens #content .nav .list_box .box .client .name li .rightTime[data-v-f9731176]{float:right;text-align:right}#myFridens #content .nav .list_box .box .client .name .btnList span[data-v-f9731176]{width:auto;padding:0 .4rem;height:1.6rem;line-height:1.6rem;text-align:center;display:inline-block;background:#000;color:#fff;border-radius:.25rem}#myFridens #content .nav .list_box .box .client .name .btnList .activeClass[data-v-f9731176]{background-color:#f15353}#myFridens #content .nav .list_box .box .client .name li[data-v-f9731176]:first-child{line-height:1.5rem;font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#myFridens #content .nav .list_box .box .client .name li[data-v-f9731176]:last-child{font-size:14px;color:#8c8c8c}#myFridens #content .nav .list_box .box .client i[data-v-f9731176]{position:absolute;right:1.25rem;font-size:1.75rem;color:#999;line-height:3rem}",""]),t.exports=e}}]);