1 |
- webpackJsonp([42],{T0YI:function(t,s){},UKpu:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var o=e("a3Yh"),a=e.n(o),n={data:function(){var t;return t={noneDoneLive:!1,hasAunoLive:!1,noneDoneHot:!1,hasAunoHot:!1,noneDonePro:!1,hasAunoPro:!1},a()(t,"hasAunoHot",!1),a()(t,"hasAuno",!1),a()(t,"scrollFlag",!1),a()(t,"mainHeight",0),a()(t,"mainTop",0),a()(t,"shopId",""),a()(t,"shopInfo",{}),a()(t,"pro_page",1),a()(t,"pro_total",0),a()(t,"pro_pagesize",1),a()(t,"play_pagesize",1),a()(t,"loading",!0),a()(t,"play_page",1),a()(t,"play_total",0),a()(t,"tabType",1),a()(t,"goodsList",[]),a()(t,"proList",[]),a()(t,"hot_page",1),a()(t,"hot_total",0),a()(t,"hot_pagesize",1),a()(t,"hotList",[]),t},created:function(){this.shopId=this.$route.params.shopId,this.init(),this.getProduct(1)},components:{nopermission:e("NFBZ").a},mounted:function(){window.addEventListener("scroll",this.scrollTop,!0)},methods:{toLive:function(t){var s=this.$router.resolve({path:"/douPlayDetail/"+t});window.open(s.href,"_blank")},scrollTop:function(){if(document.getElementsByClassName("contentRight")[0]){var t=document.getElementsByClassName("tab")[0];if(!t)return!1;this.mainTop=t.offsetTop>75?t.offsetTop:this.mainTop,this.mainHeight=t.offsetHeight,document.getElementsByClassName("contentRight")[0].scrollTop>this.mainTop-this.mainHeight-15?this.scrollFlag=!0:this.scrollFlag=!1}},init:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.dou_hotShopDetail,{params:{shop_id:this.shopId}}).then(function(s){4403==(s=s.data).auno||4003==s.errno?t.hasAuno=!0:t.hasAuno=!1,s&&0==s.errno?(t.shopInfo=s.rst,document.title=t.shopInfo.shopName+" - 问星数据"):4003!=s.errno&&t.$message({message:s.err,type:"warning"})})},getPlay:function(t){var s=this;document.getElementsByClassName("table")[0]&&document.getElementsByClassName("table")[0].scrollTo(0,0),this.play_page=t,this.loading=!0,this.goodsList=[],this.play_total=0,this.$axios.get(this.URL.BASEURL+this.URL.dou_hotShopLiving,{params:{shop_id:this.shopId,pageSize:20,page:this.play_page}}).then(function(t){if(4403==(t=t.data).auno?s.hasAunoLive=!0:s.hasAunoLive=!1,s.noneDoneLive=4003==t.errno,s.loading=!1,t&&0==t.errno){var e=t.rst.data;s.goodsList=e,s.play_pagesize=t.rst.pageInfo.size,s.play_total=t.rst.pageInfo.total}else 4003!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.$message({message:t,type:"warning"}),s.loading=!1})},getProduct:function(t){var s=this;this.loading=!0,this.pro_page=t,this.proList=[],this.pro_total=0,this.$axios.get(this.URL.BASEURL+this.URL.dou_hotShopGoods,{params:{shop_id:this.shopId,pageSize:20,page:this.pro_page}}).then(function(t){t=t.data;if(s.loading=!1,4403==t.auno?s.hasAunoPro=!0:s.hasAunoPro=!1,s.noneDonePro=4003==t.errno,t&&0==t.errno){var e=t.rst.data;for(s.proList=e;s.proList.length<4;)s.proList.push({isNull:1});s.pro_pagesize=t.rst.pageInfo.size,s.pro_total=t.rst.pageInfo.total}else 4003!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},getHotList:function(t){var s=this;this.loading=!0,this.hot_page=t,this.hotList=[],this.hot_total=0,this.$axios.get(this.URL.BASEURL+this.URL.dou_hotShopStar,{params:{shop_id:this.shopId,pageSize:20,page:this.hot_page}}).then(function(t){t=t.data;if(s.loading=!1,4403==t.auno?s.hasAunoHot=!0:s.hasAunoHot=!1,s.noneDoneHot=4003==t.errno,t&&0==t.errno){var e=t.rst.data;for(s.hotList=e;s.hotList.length<4;)s.hotList.push({isNull:1});s.hot_pagesize=t.rst.pageInfo.size,s.hot_total=t.rst.pageInfo.total}else 4003!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},handleCurrentChangePro:function(t){this.getProduct(t)},handleCurrentChangeHot:function(t){this.getHotList(t)},handleCurrentChangePlay:function(t){this.getPlay(t)}},watch:{tabType:function(){var t=this;this.scrollFlag&&document.getElementsByClassName("contentRight")[0].scrollTo(0,this.mainTop-this.mainHeight-10),{1:function(){t.getProduct(1)},2:function(){return t.getHotList(1)},3:function(){return t.getPlay(1)}}[this.tabType]()}},beforeDestroy:function(){window.removeEventListener("scroll",this.scrollTop,!0)}},i={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"shopDetail"},[e("div",{staticClass:"shopInfo"},[e("div",{staticClass:"contentLeft"},[e("div",{staticClass:"commodityInfo"},[e("div",{staticClass:"commodityImg"},[t.shopInfo.shop_icon?e("img",{attrs:{src:t.shopInfo.shop_icon,alt:""}}):e("div",{staticClass:"noneImg"},[t._v("暂无图片")])]),t._v(" "),e("el-tooltip",{attrs:{effect:"dark",content:t.shopInfo&&t.shopInfo.shopName?t.shopInfo.shopName:"",disabled:!(t.shopInfo&&t.shopInfo.shopName&&t.shopInfo.shopName.length>18),placement:"bottom-start"}},[e("div",{staticClass:"title1"},[t._v(t._s(t.shopInfo&&t.shopInfo.shopName?t.shopInfo.shopName:"-"))])]),t._v(" "),e("p",{staticClass:"info"},[e("label",[t._v("粉丝数:"+t._s(t.shopInfo.fan))])])],1)]),t._v(" "),e("div",{staticClass:"contentRight"},[e("div",{staticClass:"generalEstimate"},[e("div",{staticClass:"platform_common_title"},[t._v("店铺总概")]),t._v(" "),t.hasAuno?t._e():e("div",{staticClass:"numberInfo"},[e("div",{staticClass:"numberInfo"},[e("div",{staticClass:"item-info"},[e("span",{staticClass:"text"},[t._v("推广商品数")]),t._v(" "),e("div",{staticClass:"number"},[t._v(t._s(t.shopInfo.commodity_count?t.shopInfo.commodity_count:"-"))])]),t._v(" "),e("div",{staticClass:"item-info"},[e("span",{staticClass:"text"},[t._v("关联达人数")]),t._v(" "),e("div",{staticClass:"number"},[t._v(t._s(t.shopInfo.user_count?t.shopInfo.user_count:"-"))])]),t._v(" "),e("div",{staticClass:"item-info"},[e("span",{staticClass:"text"},[t._v("关联直播数")]),t._v(" "),e("div",{staticClass:"number"},[t._v(t._s(t.shopInfo.show_count?t.shopInfo.show_count:"-"))])]),t._v(" "),e("div",{staticClass:"item-info"},[e("span",{staticClass:"text"},[t._v("商品销量")]),t._v(" "),e("div",{staticClass:"number"},[t._v(t._s(t.shopInfo.sell_count?t.shopInfo.sell_count:"-"))])]),t._v(" "),e("div",{staticClass:"item-info"},[e("span",{staticClass:"text"},[t._v("商品销售额")]),t._v(" "),e("div",{staticClass:"number"},[t._v(t._s(t.shopInfo.sell_money?t.shopInfo.sell_money:"-"))])])])]),t._v(" "),t.hasAuno?e("nopermission"):t._e()],1),t._v(" "),e("div",{class:["tab",t.scrollFlag?"fixBox":""]},[e("div",{class:["tabName",1==t.tabType&&"tabNameActive"],on:{click:function(s){t.tabType=1}}},[t._v("推广商品")]),t._v(" "),e("div",{class:["tabName",2==t.tabType&&"tabNameActive"],on:{click:function(s){t.tabType=2}}},[t._v("相关达人")]),t._v(" "),e("div",{class:["tabName",3==t.tabType&&"tabNameActive"],on:{click:function(s){t.tabType=3}}},[t._v("相关直播")])]),t._v(" "),e("div",{staticClass:"mainText",staticStyle:{padding:"15px 0"}},[1==t.tabType?e("div",{staticClass:"mainPancel",style:t.scrollFlag?"padding-top:74px":""},[t.noneDonePro?t._e():e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"loadText",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[t.noneDonePro||t.noneDonePro||0==t.proList.length?t._e():e("div",{staticClass:"pancelList"},[e("ul",[t._l(t.proList,function(s,o){return 1!==s.isNull?e("li",{staticClass:"item"},[e("el-image",{staticClass:"icon",attrs:{src:s.cover,alt:""}}),t._v(" "),e("div",{staticClass:"shopProInfo"},[e("el-tooltip",{attrs:{effect:"dark",content:s.title,placement:"top"}},[e("p",{staticClass:"name",staticStyle:{width:"100%"}},[t._v(t._s(s.title))])]),t._v(" "),e("div",{staticClass:"proBottom"},[e("div",{staticClass:"count"},[t._v(t._s(s.price?"¥"+s.price:"-"))]),t._v(" "),e("div",{staticClass:"count",staticStyle:{"text-align":"right"}},[t._v("销量:"+t._s(s.sell_count||0==s.sell_count?s.sell_count:"-"))])])],1)],1):t._e()}),t._v(" "),t._l(t.proList,function(t,s){return e("li",{directives:[{name:"show",rawName:"v-show",value:1===t.isNull,expression:"item.isNull===1"}]})})],2),t._v(" "),!t.hasAunoPro&&t.pro_total>0?e("div",{staticClass:"bottom"},[e("span",{staticClass:"total"},[t._v("共"+t._s(t.pro_total)+"条结果")]),t._v(" "),e("el-pagination",{attrs:{background:"","current-page":t.pro_page,"page-size":t.pro_pagesize,layout:"prev, pager, next",total:t.pro_total},on:{"current-change":t.handleCurrentChangePro}})],1):t._e()]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.noneDonePro&&0==t.proList.length&&!t.loading,expression:"!noneDonePro&&proList.length == 0&&!loading"}],staticClass:"noHaveList"},[t._v("暂无推广商品")])]),t._v(" "),!t.noneDonePro&&t.hasAunoPro&&!t.loading&&t.proList.length>0?e("list-permission"):t._e(),t._v(" "),!t.hasAunoPro&&t.noneDonePro?e("nopermission"):t._e()],1):t._e(),t._v(" "),2==t.tabType?e("div",{staticClass:"mainPancel",style:t.scrollFlag?"padding-top:74px":""},[t.noneDoneHot?t._e():e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"loadText",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[t.noneDoneHot||0==t.hotList.length?t._e():e("div",{staticClass:"pancelList"},[e("ul",[t._l(t.hotList,function(s,o){return 1!==s.isNull?e("li",{key:o,staticClass:"item"},[e("router-link",{attrs:{target:"_blank",to:"/userDetailD/"+s.uid}},[e("el-image",{staticClass:"icon",staticStyle:{"border-radius":"50%"},attrs:{src:s.avatar_url,alt:""}}),t._v(" "),e("div",{staticClass:"shopProInfo"},[e("el-tooltip",{attrs:{effect:"dark",content:s.nickname,placement:"top"}},[e("p",{staticClass:"name",staticStyle:{width:"100%"}},[t._v(t._s(s.nickname))])]),t._v(" "),e("div",{staticClass:"proBottom"},[e("div",{staticClass:"count"},[t._v("粉丝"+t._s(s.fan?s.fan:"-"))]),t._v(" "),e("div",{staticClass:"count",staticStyle:{"text-align":"right"}},[t._v("销量"+t._s(s.sell_count?s.sell_count:"-"))])])],1)],1)],1):t._e()}),t._v(" "),t._l(t.hotList,function(s,o){return 1===s.isNull?e("li",{key:o}):t._e()})],2),t._v(" "),!t.hasAunoHot&&t.hot_total>0?e("div",{staticClass:"bottom"},[e("span",{staticClass:"total"},[t._v("共"+t._s(t.hot_total)+"条结果")]),t._v(" "),e("el-pagination",{attrs:{background:"","current-page":t.hot_page,"page-size":t.hot_pagesize,layout:"prev, pager, next",total:t.hot_total},on:{"current-change":t.handleCurrentChangeHot}})],1):t._e()]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.noneDoneHot&&0==t.hotList.length&&!t.loading,expression:"!noneDoneHot&&hotList.length == 0&&!loading"}],staticClass:"noHaveList"},[t._v("暂无相关达人")])]),t._v(" "),!t.noneDoneHot&&t.hasAunoHot&&!t.loading&&t.hotList.length>0?e("list-permission"):t._e(),t._v(" "),!t.hasAunoHot&&t.noneDoneHot?e("nopermission"):t._e()],1):t._e(),t._v(" "),3==t.tabType?e("div",{staticClass:"mainList",style:t.scrollFlag?"padding-top:74px":""},[t.noneDoneLive?t._e():e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"loadText",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[t.noneDoneLive||0==t.goodsList.length?t._e():e("div",{staticClass:"otherUser",staticStyle:{position:"relative"}},[e("table",[t._m(0),t._v(" "),t._l(t.goodsList,function(s,o){return e("tr",{key:"shopDetail"+o,staticStyle:{cursor:"pointer"},on:{click:function(e){return t.toLive(s.room_id)}}},[e("td",[t._v("\n "+t._s(s.start_time?s.start_time:"-")+"\n ")]),t._v(" "),e("td",{staticStyle:{width:"200px"}},[e("el-image",{staticClass:"userImg",attrs:{src:s.avatar_url}}),t._v(" "),e("el-tooltip",{attrs:{effect:"dark",content:s.nickname,placement:"top"}},[e("p",{staticClass:"name",staticStyle:{"padding-left":"10px"}},[t._v(t._s(s.nickname))])])],1),t._v(" "),e("td",[t._v("\n "+t._s(s.fan?s.fan:"-")+"\n ")]),t._v(" "),e("td",[t._v(t._s(s.live_duration?s.live_duration:"-"))]),t._v(" "),e("td",[t._v(t._s(s.total_user?s.total_user:"-"))]),t._v(" "),e("td",[t._v(t._s(s.user_count_max?s.user_count_max:"-"))]),t._v(" "),e("td",{staticStyle:{width:"200px"}},[e("el-image",{staticClass:"userImg",staticStyle:{"border-radius":"2px"},attrs:{src:s.cover,alt:""}}),t._v(" "),e("el-tooltip",{attrs:{effect:"dark",content:s.title,placement:"top"}},[e("p",{staticClass:"name",staticStyle:{"padding-left":"10px"}},[t._v(t._s(s.title))])])],1),e("td",[t._v(t._s(s.price?"¥"+s.price:"-"))]),t._v(" "),e("td",[t._v(t._s(s.up_goods_time?s.up_goods_time:"-"))]),t._v(" "),e("td",[t._v(t._s(s.sell_count||0==s.sell_count?s.sell_count:"-"))]),t._v(" "),e("td",[t._v(t._s(s.sell_money||0==s.sell_money?s.sell_money:"-"))])])})],2),t._v(" "),!t.hasAunoLive&&t.play_total>0?e("div",{staticClass:"bottom"},[e("span",{staticClass:"total"},[t._v("共"+t._s(t.play_total)+"条结果")]),t._v(" "),e("el-pagination",{attrs:{background:"","current-page":t.play_page,"page-size":t.play_pagesize,layout:"prev, pager, next",total:t.play_total},on:{"current-change":t.handleCurrentChangePlay}})],1):t._e()]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.goodsList.length&&!t.loading,expression:"goodsList.length == 0&&!loading"}],staticClass:"noHaveList"},[t._v("暂无相关直播")])]),t._v(" "),!t.noneDoneLive&&t.hasAunoLive&&!t.loading&&t.hotList.length>0?e("list-permission"):t._e(),t._v(" "),!t.hasAunoLive&&t.noneDoneLive?e("nopermission"):t._e()],1):t._e()]),t._v(" "),e("scroll-top",{attrs:{html_class_name:"contentRight"}})],1)])])},staticRenderFns:[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("tr",[e("td",[t._v("直播时间")]),t._v(" "),e("td",[t._v("达人名称")]),t._v(" "),e("td",[t._v("粉丝数")]),t._v(" "),e("td",[t._v("直播时长")]),t._v(" "),e("td",[t._v("观看人数")]),t._v(" "),e("td",[t._v("最高在线人数")]),t._v(" "),e("td",[t._v("商品名称")]),t._v(" "),e("td",[t._v("商品价格")]),t._v(" "),e("td",[t._v("上架时长")]),t._v(" "),e("td",[t._v("商品销量")]),t._v(" "),e("td",[t._v("商品销售额")])])}]};var l=e("C7Lr")(n,i,!1,function(t){e("T0YI")},"data-v-6b07d6a6",null);s.default=l.exports}});
|