1 |
- webpackJsonp([38],{AsNU:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={data:function(){return{au_nums:"",loading:!1,search_key_word:"",just_goods:0,is_follow:0,noneDone:!1,hasAuno:!1,page:0,pages:0,total:0,infoList:[],sort_type:5}},created:function(){this.init(1)},methods:{toDetail:function(t){var e=this;if(1==t.has_commerce_goods)this.$exportNumber({type_id:1,data_id:t.room_id,cb:function(){var s=e.$router.resolve({path:"/onlineDetailDou/"+t.room_id});window.open(s.href,"_blank")}});else{var s=this.$router.resolve({path:"/douPlayDetail/"+t.room_id});window.open(s.href,"_blank")}},toUserDetail:function(t){var e=this.$router.resolve({path:"/userDetailD/"+t});window.open(e.href,"_blank")},sortEvent:function(t){if(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.loading=!0,this.infoList=[],this.$axios.get(this.URL.BASEURL+this.URL.douyinShowToday_livingIndex,{params:{page:this.page,pageSize:20,user_keyword:this.search_key_word,has_commerce_goods:this.just_goods,is_follow:this.is_follow,sort_type:this.sort_type}}).then(function(t){t=t.data;if(e.loading=!1,4403==t.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.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})},followWhEvent:function(t,e,s){var o=this;this.$exportNumber({type_id:6,cb:function(){o.$axios.get(o.URL.BASEURL+o.URL[t],{params:{show_id:e.room_id}}).then(function(e){(e=e.data)&&0==e.errno?o.infoList[s].is_follow="cancelFocusShow"!=t:o.$message({message:e.err,type:"warning"})}).catch(function(t){})}})}}},i={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[o("div",{staticClass:"search_condition"},[o("div",{staticClass:"common_search_box clear"},[o("img",{staticClass:"icon",attrs:{src:s("AJUD"),alt:""}}),t._v(" "),o("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?o("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(e){t.search_key_word="",t.init(1)}}}):t._e(),t._v(" "),o("img",{staticClass:"search_icon",attrs:{src:s("JWdz"),alt:""},on:{click:function(e){return t.init(1)}}})]),t._v(" "),o("div",{staticClass:"common_screen clear"},[o("div",{staticClass:"common_screen_title"},[t._v("商品筛选")]),t._v(" "),o("div",{class:["self_checkbox",1==t.just_goods?"self_checkbox_active":""],on:{click:function(e){1==t.just_goods?t.just_goods=0:t.just_goods=1,t.init(1)}}},[o("div",{staticClass:"icon"}),t._v(" "),o("span",[t._v("带货直播")])]),t._v(" "),o("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)}}},[o("div",{staticClass:"icon"}),t._v(" "),o("span",[t._v("关注的红人直播")])])]),t._v(" "),o("el-popover",{staticStyle:{float:"right","margin-top":"-7px"},attrs:{placement:"bottom",width:"400",trigger:"hover"}},[o("div",{staticClass:"common_notice"},[o("p",[t._v("数据说明")]),t._v(" "),o("div",[o("span",{staticClass:"before"}),t._v("只显示粉丝数大于100w的达人")])]),t._v(" "),o("el-button",{staticClass:"common_tooltip",attrs:{slot:"reference"},slot:"reference"},[t._v("数据说明"),o("img",{staticClass:"common_tooltip_question",attrs:{src:s("amoS"),alt:""}}),o("img",{staticClass:"common_tooltip_question1",attrs:{src:s("M1pF"),alt:""}})])],1)],1),t._v(" "),t.noneDone?t._e():o("div",[o("div",{staticClass:"table_div"},[o("table",[o("tr",[o("td",{staticStyle:{"text-align":"left","padding-left":"98px"}},[t._v("直播")]),t._v(" "),o("td",[t._v("达人")]),t._v(" "),o("td",[o("div",{staticClass:"th_title",class:["common_select_td",7==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(7)}}},[t._v("\n 开播时间\n "),t._m(0)])]),t._v(" "),o("td",[o("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(1)])]),t._v(" "),o("td",[o("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(2)])]),t._v(" "),o("td",[o("div",{staticClass:"th_title",class:["common_select_td",8==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(8)}}},[t._v("\n 商品数\n "),t._m(3)])]),t._v(" "),o("td",[o("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(4)])]),t._v(" "),o("td",[o("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(5)])]),t._v(" "),o("td",[t._v("操作")])]),t._v(" "),t._l(t.infoList,function(e,i){return o("tr",{key:i,staticStyle:{cursor:"pointer"},on:{click:function(s){return t.toDetail(e)}}},[o("td",{staticStyle:{width:"250px"}},[o("div",{staticClass:"videoBox"},[o("div",{staticClass:"videoImg"},[o("img",{staticClass:"coverImg",attrs:{src:e.cover_url,alt:""}}),t._v(" "),t._m(6,!0)]),t._v(" "),o("div",{staticClass:"videoInfo"},[o("div",{staticClass:"videoTitle"},[t._v("\n "+t._s(e.title?e.title:"-")+"\n ")]),t._v(" "),e.commodity_count>0?o("p",{staticClass:"platform_label"},[t._v("带货")]):t._e()])])]),t._v(" "),o("td",{staticStyle:{width:"160px"}},[o("div",{staticClass:"hrBox",on:{click:function(s){return s.stopPropagation(),t.toUserDetail(e.uid)}}},[o("img",{staticClass:"hrImg",attrs:{src:e.avatar_url,alt:""}}),t._v(" "),o("div",{staticClass:"hrInfo"},[o("p",{staticClass:"hrTitle"},[t._v(t._s(e.nickname?e.nickname:"-"))]),t._v(" "),o("p",{staticClass:"hrFan"},[t._v("粉丝数:"+t._s(e.follower_count?t.$NumberHandle(e.follower_count):"-"))])])])]),t._v(" "),o("td",{staticClass:"videoTime",class:7==t.sort_type?"common_selected":"",staticStyle:{width:"180px"}},[t._v(t._s(e.create_time?e.create_time:"-"))]),t._v(" "),o("td",{class:5==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(" "),o("td",{class:6==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(" "),o("td",{class:8==t.sort_type?"common_selected":""},[t._v(t._s(e.commodity_count||0==e.commodity_count?t.$NumberHandle(e.commodity_count):"-"))]),t._v(" "),o("td",{class:3==t.sort_type?"common_selected":""},[t._v(t._s(e.user_count_max||0==e.user_count_max?t.$NumberHandle(e.user_count_max):"-"))]),t._v(" "),o("td",{class:4==t.sort_type?"common_selected":""},[t._v(t._s(e.fan_ticket||0==e.fan_ticket?t.$NumberHandle(e.fan_ticket):"-"))]),t._v(" "),o("td",[o("div",{staticStyle:{display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.followWhEvent(1==e.is_follow?"cancelFocusShow":"addFocusShow",e,i)}}},[o("el-tooltip",{attrs:{effect:"dark",content:1==e.is_follow?"取消关注":"关注直播",placement:"top-start"}},[1==e.is_follow?o("img",{staticClass:"followIcon",attrs:{src:s("fXRA"),alt:""}}):o("img",{staticClass:"followIcon",attrs:{src:s("OSUF"),alt:""}})])],1),t._v(" "),1==e.has_commerce_goods?o("div",{staticClass:"followIconDiv",staticStyle:{"margin-left":"2px",display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.toDetail(e)}}},[o("el-tooltip",{attrs:{effect:"dark",content:"前往实时大盘",placement:"top-start"}},[o("div",[o("img",{staticClass:"followIcon followIcon_top",attrs:{src:s("n8NJ"),alt:""}}),t._v(" "),o("img",{staticClass:"followIcon followIcon_hover",attrs:{src:s("gSWm"),alt:""}})])])],1):t._e()])])})],2)]),t._v(" "),t.loading||0!=t.infoList.length?t._e():o("div",{staticClass:"noHaveDate"},[t._v("暂无数据")])]),t._v(" "),o("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"},[o("span",{staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),o("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?o("list-permission",{attrs:{au_nums:t.au_nums}}):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?o("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"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"liveing"},[e("img",{staticClass:"gif_icon",attrs:{src:s("Zp58"),alt:""}})])}]};var a=s("C7Lr")(o,i,!1,function(t){s("LAMy")},"data-v-9b1a2f72",null);e.default=a.exports},LAMy:function(t,e){}});
|