webpackJsonp([50],{BVLR:function(t,e){},vevG:function(t,e,s){"use strict";function i(t){var e=new Date,s=e.getMinutes();e.setMinutes(s+t);return e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate())+" "+(e.getHours()<10?"0"+e.getHours():e.getHours())+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":00"}Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{au_nums:"",noneDone:!1,hasAuno:!1,stime:this.getDay(-30,!0),etime:"",typeList:[],infoList:[],dataType:"",loading:!1,sort_type:"digg_count",timeList:[{label:1,value:"6小时",start_time:i(-360),end_time:""},{label:2,value:"12小时",start_time:i(-720),end_time:""},{label:3,value:"24小时",start_time:i(-1440),end_time:""},{label:4,value:"近3天",start_time:this.getDay(-3,!0),end_time:""},{label:5,value:"近7天",start_time:this.getDay(-7,!0),end_time:""},{label:6,value:"近15天",start_time:this.getDay(-15,!0),end_time:""},{label:7,value:"近30天",start_time:this.getDay(-30,!0),end_time:""}],time:7,export_size:500,page_size:20,page:1,total:0}},created:function(){this.getType(),this.init(1)},methods:{toDetail:function(t){var e=this.$router.resolve({path:"/videoDetail/"+t.aweme_id+"/"+t.uid});window.open(e.href,"_blank")},toUrl:function(t){window.open(t,"_blank")},getType: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.typeList=e.rst:t.$message({message:e.err,type:"warning"})}).catch(function(t){})},sortEvent:function(t){if(this.$message.closeAll(),this.hasAuno||this.noneDone)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});this.sort_type==t||(this.sort_type=t,this.init(1))},handleCurrentChange:function(t){this.init(t)},init:function(t){var e=this;if(this.$message.closeAll(),this.noneDone||this.hasAuno)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});this.page=t,this.infoList=[],this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.videoRanklist,{params:{signs:""==this.dataType?[]:[this.dataType],start_time:this.stime,end_time:this.etime,sort:this.sort_type,page:this.page,pagesize:this.page_size}}).then(function(t){if(e.loading=!1,4403==(t=t.data).auno?(e.au_nums=t.au_nums,e.hasAuno=!0):e.hasAuno=!1,e.noneDone=4003==t.errno,t&&0==t.errno){var s=t.rst;e.infoList=s.data,e.total=Number(s.pageInfo.total)}else 4003!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},followWhEvent:function(t,e,s){var i=this;this.$exportNumber({type_id:7,cb:function(){i.$axios.get(i.URL.BASEURL+i.URL[t],{params:{video_id:e.aweme_id,video_user_id:e.uid}}).then(function(e){(e=e.data)&&0==e.errno?i.infoList[s].is_follow="followVideo"==t?1:0:i.$message({message:e.err,type:"warning"})}).catch(function(t){})}})},getMoreList:function(){var t=this;this.$exportNumber({type_id:2,cb:function(){var e=t.$loading({lock:!0,text:"加载中...",spinner:"el-icon-loading",background:"rgba(255, 2550, 255, 0.7)"});t.$axios.get(t.URL.BASEURL+t.URL.videoRanklist,{params:{signs:""==t.dataType?[]:[t.dataType],start_time:t.stime,end_time:t.etime,sort:t.sort_type,page:1,pagesize:t.export_size,is_export:1}}).then(function(s){s=s.data;if(e.close(),s&&0==s.errno){var i=s.rst.data;t.exportToExcel(i)}else 4003!=s.errno&&t.$message({message:s.err,type:"warning"})}).catch(function(t){e.close()})}})},exportToExcel:function(t){var e=t,s=[];for(var i in e)s.push({desc:e[i].desc,created_time:e[i].created_time,user_name:e[i].user_name,uid:e[i].uid,digg_count:e[i].digg_count,comment_count:e[i].comment_count,share_count:e[i].share_count});for(var a="视频标题,发布时间,达人,达人ID,点赞数,评论数,分享数,\n",n=0;n0?i("li",{staticClass:"common_select_info common_data_export",on:{click:t.getMoreList}},[t._v("导出")]):t._e()])]),t._v(" "),i("el-popover",{staticStyle:{float:"right","margin-top":"-7px"},attrs:{placement:"bottom",width:"400",trigger:"hover"}},[i("div",{staticClass:"common_notice"},[i("p",[t._v("数据说明")]),t._v(" "),i("div",[i("span",{staticClass:"before"},[t._v("涨粉视频榜:")]),t._v("代表非商品视频为涨粉而创作的视频")])]),t._v(" "),i("el-button",{staticClass:"common_tooltip",attrs:{slot:"reference"},slot:"reference"},[t._v("数据说明"),i("img",{staticClass:"common_tooltip_question",attrs:{src:s("amoS"),alt:""}}),i("img",{staticClass:"common_tooltip_question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),t.noneDone?t._e():i("div",[i("div",{staticClass:"table_div"},[i("table",[i("tr",[i("td",[t._v("排名")]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td","created_time"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("created_time")}}},[t._v("\n 视频\n "),t._m(0)])]),t._v(" "),i("td",[t._v("达人")]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td","digg_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("digg_count")}}},[t._v("\n 点赞\n "),t._m(1)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td","comment_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("comment_count")}}},[t._v("\n 评论\n "),t._m(2)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td","share_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("share_count")}}},[t._v("\n 分享\n "),t._m(3)])]),t._v(" "),i("td",[t._v("收藏")])]),t._v(" "),t._l(t.infoList,function(e,a){return i("tr",{key:a,staticStyle:{cursor:"pointer"},on:{click:function(s){return t.toDetail(e)}}},[i("td",[a+1==1?i("img",{staticClass:"rank_count_icon",attrs:{src:s("uIsc"),alt:""}}):a+1==2?i("img",{staticClass:"rank_count_icon",attrs:{src:s("37vy"),alt:""}}):a+1==3?i("img",{staticClass:"rank_count_icon",attrs:{src:s("u/A1"),alt:""}}):i("div",{staticClass:"rank_count"},[i("div",[t._v(t._s(a+1))])])]),t._v(" "),i("td",{staticStyle:{width:"300px"}},[i("div",{staticClass:"videoBox"},[i("div",{staticClass:"videoImg",on:{click:function(s){return s.stopPropagation(),t.toUrl(e.share_url)}}},[i("img",{attrs:{src:e.cover_url,alt:""}})]),t._v(" "),i("div",{staticClass:"videoInfo"},[i("el-tooltip",{attrs:{effect:"dark",disabled:!(e.desc&&e.desc.length>20),content:e.desc,placement:"top"}},[i("p",{staticClass:"videoTitle"},[t._v(t._s(e.desc?e.desc:"-"))])]),t._v(" "),i("p",{staticClass:"time",class:"created_time"==t.sort_type?"common_selected":"",style:"created_time"==t.sort_type?"color:#333":""},[t._v(t._s(e.created_time?e.created_time:"-"))])],1)])]),t._v(" "),i("td",{staticStyle:{width:"200px"}},[i("div",{staticClass:"hrBox"},[i("img",{staticClass:"hrImg",attrs:{src:e.headurl,alt:""}}),t._v(" "),i("div",{staticClass:"hrInfo"},[i("p",{staticClass:"hrTitle"},[t._v(t._s(e.user_name?e.user_name:"-"))]),t._v(" "),i("p",{staticClass:"hrFan"},[t._v("粉丝数 "+t._s(e.fan||0==e.fan?t.$NumberHandle(e.fan):"-"))])])])]),t._v(" "),i("td",{class:"digg_count"==t.sort_type?"common_selected":""},[t._v(t._s(e.digg_count||0==e.digg_count?t.$NumberHandle(e.digg_count):"-"))]),t._v(" "),i("td",{class:"comment_count"==t.sort_type?"common_selected":""},[t._v(t._s(e.comment_count||0==e.comment_count?t.$NumberHandle(e.comment_count):"-"))]),t._v(" "),i("td",{class:"share_count"==t.sort_type?"common_selected":""},[t._v(t._s(e.share_count||0==e.share_count?t.$NumberHandle(e.share_count):"-"))]),t._v(" "),i("td",[i("div",{on:{click:function(s){return s.stopPropagation(),t.followWhEvent(1==e.is_follow?"cancelFollowVideo":"followVideo",e,a)}}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:1==e.is_follow?"取消关注":"关注视频",placement:"top-start"}},[1==e.is_follow?i("img",{staticClass:"followIcon",attrs:{src:s("fXRA"),alt:""}}):i("img",{staticClass:"followIcon",attrs:{src:s("OSUF"),alt:""}})])],1)])])})],2)]),t._v(" "),t.loading||0!=t.infoList.length?t._e():i("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAuno&&0!=t.total||t.hasAuno&&t.au_nums<=t.total&&t.page>1,expression:"(!hasAuno&&total!=0)||(hasAuno&&au_nums<=total&&page>1)"}],staticClass:"bottom"},[i("span",{staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-size":t.page_size,total:t.total},on:{"current-change":t.handleCurrentChange}})],1)]),t._v(" "),t.infoList.length>0&&!t.noneDone&&t.hasAuno&&!t.loading?i("list-permission",{attrs:{au_nums:t.au_nums}}):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?i("nopermission"):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])}]};var o=s("C7Lr")(a,n,!1,function(t){s("BVLR")},"data-v-3634027d",null);e.default=o.exports}});