问星数据dist打包,线上使用; 源码在bigData仓库

36.1d1bcd67a28014022f62.js 12KB

1
  1. webpackJsonp([36],{"8nQw":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{loading:!1,search_key_word:"",timeList:[{name:"昨日",time:[this.getDay(-1,!1),this.getDay(-1,!1)]},{name:"近7天",time:[this.getDay(-7,!1),this.getDay(0,!1)]},{name:"近30天",time:[this.getDay(-30,!1),this.getDay(0,!1)]},{name:"近90天",time:[this.getDay(-90,!1),this.getDay(0,!1)]}],date:[this.getDay(-1,!1),this.getDay(-1,!1)],pickerTimes:{disabledDate:function(t){return t>Date.now()}},noneDone:!1,hasAuno:!1,total:0,pageSize:0,page:1,infoList:[],sort_type:0}},created:function(){this.init(1)},methods:{sortEvent:function(t){this.sort_type==t||(this.sort_type=t,this.init(1))},handleCurrentChange:function(t){this.init(t)},init:function(t){var e=this;this.loading=!0,this.page=t,this.infoList=[],this.$axios.get(this.URL.BASEURL+this.URL.dou_userDataList,{params:{page:t,sort:this.sort_type,start_time:this.date[0],end_time:this.date[1],keyword:this.search_key_word}}).then(function(t){if(e.loading=!1,(t=t.data)&&0==t.errno){var s=t.rst.data;s.forEach(function(t){t.is_follow=1}),e.infoList=s,e.total=t.rst.pageInfo.total,e.pageSize=t.rst.pageInfo.size}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},toLiveDetail:function(t){if(t.room_id&&t.if_show)if(1==t.if_goods){var e=this.$router.resolve({path:"/onlineDetailDou/"+t.room_id});window.open(e.href,"_blank")}else{var s=this.$router.resolve({path:"/douPlayDetail/"+t.room_id});window.open(s.href,"_blank")}else{var a=this.$router.resolve({path:"/userDetailD/"+t.user_id});window.open(a.href,"_blank")}},toDetail:function(t){var e=this.$router.resolve({path:"/userDetailD/"+t.user_id});window.open(e.href,"_blank")},followWhEvent:function(t,e,s){var a=this;this.$exportNumber({type_id:5,cb:function(){a.$axios({url:a.URL.BASEURL+a.URL[t],method:"post",data:{user_id:e.user_id}}).then(function(e){(e=e.data)&&0==e.errno?a.infoList[s].is_follow="dou_delFollow"!=t:a.$message({message:e.err,type:"warning"})}).catch(function(t){})}})}},watch:{date:function(){this.date&&this.date!=[]||(this.date=this.timeList[0].time),this.init(1)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"search_condition"},[a("div",{staticClass:"common_search_box clear"},[a("img",{staticClass:"icon",attrs:{src:s("AJUD"),alt:""}}),t._v(" "),a("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?a("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(e){t.search_key_word="",t.init(1)}}}):t._e(),t._v(" "),a("img",{staticClass:"search_icon",attrs:{src:s("JWdz"),alt:""},on:{click:function(e){return t.init(1)}}})]),t._v(" "),a("div",{staticClass:"common_screen clear"},[a("div",{staticClass:"common_screen_title"},[t._v("统计时间")]),t._v(" "),a("ul",{staticClass:"common_select_time clear"},t._l(t.timeList,function(e,s){return a("li",{key:"time"+s,class:["common_select_time_item",t.date&&t.date.join(",")==e.time.join(",")?"common_select_time_item_active":""],on:{click:function(s){t.date=e.time}}},[t._v(t._s(e.name))])}),0),t._v(" "),a("el-date-picker",{staticClass:"common_select_li",staticStyle:{width:"250px","margin-top":"7px","margin-left":"8px"},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(" "),t.noneDone?t._e():a("div",[a("div",{staticClass:"table_div"},[a("table",[a("tr",[a("td",{staticStyle:{"text-align":"left","padding-left":"88px"}},[t._v("达人")]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",0==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(0)}}},[t._v("\n 粉丝总量\n "),t._m(0)])]),t._v(" "),a("td",[a("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(" "),a("td",[a("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(" "),a("td",[a("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(" "),a("td",[a("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(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",10==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(10)}}},[t._v("\n 平均在线峰值\n "),t._m(5)])]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",9==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(9)}}},[t._v("\n 商品销售额\n "),t._m(6)])]),t._v(" "),a("td",[t._v("操作")])]),t._v(" "),t._l(t.infoList,function(e,o){return a("tr",{key:o,staticStyle:{cursor:"pointer"},on:{click:function(s){return t.toDetail(e)}}},[a("td",{staticStyle:{width:"250px"}},[a("div",{staticClass:"drBox",on:{click:function(s){return s.stopPropagation(),t.toLiveDetail(e)}}},[a("div",{staticClass:"drInfoBox"},[a("div",{staticClass:"drImg"},[a("img",{staticClass:"userImg",attrs:{src:e.headurl,alt:""}}),t._v(" "),e.if_show?a("div",{staticClass:"liveing"},[a("img",{staticClass:"gif_icon",attrs:{src:s("Zp58"),alt:""}}),t._v(" "),a("span",[t._v("直播中")])]):t._e()]),t._v(" "),a("div",{staticClass:"drInfo"},[a("div",{staticClass:"drName"},[a("el-tooltip",{attrs:{effect:"dark",content:e.user_name,placement:"top"}},[a("p",[t._v(t._s(e.user_name))])]),t._v(" "),a("img",{attrs:{src:s("FxTv"),alt:""}})],1),t._v(" "),a("div",{staticClass:"drId"},[t._v("ID:"+t._s(e.user_id?e.user_id:"-"))]),t._v(" "),a("div",{staticClass:"drId",staticStyle:{"font-size":"12px","margin-top":"4px"}},[t._v("地区:"+t._s(e.user_province==e.user_city?e.user_province:e.user_province+","+e.user_city))])])])])]),t._v(" "),a("td",{class:0==t.sort_type?"common_selected":""},[t._v(t._s(e.fan_count||0==e.fan_count?t.$NumberHandle(e.fan_count):"-")+"\n "),e.fan_add&&0!=e.fan_add?a("p",{staticClass:"dataTwo"},[t._v(t._s(e.fan_add||0==e.fan_add?t.$NumberHandle(e.fan_add):"-"))]):t._e()]),t._v(" "),a("td",{class:2==t.sort_type?"common_selected":""},[t._v(t._s(e.video_count||0==e.video_count?t.$NumberHandle(e.video_count):"-")+"\n "),e.ad_count&&0!=e.ad_count?a("p",{staticClass:"dataTwo"},[t._v("广告 "+t._s(e.ad_count||0==e.ad_count?t.$NumberHandle(e.ad_count):"-"))]):t._e()]),t._v(" "),a("td",{class:3==t.sort_type?"common_selected":""},[t._v(t._s(e.share_count||0==e.share_count?t.$NumberHandle(e.share_count):"-"))]),t._v(" "),a("td",{class:4==t.sort_type?"common_selected":""},[t._v(t._s(e.digg_count||0==e.digg_count?t.$NumberHandle(e.digg_count):"-"))]),t._v(" "),a("td",{class:5==t.sort_type?"common_selected":""},[t._v(t._s(e.show_count||0==e.show_count?t.$NumberHandle(e.show_count):"-")+"\n "),e.goods_show_count&&0!=e.goods_show_count?a("p",{staticClass:"dataTwo"},[t._v("带货 "+t._s(e.goods_show_count||0==e.goods_show_count?t.$NumberHandle(e.goods_show_count):"-"))]):t._e()]),t._v(" "),a("td",{class:10==t.sort_type?"common_selected":""},[t._v(t._s(e.user_count_max||0==e.user_count_max?t.$NumberHandle(e.user_count_max):"-")+"\n "),e.total_user&&0!=e.total_user?a("p",{staticClass:"dataTwo"},[t._v("观看 "+t._s(e.total_user||0==e.total_user?t.$NumberHandle(e.total_user):"-"))]):t._e()]),t._v(" "),a("td",{class:9==t.sort_type?"common_selected":""},[t._v(t._s(e.sell_money||0==e.sell_money?t.$NumberHandle(e.sell_money):"-"))]),t._v(" "),a("td",[a("div",{staticStyle:{display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.followWhEvent(e.is_follow?"dou_delFollow":"dou_addFollow",e,o)}}},[a("el-tooltip",{staticClass:"operation",attrs:{effect:"dark",content:1==e.is_follow?"取消关注":"关注达人",placement:"top-start"}},[1==e.is_follow?a("img",{staticClass:"followIcon",attrs:{src:s("fXRA"),alt:""}}):a("img",{staticClass:"followIcon",attrs:{src:s("OSUF"),alt:""}})])],1),t._v(" "),1==e.if_goods&&e.if_show?a("div",{staticClass:"followIconDiv",staticStyle:{"margin-left":"2px",display:"inline-block"},on:{click:function(s){return s.stopPropagation(),t.toLiveDetail(e)}}},[a("el-tooltip",{attrs:{effect:"dark",content:"前往实时大盘",placement:"top-start"}},[a("div",[a("img",{staticClass:"followIcon followIcon_top",attrs:{src:s("n8NJ"),alt:""}}),t._v(" "),a("img",{staticClass:"followIcon followIcon_hover",attrs:{src:s("gSWm"),alt:""}})])])],1):t._e()])])})],2)]),t._v(" "),t.loading||0!=t.infoList.length||t.search_key_word?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAuno&&0!=t.total,expression:"!hasAuno&&total!=0"}],staticClass:"bottom"},[a("span",{staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-size":t.pageSize,total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),t.infoList.length>0&&!t.noneDone&&t.hasAuno&&!t.loading?a("list-permission"):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?a("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:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])}]};var i=s("C7Lr")(a,o,!1,function(t){s("K5/i")},"data-v-af6326aa",null);e.default=i.exports},"K5/i":function(t,e){}});