酷炫数据营销平台

79.0edbee077b76d5454f56.js 10KB

1
  1. webpackJsonp([79],{"2U43":function(t,e){},S9xI:function(t,e){},dzr2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("5OSL"),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_goodsList,expression:"loading_goodsList"}],staticClass:"otherUser",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.goodsList.length,expression:"goodsList.length != 0"}]},[a("div",{staticClass:"table"},[a("table",[t._m(0),t._v(" "),t._l(t.goodsList,function(e,s){return a("tr",{key:s},[a("td",[a("el-image",{staticClass:"userImg",attrs:{src:e.headurl}})],1),t._v(" "),a("td",[a("el-tooltip",{attrs:{effect:"dark",content:e.user_name,placement:"top"}},[a("p",{staticClass:"userName"},[t._v(t._s(e.user_name))])])],1),t._v(" "),a("td",[t._v(t._s(e.fan||0==e.fan?e.fan:"-"))]),t._v(" "),a("td",{staticStyle:{width:"260px"}},[t._l(e.keywordArr,function(s){return a("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.keyword,expression:"item.keyword"}],key:s.user_id,staticStyle:{"-webkit-box-orient":"vertical"},attrs:{effect:"dark",content:s,placement:"top-start"}},[a("span",{staticClass:"tagTabel"},[a("em",[t._v("#")]),t._v(t._s(s))])])}),t._v("\n "+t._s(e.keyword?"":"-")+"\n ")],2),t._v(" "),a("td",[t._v(t._s(1==e.type?"已开通":2==e.type?"未开通":"-"))]),t._v(" "),a("td",[t._v(t._s(e.showcunt||0==e.showcunt?e.showcunt:"-"))]),t._v(" "),a("td",[t._v(t._s(e.sell_count||0==e.sell_count?e.sell_count:"-"))])])})],2)]),t._v(" "),t.total>0?a("div",{staticClass:"bottom",staticStyle:{"margin-top":"15px"}},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.total,expression:"total"}],staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),a("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(" "),a("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,a=t._self._c||e;return a("tr",[a("td",[t._v("网红头像")]),t._v(" "),a("td",[t._v("网红名称")]),t._v(" "),a("td",[t._v("粉丝数量")]),t._v(" "),a("td",[t._v("网红标签")]),t._v(" "),a("td",[t._v("快手小店")]),t._v(" "),a("td",[t._v("直播场次")]),t._v(" "),a("td",[t._v("商品销量")])])}]};var i=a("C7Lr")({props:["channel","hot_word","pid"],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({url:this.URL.BASEURL+this.URL.GetUserByCate,method:"post",data:{channel:this.channel,keyword:this.hot_word,page:this.page,id:this.pid}}).then(function(e){if(e=e.data,t.loading_goodsList=!1,t.getUserByCateFlag=!0,e&&0==e.errno){t.total=e.rst.count;var a=e.rst.list;t.goodsList=a,t.goodsList.forEach(function(t,e){if(""!=t.keyword&&t.keyword){var a=t.keyword.split(",");a.pop(),t.keywordArr=a}else t.keywordArr=[]}),t.pageInfoSize=e.rst.pagesize}else t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading_goodsList=!1})}}},o,!1,function(t){a("2U43")},"data-v-1790f4f0",null).exports,n={name:"commerceTrendsDetail",components:{fanPortraits:s.a,SellWh:i},data:function(){return{pageGoods:1,pageInfoSizeGoods:0,totalGoods:0,detailInfo:{},tab:3,infoList:[],shopList:[],goodOnliveAndShopListFlag:!1,loading_shopList:!1}},created:function(){this.detailInfo=JSON.parse(this.$cookieStore.getCookie("commerceTrendsDetail")),this.goodOnliveAndShopList()},methods:{handleCurrentChangeGoods:function(t){this.pageGoods=t,this.goodOnliveAndShopList()},goodOnliveAndShopList:function(){var t=this;this.shopList=[],this.totalGoods=0,this.loading_shopList=!0,this.$axios({url:this.URL.BASEURL+this.URL.GoodOnliveAndShopList,method:"post",data:{page:this.pageGoods,category_id:this.detailInfo.pid,title:this.detailInfo.hot_word,channel:this.detailInfo.channel}}).then(function(e){e=e.data;if(t.loading_shopList=!1,t.goodOnliveAndShopListFlag=!0,e&&0==e.errno){var a=e.rst.list;t.totalGoods=e.rst.count,t.shopList=a,t.pageInfoSizeGoods=20}else t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading_shopList=!1})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"commerceTrendsDetail"}},[s("div",{staticClass:"itemList"},[s("ul",{staticClass:"common_data_list"},[s("li",[s("div",{staticClass:"common_user"},[s("el-image",{staticClass:"common_user_img",attrs:{src:"",alt:""}}),t._v(" "),s("div",{staticClass:"common_user_info"},[s("div",{staticClass:"common_user_name"},[s("el-tooltip",{attrs:{effect:"dark",content:t.detailInfo.name?t.detailInfo.name:t.detailInfo.hot_word,placement:"top"}},[s("span",{staticClass:"common_name"},[t._v(t._s(t.detailInfo.name?t.detailInfo.name:t.detailInfo.hot_word))])]),t._v(" "),1==t.detailInfo.channel?s("img",{attrs:{src:a("/T9A"),alt:""}}):t._e(),t._v(" "),2==t.detailInfo.channel?s("img",{attrs:{src:a("63Lr"),alt:""}}):t._e()],1),t._v(" "),s("div",{staticClass:"common_user_location"},[t._v("商品来源:"+t._s(t.detailInfo.source_type?t.detailInfo.source_type:"-"))]),t._v(" "),s("div",{staticClass:"common_user_location"},[t._v("价格区间:"+t._s((t.detailInfo.zuidijia||0==t.detailInfo.zuidijia?t.detailInfo.zuidijia+"元~":"-")+(t.detailInfo.zuigaojia||0==t.detailInfo.zuigaojia?t.detailInfo.zuigaojia+"元":"-")))])])],1),t._v(" "),s("div",{staticClass:"common_item_info"},[s("p",[t._v("商品数")]),t._v(" "),s("span",[t._v(t._s(t.detailInfo.count||0==t.detailInfo.count?t.detailInfo.count:"-"))])]),t._v(" "),s("div",{staticClass:"common_item_info"},[s("p",[t._v("平均价格")]),t._v(" "),s("span",[t._v(t._s(!t.detailInfo.avg_price&&0!=t.detailInfo.avg_price||""==t.detailInfo.avg_price?"-":"¥"+t.detailInfo.avg_price))])]),t._v(" "),s("div",{staticClass:"common_item_info"},[s("p",[t._v("在售主播")]),t._v(" "),s("span",[t._v(t._s(!t.detailInfo.user_count&&0!=t.detailInfo.user_count||""==t.detailInfo.user_count?"-":t.detailInfo.user_count))])]),t._v(" "),s("div",{staticClass:"common_item_info"},[s("p",[t._v("商品销量")]),t._v(" "),s("span",[t._v(t._s(!t.detailInfo.sell_count&&0!=t.detailInfo.sell_count||""==t.detailInfo.sell_count?"-":t.detailInfo.sell_count))])])])])]),t._v(" "),s("div",{staticClass:"tab clear"},[s("div",{staticClass:"tabName",class:3==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=3}}},[t._v("相关商品")]),t._v(" "),s("div",{staticClass:"tabName",class:1==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=1}}},[t._v("在售网红")]),t._v(" "),s("div",{staticClass:"tabName",class:2==t.tab?"tabNameActive":"",on:{click:function(e){e.stopPropagation(),t.tab=2}}},[t._v("粉丝画像")])]),t._v(" "),3==t.tab?s("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"}},[s("div",{staticStyle:{"min-height":"200px"}},[s("div",{staticClass:"table"},[t.shopList.length>0?s("table",[t._m(0),t._v(" "),t._l(t.shopList,function(e,a){return s("tr",{key:a},[s("td",[s("a",{staticClass:"coverImgUrl",attrs:{href:e.url?e.url:"javascript:void(0);"}},[s("el-image",{staticClass:"userImg",staticStyle:{"border-radius":"2px"},attrs:{src:e.img}})],1)]),t._v(" "),s("td",[s("el-tooltip",{attrs:{effect:"dark",content:e.title,placement:"top"}},[s("p",{staticClass:"userName"},[t._v(t._s(e.title))])])],1),t._v(" "),s("td",[t._v(t._s(e.price||0==e.price?"¥"+e.price:"-"))]),t._v(" "),s("td",[s("el-tooltip",{attrs:{effect:"dark",content:e.shopname,placement:"top"}},[s("p",{staticClass:"userName"},[t._v(t._s(e.shopname?e.shopname:"-"))])])],1),t._v(" "),s("td",[t._v(t._s(1==e.source_type?"快手课堂":2==e.source_type?"淘宝":3==e.source_type?"京东":4==e.source_type?"魔筷":5==e.source_type?"有赞":6==e.source_type?"苏宁":7==e.source_type?"拼多多":"-"))]),t._v(" "),s("td",[t._v(t._s(e.user_count||0==e.user_count?e.user_count:"-"))]),t._v(" "),s("td",[t._v(t._s(!e.sale_count&&0!=e.sale_count||""==e.sale_count?"-":e.sale_count))])])})],2):t._e()]),t._v(" "),t.totalGoods>0?s("div",{staticClass:"bottom",staticStyle:{"margin-top":"15px"}},[s("span",{directives:[{name:"show",rawName:"v-show",value:t.totalGoods,expression:"totalGoods"}],staticClass:"total"},[t._v("共"+t._s(t.totalGoods)+"条结果")]),t._v(" "),s("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(" "),s("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?s("sell-wh",{attrs:{channel:t.detailInfo.channel,hot_word:t.detailInfo.hot_word,pid:t.detailInfo.pid}}):t._e(),t._v(" "),2==t.tab?s("fan-portraits",{attrs:{cate_id:t.detailInfo.pid,keyword:t.detailInfo.hot_word,channel:t.detailInfo.channel,page_source:"commodityDetail"}}):t._e()],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td",[t._v("商品图片")]),t._v(" "),a("td",[t._v("商品名称")]),t._v(" "),a("td",[t._v("商品价格")]),t._v(" "),a("td",[t._v("店铺名称")]),t._v(" "),a("td",[t._v("商品来源")]),t._v(" "),a("td",[t._v("在售网红数")]),t._v(" "),a("td",[t._v("商品销量")])])}]};var r=a("C7Lr")(n,l,!1,function(t){a("S9xI")},"data-v-f8faae40",null);e.default=r.exports}});