1 |
- webpackJsonp([41],{"6XAT":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Xxa5"),i=e.n(n),s=e("exGp"),o=e.n(s),r=e("gzej"),c=e("vieU"),u={mixins:[e("K7TI").a],components:{datePicker:r.a,TableList:c.a},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:"view_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"}],goodsInfo:{link:"https://img1.baidu.com/it/u=407852637,3650486136&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",img:"https://img1.baidu.com/it/u=407852637,3650486136&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",name:"商品名称商品名称商品名称商品名称商品名称"},descolList:[{name:"时间",column:"date"},{name:"订单数",column:"order_count"},{name:"佣金",column:"commission"},{name:"点击次数",column:"click_count"},{name:"点击人数",column:"click_ucount"},{name:"复制淘口令",column:"copy_count"},{name:"打开淘宝",column:"jump_count"}],infoLoading:!1}},created:function(){this.init_total(),this.init()},methods:{onChangeTime:function(t){this.default_time=t,this.init_total(),this.init()},initGoodsInfo:function(){var t=this;return o()(i.a.mark(function a(){var e,n,s,o;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.infoloading=!0,a.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(e=a.sent,n=e.data,(s=void 0===n?{}:n)&&0==s.errno)for(o in t.goodsInfo)t.goodsInfo[o]=s.rst[o];else 4002!=s.errno&&t.$message({message:s.err,type:"warning"});t.infoloading=!1;case 8:case"end":return a.stop()}},a,t)}))()},init_total:function(){var t=this;return o()(i.a.mark(function a(){var e,n,s;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.infoLoading=!0,a.next=3,t.$axios.get(t.URL.BASEURL+t.URL.dataAnalysis_linkDataTotal,{params:{start:t.default_time[0],end:t.default_time[1],url:t.$route.query.url}});case 3:e=a.sent,n=e.data,(s=void 0===n?{}:n)&&0==s.errno?t.goodsData.forEach(function(t){t.num=s.rst[t.key]}):4002!=s.errno&&t.$message({message:s.err,type:"warning"}),t.infoLoading=!1;case 8:case"end":return a.stop()}},a,t)}))()},init:function(){var t=this;return o()(i.a.mark(function a(){var e,n,s;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,t.$axios.get(t.URL.BASEURL+t.URL.dataAnalysis_linkDataDetails,{params:{start:t.default_time[0],end:t.default_time[1],url:t.$route.query.url}});case 3:e=a.sent,n=e.data,(s=void 0===n?{}:n)&&0==s.errno?t.tableList=s.rst:4002!=s.errno&&t.$message({message:s.err,type:"warning"}),t.loading=!1;case 8:case"end":return a.stop()}},a,t)}))()}}},l={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",[n("div",{staticClass:"backBox"},[n("span",{staticClass:"pointer",on:{click:function(a){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",{directives:[{name:"loading",rawName:"v-loading",value:t.infoLoading,expression:"infoLoading"}],staticClass:"dataInfoBox"},[n("div",{staticClass:"goodsBox"},[n("div",[n("img",{attrs:{src:t.$route.query.img,alt:""}})]),t._v(" "),n("div",{staticClass:"c-333 f14"},[n("div",{staticClass:"pageFlex"},[n("img",{staticStyle:{width:"16px",height:"16px","flex-shrink":"0"},attrs:{src:e("Ay5F"),alt:""}}),t._v(t._s(t.$route.query.name||"-"))]),t._v(" "),n("div",{staticClass:"tMar20"},[t._v("推广链接:"+t._s(t.$route.query.url||"-"))])])]),t._v(" "),n("div",{staticClass:"goodsDataBox"},t._l(t.goodsData,function(a){return n("div",{key:a.key,staticClass:"text-center"},[n("div",{staticClass:"num"},[t._v(t._s(t.$formatNum(a.num)||"-"))]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(a.name||"-"))])])}),0)]),t._v(" "),n("div",{staticClass:"tableBox"},[n("TableList",{ref:"tableListRef",attrs:{loading:t.loading,tableData:t.tableList,descol:t.descolList}})],1)])},staticRenderFns:[]};var m=e("VU/8")(u,l,!1,function(t){e("NbU+")},"data-v-6d4eb630",null);a.default=m.exports},"NbU+":function(t,a){}});
|