1 |
- webpackJsonp([16],{"+6JB":function(t,e){},"+s85":function(t,e){},"6ZC/":function(t,e){},KiiB:function(t,e){},"SF+q":function(t,e){},kCXs:function(t,e,a){"use strict";var i=a("//Fk"),s=a.n(i),n=a("XLwt"),r=null,l={props:["platform"],data:function(){return{screenAc:null,errorAc:null,loading:!1,trendData:{},dataZoom_start:0,dataZoom_end:100,streamerData:[],screenData:[],screenList:{},columnArr:[],partName:"living_trend",platNum:this.platform,minute_unit:"",minute_unit_list:[{id:30,name:"30分钟"},{id:60,name:"60分钟"},{id:90,name:"90分钟"},{id:120,name:"120分钟"}],is_minute_grain:!1,key_index:1}},components:{selfDialogTrend:a("aCK0").a},created:function(){var t=this;this.is_minute_grain=!(!this.minute_unit||""==this.minute_unit),this.$nextTick(function(){t.init_first()})},methods:{init_first:function(){var t=this;this.loading=!0;var e=[this.liveDeTrends()];(!this.screenData||this.screenData.length<=0)&&e.push(this.init_screenData()),this.is_minute_grain||e.push(this.streamer_scheduling()),s.a.all(e).then(function(){t.$nextTick(function(){t.trendData&&0!=t.trendData.length?t.trendEcharts():t.loading=!1})}).catch(function(){t.loading=!1})},init_screenData:function(){var t=this;return new s.a(function(e,a){t.$axios.get(t.URL.BASEURL+t.URL.search_config,{params:{type:1==t.platform?"KS_LIVE_TRENDS_V2":"DY_LIVE_TRENDS_V2",method:"user"}}).then(function(a){e(),(a=a.data)&&0==a.errno?(t.screenData=a.rst.show_checked_column,t.screenData.forEach(function(e,a){e.color_rgba=t.$store.state.color_trend_arrs[a]})):4002!=a.errno&&t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},getscreenData:function(t){var e=this;t.forEach(function(t,a){t.color_rgba=e.$store.state.color_trend_arrs[a]}),this.screenData=t,this.$nextTick(function(){e.trendEcharts()})},editscreenData:function(){if(!this.columnArr&&this.columnArr.length<1)return this.$message({message:"请求错误,请稍后再试!",type:"warning"}),!1;this.$axios.post(this.URL.BASEURL+this.URL.save_config,{type:1==this.platform?"KS_LIVE_TRENDS_V2":"DY_LIVE_TRENDS_V2",column:this.columnArr})},openDialog:function(){this.$refs.dialogChild.dialogFormVisible=!0,this.$refs.dialogChild.init("user")},screenSplice:function(t){var e=this;if(1!=this.screenData.length){for(var a in this.screenData.splice(t,1),this.columnArr=[],this.screenData)this.columnArr.push(this.screenData[a].key);this.editscreenData(),this.$nextTick(function(){e.trendEcharts()})}else this.$message({message:"至少有一条趋势",type:"warning"})},screenIn:function(t){this.screenAc=t},screenOut:function(t){this.screenAc=null},errorIn:function(t){this.errorAc=t},errorOut:function(t){this.errorAc=null},streamer_scheduling:function(){var t=this;return new s.a(function(e,a){var i={params:{live_stream_id:t.$route.params.living_id}};t.$axios.get(t.URL.BASEURL+t.URL.streamer_scheduling,i).then(function(a){e(),(a=a.data)&&0==a.errno?t.streamerData=a.rst:t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},liveDeTrends:function(){var t=this;return new s.a(function(e,a){var i={params:{live_stream_id:t.$route.params.living_id}};i.params.minute_unit=t.minute_unit&&""!=t.minute_unit?t.minute_unit:1,t.$axios.get(t.URL.BASEURL+(1==t.platform?t.URL.liveDeTrends:t.URL.dou_liveTrends),i).then(function(a){if(e(),(a=a.data)&&0==a.errno){if(t.trendData=a.rst,!a.rst)return}else t.$message({message:a.err,type:"warning"})}).catch(function(t){e()})})},grainChange:function(){var t=this;this.is_minute_grain=!(!this.minute_unit||""==this.minute_unit),this.key_index++,this.$nextTick(function(){t.init_first()})},trendEcharts:function(){var t=this;function e(t,e){var a=e.value(0),i=e.coord([e.value(1),a]),s=e.coord([e.value(2),a]),r=e.size([0,1])[1],l=n.graphic.clipRectByRect({x:i[0],y:i[1]-r/2,width:s[0]-i[0],height:r},{x:t.coordSys.x,y:t.coordSys.y,width:t.coordSys.width,height:t.coordSys.height});return l&&{type:"rect",shape:l,style:e.style()}}var a=[],i=[],s=[],l=[],o=[],c=[],_=[],d=[],v=[],f=this,m=[];this.trendData.forEach(function(t){t.lotterys&&0!=t.lotterys.length&&i.push([t.xtime,1,t.lotterys]),t.goods_on_sale&&0!=t.goods_on_sale.length&&s.push([t.xtime,1,t.goods_on_sale]),t.live_notes&&l.push([t.xtime,1,t.live_notes]),t.live_control&&o.push([t.xtime,1,t.live_control]),a.push(t.xtime)}),this.screenData.forEach(function(e){e.data=[],t.trendData.forEach(function(t){e.data.push(t[e.key]?t[e.key]:0)})});var u=0,h=[];if(this.is_minute_grain)u=0;else{h=[{name:"商品上架",data:s,seriesFourtop:"70%",color:"#5E4CFF"},{name:"场记",data:l,seriesFourtop:"75%",color:"#E39063"},{name:"场控预警",data:o,seriesFourtop:"80%",color:"#6CB1E4"}],2==this.platform&&h.unshift({name:"福袋",data:i,seriesFourtop:"65%",color:"#FF4C4C"}),h.forEach(function(t,e){c.push({name:t.name,type:"scatter",xAxisIndex:e,yAxisIndex:e,symbolSize:6,data:t.data,itemStyle:{color:t.color},emphasis:{itemStyle:{color:t.color,borderColor:t.color,borderWidth:3,shadowBlur:4,shadowColor:t.color}}}),v.push({left:"3%",right:"1%",top:t.seriesFourtop,height:"5%"}),d.push({gridIndex:e,name:"",type:"value",inverse:!0,min:1,max:2,axisTick:{show:!1},splitLine:{show:!1},axisLine:{show:!1},nameTextStyle:{color:t.color,fontSize:14,padding:[0,35,0,0]},axisLabel:{show:!1,color:"#999999",fontSize:13,formatter:function(t){return""}}}),_.push({gridIndex:e,type:"category",boundaryGap:!1,data:a,position:"top",show:!0,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#444"}},axisLabel:{show:!1}})});var p=[];a.forEach(function(t,e){p.push(e)}),f.streamerData.forEach(function(t){t.self_data={min:0,max:0},a.forEach(function(e,a){f.$date_compatible(t.start_time).getTime()>=f.$date_compatible(e).getTime()&&(t.self_data.min=a),f.$date_compatible(t.end_time).getTime()>=f.$date_compatible(e).getTime()&&(t.self_data.max=a)})}),f.streamerData.forEach(function(t){var a=[],i=t.self_data.max-t.self_data.min;a.push({name:t.staff_name,value:[1,t.self_data.min,t.self_data.max,i]}),c.push({name:t.staff_name,type:"custom",renderItem:e,xAxisIndex:h.length,yAxisIndex:h.length,itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:a,label:{normal:{show:!0,formatter:function(t){return t.name},color:"#fff"}}})}),v.push({left:"3%",right:"1%",top:"83%",height:this.streamerData&&this.streamerData.length>0?"5%":"3%"}),d.push({data:["A"],show:!1,gridIndex:h.length}),_.push({gridIndex:h.length,min:0,boundaryGap:!1,show:!(this.streamerData&&this.streamerData.length>0),axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#444444"}},axisLabel:{show:!1},data:p}),m=[];for(var g=0;g<h.length+1;g++)m.push(g);u=h.length+1}this.screenData.forEach(function(t,e){c.push({name:t.name,type:"line",xAxisIndex:e+u,yAxisIndex:e+u,symbolSize:2,data:t.data,smooth:!0,lineStyle:{width:2},emphasis:{scale:!1,lineStyle:{width:2}},itemStyle:{color:"rgb("+t.color_rgba+")",borderType:"dotted"},symbol:1==a.length?"emptyCircle":"none",showSymbol:!1,showAllSymbol:!1,areaStyle:{color:new n.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba("+t.color_rgba+",0.3)"},{offset:1,color:"rgba("+t.color_rgba+",0)"}])}}),d.push({show:0==e,name:"",gridIndex:e+u,xAxisIndex:e+u,yAxisIndex:e+u,type:"value",min:0,max:function(t){return t.max+1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#444444",type:"dashed"}},axisLine:{show:!1},nameTextStyle:{color:"#999999",fontSize:14,padding:[0,35,0,0]},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){return""}}}),_.push({show:0==e,type:"category",boundaryGap:!1,gridIndex:e+u,data:a,position:"bottom",axisLine:{show:0==e,lineStyle:{color:"#F2F2F2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){return t.split(" ")[1]}}}),v.push({top:"1%",left:"3%",right:"1%",height:f.is_minute_grain?"70%":1==f.platform?"58%":"53%"}),m.push(e+u)});var b={tooltip:{trigger:"axis",show:!0,position:function(t,e,a,i,s){return[t[0]<s.viewSize[0]/2?t[0]+0:t[0]-a.offsetWidth-0,"20%"]},enterable:!0,formatter:function(t){var e=t[0].name+"<br>";return t.forEach(function(t,a){"福袋"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/shop_live/luckybag.png' style='width:16px;height:16px;margin-right:4px'/>"+t.seriesName+"</div>",t.data[2].forEach(function(t){e+="<div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>奖励:</span>"+t.prize_name+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>条件:</span>"+t.condition+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>开始时间:</span>"+t.start_time+"<br/></div>\n <div style='font-size:13px;margin-left:18px;color:#444'><span style='color:#888'>结束时间:</span>"+t.draw_time+"<br/></div>\n "})):"场记"==t.seriesName?e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8pxmargin-top:8px;width:400px; white-space:pre-wrap;word-break:break-all;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/cj.png' style='width:16px;height:16px;margin-right:4px'/>"+t.seriesName+":"+t.data[2].content+"</div>\n ":"场控预警"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/ck.png' style='width:0.16rem;height:0.16rem;margin-right:0.04rem'/>"+t.seriesName+"</div>",t.data[2].forEach(function(t,a){e+="<div style='margin-top:0.02rem;font-size:0.13rem;margin-left:0.18rem;'>\n"+(a+1)+" : "+t.type_desc+' : <i class="'+("onlive_user_incr"==t.type?"el-icon-top":"gmv"==t.type||"violation"==t.type?"":"el-icon-bottom")+'" style="color: #4f7eff;"></i> '+(t.rate?t.rate:t.desc?t.desc:"")+"\n</div>"})):"商品上架"==t.seriesName?(e+="<div style='display: flex;align-items: center;font-size:13px;color:#333;margin-top:8px;'><img src='https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/spsj.png' style='width:0.16rem;height:0.16rem;margin-right:0.04rem'/>"+t.seriesName+"</div><div style='height: auto;max-height: 160px;overflow-y: auto;'>",t.data[2].forEach(function(t){e+='\n <div style="display: flex;align-items: center;background-color: #f4f4f4;padding: 0.04rem">\n <div>\n <img src="'+t.img+'" alt="" style="width: 0.38rem;height: 0.38rem;border-radius: 0.04rem;margin-right: 0.04rem">\n </div>\n <div style="font-size:0.13rem;">\n <div style=\'width:350px; white-space:pre-wrap;word-break:break-all;\'>'+t.title+"</div>\n <div>"+t.sell_price+"</div>\n </div>\n\n </div>\n "}),e+="</div>"):e+="<div style='margin-top:8px'>"+t.marker+t.seriesName+":"+f.$formatNum(t.value)+"</div>"}),e}},axisPointer:{link:{xAxisIndex:"all"}},dataZoom:[{type:"slider",filterMode:"weakFilter",start:f.dataZoom_start,end:f.dataZoom_end,xAxisIndex:m,moveHandleSize:0,color:"#fff"},{start:f.dataZoom_start,end:f.dataZoom_end,borderColor:"rgba(37, 42, 62, 0.8)",fillerColor:"rgba(37, 42, 62, 0.8)",backgroundColor:"#02050E",filterMode:"weakFilter",moveHandleSize:0,handleStyle:{color:"#fff",shadowBlur:3,shadowColor:"rgba(0, 0, 0, 0.6)",shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:"#fff"}}],grid:v,xAxis:_,yAxis:d,series:c};(r=this.$echarts.init(document.getElementById("trend_echarts"))).setOption(b,!0),r.on("dataZoom",function(t){t.batch?(f.dataZoom_start=t.batch[0].start,f.dataZoom_end=t.batch[0].end):(f.dataZoom_start=t.start,f.dataZoom_end=t.end)}),this.loading=!1}},beforeDestroy:function(){r&&r.clear()}},o={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"}],staticClass:"screenBox_dad big_big_trend_box"},[i("div",{staticClass:"chartsBcg_title"},[t._m(0),t._v(" "),i("div",[i("label",{staticClass:"f13"},[t._v("时间粒度:")]),t._v(" "),i("el-select",{staticClass:"self_list_input__inner",staticStyle:{width:"140px"},attrs:{size:"mini",filterable:"",clearable:"",placeholder:"请选择"},on:{change:t.grainChange},model:{value:t.minute_unit,callback:function(e){t.minute_unit=e},expression:"minute_unit"}},t._l(t.minute_unit_list,function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.id}})}),1),t._v(" "),i("div",{staticClass:"lMarauto self_btn",on:{click:t.openDialog}},[t._v("自定义指标")])],1)]),t._v(" "),i("div",{staticClass:"screenUl_checked_dad"},[t.trendData&&0!=t.trendData.length&&!t.loading?t._l(t.screenData,function(e,a){return i("div",{key:e.key,staticClass:"screenUl_checked",on:{click:function(e){return t.screenSplice(a)},mouseenter:function(e){return t.errorIn(a)},mouseleave:function(e){return t.errorOut(a)}}},[i("span",{staticClass:"icon_block",style:{backgroundColor:"rgb("+e.color_rgba+")"}}),t._v(" "),i("span",[t._v(t._s(e.name))]),t._v(" "),i("i",{staticClass:"el-icon-error",class:t.errorAc==a?"":"error_trans"})])}):t._e()],2),t._v(" "),i("div",{staticClass:"posRela"},[t.is_minute_grain?t._e():[2==t.platform&&t.trendData&&0!=t.trendData.length&&!t.loading?i("div",{staticClass:"scatter_text",staticStyle:{top:"290px"}},[i("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/shop_live/luckybag.png",alt:""}}),t._v(" "),i("span",[t._v("福袋")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?i("div",{staticClass:"scatter_text",staticStyle:{top:"315px"}},[i("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/spsj.png",alt:""}}),t._v(" "),i("span",[t._v("商品上架")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?i("div",{staticClass:"scatter_text",staticStyle:{top:"339px"}},[i("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/cj.png",alt:""}}),t._v(" "),i("span",[t._v("场记")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?i("div",{staticClass:"scatter_text",staticStyle:{top:"362px"}},[i("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/ck.png",alt:""}}),t._v(" "),i("span",[t._v("场控预警")])]):t._e(),t._v(" "),t.trendData&&0!=t.trendData.length&&!t.loading?i("div",{staticClass:"scatter_text",staticStyle:{top:"385px"}},[i("img",{attrs:{src:"https://kx-bigdata.oss-cn-beijing.aliyuncs.com/data_center/zb.png",alt:""}}),t._v(" "),i("span",[t._v("主播")])]):t._e()],t._v(" "),i("div",{key:t.key_index,staticStyle:{"margin-left":"30px"},style:t.is_minute_grain?"height:300px":"height:460px",attrs:{id:"trend_echarts"}})],2),t._v(" "),t.trendData&&(!t.trendData||0!=t.trendData.length)||t.loading?t._e():i("div",{staticClass:"curve_no_data",staticStyle:{top:"220px",width:"200px"}},[i("img",{attrs:{src:a("60Fb"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])]),t._v(" "),i("selfDialogTrend",{ref:"dialogChild",attrs:{propData:t.partName,propplatNum:t.platNum},on:{getscreenData:t.getscreenData}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 观看趋势\n ")])}]};var c=a("VU/8")(l,o,!1,function(t){a("w5Zr"),a("zC0d")},"data-v-6e232227",null);e.a=c.exports},o601:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),s=a.n(i),n=a("kCXs"),r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"livingList"},[t._m(0),t._v(" "),a("div",{staticClass:"table_div"},[a("table",[a("thead",[a("tr",{staticStyle:{"background-color":"#1E2135"}},[t._m(1),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","sell_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("sell_count")}}},[t._v("\n 销量\n "),t._m(2)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","sell_money"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("sell_money")}}},[t._v("\n 销售额\n "),t._m(3)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","buy_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("buy_count")}}},[t._v("\n 下单人数\n "),t._m(4)])]),t._v(" "),t._m(5)])]),t._v(" "),a("tbody",t._l(t.infoList,function(e){return a("tr",{key:e.commodity_id,staticClass:"pointer"},[a("td",{staticStyle:{"text-align":"left",padding:"15px 0 15px 15px"}},[a("div",{staticClass:"living_table_css"},[a("img",{attrs:{src:e.img,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"f13 c-fff clampTwo"},[t._v(t._s(e.title?e.title:"-"))]),t._v(" "),a("div",{staticClass:"tMar10 c-999",staticStyle:{"font-size":"10px!important"}},[t._v("¥"+t._s(e.price?e.price:"-"))])])])]),t._v(" "),a("td",{class:"sell_count"==t.sort_type?"common_selected":""},[e.sell_count?a("span",[t._v(t._s(t.$formatNum(e.sell_count)))]):a("span",[t._v("-")])]),t._v(" "),a("td",{class:"sell_money"==t.sort_type?"common_selected":""},[e.sell_money?a("span",[t._v(t._s(e.sell_money))]):a("span",[t._v("-")])]),t._v(" "),a("td",{class:"buy_count"==t.sort_type?"common_selected":""},[e.buy_count?a("span",[t._v(t._s(t.$formatNum(e.buy_count)))]):a("span",[t._v("-")])]),t._v(" "),a("td",[e.buy_rate?a("span",[t._v(t._s(t.$formatNum(e.buy_rate)))]):a("span",[t._v("-")])])])}),0)])]),t._v(" "),t.permise_limit.hasAuno||t.tableLoading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.permise_limit.hasAuno&&0!=t.total||t.permise_limit.hasAuno&&t.page_size<t.total,expression:"(!permise_limit.hasAuno&&total!=0)||(permise_limit.hasAuno&&page_size<total)"}],staticClass:"bottom",staticStyle:{"background-color":"#02050E"}},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("商品列表\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"45%"}},[e("div",{staticClass:"th_title",staticStyle:{width:"100%","text-align":"left",padding:"0","padding-left":"15px"}},[this._v("\n 商品信息\n ")])])},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("th",[e("div",{staticClass:"th_title"},[this._v("\n 购买率\n ")])])}]};var l=a("VU/8")({name:"goodsList",data:function(){return{tableLoading:!1,sort_type:"sell_money",infoList:{},permise_limit:{hasAuno:!1,err:""},page:1,page_size:10,pages:0,total:""}},created:function(){this.liveDeGoodsList(1)},methods:{liveDeGoodsList:function(t){var e=this;this.tableLoading=!0;var a={params:{live_id:this.$route.params.living_id,sort:this.sort_type,page:t,page_size:this.page_size}};this.$axios.get(this.URL.BASEURL+this.URL.liveDeGoodsList,a).then(function(t){if(e.tableLoading=!1,4001==(t=t.data).errno?(e.permise_limit.hasAuno=!0,e.permise_limit.err=t.err):e.permise_limit.hasAuno=!1,t&&0==t.errno){var a=t.rst;e.total=a.pageInfo.total,e.pages=a.pageInfo.pages,e.infoList=a.data}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.tableLoading=!1})},sortEvent:function(t){if(!this.permise_limit.hasAuno&&!this.loading&&0==this.infoList.length)return this.$message({message:"暂无数据",type:"info"}),!1;this.sort_type=t,this.liveDeGoodsList(1)},handleCurrentChange:function(t){this.liveDeGoodsList(t)}}},r,!1,function(t){a("SF+q")},"data-v-37166d90",null).exports,o={data:function(){return{btnLoading:!1,tableLoading:!1,permise_limit:{hasAuno:!1,err:""},sort_type:"sell_money",infoList:{},page:1,page_size:10,pages:0,total:"",switch_time_btn:1,time_id:10,timeSize:[{name:"10分钟",value:10},{name:"20分钟",value:20},{name:"30分钟",value:30}]}},created:function(){this.init(1)},methods:{goAdverst:function(){var t="douLivingDetial"==this.$route.name?2:1,e=this.$router.resolve({path:"/advertisingPlan/"+this.$route.params.living_id+"/"+t});window.open(e.href,"_blank")},exportEvent:function(){var t=this;if(0==this.infoList.length)return this.$message({message:"数据为空,不能导出!",type:"success"}),!1;this.btnLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.kwai_liveLaunchList,{params:{live_stream_id:this.$route.params.living_id,granularity:this.time_id,type:1==this.switch_time_btn?"total":"incr",page:1,page_size:500}}).then(function(e){var a,i,s=[];(e=e.data)&&0==e.errno?(i="时段,时段消耗,有效观看数,直播间点击成本,商品点击数,商品点击成本,转化订单数,转化销售额,投放ROI\n",a="投放数据",e.rst.data.forEach(function(t){s.push({d_time:t.d_time,cost:t.cost,valid_play:t.valid_play,ad_show1k_cost:t.ad_show1k_cost,goods_view:t.goods_view,goods_view_cost:t.goods_view_cost,paied_order:t.paied_order,gmv:t.gmv,roi:t.roi})}),t.$exportToExcel({th_arr:i,jsonData:s,name:a}).then(function(){t.btnLoading=!1})):(t.btnLoading=!1,t.$message({message:e.err,type:"warning"}))}).catch(function(e){t.btnLoading=!1})},init:function(t){var e=this;this.tableLoading=!0;var a={params:{live_stream_id:this.$route.params.living_id,granularity:this.time_id,type:1==this.switch_time_btn?"total":"incr",page:t,page_size:this.page_size}};this.$axios.get(this.URL.BASEURL+this.URL.kwai_liveLaunchList,a).then(function(t){if(e.tableLoading=!1,4001==(t=t.data).errno?(e.permise_limit.hasAuno=!0,e.permise_limit.err=t.err):e.permise_limit.hasAuno=!1,t&&0==t.errno){var a=t.rst;e.total=a.pageInfo.total,e.pages=a.pageInfo.pages,e.page=parseInt(a.pageInfo.page),e.infoList=a.data}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.tableLoading=!1})},handleCurrentChange:function(t){this.init(t)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putOn"},[t._m(0),t._v(" "),a("div",{staticClass:"flex",staticStyle:{padding:"10px 0"}},[a("div",{staticClass:"flex"},[a("div",{staticClass:"rMar15 f14"},[t._v("统计方式:")]),t._v(" "),a("div",{staticClass:"switch_btn",class:1==t.switch_time_btn?"switch_btn_active":"",on:{click:function(e){t.switch_time_btn=1,t.init(1)}}},[t._v("累加")]),t._v(" "),a("div",{staticClass:"switch_btn",class:0==t.switch_time_btn?"switch_btn_active":"",on:{click:function(e){t.switch_time_btn=0,t.init(1)}}},[t._v("分段")])]),t._v(" "),a("div",{staticClass:"lMar20 f14"},[t._v("时间粒度:")]),t._v(" "),a("el-select",{staticClass:"self_list_input__inner lMar8",staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"筛选"},on:{change:function(e){return t.init(1)}},model:{value:t.time_id,callback:function(e){t.time_id=e},expression:"time_id"}},t._l(t.timeSize,function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.value}})}),1),t._v(" "),a("div",{staticClass:"lMarauto"},[a("span",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],staticClass:"switch_btn switch_btn_active",on:{click:t.exportEvent}},[t._v("导出")]),t._v(" "),a("span",{staticClass:"switch_btn switch_btn_active",on:{click:t.goAdverst}},[t._v("广告计划")])])],1),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_div"},[a("table",[a("thead",[a("tr",{staticStyle:{"background-color":"#1E2135"}},[t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),a("th",[a("div",{staticClass:"th_title"},[t._v("\n 转化"),a("br"),t._v("订单数\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"由投放产生的订单数",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1)]),t._v(" "),a("th",[a("div",{staticClass:"th_title"},[t._v("\n 转化"),a("br"),t._v("销售额\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"由投放产生的销售额",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1)]),t._v(" "),a("th",[a("div",{staticClass:"th_title"},[t._v("\n 投放ROI\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[a("i",{staticClass:"el-icon-question"})])],1)])])]),t._v(" "),a("tbody",t._l(t.infoList,function(e,i){return a("tr",{key:i},[a("td",[e.d_time?a("span",[t._v(t._s(e.d_time))]):a("span",[t._v("-")])]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.cost,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.ad_show,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.ad_show1k_cost,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.goods_view,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.goods_view_cost,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.paied_order,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.gmv,2))+"\n ")]),t._v(" "),a("td",[t._v("\n "+t._s(t.$NumberHandle(e.roi))+"\n ")])])}),0)])]),t._v(" "),t.permise_limit.hasAuno||t.tableLoading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.permise_limit.hasAuno&&0!=t.total||t.permise_limit.hasAuno&&t.page_size<t.total,expression:"(!permise_limit.hasAuno&&total!=0)||(permise_limit.hasAuno&&page_size<total)"}],staticClass:"bottom",staticStyle:{"background-color":"#02050E"}},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("投放数据\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"20%"}},[e("div",{staticClass:"th_title"},[this._v("\n 时段\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 时段消耗\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 曝光数\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 千次曝"),e("br"),this._v("光成本\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 商品点击数\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("\n 商品点"),e("br"),this._v("击成本\n ")])])}]};var _=a("VU/8")(o,c,!1,function(t){a("6ZC/")},"data-v-1362586c",null).exports,d=(a("4f4F"),a("LK9V"),{data:function(){return{barrageLoading:!1,barrageData:{},keyword_type:1,permise_limit:{hasAuno:!1,err:""}}},created:function(){this.liveBarrageAnalysis()},methods:{liveBarrageAnalysis:function(){var t=this;this.barrageLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.kwai_analysis,{params:{live_stream_id:this.$route.params.living_id}}).then(function(e){e=e.data;t.barrageLoading=!1,4001==e.errno?(t.permise_limit.hasAuno=!0,t.permise_limit.err=e.err):t.permise_limit.hasAuno=!1,e&&0==e.errno?(t.barrageData=e.rst,t.$nextTick(function(){t.worldCloudcharts()})):"4001"!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.barrageLoading=!1})},worldCloudcharts:function(){var t=[];if(0!=this.barrageData.hot_words.length){this.barrageData.hot_words.forEach(function(e){t.push({name:e.keyword,value:e.countkeyword})});if(document.getElementById("worldCloud"))var e=this.$echarts.init(document.getElementById("worldCloud"),"macarons"),a={tooltip:{show:!0},grid:{top:0,left:0,right:0,bottom:0,containLabel:!0},series:[{name:"",type:"wordCloud",sizeRange:[10,32],rotationRange:[0,0],autoSize:{enable:!0,minSize:10},textStyle:{color:"#FE9400"},shape:"rectangle",data:t}]};e.setOption(a),e.on("click",function(t){})}}}}),v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.barrageLoading,expression:"barrageLoading"}],staticClass:"tMar10"},[i("div",{staticClass:"detail_modlue"},[i("div",{staticClass:"flex",staticStyle:{"align-items":"flex-start"}},[i("div",{staticClass:"trendBox",staticStyle:{"margin-right":"1%",width:"49%",height:"462px"}},[t.barrageData.total?i("div",{staticClass:"curve box"},[t._m(0),t._v(" "),i("div",{staticClass:"flex tMar15"},[i("div",{staticClass:"barrageProgress"},[t._v("普通弹幕"),i("span",[t._v(t._s(parseFloat((100*t.barrageData.total.normal_rate).toFixed(10)))+"%")])]),t._v(" "),i("div",{staticClass:"barrageProgress"},[t._v("需求弹幕"),i("span",{staticStyle:{color:"#006FFF"}},[t._v(t._s(parseFloat((100*t.barrageData.total.participle_rate).toFixed(10)))+"%")])])]),t._v(" "),i("div",{staticClass:"progress"},[i("div",{staticClass:"progressBar",style:t.barrageData.total.participle_rate?"width:"+parseFloat((100*t.barrageData.total.participle_rate).toFixed(10))+"%;min-width:2%":""})]),t._v(" "),t.barrageData.total?i("div",{staticClass:"barrageData"},[i("div",{staticClass:"data"},[i("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.total_count)))]),t._v(" "),i("p",[t._v("弹幕总数")])]),t._v(" "),i("div",{staticClass:"data"},[i("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.user_count)))]),t._v(" "),i("p",[t._v("弹幕人数")])]),t._v(" "),i("div",{staticClass:"data"},[i("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.average_count)))]),t._v(" "),i("p",[t._v("人均弹幕")])]),t._v(" "),i("div",{staticClass:"data"},[i("span",[t._v(t._s(t.$NumberHandle(t.barrageData.total.interaction_rate)))]),t._v(" "),i("p",[t._v("互动率")])])]):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"curve box tMar10",staticStyle:{height:"280px",overflow:"hidden"}},[t._m(1),t._v(" "),t._m(2),t._v(" "),this.barrageData.hot_words&&0!=this.barrageData.hot_words.length||t.barrageLoading?t._e():i("div",{staticClass:"curve_no_data",staticStyle:{top:"60px"}},[i("img",{attrs:{src:a("nu6d"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])])])]),t._v(" "),i("div",{staticClass:"trendBox box",staticStyle:{width:"50%"}},[i("div",{staticClass:"curve curve_barrage"},[i("div",{staticClass:"f14 fWeight600 c-fff flex"},[t._m(3),t._v(" "),i("div",{staticClass:"choice"},[i("div",{class:[1==t.keyword_type?"active":""],on:{click:function(e){t.keyword_type=1}}},[t._v("商品")]),t._v(" "),i("div",{class:[2==t.keyword_type?"active":""],on:{click:function(e){t.keyword_type=2}}},[t._v("品牌")])])]),t._v(" "),1==t.keyword_type&&t.barrageData.product||2==t.keyword_type&&t.barrageData.brand?[i("div",{staticClass:"keywordsBox"},[i("div",{staticClass:"keywords"},t._l(1==t.keyword_type?t.barrageData.product.keywords:t.barrageData.brand.keywords,function(e,a){return i("div",{key:a},[t._v(t._s(e.keyword)+" "+t._s(e.rate))])}),0)]),t._v(" "),i("div",{staticClass:"barrageListBox"},[i("ul",{staticClass:"barrageList"},t._l(1==t.keyword_type?t.barrageData.product.list:t.barrageData.brand.list,function(e,a){return i("li",{key:a},[i("p",{staticClass:"time"},[t._v(t._s(e.created_at.split(" ")[1]))]),t._v(" "),e.brand_keyword||e.product_keyword?i("p",{staticClass:"count"},[t._v("("+t._s(1==t.keyword_type?e.product_keyword:e.brand_keyword)+")")]):t._e(),t._v(" "),i("p",{staticClass:"con"},[t._v(t._s(e.content))])])}),0)])]:t._e(),t._v(" "),(1==t.keyword_type&&t.barrageData.product&&t.barrageData.product.list&&0==t.barrageData.product.list.length||2==t.keyword_type&&t.barrageData.brand&&t.barrageData.brand.list&&0==t.barrageData.brand.list.length)&&!t.barrageLoading?i("div",{staticClass:"curve_no_data",staticStyle:{top:"140px"}},[i("img",{attrs:{src:a("nu6d"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])]):t._e(),t._v(" "),t.permise_limit.hasAuno?i("list-permission",{staticStyle:{background:"#fff","margin-top":"100px"},attrs:{permise_limit:t.permise_limit}}):t._e()],2)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff flex-align-center"},[e("span",{staticClass:"title_span"}),this._v("弹幕数据概览")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"f14 fWeight600 c-fff flex-align-center"},[e("span",{staticClass:"title_span"}),this._v("弹幕词云")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wordNephogram",staticStyle:{height:"300px"}},[e("div",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{id:"worldCloud"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("span",{staticClass:"title_span"}),this._v("弹幕需求统计\n ")])}]};var f=a("VU/8")(d,v,!1,function(t){a("+6JB")},"data-v-0f663c03",null).exports,m=a("NV46"),u={name:"livingDetialindex",components:{trend:n.a,goodsList:l,putOn:_,barrage:f,editPlan:m.a},data:function(){return{editPlanFlag:!1,loading:!1,basicData:{},liveInfoPreview:{},staffPreview:{},playbackFlag:!1,live_record_info:{},playbackLoading:!1,playbackLoading2:!1,tabBar_data:[{name:"观看趋势"},{name:"投放数据"},{name:"商品列表"},{name:"弹幕舆情"}],tabBarLine:0,accountInfo:{},staffList:[]}},created:function(){this.liveDeinfoLeft(),this.get_staffList()},methods:{closeDialog:function(){this.editPlanFlag=!1,this.liveDeinfoLeft()},goReplay:function(){var t=this.$router.resolve({path:"/replay/"+this.$route.params.living_id+"/1"});window.open(t.href,"_blank")},scrollEvent:function(t){var e=t.srcElement.scrollTop,a=document.getElementById("trend").offsetTop-70,i=document.getElementById("putOn").offsetTop-70,s=document.getElementById("goodsList").offsetTop-70,n=document.getElementById("barrageYuQing").offsetTop-400;this.tabBarLine=e<a?0:e>=a&&e<i?0:e>=i&&e<s?1:e>=s&&e<n?2:3},showBar:function(t){var e=void 0;0==t?e="trend":1==t?e="putOn":2==t?e="goodsList":3!=t||(e="barrageYuQing");var a=document.getElementById(e).offsetTop-70;document.getElementById("page_con").scrollTo({top:a,behavior:"smooth"})},closeVideo:function(){document.getElementById("video").pause(),this.playbackFlag=!1},live_record:function(t){var e=this;"clip"==t?this.playbackLoading2=!0:this.playbackLoading=!0,this.$axios.get(this.URL.BASEURL+this.URL.kwai_live_record,{params:{live_stream_id:this.$route.params.living_id}}).then(function(a){a=a.data;if(e.playbackLoading=!1,e.playbackLoading2=!1,a&&0==a.errno)if(e.live_record_info=a.rst,a.rst&&a.rst.tag_play_url&&""!=a.rst.tag_play_url){if("clip"==t)return void e.$router.push({path:"/videoClip/"+e.$route.params.living_id+"/1"});e.playbackFlag=!0}else e.$message({message:"clip"==t?"该直播暂无直播回放,无法剪辑视频!":"该直播暂无直播回放!",type:"warning"});else e.$message({message:a.err,type:"warning"})}).catch(function(t){e.playbackLoading=!1,e.playbackLoading2=!1})},createVideo:function(t){if(this.live_record_info&&this.live_record_info.tag_play_url){if("clip"==t)return void this.$router.push({path:"/videoClip/"+this.$route.params.living_id+"/1"});this.playbackFlag=!this.playbackFlag;var e=document.getElementById("video");this.playbackFlag?e&&e.play():e&&e.pause()}else this.live_record(t)},toAccountDetail:function(){var t=this.$router.resolve({path:"/accountDetial/"+this.liveInfoPreview.seller_id});window.open(t.href,"_blank")},swapArr:function(t,e,a){return t[e]=t.splice(a,1,t[e])[0],t},liveDeinfoLeft:function(){var t=this;this.loading=!0;var e={params:{live_stream_id:this.$route.params.living_id}};this.$axios.get(this.URL.BASEURL+this.URL.liveDeinfoLeft,e).then(function(e){if((e=e.data)&&0==e.errno){t.basicData=e.rst.data_preview;var a=[],i=[];e.rst.staff.forEach(function(t){if("主播"==t.role_name){var e=!1;a.forEach(function(a,i){a.time.start_time==t.start_time&&a.time.end_time==t.end_time&&(a.ren_staff.push({staff_id:t.staff_id,staff_name:t.staff_name}),e=!0)}),e||a.push({time:{start_time:t.start_time,end_time:t.end_time},ren_staff:[{staff_id:t.staff_id,staff_name:t.staff_name}]})}else{var s=!1;i.forEach(function(e,a){e.time.start_time==t.start_time&&e.time.end_time==t.end_time&&(e.ren_staff.push({staff_id:t.staff_id,staff_name:t.staff_name}),s=!0)}),s||i.push({time:{start_time:t.start_time,end_time:t.end_time},ren_staff:[{staff_id:t.staff_id,staff_name:t.staff_name}]})}}),t.staffPreview={zb_staff:a,gz_staff:i},e.rst.staff&&e.rst.staff.length>0&&(t.staffPreview.has_flag=!0),t.liveInfoPreview=e.rst.live_info,t.accountInfo={head:t.liveInfoPreview.live_cover_img,name:t.liveInfoPreview.live_title,ruled:1,sellerId:s()(t.liveInfoPreview.seller_id),type:1}}else t.$message({message:e.err,type:"warning"});t.loading=!1}).catch(function(e){t.loading=!1})},get_staffList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.userListForFilter,{params:{is_pos:1}}).then(function(e){if((e=e.data)&&0==e.errno){var a=e.rst;a.forEach(function(t){t.name=t.real_name}),t.staffList=a}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})}}},h={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"}],staticClass:"accountDetialPage"},[i("div",{staticClass:"page_left"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"liveImgBox"},[i("img",{staticClass:"liveImg",attrs:{src:t.liveInfoPreview.live_cover_img,alt:""}}),t._v(" "),0==t.liveInfoPreview.is_end?i("span",{staticClass:"living_span"},[i("img",{staticClass:"liveGif",attrs:{src:a("wcBb"),alt:""}}),t._v("\n 直播中\n ")]):t._e()]),t._v(" "),i("div",{staticStyle:{flex:"1"}},[i("div",{staticClass:"nickname"},[i("el-tooltip",{attrs:{effect:"dark",content:t.liveInfoPreview.live_title,disabled:!(t.liveInfoPreview.live_title&&t.liveInfoPreview.live_title.length>10),placement:"top"}},[i("div",{staticClass:"f16 fWeight600 nickname_div"},[t._v(t._s(t.liveInfoPreview.live_title))])])],1),t._v(" "),i("div",{staticClass:"tMar10 flex"},[i("i",{staticClass:"c-E1E1E1 f13"},[t._v("开播时间:"+t._s(t.liveInfoPreview&&t.liveInfoPreview.start_time?t.liveInfoPreview.start_time:"-"))])]),t._v(" "),i("div",{staticClass:"tMar10 flex"},[i("i",{staticClass:"c-E1E1E1 f13"},[t._v("直播时长:"+t._s(t.liveInfoPreview&&t.liveInfoPreview.live_duration_desc?t.liveInfoPreview.live_duration_desc:"-"))])])])]),t._v(" "),i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"bottom","popper-class":"playback-popper-class",width:"300",trigger:"manual"},model:{value:t.playbackFlag,callback:function(e){t.playbackFlag=e},expression:"playbackFlag"}},[i("i",{staticClass:"el-icon-close closePlayback",on:{click:t.closeVideo}}),t._v(" "),i("video",{staticClass:"video",staticStyle:{width:"240px",margin:"auto",display:"block"},attrs:{src:t.live_record_info.tag_play_url,id:"video",preload:"meta",autoplay:"",controls:"controls"}},[t._v("您的浏览器不支持 video 标签。")]),t._v(" "),i("div",{staticClass:"openLivingBox",attrs:{slot:"reference"},on:{click:function(e){return t.createVideo()}},slot:"reference"},[i("i",{staticClass:"iconfont icon-guankanrenshu_icon rMar5",staticStyle:{"font-size":"10px"}}),t._v("\n 直播回放\n "),t.playbackLoading?i("i",{staticClass:"el-icon-loading"}):t._e()])]),t._v(" "),i("div",{staticClass:"openLivingBox",staticStyle:{width:"90px"},on:{click:function(e){return t.createVideo("clip")}}},[i("i",{staticClass:"el-icon-scissors rMar5",staticStyle:{"font-size":"10px"}}),t._v("\n 视频剪辑\n "),t.playbackLoading2?i("i",{staticClass:"el-icon-loading"}):t._e()])],1),t._v(" "),i("div",{staticClass:"nameList"},[t._m(0),t._v(" "),i("div",{staticClass:"flex-row"},[i("div",{staticStyle:{"flex-shrink":"0"}},[t._v("账号: ")]),t._v(" "),i("div",{staticClass:"pointer flex",on:{click:t.toAccountDetail}},[i("img",{staticStyle:{"border-radius":"50%",width:"28px","margin-right":"6px"},attrs:{src:t.liveInfoPreview.seller_headimg,alt:""}}),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.liveInfoPreview.seller_name,disabled:!(t.liveInfoPreview.seller_name&&t.liveInfoPreview.seller_name.length>10),placement:"top"}},[i("span",{staticClass:"f16 fWeight600 line21"},[t._v(t._s(t.liveInfoPreview.seller_name))])])],1)]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"flex"},[t._v("人员:\n "),i("div",{staticClass:"f13 c-4F7EFF pointer fWeight600",on:{click:function(e){t.editPlanFlag=!0}}},[i("i",{staticClass:"el-icon-circle-plus-outline fWeight600 rMar3"}),i("span",[t._v(t._s(t.staffPreview&&t.staffPreview.has_flag?"编辑":"添加")+"人员")])])]),t._v(" "),i("div",{staticStyle:{"margin-left":"46px"}},[t.staffPreview&&t.staffPreview.zb_staff&&t.staffPreview.zb_staff.length>0?[i("div",{staticClass:"staff_title"},[t._v("主播")]),t._v(" "),t._l(t.staffPreview.zb_staff,function(e,a){return i("p",{key:a+"zb",staticClass:"staff_zy"},[t._v(t._s(e.time.start_time.slice(11,16))+"-"+t._s(e.time.end_time.slice(11,16))+" "),t._l(e.ren_staff,function(s,n){return i("span",{key:s.staff_id+a},[t._v(t._s(s.staff_name)),n<e.ren_staff.length-1?i("em",[t._v(", ")]):t._e()])})],2)})]:t._e(),t._v(" "),t.staffPreview&&t.staffPreview.gz_staff&&t.staffPreview.gz_staff.length>0?[i("div",{staticClass:"staff_title"},[t._v("工作人员")]),t._v(" "),t._l(t.staffPreview.gz_staff,function(e,a){return i("p",{key:a+"gz",staticClass:"staff_zy"},[t._v(t._s(e.time.start_time.slice(11,16))+"-"+t._s(e.time.end_time.slice(11,16))+" "),t._l(e.ren_staff,function(s,n){return i("span",{key:s.staff_id+a},[t._v(t._s(s.staff_name)),n<e.ren_staff.length-1?i("em",[t._v(", ")]):t._e()])})],2)})]:t._e()],2)])]),t._v(" "),i("div",{staticClass:"basis_data_30"},[t._m(1),t._v(" "),i("el-row",{staticClass:"conditionBox"},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num",staticStyle:{color:"#FE9400"}},[t._v(t._s(1==t.liveInfoPreview.is_end?"-":t.liveInfoPreview.onlive_display_watching_count?t.$NumberHandle(t.liveInfoPreview.onlive_display_watching_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("当前人气")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.watching_user_count?t.$NumberHandle(t.liveInfoPreview.watching_user_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("累计观看")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.bast_display_watching_count?t.$NumberHandle(t.liveInfoPreview.bast_display_watching_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("人气峰值")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.display_watching_count?t.$NumberHandle(t.liveInfoPreview.display_watching_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("平均在线")])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.customer_avg_in_live_time?t.liveInfoPreview.customer_avg_in_live_time:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("平均停留")])])],1)],1),t._v(" "),i("div",{staticClass:"basis_data_30"},[t._m(2),t._v(" "),i("el-row",{staticClass:"conditionBox"},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_count?t.$NumberHandle(t.liveInfoPreview.order_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("总订单")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_back?t.$NumberHandle(t.liveInfoPreview.order_back):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("退单量")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_actual?t.$NumberHandle(t.liveInfoPreview.order_actual):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("实际订单")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_unpaid?t.$NumberHandle(t.liveInfoPreview.order_unpaid):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("未支付订单")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.sell_money?t.$NumberHandle(t.liveInfoPreview.sell_money):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("总销售额")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.refund_money?t.$NumberHandle(t.liveInfoPreview.refund_money):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("退款金额")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.actual_money?t.$NumberHandle(t.liveInfoPreview.actual_money):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("实际销售额")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.uv_value?t.liveInfoPreview.uv_value:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("UV价值")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.buy_rate?t.liveInfoPreview.buy_rate:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("购买率")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num c-FE9im"},[t._v(t._s(t.liveInfoPreview.avg_user_cost?t.$NumberHandle(t.liveInfoPreview.avg_user_cost):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("客单价")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.goods_count?t.$NumberHandle(t.liveInfoPreview.goods_count):"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("商品数")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.order_back_rate?t.liveInfoPreview.order_back_rate:"-")+"%")]),t._v(" "),i("div",{staticClass:"name"},[t._v("退单率")])])],1)],1),t._v(" "),i("div",{staticClass:"basis_data_30"},[t._m(3),t._v(" "),i("el-row",{staticClass:"conditionBox"},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num c-FE9im"},[t._v(t._s(t.liveInfoPreview.fan_add?t.liveInfoPreview.fan_add:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("直播涨粉")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num"},[t._v(t._s(t.liveInfoPreview.convert_fans_rate?t.liveInfoPreview.convert_fans_rate:"-")+"%")]),t._v(" "),i("div",{staticClass:"name"},[t._v("转粉率")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num c-FE9im"},[t._v(t._s(t.liveInfoPreview.consume_amount?t.liveInfoPreview.consume_amount:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("投放金额")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("div",{staticClass:"num c-FE9im"},[t._v(t._s(t.liveInfoPreview.roi?t.liveInfoPreview.roi:"-"))]),t._v(" "),i("div",{staticClass:"name"},[t._v("\n 投放ROI\n "),i("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1)])],1)],1)]),t._v(" "),i("div",{staticClass:"page_right"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"commonn_switchBox",staticStyle:{width:"480px"}},[t._l(t.tabBar_data,function(e,a){return i("button",{key:a,class:t.tabBarLine==a?"active":"",staticStyle:{"font-weight":"bold"},on:{click:function(e){return t.showBar(a)}}},[t._v(t._s(e.name))])}),t._v(" "),0!=t.liveInfoPreview.is_end?i("button",{staticClass:"replayButton",on:{click:t.goReplay}},[t._v("复盘"),i("span",{staticClass:"new"},[t._v("new")])]):t._e()],2)]),t._v(" "),i("div",{staticClass:"page_con self-scrollbar-3",attrs:{id:"page_con"},on:{scroll:t.scrollEvent}},[i("trend",{attrs:{id:"trend",platform:"1"}}),t._v(" "),i("putOn",{attrs:{id:"putOn"}}),t._v(" "),i("goodsList",{attrs:{id:"goodsList"}}),t._v(" "),i("barrage",{attrs:{id:"barrageYuQing"}})],1)]),t._v(" "),i("el-dialog",{attrs:{title:"编辑直播数据",visible:t.editPlanFlag,width:"740px","close-on-click-modal":!1,top:"60px",left:""},on:{"update:visible":function(e){t.editPlanFlag=e}}},[t.editPlanFlag?i("editPlan",{attrs:{accountInfo:t.accountInfo,date:t.liveInfoPreview&&t.liveInfoPreview.start_time&&t.liveInfoPreview.start_time.split(" ")[0],staffList:t.staffList},on:{closeDialog:t.closeDialog}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex-row",staticStyle:{"margin-bottom":"18px"}},[e("div",{staticStyle:{"flex-shrink":"0"}},[this._v("平台: ")]),this._v(" "),e("div",{staticClass:"flex"},[e("img",{staticStyle:{width:"20px","margin-right":"6px"},attrs:{src:a("FxTv"),alt:""}}),e("span",{staticClass:"f14",staticStyle:{"font-weight":"bold"}},[this._v("快手")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 进场流量\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 带货数据\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"basis_title f14 fWeight600"},[e("span",{staticClass:"title_span"}),this._v("\n 数据转化\n ")])}]};var p=a("VU/8")(u,h,!1,function(t){a("KiiB"),a("+s85")},"data-v-116eac85",null);e.default=p.exports},w5Zr:function(t,e){},zC0d:function(t,e){}});
|