webpackJsonp([38],{Mf7p:function(t,e){},ocf1:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("3cXf"),a=s.n(i),n=s("aA9S"),o=s.n(n),l={data:function(){return{au_nums:"",loading:!1,search_key_word:"",dataType:"",typeList:[],hrType:"",hrList:[],fanModel:0,fan:{label:0,value:"粉丝量",min:"",max:""},fanRange:[{label:0,value:"不限",min:"",max:""},{label:1,min:1e5,max:5e5,value:"10-50万"},{label:2,min:5e5,max:1e6,value:"50-100万"},{label:3,min:1e6,max:5e6,value:"100-500万"},{label:4,min:5e6,max:1e7,value:"500-1000万"},{label:5,min:1e7,max:"",value:"1000万以上"}],addressList:[],province:"",addressProps:{value:"area_name",label:"area_name",children:"son"},giftModel:0,gift:{label:0,value:"礼物收入",min:"",max:""},giftList:[{label:0,value:"不限",min:"",max:""},{label:1,min:"",max:1e5,value:"10万以下"},{label:2,min:1e5,max:5e5,value:"10-50万"},{label:3,min:5e5,max:1e6,value:"50-100万"},{label:4,min:1e6,max:5e6,value:"100-500万"},{label:5,min:5e6,max:1e7,value:"500-1000万"},{label:6,min:1e7,max:"",value:"1000万以上"}],salesModel:0,sales:{label:0,value:"销量",min:"",max:""},salesList:[{label:0,value:"不限",min:"",max:""},{label:1,min:"",max:1e5,value:"10万以下"},{label:2,min:1e5,max:5e5,value:"10-50万"},{label:3,min:5e5,max:1e6,value:"50-100万"},{label:4,min:1e6,max:2e6,value:"100-200万"},{label:5,min:2e6,max:"",value:"200万以上"}],date:[this.getDay(-7,!1),this.getDay(0,!1)],pickerTimes:{disabledDate:function(t){return t>Date.now()}},is_living:0,has_goods:0,is_follow:0,noneDone:!1,hasAuno:!1,page:0,pages:0,total:0,infoList:[],sort_type:3}},created:function(){this.search_key_word=this.$store.state.keyword.data,this.getType(),this.getHrType(),this.areaList(),this.init(1)},methods:{toDetail:function(t){var e=this;if(1==t.enable&&1==t.if_goods&&t.userInfo&&t.userInfo.user_id)this.$exportNumber({type_id:1,data_id:t.live_stream_id,cb:function(){var s=e.$router.resolve({path:"/onlineDetail/"+t.live_stream_id+"/"+t.userInfo.user_id});window.open(s.href,"_blank")}});else{var s=this.$router.resolve({path:"/basicsDataDetail/"+t.live_stream_id});window.open(s.href,"_blank")}},toUserDetail:function(t){var e=this.$router.resolve({path:"/userDetail/"+t});window.open(e.href,"_blank")},sortEvent:function(t){if(this.hasAuno||this.noneDone)return this.$message.closeAll(),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.loading=!0,this.infoList=[],this.$axios.get(this.URL.BASEURL+this.URL.live_indexV2,{params:{page:this.page,pageSize:20,user_keyword:this.search_key_word,sign_id:this.hrType,fan_min:this.fan.min,fan_max:this.fan.max,city:"undefined"==this.province?"":"不限"==this.province[this.province.length-1]?this.province[this.province.length-2]:this.province[this.province.length-1],start_time:this.date&&2==this.date.length?this.date[0]:"",end_time:this.date&&2==this.date.length?this.date[1]:"",reward_count_min:this.gift.min,reward_count_max:this.gift.max,is_living:this.is_living,has_goods:this.has_goods,top_cid:this.dataType,sell_count_min:this.sales.min,sell_count_max:this.sales.max,sort:this.sort_type,is_follow:this.is_follow}}).then(function(t){t=t.data;if(e.loading=!1,4403==t.auno?(e.hasAuno=!0,e.au_nums=t.au_nums):e.hasAuno=!1,e.noneDone=4003==t.errno,t&&0==t.errno){var s=t.rst;e.total=s.pageInfo.total,e.pages=s.pageInfo.pages,e.infoList=s.data}else 4003!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},changeSelect:function(t){var e=t.val,s=t.title,i=t.model,a=t.list,n=o()({},this[a].filter(function(t){return t.label==e})[0]);"不限"==n.value?this[i]=o()(n,{value:s}):this[i]=o()(n,{value:s+": "+n.value}),this.init(1)},getType:function(){var t=this;this.$axios({url:this.URL.BASEURL+this.URL.topCategory,method:"get"}).then(function(e){(e=e.data)&&0==e.errno?t.typeList=e.rst:t.$message({message:e.err,type:"warning"})})},getHrType: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.hrList=e.rst:t.$message({message:e.err,type:"warning"})}).catch(function(t){})},areaList:function(){var t=this;this.$axios({url:this.URL.BASEURL+this.URL.areaList,method:"post",data:{}}).then(function(e){0==(e=e.data).errno&&e&&(t.addressList=JSON.parse(a()(e.rst)),t.addressList.unshift({value:"不限",area_name:"不限"}),t.addressList.forEach(function(t,e){t.value=t.id,"不限"!=t.area_name&&t.son.unshift({value:"不限",area_name:"不限"})}))})},followWhEvent:function(t,e,s){var i=this;this.$exportNumber({type_id:6,cb:function(){i.$axios({url:i.URL.BASEURL+i.URL[t],method:"post",data:{live_stream_id:e.live_stream_id}}).then(function(e){(e=e.data)&&0==e.errno?i.infoList[s].is_follow="KwaiShowFollow_delete"!=t:i.$message({message:e.err,type:"warning"})}).catch(function(t){})}})}},computed:{search_flag:function(){return this.$store.state.keyword.flag}},watch:{search_flag:function(){"/liveSearch"==this.$route.path&&(this.search_key_word=this.$store.state.keyword.data,this.init(1))},date:function(){this.date&&0!=this.date.length||(this.date=[this.getDay(-7,!1),this.getDay(0,!1)]),this.init(1)}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"search_condition"},[i("div",{staticClass:"common_search_box clear"},[i("img",{staticClass:"icon",attrs:{src:s("FxTv"),alt:""}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.search_key_word,expression:"search_key_word"}],staticClass:"search_input",attrs:{placeholder:"请输入达人名称、达人ID查询"},domProps:{value:t.search_key_word},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.init(1)},input:function(e){e.target.composing||(t.search_key_word=e.target.value)}}}),t._v(" "),t.search_key_word?i("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(e){t.search_key_word="",t.init(1)}}}):t._e(),t._v(" "),i("button",{staticClass:"searchButton",on:{click:function(e){return t.init(1)}}},[t._v("搜索")])]),t._v(" "),i("div",{staticClass:"common_screen clear"},[i("div",{staticClass:"common_screen_title"},[t._v("达人标签")]),t._v(" "),i("ul",{staticClass:"common_screen_info"},[i("li",{class:""===t.hrType?"common_screen_active":"",on:{click:function(e){t.hrType="",t.init(1)}}},[t._v("不限")]),t._v(" "),t._l(t.hrList,function(e,s){return i("li",{key:"goodsType"+s,class:t.hrType===e.id?"common_screen_active":"",on:{click:function(s){t.hrType=e.id,t.init(1)}}},[t._v(t._s(e.name))])})],2)]),t._v(" "),i("div",{staticClass:"common_screen clear"},[i("div",{staticClass:"common_screen_title"},[t._v("商品分类")]),t._v(" "),i("ul",{staticClass:"common_screen_info"},[i("li",{class:""===t.dataType?"common_screen_active":"",on:{click:function(e){t.dataType="",t.init(1)}}},[t._v("不限")]),t._v(" "),t._l(t.typeList,function(e,s){return i("li",{key:"goodsType"+s,class:t.dataType===e.id?"common_screen_active":"",on:{click:function(s){t.dataType=e.id,t.init(1)}}},[t._v(t._s(e.cate_name))])})],2)]),t._v(" "),i("div",{staticClass:"common_screen clear"},[i("div",{staticClass:"common_screen_title"},[t._v("达人筛选")]),t._v(" "),i("ul",{staticClass:"common_screen_info common_select"},[i("li",{staticClass:"common_select_li_title"},[t._v("粉丝量")]),t._v(" "),i("el-select",{staticClass:"common_select_li",attrs:{size:"mini"},on:{change:function(e){t.changeSelect({val:e,title:"粉丝量",model:"fan",list:"fanRange"})}},model:{value:t.fanModel,callback:function(e){t.fanModel=e},expression:"fanModel"}},t._l(t.fanRange,function(t,e){return i("el-option",{key:e,attrs:{label:t.value,value:t.label}})}),1)],1),t._v(" "),i("ul",{staticClass:"common_screen_info common_select"},[i("li",{staticClass:"common_select_li_title"},[t._v("地区")]),t._v(" "),i("el-cascader",{staticClass:"common_select_li",attrs:{options:t.addressList,size:"mini",props:t.addressProps},on:{change:function(e){return t.init(1)}},model:{value:t.province,callback:function(e){t.province=e},expression:"province"}})],1),t._v(" "),i("ul",{staticClass:"common_screen_info common_select"},[i("li",{staticClass:"common_select_li_title"},[t._v("礼物收入")]),t._v(" "),i("el-select",{staticClass:"common_select_li",attrs:{size:"mini"},on:{change:function(e){t.changeSelect({val:e,title:"礼物收入",model:"gift",list:"giftList"})}},model:{value:t.giftModel,callback:function(e){t.giftModel=e},expression:"giftModel"}},t._l(t.giftList,function(t,e){return i("el-option",{key:e,attrs:{label:t.value,value:t.label}})}),1)],1),t._v(" "),i("ul",{staticClass:"common_screen_info common_select"},[i("li",{staticClass:"common_select_li_title"},[t._v("直播时间")]),t._v(" "),i("el-date-picker",{staticClass:"common_select_li",staticStyle:{width:"250px"},attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"",size:"mini","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerTimes},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)]),t._v(" "),i("div",{staticClass:"common_screen clear"},[i("div",{staticClass:"common_screen_title"},[t._v("商品筛选")]),t._v(" "),i("ul",{staticClass:"common_screen_info common_select"},[i("li",{staticClass:"common_select_li_title"},[t._v("销量  ")]),t._v(" "),i("el-select",{staticClass:"common_select_li",attrs:{size:"mini"},on:{change:function(e){t.changeSelect({val:e,title:"销量",model:"sales",list:"salesList"})}},model:{value:t.salesModel,callback:function(e){t.salesModel=e},expression:"salesModel"}},t._l(t.salesList,function(t,e){return i("el-option",{key:e,attrs:{label:t.value,value:t.label}})}),1)],1),t._v(" "),i("div",{class:["self_checkbox",1==t.is_living?"self_checkbox_active":""],on:{click:function(e){1==t.is_living?t.is_living=0:t.is_living=1,t.init(1)}}},[i("div",{staticClass:"icon"}),t._v(" "),i("span",[t._v("正在直播中")])]),t._v(" "),i("div",{class:["self_checkbox",1==t.has_goods?"self_checkbox_active":""],on:{click:function(e){1==t.has_goods?t.has_goods=0:t.has_goods=1,t.init(1)}}},[i("div",{staticClass:"icon"}),t._v(" "),i("span",[t._v("带货直播")])]),t._v(" "),i("div",{class:["self_checkbox",1==t.is_follow?"self_checkbox_active":""],on:{click:function(e){1==t.is_follow?t.is_follow=0:t.is_follow=1,t.init(1)}}},[i("div",{staticClass:"icon"}),t._v(" "),i("span",[t._v("我关注的")])])]),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("div",[i("span",{staticClass:"before"},[t._v("正在直播中:")]),t._v("通过筛选,显示正在进行的直播。")]),t._v(" "),i("div",[i("span",{staticClass:"before"},[t._v("带货直播:")]),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",{staticStyle:{"text-align":"left","padding-left":"98px"}},[t._v("直播")]),t._v(" "),i("td",[t._v("达人")]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",1==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(1)}}},[t._v("\n 开播时间\n "),t._m(0)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",2==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(2)}}},[t._v("\n 销量\n "),t._m(1)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",3==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(3)}}},[t._v("\n 销售额\n "),t._m(2)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",4==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(4)}}},[t._v("\n 商品数\n "),t._m(3)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",5==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(5)}}},[t._v("\n 人气峰值\n "),t._m(4)])]),t._v(" "),i("td",[i("div",{staticClass:"th_title",class:["common_select_td",6==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(6)}}},[t._v("\n 礼物收入\n "),t._m(5)])]),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",{staticStyle:{width:"250px"}},[i("div",{staticClass:"videoBox"},[i("div",{staticClass:"videoImg"},[i("img",{staticClass:"coverImg",attrs:{src:e.cover_img,alt:""}}),t._v(" "),1==e.enable?i("div",{staticClass:"liveing"},[i("img",{staticClass:"gif_icon",attrs:{src:s("Zp58"),alt:""}})]):t._e()]),t._v(" "),i("div",{staticClass:"videoInfo"},[i("div",{staticClass:"videoTitle"},[t._v("\n "+t._s(e.title?e.title:"-")+"\n ")])])])]),t._v(" "),i("td",{staticStyle:{width:"160px"}},[i("div",{staticClass:"hrBox",on:{click:function(s){s.stopPropagation(),e.userInfo&&e.userInfo.user_id&&t.toUserDetail(e.userInfo.user_id)}}},[i("img",{staticClass:"hrImg",attrs:{src:e.userInfo&&e.userInfo.headurl?e.userInfo.headurl:"",alt:""}}),t._v(" "),i("div",{staticClass:"hrInfo"},[i("p",{staticClass:"hrTitle"},[t._v(t._s(e.userInfo&&e.userInfo.user_name?e.userInfo.user_name:"-"))]),t._v(" "),i("p",{staticClass:"hrFan"},[t._v("粉丝数:"+t._s(e.userInfo&&e.userInfo.fan?t.$NumberHandle(e.userInfo.fan):"-"))])])])]),t._v(" "),i("td",{staticClass:"videoTime",class:1==t.sort_type?"common_selected":"",staticStyle:{width:"180px"}},[t._v(t._s(e.start_time?e.start_time:"-"))]),t._v(" "),i("td",{class:2==t.sort_type?"common_selected":""},[t._v(t._s(e.sell_count_sum||0==e.sell_count_sum?t.$NumberHandle(e.sell_count_sum):"-"))]),t._v(" "),i("td",{class:3==t.sort_type?"common_selected":""},[t._v(t._s(e.sell_money_sum||0==e.sell_money_sum?t.$NumberHandle(e.sell_money_sum):"-"))]),t._v(" "),i("td",{class:4==t.sort_type?"common_selected":""},[t._v(t._s(e.commodity_count||0==e.commodity_count?t.$NumberHandle(e.commodity_count):"-"))]),t._v(" "),i("td",{class:5==t.sort_type?"common_selected":""},[t._v(t._s(e.bast_display_watching_count||0==e.bast_display_watching_count?t.$NumberHandle(e.bast_display_watching_count):"-"))]),t._v(" "),i("td",{class:6==t.sort_type?"common_selected":""},[t._v(t._s(e.reward_count||0==e.reward_count?t.$NumberHandle(e.reward_count):"-"))]),t._v(" "),i("td",[i("div",{staticStyle:{display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.followWhEvent(1==e.is_follow?"KwaiShowFollow_delete":"KwaiShowFollow_create",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),t._v(" "),1==e.enable&&1==e.if_goods&&e.userInfo&&e.userInfo.user_id?i("div",{staticClass:"followIconDiv",staticStyle:{"margin-left":"2px",display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.toDetail(e)}}},[i("el-tooltip",{attrs:{effect:"dark",content:"前往实时大盘",placement:"top-start"}},[i("div",[i("img",{staticClass:"followIcon followIcon_top",attrs:{src:s("n8NJ"),alt:""}}),t._v(" "),i("img",{staticClass:"followIcon followIcon_hover",attrs:{src:s("gSWm"),alt:""}})])])],1):t._e()])])})],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-count":t.pages},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"})])},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 r=s("C7Lr")(l,c,!1,function(t){s("Mf7p")},"data-v-f87c17a0",null);e.default=r.exports}});