酷炫数据营销平台

77.0bf4b50049b6f0a84dee.js 9.6KB

1
  1. webpackJsonp([77],{"NjK+":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("5OSL"),s={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_goodsList,expression:"loading_goodsList"}],staticClass:"otherUser",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.goodsList.length,expression:"goodsList.length != 0"}]},[o("div",{staticClass:"table"},[o("table",[t._m(0),t._v(" "),t._l(t.goodsList,function(e,a){return o("tr",{key:a},[o("td",[o("el-image",{staticClass:"userImg",attrs:{src:e.avatar_url}})],1),t._v(" "),o("td",[o("el-tooltip",{attrs:{effect:"dark",content:e.nickname,placement:"top"}},[o("p",{staticClass:"userName"},[t._v(t._s(e.nickname))])])],1),t._v(" "),o("td",[t._v(t._s(e.douyin_fan||0==e.douyin_fan?e.douyin_fan:"-"))]),t._v(" "),o("td",{staticStyle:{width:"260px"}},[t._l(e.keywordArr,function(a){return o("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.keyword,expression:"item.keyword"}],key:a.user_id,staticStyle:{"-webkit-box-orient":"vertical"},attrs:{effect:"dark",content:a,placement:"top-start"}},[o("span",{staticClass:"tagTabel"},[o("em",[t._v("#")]),t._v(t._s(a))])])}),t._v("\n "+t._s(e.keyword?"":"-")+"\n ")],2),t._v(" "),o("td",[t._v(t._s(e.show_count||0==e.show_count?e.show_count:"-"))]),t._v(" "),o("td",[t._v(t._s(e.sell_count||0==e.sell_count?e.sell_count:"-"))])])})],2)]),t._v(" "),t.total>0?o("div",{staticClass:"bottom",staticStyle:{"margin-top":"15px"}},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.total,expression:"total"}],staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),o("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.pageInfoSize,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:0==t.goodsList.length&&t.getUserByCateFlag,expression:"goodsList.length == 0 && getUserByCateFlag"}],staticClass:"noHaveList"},[t._v("暂无在售网红")])])},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("tr",[o("td",[t._v("网红头像")]),t._v(" "),o("td",[t._v("网红名称")]),t._v(" "),o("td",[t._v("粉丝数量")]),t._v(" "),o("td",[t._v("网红标签")]),t._v(" "),o("td",[t._v("直播场次")]),t._v(" "),o("td",[t._v("商品销量")])])}]};var i=o("C7Lr")({props:["hot_word"],data:function(){return{page:1,pageInfoSize:0,total:0,goodsList:[],loading_goodsList:!1,getUserByCateFlag:!1}},created:function(){this.getUserByCate()},methods:{handleCurrentChange:function(t){this.page=t,this.getUserByCate()},getUserByCate:function(){var t=this;this.goodsList=[],this.total=0,this.loading_goodsList=!0,this.$axios.get(this.URL.BASEURL+this.URL.dou_userIndexByKeyword,{params:{keyword:this.hot_word,page:this.page}}).then(function(e){if(e=e.data,t.loading_goodsList=!1,t.getUserByCateFlag=!0,e&&0==e.errno){t.total=e.rst.pageInfo.total;var o=e.rst.data;t.goodsList=o,t.goodsList.forEach(function(t,e){if(""!=t.keyword&&t.keyword){var o=t.keyword.split(",");t.keywordArr=o}else t.keywordArr=[]}),t.pageInfoSize=e.rst.pageInfo.size}else t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading_goodsList=!1})}}},s,!1,function(t){o("dLlM")},"data-v-464ae964",null).exports,n={name:"commerceTrendsDetail",components:{fanPortraits:a.a,SellWh:i},data:function(){return{pageGoods:1,pageInfoSizeGoods:20,totalGoods:0,detailInfo:{},tab:3,infoList:[],shopList:[],goodOnliveAndShopListFlag:!1,loading_shopList:!1}},created:function(){this.detailInfo=JSON.parse(this.$cookieStore.getCookie("douAnalysisDetail")),this.goodOnliveAndShopList()},methods:{handleCurrentChangeGoods:function(t){this.pageGoods=t,this.goodOnliveAndShopList()},toDetail:function(t){if(t){var e=this.$router.resolve({path:"commoditydataDetailD/"+t});window.open(e.href,"_blank")}else this.$message({message:"该商品暂无详情,敬请期待!",type:"warning"})},goodOnliveAndShopList:function(){var t=this;this.shopList=[],this.totalGoods=0,this.loading_shopList=!0,this.$axios.get(this.URL.BASEURL+this.URL.topCommodityIndex,{params:{page:this.pageGoods,pagesize:this.pageInfoSizeGoods,title:this.detailInfo.hot_word,sortField:"sell_count_sum",starttime:this.detailInfo.start_time,endtime:this.detailInfo.end_time}}).then(function(e){if(t.loading_shopList=!1,t.goodOnliveAndShopListFlag=!0,(e=e.data)&&0==e.errno){var o=e.rst.data;t.totalGoods=e.rst.pageInfo.total,t.shopList=o}else t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading_shopList=!1})}}},l={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"commerceTrendsDetail"}},[o("div",{staticClass:"itemList"},[o("ul",{staticClass:"common_data_list"},[o("li",[o("div",{staticClass:"common_user"},[o("el-image",{staticClass:"common_user_img",attrs:{src:"",alt:""}}),t._v(" "),o("div",{staticClass:"common_user_info"},[o("div",{staticClass:"common_user_name"},[o("el-tooltip",{attrs:{effect:"dark",content:t.detailInfo.hot_word,disabled:!t.detailInfo.hot_word,placement:"top"}},[o("span",{staticClass:"common_name"},[t._v(t._s(t.detailInfo.hot_word?t.detailInfo.hot_word:"-"))])])],1),t._v(" "),o("div",{staticClass:"common_user_location"},[t._v("商品来源:"+t._s(t.detailInfo.platform?t.detailInfo.platform:"-"))]),t._v(" "),o("div",{staticClass:"common_user_location"},[t._v("价格区间:"+t._s((t.detailInfo.price_min||0==t.detailInfo.price_min?t.detailInfo.price_min+"元~":"-")+(t.detailInfo.price_max||0==t.detailInfo.price_max?t.detailInfo.price_max+"元":"-")))])])],1),t._v(" "),o("div",{staticClass:"common_item_info"},[o("p",[t._v("商品数")]),t._v(" "),o("span",[t._v(t._s(t.detailInfo.commodity_count||0==t.detailInfo.commodity_count?t.detailInfo.commodity_count:"-"))])]),t._v(" "),o("div",{staticClass:"common_item_info"},[o("p",[t._v("平均价格")]),t._v(" "),o("span",[t._v(t._s(!t.detailInfo.price_avg&&0!=t.detailInfo.price_avg||""==t.detailInfo.price_avg?"-":"¥"+t.detailInfo.price_avg))])]),t._v(" "),o("div",{staticClass:"common_item_info"},[o("p",[t._v("在售主播")]),t._v(" "),o("span",[t._v(t._s(!t.detailInfo.user_count&&0!=t.detailInfo.user_count||""==t.detailInfo.user_count?"-":t.detailInfo.user_count))])]),t._v(" "),o("div",{staticClass:"common_item_info"},[o("p",[t._v("商品销量")]),t._v(" "),o("span",[t._v(t._s(!t.detailInfo.sell_count&&0!=t.detailInfo.sell_count||""==t.detailInfo.sell_count?"-":t.detailInfo.sell_count))])])])])]),t._v(" "),o("div",{staticClass:"tab clear"},[o("div",{staticClass:"tabName",class:3==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=3}}},[t._v("相关商品")]),t._v(" "),o("div",{staticClass:"tabName",class:1==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=1}}},[t._v("在售网红")]),t._v(" "),o("div",{staticClass:"tabName",class:2==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=2}}},[t._v("粉丝画像")])]),t._v(" "),3==t.tab?o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading_shopList,expression:"loading_shopList"}],staticClass:"otherUser",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[o("div",{staticStyle:{"min-height":"200px"}},[o("div",{staticClass:"table"},[t.shopList.length>0?o("table",[t._m(0),t._v(" "),t._l(t.shopList,function(e,a){return o("tr",{key:a,on:{click:function(o){return t.toDetail(e.product_id)}}},[o("td",[o("el-image",{staticClass:"userImg",staticStyle:{"border-radius":"2px"},attrs:{src:e.cover}})],1),t._v(" "),o("td",[o("el-tooltip",{attrs:{effect:"dark",content:e.title,placement:"top"}},[o("p",{staticClass:"userName"},[t._v(t._s(e.title))])])],1),t._v(" "),o("td",[t._v(t._s(e.price||0==e.price?"¥"+e.price:"-"))]),t._v(" "),o("td",[t._v(t._s(e.platform_label))]),t._v(" "),o("td",[t._v(t._s(e.user_count||0==e.user_count?e.user_count:"-"))]),t._v(" "),o("td",[t._v(t._s(!e.sell_count&&0!=e.sell_count||""==e.sell_count?"-":e.sell_count))]),t._v(" "),o("td",[t._v(t._s(!e.sell_money&&0!=e.sell_money||""==e.sell_money?"-":e.sell_money))])])})],2):t._e()]),t._v(" "),t.totalGoods>0?o("div",{staticClass:"bottom",staticStyle:{"margin-top":"15px"}},[o("span",{directives:[{name:"show",rawName:"v-show",value:t.totalGoods,expression:"totalGoods"}],staticClass:"total"},[t._v("共"+t._s(t.totalGoods)+"条结果")]),t._v(" "),o("el-pagination",{attrs:{background:"","current-page":t.pageGoods,"page-size":t.pageInfoSizeGoods,layout:"prev, pager, next",total:t.totalGoods},on:{"current-change":t.handleCurrentChangeGoods}})],1):t._e(),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:3==t.tab&&0==t.shopList.length&&t.goodOnliveAndShopListFlag,expression:"tab == 3 && shopList.length == 0 && goodOnliveAndShopListFlag"}],staticClass:"noHaveList"},[t._v("暂无相关商品")])])]):t._e(),t._v(" "),1==t.tab?o("sell-wh",{attrs:{hot_word:t.detailInfo.hot_word}}):t._e(),t._v(" "),2==t.tab?o("fan-portraits",{attrs:{douAnalysisDetail_keyword:t.detailInfo.hot_word,page_source:"douAnalysisDetail"}}):t._e()],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("tr",[o("td",[t._v("商品图片")]),t._v(" "),o("td",[t._v("商品名称")]),t._v(" "),o("td",[t._v("商品价格")]),t._v(" "),o("td",[t._v("商品来源")]),t._v(" "),o("td",[t._v("在售网红数")]),t._v(" "),o("td",[t._v("商品销量")]),t._v(" "),o("td",[t._v("商品销售额")])])}]};var r=o("C7Lr")(n,l,!1,function(t){o("QDry")},"data-v-1de0a3a4",null);e.default=r.exports},QDry:function(t,e){},dLlM:function(t,e){}});