bztang-admin/addons/yun_shop/static/app/js/chunk-599c9bec.3206c210.js

1 line
3.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-599c9bec"],{"76d9":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:"page"},[a("c-title",{attrs:{hide:!1,text:"粉丝列表"}}),a("div",{staticClass:"listData"},t._l(t.listData,(function(e){return a("div",{key:e.uid,staticClass:"item"},[a("div",{staticClass:"face"},[a("img",{attrs:{src:e.avatar_image,alt:""}})]),a("div",{staticClass:"desc"},[t._v(t._s(e.nickname))])])})),0)],1)},o=[],n=(a("99af"),a("6968")),s=a("ac0d"),l={mixins:[s["a"]],components:{cTitle:n["a"]},data:function(){return{listData:[],page:1,isLoadMore:!0,total_page:0}},created:function(){this.getData()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},getData:function(){var t=this;this.initData(),$http.get("plugin.room.frontend.live.get-fans-list",{anchor_member_id:this.$route.query.memberId}).then((function(e){1===e.result&&(t.listData=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0))}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.room.frontend.live.get-fans-list",{anchor_member_id:this.$route.query.memberId,page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))}}},r=l,c=(a("b57b"),a("2877")),d=Object(c["a"])(r,i,o,!1,null,"41b74ca2",null);e["default"]=d.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=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: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(){}}}},b57b:function(t,e,a){"use strict";a("f4a1")},d549:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-41b74ca2]{min-height:100vh;background:#fff}.listData .item[data-v-41b74ca2]{height:3.438rem;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 .938rem;border-bottom:.031rem solid #f2f2f2}.listData .item .face[data-v-41b74ca2],.listData .item .face img[data-v-41b74ca2]{width:1.563rem;height:1.563rem;border-radius:50%;background-color:#f8f8fa}.listData .item .desc[data-v-41b74ca2]{font-size:.875rem;color:#333;padding-left:.469rem}",""]),t.exports=e},f4a1:function(t,e,a){var i=a("d549");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("8f13dbfc",i,!0,{sourceMap:!1,shadowMode:!1})}}]);