猎户系统

36.57c6e437c0152185a39c.js 10KB

1
  1. webpackJsonp([36],{"0KMM":function(t,e){},b23g:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),i=a.n(n),s=a("exGp"),o=a.n(s),r=a("gzej"),c=a("vieU"),l={mixins:[a("K7TI").a],components:{TableList:c.a},data:function(){return{descolList:[{name:"图文",column:"spreadInfo",slotFlag:!0,minWidth:"260px"},{name:"推广位",column:"pid",slotFlag:!0,minWidth:"200px"},{name:"订单数",column:"order_count"},{name:"佣金",column:"commission"},{name:"点击次数",column:"click_count"},{name:"点击人数",column:"click_ucount"},{name:"复制淘口令",column:"copy_count"},{name:"打开淘宝",column:"jump_count"},{name:"操作",column:"operate",slotFlag:!0,alignSelf:"center",minWidth:"160px",isfixed:"right"}],imgUrls:[],spreadDesc:"",targetLink:""}},props:{Proptime:[],goodsInfo:{}},created:function(){this.init()},watch:{Proptime:function(){this.init()}},methods:{getVal:function(t){this.targetLink=t.url,this.spreadDesc=t.spreadInfo,t.imgUrls?this.imgUrls=t.imgUrls.split(";"):this.imgUrls=[]},onClickCopyBtn:function(t){var e=this;return o()(i.a.mark(function a(){var n,s,o;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.getVal(t);case 2:n=document.createRange(),s=document.getElementById("copyBox"),n.selectNode(s),(o=window.getSelection()).rangeCount>0?(o.removeAllRanges(),o.addRange(n),document.execCommand("Copy",!1,null),e.$message({message:"复制成功!",type:"success"})):e.$message({message:"复制失败!",type:"warning"});case 7:case"end":return a.stop()}},a,e)}))()},turnPageEvent:function(t){this.page=t,this.init()},init:function(){var t=this;return o()(i.a.mark(function e(){var a,n,s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get(t.URL.BASEURL+t.URL.dataAnalysis_linkDataList,{params:{start:t.Proptime[0],end:t.Proptime[1],item_id_b:t.$route.params.id,page:t.page,pageSize:t.pageSize}});case 3:a=e.sent,n=a.data,(s=void 0===n?{}:n)&&0==s.errno?(s.rst.data.forEach(function(t){t.imgUrls&&(t.infoImgList=t.imgUrls.split(";"))}),t.tableList=s.rst.data,t.total=s.rst.pageInfo.total):4002!=s.errno&&t.$message({message:s.err,type:"warning"}),t.loading=!1;case 8:case"end":return e.stop()}},e,t)}))()},goDataDetial:function(t){this.$router.push({path:"/dataAnalysis_dataDetial",query:{url:t.url,img:this.goodsInfo.img,name:this.goodsInfo.name}})}},filters:{ellipsis60:function(t){return t?t.length>60?t.slice(0,60)+"...":t:""}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tableBox"},[t._m(0),t._v(" "),a("TableList",{ref:"tableListRef",attrs:{total:t.total,loading:t.loading,showPagination:!0,tableData:t.tableList,descol:t.descolList},on:{turnPageEvent:t.turnPageEvent},scopedSlots:t._u([{key:"spreadInfo",fn:function(e){return[a("div",{staticClass:"infoBox"},[a("el-popover",{attrs:{placement:"bottom",disabled:!e.row.spreadInfo&&!e.row.url&&!e.row.imgUrls,width:"360",trigger:"hover","popper-class":"popperDarkCss"}},[a("div",[a("div",[t._v(t._s(e.row.spreadInfo))]),t._v(" "),a("div",[t._v(t._s(e.row.url))]),t._v(" "),e.row.spreadInfo||e.row.url?t._e():a("div",[t._v("-")]),t._v(" "),a("div",{staticClass:"tMar10 flexWrap"},t._l(e.row.infoImgList,function(t,e){return a("img",{key:e,staticStyle:{width:"92px",height:"92px","margin-right":"10px","margin-bottom":"10px"},attrs:{src:t,alt:""}})}),0)]),t._v(" "),a("div",{staticClass:"pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("span",[t._v(t._s(t._f("ellipsis60")(e.row.spreadInfo)))]),t._v(" "),e.row.spreadInfo?t._e():a("span",[t._v(t._s(e.row.url))]),t._v(" "),e.row.spreadInfo||e.row.url?t._e():a("span",[t._v("-")])])])])],1)]}},{key:"operate",fn:function(e){return[a("div",{staticClass:"text-center"},[a("span",{staticClass:"operate_text rMar15",on:{click:function(a){return t.onClickCopyBtn(e.row)}}},[t._v("复制推广")]),t._v(" "),a("span",{staticClass:"operate_text",on:{click:function(a){return t.goDataDetial(e.row)}}},[t._v("数据详情")])])]}},{key:"pid",fn:function(e){return[a("div",[a("span",[t._v(t._s(e.row.pid_name||"-")+"("+t._s(e.row.pid||"-")+")")])])]}}])}),t._v(" "),a("div",{attrs:{id:"copyBox"}},[t.imgUrls&&t.imgUrls.length>0?a("div",{staticClass:"flexWarp tMar18"},t._l(t.imgUrls,function(t,e){return a("div",{key:e,staticClass:"imgBoxList"},[a("img",{staticStyle:{width:"80px"},attrs:{src:t,alt:""}})])}),0):t._e(),t._v(" "),a("div",[a("pre",[t._v(t._s(t.spreadDesc||""))])]),t._v(" "),a("div",[t._v(t._s(t.targetLink||""))])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tableTitle"},[e("span"),this._v("链接表现情况")])}]};var m=a("VU/8")(l,d,!1,function(t){a("0KMM")},"data-v-0754ec85",null).exports,u={components:{datePicker:r.a,LinkPerformance:m},data:function(){return{default_time:[this.$getDay(-30,!1),this.$getDay(0,!1)],goodsData:[{name:"订单",num:0,key:"order_count"},{name:"佣金",num:0,key:"commission"},{name:"链接条数",num:0,key:"url_count"},{name:"点击次数",num:0,key:"click_count"},{name:"点击人数",num:0,key:"click_ucount"},{name:"复制淘口令",num:0,key:"copy_count"},{name:"打开淘宝",num:0,key:"jump_count"},{name:"近30日成交件数",num:0,key:"sell_count"}],goodsInfoProp:{img:"",name:""},goodsInfo:{pict_url:"",title:"",price:"",commission:"",coupon_amount:""},infoloading:!1,chartloading:!1,myChart:null,xdate:[],echartsAllList:[{name:"订单",key:"order_count",data:[]},{name:"佣金",key:"commission",data:[]},{name:"点击次数",key:"click_count",data:[]},{name:"点击人数",key:"click_ucount",data:[]},{name:"复制淘口令",key:"copy_count",data:[]},{name:"打开淘宝",key:"jump_count",data:[]}]}},mounted:function(){this.pageInit()},beforeDestroy:function(){this.myChart&&this.myChart.clear()},methods:{pageInit:function(){this.initGoodsInfo(),this.handleGetSummary()},onChangeTime:function(t){this.default_time=t,this.pageInit()},handleGetSummary:function(){var t=this;return o()(i.a.mark(function e(){var a,n,s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.chartloading=!0,e.next=3,t.$axios.get(t.URL.BASEURL+t.URL.dataAnalysis_goodsDailyTrends,{params:{start:t.default_time[0],end:t.default_time[1],item_id_b:t.$route.params.id}});case 3:a=e.sent,n=a.data,(s=void 0===n?{}:n)&&0==s.errno?(t.xdate=[],t.echartsAllList.forEach(function(t){t.data=[]}),s.rst.forEach(function(e){t.xdate.push(e.date),t.echartsAllList.forEach(function(t){t.data.push(e[t.key])})}),t.initEchartsVal()):4002!=s.errno&&t.$message({message:s.err,type:"warning"}),t.chartloading=!1;case 8:case"end":return e.stop()}},e,t)}))()},initEchartsVal:function(){this.myChart&&this.myChart.clear();var t=[];this.echartsAllList.forEach(function(e){t.push({showSymbol:!1,data:e.data,type:"line",name:e.name})});var e={color:["#FF5252","#1361FF","#09A03F","#FF9700","#7E00FF","#FF0089"],legend:{icon:"roundRect",data:this.echartsAllList.map(function(t){return t.name}),show:!0,itemGap:15,itemWidth:10,itemHeight:10,left:0},grid:{top:40,left:10,right:10,bottom:0,containLabel:!0},xAxis:{type:"category",data:this.xdate,axisTick:{show:!1}},tooltip:{trigger:"axis"},yAxis:{type:"value"},series:t};this.myChart=this.myChart?this.myChart:this.$echarts.init(document.getElementById("trend")),this.myChart.setOption(e)},initGoodsInfo:function(){var t=this;return o()(i.a.mark(function e(){var a,n,s,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.infoloading=!0,e.next=3,t.$axios.get(t.URL.BASEURL+t.URL.dataAnalysis_goodsInfo,{params:{start:t.default_time[0],end:t.default_time[1],item_id_b:t.$route.params.id}});case 3:if(a=e.sent,n=a.data,(s=void 0===n?{}:n)&&0==s.errno){for(o in t.goodsInfoProp.img=s.rst.pict_url,t.goodsInfoProp.name=s.rst.title,t.goodsInfo)t.goodsInfo[o]=s.rst[o];t.goodsData.forEach(function(t){t.num=s.rst.data[t.key]})}else 4002!=s.errno&&t.$message({message:s.err,type:"warning"});t.infoloading=!1;case 8:case"end":return e.stop()}},e,t)}))()}}},p={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"backBox"},[n("span",{staticClass:"pointer",on:{click:function(e){return t.$router.go(-1)}}},[n("i",{staticClass:"el-icon-back"}),t._v(" 商品详情")])]),t._v(" "),n("div",{staticClass:"header-wrap"},[n("datePicker",{attrs:{title:"",quickFlag:!0,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.onChangeTime}})],1),t._v(" "),n("div",{staticClass:"dataInfoBox"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.infoloading,expression:"infoloading"}],staticClass:"box"},[n("div",{staticClass:"goodsBox"},[n("div",[n("img",{attrs:{src:t.goodsInfo.pict_url,alt:""}})]),t._v(" "),n("div",[n("div",{staticClass:"pageFlex"},[n("img",{staticStyle:{width:"16px",height:"16px","flex-shrink":"0"},attrs:{src:a("Ay5F"),alt:""}}),n("span",{staticClass:"line21"},[t._v(t._s(t.goodsInfo.title||"-"))])]),t._v(" "),n("div",{staticClass:"f12 c-666 tMar20 pageFlex"},[n("div",[t._v("\n 券后:"),n("span",{staticClass:"c-theme f16 f-wei-600"},[t._v(t._s(t.$formatNum(t.goodsInfo.price)||"-"))])]),t._v(" "),n("div",{staticClass:"lMar20"},[t._v("\n 佣金:"),n("span",{staticClass:"c-theme f16 f-wei-600"},[t._v(t._s(t.$formatNum(t.goodsInfo.commission)||"-"))])]),t._v(" "),n("div",{staticClass:"ticketBox lMar20"},[n("span",{staticClass:"text"},[t._v(t._s(t.$formatNum(t.goodsInfo.coupon_amount)||"-"))])])])])]),t._v(" "),n("div",{staticClass:"flex",staticStyle:{padding:"0 10px"}},t._l(t.goodsData,function(e){return n("div",{key:e.key,staticClass:"text-center"},[n("div",{staticClass:"num"},[t._v(t._s(t.$formatNum(e.num)||"-"))]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(e.name||"-"))])])}),0)]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.chartloading,expression:"chartloading"}],staticClass:"box",staticStyle:{"margin-right":"0"}},[t._m(0),t._v(" "),n("div",{attrs:{id:"trend"}})])]),t._v(" "),n("LinkPerformance",{attrs:{Proptime:t.default_time,goodsInfo:t.goodsInfoProp}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tableTitle"},[e("span"),this._v("数据趋势")])}]};var f=a("VU/8")(u,p,!1,function(t){a("wFd3")},"data-v-448592df",null);e.default=f.exports},wFd3:function(t,e){}});