webpackJsonp([42],{UJRn:function(t,e){},rRmN:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("3cXf"),n=s.n(a),i={components:{drContrast:s("nWGx").a},data:function(){return{hrOneLevelTag:[],hrOneLevelTagList:[],hrOneLevelTagMoreFlag:0,infoList:[],noneDone:!1,hasAuno:!1,loading:!1,total:0,page:1,pageSize:20,worthType:0,worthTypeList:[{label:0,value:"综合"},{label:2,value:"直播"},{label:1,value:"视频"}],drContrastRefresh:!1}},created:function(){this.getOneLevelTag(),this.getRankList(1)},mounted:function(){},methods:{addDrContrast:function(t){var e=t.index,s=t.user_id,a=t.headurl;this.$refs.popover[e].doClose();var i=this.$localSelfStore.getLocal("kuai_dr_contrast")?JSON.parse(this.$localSelfStore.getLocal("kuai_dr_contrast")):[];return i.length>=5?(this.$message.closeAll(),void this.$message({message:"最多只能添加5名达人进行对比!",type:"warning"})):0!=i.filter(function(t){return t.user_id==s}).length?(this.$message.closeAll(),void this.$message({message:"Ta已经被添加过了!",type:"warning"})):(i.push({user_id:s,headurl:a}),this.$localSelfStore.setLocal("kuai_dr_contrast",n()(i)),void(this.drContrastRefresh=!this.drContrastRefresh))},getRankList:function(t,e){var s=this;this.total=0,this.page=t,this.infoList=[],this.loading=!0;var a=[];this.hrOneLevelTag.forEach(function(t,e){a.push(t.id)}),this.$axios.get(this.URL.BASEURL+this.URL.kuai_kwaimarket_valueRankList,{params:{page:this.page,pagesize:this.pageSize,signs:a,type:this.worthType}}).then(function(t){t=t.data;s.loading=!1,t&&0==t.errno?(s.infoList=t.rst.data,s.total=t.rst.pageInfo.total,e&&e()):s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},worthTypeEvent:function(t){this.getRankList(1)},handleCurrentChange:function(t){this.getRankList(t)},selectHrOneLevel:function(t){var e=this.hrOneLevelTag.filter(function(e){return e.id!=t.id});if(e.length==this.hrOneLevelTag.length){if(5==this.hrOneLevelTag.length)return void this.$message({message:"最多只能选择5个作品标签",type:"warning"});this.hrOneLevelTag.push(t)}else this.hrOneLevelTag=e},getOneLevelTag:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.tag_signList,{params:{id:0}}).then(function(e){(e=e.data)&&0==e.errno?(t.hrOneLevelTagList=e.rst,t.$nextTick(function(){document.getElementById("hrOneLevelTagBox").offsetHeight0?a("div",{staticClass:"bottom"},[a("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.pageSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e(),t._v(" "),!t.noneDone&&t.hasAuno&&!t.loading&&t.infoList.length>0?a("list-permission"):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?a("nopermission"):t._e(),t._v(" "),a("dr-contrast",{attrs:{refresh:t.drContrastRefresh}})],1)},staticRenderFns:[]};var r=s("C7Lr")(i,o,!1,function(t){s("UJRn")},"data-v-f2dd583c",null);e.default=r.exports}});