f8ae923.js 36 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1011:function(t,e,o){"use strict";o.r(e);o(12),o(14),o(13),o(6),o(16),o(11),o(17);var n=o(4),r=o(26),d=(o(91),o(29),o(24),o(130),o(178),o(92),o(34),o(5)),c=o(94),l=o.n(c);function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var canvas="",v=null,f={layout:"video",data:function(){return{metaData:{},listData:{},amount_id:"",old_amount_id:"",activeVideoIndex:0,page:1,total_page:0,videoList:[],showVideo:{},isPrevious:!1,isNext:!1,isPlay:!1,options:{autoplay:!0,playsinline:!0,preload:!0,height:"100%",cover:"",skinLayout:[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"infoDisplay"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{align:"tlabs",x:0,y:0,name:"progress"},{align:"tl",x:10,y:15,name:"playButton"},{align:"tl",x:10,y:7,name:"timeDisplay"},{align:"tr",x:10,y:15,name:"fullScreenButton"},{align:"tr",x:10,y:12,name:"volume"}]}]},comment_open:"1",isCommentScroll:!1,commentLoading:!1,commentFinished:!1,commentTotal:0,commentPage:1,commentlist:[],comment_member:{},itemChild_index:"",comment_id:"",content_text:"",current_url:"",status:"",openRedpackData:[],openRedpackTimes:[]}},head:function(){return{title:"".concat(this.showVideo&&this.showVideo.title?this.showVideo.title.substring(0,10)+"-":"").concat(this.basicSet.shop_name),meta:[{name:"keywords",content:"".concat(this.showVideo&&this.showVideo.title?this.showVideo.title.substring(0,10):"",",").concat(this.basicSet.shop_name,",分享短视频")},{name:"description",content:"[".concat(this.basicSet.shop_name,"]分享短视频;").concat(this.showVideo.title)}]}},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var o,n,r,d,c,l,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,o=t.query,n=t.store,r=t.app,d=t.route,c={data:{}},l={data:{}},m="plugin.video-share.frontend.video.getList",v=h({},o),!o.activeType){e.next=13;break}return n.commit("setVideoActiveType",o.activeType),"follow"===n.state.videoActiveType?v.search={is_follow:1}:"recommend"===n.state.videoActiveType&&(v.search={is_recommend:1}),e.next=10,r.$axios.post("".concat(n.state.baseUrl,"?route=").concat(m),v,{headers:{"local-url":"".concat(d.path)}});case 10:l=e.sent,e.next=29;break;case 13:if(!o.category||!o.video_goods_id){e.next=19;break}return e.next=16,r.$axios.post("".concat(n.state.baseUrl,"?route=plugin.video-share.frontend.video.getVideoGoods"),h({},o),{headers:{"local-url":"".concat(d.path)}});case 16:c=e.sent,e.next=29;break;case 19:if(!o.page&&o.video_goods_id){e.next=26;break}return o.from&&"me"==o.from?(m="plugin.video-share.frontend.video.my-video",v.status=o.activeName):m="plugin.video-share.frontend.video.getList",e.next=23,r.$axios.post("".concat(n.state.baseUrl,"?route=").concat(m),v,{headers:{"local-url":"".concat(d.path)}});case 23:l=e.sent,e.next=29;break;case 26:return e.next=28,r.$axios.post("".concat(n.state.baseUrl,"?route=plugin.video-share.frontend.video.getVideoGoods"),h({},o),{headers:{"local-url":"".concat(d.path)}});case 28:c=e.sent;case 29:return e.abrupt("return",{metaData:c||{result:0,data:{}},listData:l||{result:0,data:{}},videoList:"plugin.video-share.frontend.video.getList"===m&&l.data.list?l.data.list.data||[]:l.data.video?l.data.video.data:[],showVideo:1===l.result?l.data.list&&l.data.list.data&&l.data.list.data[0]||{}:1===c.result&&c.data.video_goods||{}});case 30:case"end":return e.stop()}}),e)})))()},computed:h(h({},Object(d.b)(["basicSet","videoActiveType"])),{},{calNum:function(){return function(t){var e=parseFloat(t);return e<1e4?e:(e=(e/1e4).toFixed(1))+"万"}}}),mounted:function(){var t=this;this.getBasicSet(),this.amount_id=this.fun.getKey("video_goods_id")||null,window.localStorage.setItem("vid",this.amount_id),this.$route.query.from&&"me"==this.$route.query.from&&(this.status=this.$route.query.activeName),this.handleAsyncData(),this.current_url=window.location.href,this.$nextTick((function(){document.getElementById("vue-aliplayer-v2-box").addEventListener("mousewheel",t.debounce(t.handleScroll,200,"mousewheel"),!0)||document.getElementById("vue-aliplayer-v2-box").addEventListener("DOMMouseScroll",t.debounce(t.handleScroll,200,"DOMMouseScroll"),!1)}))},destroyed:function(){document.getElementById("vue-aliplayer-v2-box").removeEventListener("mousewheel",this.debounce(this.handleScroll,200,"mousewheel"),!0)||document.getElementById("vue-aliplayer-v2-box").removeEventListener("DOMMouseScroll",this.debounce(this.handleScroll,200,"DOMMouseScroll"),!1)},watch:{$route:function(t){this.amount_id=this.fun.getKey("video_goods_id")||null,window.localStorage.setItem("vid",this.amount_id)},videoActiveType:function(t,e){t&&this.getData(!1,!1)}},methods:{handleAsyncData:function(){var t={};this.fun.getKey("activeType")?(t=this.listData,this.handleList(!1,!0,t)):this.$route.query.category&&this.amount_id?1===(t=this.metaData).result&&(this.$set(this.showVideo,"is_follow",t.data.is_follow),this.options.cover=this.showVideo.cover,this.getData(!0,!0)):this.$route.query.page||!this.amount_id?(t=this.listData,this.handleList(!1,!0,t)):1===(t=this.metaData).result&&(this.$set(this.showVideo,"is_follow",t.data.is_follow),this.options.cover=this.showVideo.cover,this.getData(!0,!0))},handleList:function(t,e,o){try{o.data.is_plugins&&(this.is_plugins=o.data.is_plugins),o.data.points_plugin&&(this.points_plugin=o.data.points_plugin),o.data.hasOwnProperty("comment_open")&&(this.comment_open=o.data.comment_open)}catch(t){console.log(t)}if(e)if(this.$route.query.from&&"me"==this.$route.query.from?(this.total_page=o.data.video.last_page,this.videoList=o.data.video.data):(this.total_page=o.data.list.last_page,this.videoList=o.data.list.data),t){if(this.fun.getKey("video_goods_id")){for(var n=0;n<this.videoList.length;n++)if(this.videoList[n].id==this.amount_id){this.videoList.splice(n,1);break}this.videoList.unshift(this.showVideo)}}else if(this.fun.getKey("video_goods_id")){for(var i=0;i<this.videoList.length;i++)if(this.videoList[i].id==this.amount_id){this.showVideo=this.videoList[i],this.videoList.splice(0,i);break}}else this.amount_id=this.videoList[0].id,this.showVideo=this.videoList[0];else this.total_page=o.data.list.last_page,this.videoList=o.data.list.data,this.videoList.length>0&&(this.amount_id=this.videoList[0].id,this.showVideo=this.videoList[0]);1==this.comment_open&&this.getCommentData()},getData:function(t,e){var o=this;this.commentlist=[];var n={};"default"==this.videoActiveType?this.$route.query.from&&"me"==this.$route.query.from?(this.url="plugin.video-share.frontend.video.my-video",n.status=this.status):this.url="plugin.video-share.frontend.video.getList":(this.url="plugin.video-share.frontend.video.getList","follow"==this.videoActiveType?n={search:{is_follow:1}}:"recommend"==this.videoActiveType&&(n={search:{is_recommend:1}})),n.page=this.page,this.fun.$post(this.url,n,"load").then((function(n){if(o.loading=!1,1===n.result){try{n.data.is_plugins&&(o.is_plugins=n.data.is_plugins),n.data.points_plugin&&(o.points_plugin=n.data.points_plugin),n.data.hasOwnProperty("comment_open")&&(o.comment_open=n.data.comment_open)}catch(t){console.log(t)}if(e)if(console.log("默认",o.url),o.$route.query.from&&"me"==o.$route.query.from?(o.total_page=n.data.video.last_page,o.videoList=n.data.video.data):(o.total_page=n.data.list.last_page,o.videoList=n.data.list.data),t){if(o.fun.getKey("video_goods_id")){for(var r=0;r<o.videoList.length;r++)if(o.videoList[r].id==o.amount_id){o.videoList.splice(r,1);break}o.videoList.unshift(o.showVideo)}}else if(o.fun.getKey("video_goods_id")){for(var i=0;i<o.videoList.length;i++)if(o.videoList[i].id==o.amount_id){o.showVideo=o.videoList[i],o.videoList.splice(0,i);break}}else o.amount_id=o.videoList[0].id,o.showVideo=o.videoList[0];else o.total_page=n.data.list.last_page,o.videoList=n.data.list.data,o.videoList.length>0&&(o.amount_id=o.videoList[0].id,o.showVideo=o.videoList[0]);1==o.comment_open&&o.getCommentData()}else o.$message.error(n.msg)})).catch((function(t){o.loading=!1,console.error(t)}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e={};"follow"==this.videoActiveType?e={search:{is_follow:1}}:"recommend"==this.videoActiveType?e={search:{is_recommend:1}}:this.$route.query.from&&"me"==this.$route.query.from&&(e={status:this.status}),e.page=this.page,this.fun.$post(this.url,e).then((function(e){if(1===e.result){var o=[];o="default"==t.videoActiveType&&t.$route.query.from&&"me"==t.$route.query.from?e.data.video.data:e.data.list.data,t.videoList=t.videoList.concat(o)}else t.page=t.page-1}))}},previous:function(){var t=this;this.activeVideoIndex>0?(this.activeVideoIndex=this.activeVideoIndex-1,this.changeVideoEvent(this.activeVideoIndex),this.isPrevious=!0):this.$message.info("没有上一个了~"),setTimeout((function(){t.isPrevious=!1}),500)},nextOne:function(){var t=this;this.activeVideoIndex>=this.videoList.length-3?(this.activeVideoIndex<this.videoList.length-1?(this.isNext=!0,this.activeVideoIndex=this.activeVideoIndex+1,this.changeVideoEvent(this.activeVideoIndex)):this.$message.info("没有了~"),this.getMoreData()):(this.isNext=!0,this.activeVideoIndex=this.activeVideoIndex+1,this.changeVideoEvent(this.activeVideoIndex)),setTimeout((function(){t.isNext=!1}),500)},changeVideoEvent:function(t){var e=this;this.videoList[t]?(this.showVideo=this.videoList[t],this.fun.setWXTitle(this.showVideo.title+"-"+this.basicSet.shop_name),this.options.cover=this.showVideo.cover,this.commentLoading=!1,this.commentFinished=!1,this.amount_id=this.showVideo.id,window.localStorage.setItem("vid",this.showVideo.id),this.cumulativeDuration=parseInt(this.cumulativeDuration+this.currentDuration),this.currentDuration=0,this.logID=0,this.commentlist=[],setTimeout((function(){e.$nextTick((function(){e.clickSwiper(t)}))}),300)):this.$message.info("没有了~")},clickSwiper:function(t){this.getCommentData()},toggleLike:function(t){var e=this;this.fun.$post("plugin.video-share.frontend.video.like",{video_goods_id:t.id}).then((function(o){1===o.result?0==t.member_like?(t.like_num--,t.member_like=1):(t.like_num++,t.member_like=0):e.$message.error(o.msg)})).catch((function(t){console.error(t)}))},getCommentData:function(){var t=this;this.commentLoading||this.commentFinished||(this.commentLoading=!0,this.commentFinished=!1,this.commentPage=1,this.fun.$get("plugin.video-share.frontend.comment.comment-list",{video_id:this.amount_id}).then((function(e){t.commentLoading=!1,1===e.result?(t.commentlist=e.data.list.data,t.commentTotal=e.data.num,e.data.list.last_page<=1&&(t.commentFinished=!0)):(t.$message.error(e.msg),t.commentFinished=!0)})).catch((function(t){console.log(t)})))},mouseout:function(){this.isCommentScroll=!1},mouseover:function(){this.isCommentScroll=!0},commentScroll:function(){var t=document.getElementsByClassName("discuss-list-box")[0],e=document.getElementsByClassName("discuss-item-box")[0];t&&e&&e.getClientRects()[0].y<-(t.scrollHeight-t.getClientRects()[0].top-t.getClientRects()[0].height-100)&&(this.commentFinished||this.onCommentMore())},onCommentMore:function(){var t=this;console.log("触发加载更多"),this.commentFinished||this.commentLoading||(this.commentLoading=!0,this.commentPage=this.commentPage+1,this.fun.$get("plugin.video-share.frontend.comment.comment-list",{video_id:this.amount_id,page:this.commentPage}).then((function(e){t.commentLoading=!1,1===e.result?(t.commentlist=t.commentlist.concat(e.data.list.data),e.data.list.current_page>=e.data.list.last_page&&(t.commentFinished=!0)):t.$message.error(e.msg)})).catch((function(e){t.commentLoading=!1,console.log(e)})))},getRely:function(t){var e=this;if(!this.commentLoading){this.commentLoading=!0;var o=this.commentlist[t].id,n=Math.floor(this.commentlist[t].append_arr.length/5)+1;this.fun.$get("plugin.video-share.frontend.comment.get-replys",{comment_id:o,page:n}).then((function(o){e.commentLoading=!1,1===o.result?e.commentlist[t].append_arr=e.commentlist[t].append_arr.concat(o.data.data)||[]:e.$message.error(o.msg)}))}},replyIt:function(t,e,o){console.log(t,e,o),this.comment_id=t.id,this.comment_member=t,this.itemChild_index=o,e&&(this.comment_id=e.id,this.comment_member=e)},replyDel:function(){this.comment_id=""},sendComment:function(){var t=this;console.log("发送评论===========",this.amount_id,this.comment_id);var e={content:this.content_text},o="plugin.video-share.frontend.comment.create-comment";this.comment_id?this.comment_id&&(e.comment_id=this.comment_id,o="plugin.video-share.frontend.comment.reply-comment"):e.video_id=this.amount_id,this.fun.$post(o,e).then((function(e){1===e.result?(t.$message.success("评论成功"),t.content_text="","1"==e.data.type?(t.commentlist.unshift({append_arr:[],id:e.data.id,support_num:0,head_image:e.data.head_img_url,nick_name:e.data.nick_name,created_at:e.data.created_at,content:e.data.content,can_del:1}),t.commentTotal+=1):"2"==e.data.type&&(t.commentlist[t.itemChild_index].reply_num+=1,t.commentlist[t.itemChild_index].append_arr.unshift({id:e.data.id,support_num:0,head_image:e.data.head_img_url,nick_name:e.data.nick_name,created_at:e.data.created_at,content:e.data.content,can_del:1,reply_name:e.data.reply_name}))):t.$message.error(e.msg)})).catch((function(t){console.log(t)}))},delComment:function(t,e){var o=this;console.log("删除评论===========",t,e);var n={};n.comment_id=-1==e?this.commentlist[t].id:this.commentlist[t].append_arr[e].id,this.fun.$post("plugin.video-share.frontend.comment.del",n).then((function(n){1===n.result?(o.$message.success("已删除"),-1==e?(o.commentlist.splice(t,1),o.commentTotal--):(o.commentlist[t].reply_num=o.commentlist[t].reply_num-1,o.commentlist[t].append_arr.splice(e,1))):o.$message.error(n.msg)})).catch((function(t){console.log(t)}))},clickLikeItem:function(t,e,o){var n=this;console.log(".....点赞||取消点赞.....",t,e);var r={comment_id:this.commentlist[t].id};null!=e&&""!==e&&(r.comment_id=this.commentlist[t].append_arr[e].id),this.fun.$post("plugin.video-share.frontend.comment.support",r).then((function(r){if(1===r.result)if(null!=e&&""!==e){n.$set(n.commentlist[t].append_arr[e],"is_support",!o);var d=n.commentlist[t].append_arr[e].support_num;n.$set(n.commentlist[t].append_arr[e],"support_num",o?--d:++d)}else{n.$set(n.commentlist[t],"is_support",!o);var c=n.commentlist[t].support_num;n.$set(n.commentlist[t],"support_num",o?--c:++c)}else n.$message.error(r.msg)})).catch((function(t){console.log(t)}))},videoPlay:function(){this.isPlay?(this.isPlay=!1,this.$refs.VueAliplayerV2.pause()):this.$refs.VueAliplayerV2.play()},ended:function(){this.$refs.VueAliplayerV2.replay()},addRecord:function(){this.isPlay=!0,this.amount_id!=this.old_amount_id&&(this.old_amount_id=this.amount_id,this.fun.$get("plugin.video-share.frontend.video.addRecord",{video_id:this.amount_id}).then((function(t){1==t.result?console.log("播放记录成功"):console.log("播放记录失败")}),(function(t){console.log(t.msg)})))},followMember:function(t,e){var o=this;this.fun.$get("plugin.video-share.frontend.video.editFollow",{member_id:t,follow_type:1==e?2:1}).then((function(t){if(1==t.result){var n=1==e?0:1;o.showVideo.is_follow=n,o.$set(o.showVideo,"is_follow",n);var r=1==e?"已取消关注":"关注成功";o.$message.success(r)}}))},timeupdate:function(t){this.videoList.length<=0||(this.isPlay=!0,v=this.$refs.VueAliplayerV2,console.log(t.currentTarget.currentTime,v.getDuration()))},getViewTimelog:function(){this.is_openRedpack&&this.logID!=this.amount_id&&(this.logID=this.amount_id,console.log("触发了getViewTimelog==========================",this.amount_id,this.maxTime),this.fun.$get("plugin.video-redpack.frontend.activity.logViewTime",{video_id:this.amount_id,video_length:this.maxTime}).then((function(t){})).catch((function(t){console.error(t)})))},onTimeupdate:function(t){this.currentDuration=t;var e=parseInt((this.cumulativeDuration+this.currentDuration)/60);this.openRedpackTimes.indexOf(e)>-1&&(this.openRedpackTimes.splice(0,1),console.log("删除一个累计时长条件",this.openRedpackTimes),this.includeRedpackID("time",e))},includeRedpackID:function(t,e,o,text){if(this.is_openRedpack){if(this.logID=0,"success"===o&&(this.showVideoAnswer=!1),"time"==t){for(var i=0;i<this.openRedpackData.length;i++)if(this.openRedpackData[i].view_time_data===e)return this.activity_reward_id=this.openRedpackData[i].activity_id,console.log("达到红包累计时长",this.amount_id,this.activity_reward_id),void this.getRedpackReward(1,1)}else if("vid"==t)for(var n=0;n<this.openRedpackData.length;n++)if(this.openRedpackData[n].view_finish_ids.indexOf(this.amount_id)>-1&&"1"==this.openRedpackData[n].view_finish_open_state)return this.activity_reward_id=this.openRedpackData[n].activity_id,console.log("短视频红包指定视频",this.amount_id,this.activity_reward_id),void this.getRedpackReward(2,1);if(this.videoShare.needAnswer&&this.points_plugin&&this.videoShare.is_show)return void(this.videoShare.show=!0);"success"===o?(this.showVideoAnswer=!1,this.successShow=!0):(this.$refs.video.play(),this.getViewTimelog()),"fail"===o&&this.$message.error(text)}else{if(this.videoShare.needAnswer&&this.points_plugin&&this.videoShare.is_show)return void(this.videoShare.show=!0);"success"===o&&(this.showVideoAnswer=!1,this.successShow=!0),"fail"===o&&this.$message.error(text)}},getRedpackReward:function(t,e){var o=this;this.reward_type=t,this.fun.$get("plugin.video-redpack.frontend.activity.reward",{video_id:this.amount_id,activity_id:this.activity_reward_id,reward_type:t,request_type:e},"load").then((function(t){1===t.result?1==e?(o.$refs.video.pause(),o.showRedpack=!0,o.redpack_info=t.data):(o.redpack_info.amount=t.data.amount,o.openRedpack=!0):o.$message.error(t.msg)})).catch((function(t){console.error(t)}))},getBasicSet:function(){var t=this;this.fun.$get("plugin.video-share.frontend.video.getBasicSet",{}," ").then((function(e){1===e.result?(t.videoBasicSet=e.data.set,t.$store.commit("setVideoBasicSet",t.videoBasicSet)):t.$message.error(e.msg)})).catch((function(t){console.error(t)}))},toGood:function(t){window.open(this.fun.getSiteRoot()+"/plugins/shop_server/goods/"+t.goods_id+"?i="+this.fun.getKeyByI()+"&vid="+t.id,"_blank")},copyContent:function(text){this.fun.copyContent(text),this.$message.success("复制成功")},toUrl:function(t,e){this.$router.push(this.fun.getUrl(t,e))},createQrc:function(t){var e=this;setTimeout((function(){e.$nextTick((function(){canvas=document.getElementById("qrccode-canvas-code"),l.a.toCanvas(canvas,t,(function(t){t&&console.log(t)}))}))}),200)},debounce:function(t,e,o){var n;return function(){var r=this,d=arguments;d[0].flag=o,n&&clearTimeout(n),n=setTimeout((function(){t.apply(r,d)}),e)}},handleScroll:function(t){var e;this.isCommentScroll||("up"===(e="mousewheel"===t.flag?t.deltaY>0?"down":"up":t.detail>0?"down":"up")?this.previous():this.nextOne(),console.log(t.detail,t.flag,t.deltaY,e))}}},_=f,x=(o(905),o(907),o(1)),component=Object(x.a)(_,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"video"},[o("client-only",[o("div",{staticClass:"course-bottom",class:[t.isPrevious?"scroll-top":"",t.isNext?"scroll-down":""]},[o("div",{staticClass:"course-left"},[o("div",{staticClass:"video-box",attrs:{id:"vue-aliplayer-v2-box"},on:{click:function(e){return e.stopPropagation(),t.videoPlay.apply(null,arguments)}}},[o("vue-aliplayer-v2",{directives:[{name:"show",rawName:"v-show",value:t.showVideo,expression:"showVideo"}],ref:"VueAliplayerV2",attrs:{source:t.showVideo.video_src,options:t.options},on:{play:t.addRecord,ended:t.ended,playing:t.timeupdate}}),t._v(" "),o("div",{staticClass:"up-control",on:{click:function(e){return e.stopPropagation(),t.previous.apply(null,arguments)}}},[o("i",{staticClass:"iconfont icon-member-top"})]),t._v(" "),o("div",{staticClass:"next-control",on:{click:function(e){return e.stopPropagation(),t.nextOne.apply(null,arguments)}}},[o("i",{staticClass:"iconfont icon-member-bottom"})])],1)]),t._v(" "),o("div",{staticClass:"course-right"},[o("div",{staticClass:"member-box"},[o("div",{staticClass:"member-box-left"},[o("img",{staticClass:"actor",attrs:{src:t.showVideo.member?t.showVideo.member.avatar:"",alt:""}}),t._v(" "),o("div",{staticClass:"member-name-box"},[o("p",{staticClass:"member-name"},[t._v(t._s(t.showVideo.member?t.showVideo.member.nickname:""))]),t._v(" "),o("div",{staticClass:"create-time"},[t._v(t._s(t.showVideo.created_at))])])]),t._v(" "),o("div",{staticClass:"member-box-right"},[o("div",{staticClass:"btn-box",class:{is_follow:1==t.showVideo.is_follow},on:{click:function(e){return e.stopPropagation(),t.followMember(t.showVideo.member.uid,t.showVideo.is_follow)}}},[1!=t.showVideo.is_follow?o("i",{staticClass:"iconfont icon-life-game-plus"}):t._e(),t._v(" "),o("span",{staticStyle:{"line-height":"1.1"}},[t._v(t._s(t.showVideo.is_follow?"已关注":"关注"))])])])]),t._v(" "),o("div",{staticClass:"desc-box text-overflow-3"},[t._v("\n "+t._s(t.showVideo.title)+"\n ")]),t._v(" "),o("div",{staticClass:"member-box-bottom"},[o("div",{staticClass:"like-box",on:{click:function(e){return e.stopPropagation(),t.toggleLike(t.showVideo)}}},[1==t.showVideo.member_like?o("i",{staticClass:"iconfont icon-bc_like_normal"}):t._e(),1!=t.showVideo.member_like?o("i",{staticClass:"iconfont icon-zb_all_like"}):t._e(),o("span",[t._v(t._s(t.showVideo.like_num?t.calNum(t.showVideo.like_num):0))])]),t._v(" "),o("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click"}},[o("div",{staticClass:"share-pop-box"},[o("p",{staticStyle:{"font-size":"13px"}},[t._v("微信【扫一扫】分享或者复制链接到第三方平台分享")]),t._v(" "),o("div",{staticClass:"share-code"},[o("canvas",{attrs:{id:"qrccode-canvas-code"}}),t._v(" "),o("div",{staticClass:"share-code-link"},[o("p",{staticStyle:{color:"#ec544a","font-size":"12px"}},[t._v("链接:")]),t._v(" "),o("div",{staticClass:"link-box"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.current_url,expression:"current_url"}],staticClass:"link",attrs:{title:"",readonly:"true",type:"text"},domProps:{value:t.current_url},on:{input:function(e){e.target.composing||(t.current_url=e.target.value)}}}),o("span",{staticClass:"copy-btn",on:{click:function(e){return e.stopPropagation(),t.copyContent(t.current_url)}}},[t._v("复制")])])])])]),t._v(" "),o("div",{staticClass:"share-box",attrs:{slot:"reference"},on:{click:function(e){return t.createQrc(t.current_url)}},slot:"reference"},[o("i",{staticClass:"iconfont icon-bc_share_card"}),o("span",[t._v(t._s(t.showVideo.share_num?t.calNum(t.showVideo.share_num):"0"))])])])],1),t._v(" "),t.showVideo.goods?o("div",{staticClass:"goods-list-box"},[o("div",{staticClass:"goods-item",on:{click:function(e){return e.stopPropagation(),t.toGood(t.showVideo)}}},[o("img",{staticClass:"good-img",attrs:{src:t.showVideo.goods.thumb,alt:""}}),t._v(" "),o("div",{staticClass:"good-right"},[o("p",{staticClass:"good-title"},[t._v(t._s(t.showVideo.goods.title))]),t._v(" "),o("p",{staticStyle:{display:"flex"}},[o("span",{staticClass:"price"},[t._v("¥"+t._s(t.showVideo.goods.price))]),t._v(" "),o("span",{staticClass:"old-price"},[t._v("¥"+t._s(t.showVideo.goods.market_price))])])]),t._v(" "),o("i",{staticClass:"iconfont icon-fontclass-gouwuche"})])]):t._e(),t._v(" "),1==t.comment_open?o("div",{staticClass:"discuss-list-box",on:{mouseout:t.mouseout,mouseover:t.mouseover,scroll:t.commentScroll}},t._l(t.commentlist,(function(e,n){return o("div",{staticClass:"discuss-item-box"},[o("div",{staticClass:"member-box"},[o("div",{staticClass:"member-box-left"},[o("img",{staticClass:"actor",attrs:{src:e.head_image,alt:""}}),t._v(" "),o("div",{staticClass:"member-name-box"},[o("p",{staticClass:"member-name"},[t._v(t._s(e.nick_name))]),t._v(" "),o("div",{staticClass:"create-time"},[t._v(t._s(e.created_at))])])])]),t._v(" "),o("div",{staticClass:"discuss-desc"},[t._v("\n "+t._s(e.content)+"\n ")]),t._v(" "),o("div",{staticClass:"discuss-item-bottom"},[o("div",{staticClass:"like-box",on:{click:function(o){return o.stopPropagation(),t.clickLikeItem(n,"",e.is_support)}}},[e.is_support?t._e():o("i",{staticClass:"iconfont icon-bc_like_normal"}),e.is_support?o("i",{staticClass:"iconfont icon-zb_all_like"}):t._e(),t._v(" "),o("span",[t._v(t._s(e.support_num))])]),t._v(" "),o("div",{staticClass:"share-box",on:{click:function(o){return o.stopPropagation(),t.replyIt(e,"",n)}}},[o("i",{staticClass:"iconfont icon-fontclass-pinglun2"}),o("span",{staticStyle:{"margin-left":"5px"}},[t._v("回复")])]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:1==e.can_del,expression:"item.can_del == 1"}],staticClass:"share-box"},[o("i",{staticClass:"iconfont icon-fontclass-shanchu",on:{click:function(e){return e.stopPropagation(),t.delComment(n,-1)}}})])]),t._v(" "),e.reply_num?o("div",{staticClass:"sub-discuss-box"},[t._l(e.append_arr,(function(r,d){return o("div",{staticClass:"sub-discuss-item"},[o("p",{staticClass:"text-discuss"},[t._v(t._s(r.nick_name)+" "),r.reply_name?o("i",{staticClass:"iconfont icon-member_look"}):t._e(),t._v(" "+t._s(r.reply_name)+":"+t._s(r.content))]),t._v(" "),o("div",{staticClass:"discuss-item-bottom"},[o("div",{staticClass:"like-box",on:{click:function(e){return e.stopPropagation(),t.clickLikeItem(n,d,r.is_support)}}},[r.is_support?t._e():o("i",{staticClass:"iconfont icon-bc_like_normal"}),r.is_support?o("i",{staticClass:"iconfont icon-zb_all_like"}):t._e(),t._v(" "),o("span",[t._v(t._s(r.support_num))])]),t._v(" "),o("div",{staticClass:"share-box",on:{click:function(o){return o.stopPropagation(),t.replyIt(e,r,n)}}},[o("i",{staticClass:"iconfont icon-fontclass-pinglun2"}),o("span",{staticStyle:{"margin-left":"5px"}},[t._v("回复")])]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:1==r.can_del,expression:"itemChild.can_del == 1"}],staticClass:"share-box"},[o("i",{staticClass:"iconfont icon-fontclass-shanchu",on:{click:function(e){return e.stopPropagation(),t.delComment(n,d)}}})])])])})),t._v(" "),e.append_arr&&e.append_arr.length<e.reply_num?o("div",{staticClass:"check-more",on:{click:function(e){return e.stopPropagation(),t.getRely(n)}}},[t._v("查看更多回复 "),o("i",{staticClass:"iconfont icon-member-bottom"})]):t._e()],2):t._e()])})),0):t._e(),t._v(" "),1==t.comment_open?o("div",{staticClass:"comment-box"},[o("div",{staticClass:"input-box"},[t.comment_id?o("p",{staticClass:"title-box"},[o("span",[t._v("回复: "+t._s(t.comment_member.nick_name))]),t._v(" "),o("i",{staticClass:"iconfont icon-close11",on:{click:t.replyDel}})]):t._e(),t._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content_text,expression:"content_text"}],attrs:{title:"",placeholder:"说点什么吧~"},domProps:{value:t.content_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.sendComment.apply(null,arguments)},input:function(e){e.target.composing||(t.content_text=e.target.value)}}})]),t._v(" "),o("div",{staticClass:"comment-bottom-box"},[o("span",{staticClass:"comment-publish",on:{click:function(e){return e.stopPropagation(),t.sendComment.apply(null,arguments)}}},[t._v("发表")])])]):t._e()])])])],1)}),[],!1,null,"28d46132",null);e.default=component.exports},805:function(t,e,o){var content=o(906);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("445f1398",content,!0,{sourceMap:!1})},806:function(t,e,o){var content=o(908);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("3e7ed253",content,!0,{sourceMap:!1})},905:function(t,e,o){"use strict";o(805)},906:function(t,e,o){var n=o(7)(!1);n.push([t.i,".col_red[data-v-28d46132]{color:#f11111}.col_green[data-v-28d46132]{color:#44be95}.col_white[data-v-28d46132]{color:#fff}.flex-col[data-v-28d46132]{flex-direction:column}.flex-j-c[data-v-28d46132]{justify-content:center}.flex-j-sb[data-v-28d46132]{justify-content:space-between}.flex-j-ar[data-v-28d46132]{justify-content:space-around}.flex-a-c[data-v-28d46132]{align-items:center}.flex-a-e[data-v-28d46132]{align-items:flex-end}.w[data-v-28d46132]{width:1200px}.m-auto[data-v-28d46132]{margin:0 auto}.height-one[data-v-28d46132]{height:100%}.flex[data-v-28d46132]{display:flex}.text-overflow[data-v-28d46132]{-webkit-line-clamp:4}.text-overflow[data-v-28d46132],.text-overflow-2[data-v-28d46132]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-28d46132]{-webkit-line-clamp:2}.text-overflow-3[data-v-28d46132]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-28d46132],.text-overflow-3[data-v-28d46132]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-28d46132]{white-space:nowrap}.hiddenScroll[data-v-28d46132]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-28d46132]::-webkit-scrollbar{display:none}.finger-point[data-v-28d46132]{cursor:pointer}.cursor-default[data-v-28d46132]{cursor:default}.el-icon-circle-close[data-v-28d46132]{color:#fff}.video[data-v-28d46132]{position:relative}.course-bottom[data-v-28d46132],.video[data-v-28d46132]{width:100%;height:calc(100vh - 50px);background:#000}.course-bottom[data-v-28d46132]{position:absolute;top:0;left:0;z-index:10;transition:all .5s}.course-bottom.scroll-top[data-v-28d46132]{transform:translateY(100vh);opacity:0}.course-bottom.scroll-down[data-v-28d46132]{transform:translateY(-100vh);opacity:0}.course-left[data-v-28d46132]{right:360px;width:calc(100% - 360px)}.course-left[data-v-28d46132],.course-left .video-box[data-v-28d46132]{position:absolute;top:0;height:calc(100vh - 60px)}.course-left .video-box[data-v-28d46132]{cursor:pointer;left:0;width:100%}.course-left .next-control[data-v-28d46132],.course-left .up-control[data-v-28d46132]{position:absolute;right:10px;color:#fff;width:40px;height:40px;border-radius:50%;background-color:#3a3a3c;display:flex;align-items:center;justify-content:center;z-index:100;cursor:pointer}.course-left .next-control .iconfont[data-v-28d46132],.course-left .up-control .iconfont[data-v-28d46132]{font-size:30px}.course-left .up-control[data-v-28d46132]{bottom:100px}.course-left .next-control[data-v-28d46132]{bottom:50px}.course-right[data-v-28d46132]{position:absolute;right:0;top:0;height:calc(100vh - 50px);width:360px;background:#2d2d2d;padding:10px;box-sizing:border-box;color:#fff}.course-right .member-box[data-v-28d46132]{display:flex}.course-right .member-box .member-box-left[data-v-28d46132]{flex:1;display:flex}.course-right .member-box .actor[data-v-28d46132]{width:35px;height:35px;border-radius:50%;margin-right:10px}.course-right .member-box .member-name[data-v-28d46132]{font-weight:700;font-size:14px}.course-right .member-box .create-time[data-v-28d46132]{font-size:12px}.course-right .member-box .btn-box[data-v-28d46132]{display:flex;align-items:center;justify-content:center;margin-top:5px;text-align:center;padding:4px 10px 6px 5px;cursor:pointer;border:1px solid #fff;border-radius:15px}.course-right .member-box .btn-box.is_follow[data-v-28d46132]{padding:5px 8px;background-color:#ec544a;border:1px solid #ec544a}.course-right .desc-box[data-v-28d46132]{margin-top:10px;font-size:13px}.course-right .member-box-bottom[data-v-28d46132]{display:flex;color:#959595;margin-top:10px;font-size:12px}.course-right .member-box-bottom .like-box[data-v-28d46132]{margin-right:8px;align-items:center;cursor:pointer}.course-right .member-box-bottom .share-box[data-v-28d46132]{cursor:pointer;align-items:center}.course-right .member-box-bottom .iconfont[data-v-28d46132]{font-size:14px;vertical-align:middle}.course-right .goods-list-box[data-v-28d46132]{margin-top:10px}.course-right .goods-list-box .goods-item[data-v-28d46132]{cursor:pointer;position:relative;display:flex;border-radius:2px;padding:10px}.course-right .goods-list-box .good-img[data-v-28d46132]{width:50px;height:50px;border-radius:4px;margin-right:10px}.course-right .goods-list-box .good-title[data-v-28d46132]{margin-bottom:6px}.course-right .goods-list-box .price[data-v-28d46132]{color:#ec544a;font-size:12px;margin-right:10px}.course-right .goods-list-box .old-price[data-v-28d46132]{color:#737373;font-size:12px;text-decoration:line-through}.course-right .goods-list-box .icon-fontclass-gouwuche[data-v-28d46132]{cursor:pointer;position:absolute;right:5px;bottom:25px;color:#ec544a}.course-right .discuss-list-box[data-v-28d46132]{overflow-y:scroll;overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;max-height:calc(100vh - 400px);padding:8px}.course-right .discuss-list-box .discuss-item-box[data-v-28d46132]{margin-bottom:15px}.course-right .discuss-list-box .discuss-desc[data-v-28d46132]{margin-top:5px;font-size:11px;margin-left:45px}.course-right .discuss-list-box .sub-discuss-box[data-v-28d46132]{margin-top:8px;padding:5px 10px;margin-left:40px;font-size:11px;background:#333;border-radius:4px}.course-right .discuss-list-box .sub-discuss-box .sub-discuss-item[data-v-28d46132]{margin-top:5px}.course-right .discuss-list-box .sub-discuss-box .icon-member_look[data-v-28d46132]{font-size:10px}.course-right .discuss-list-box .sub-discuss-box .check-more[data-v-28d46132]{margin-top:5px;cursor:pointer}.course-right .discuss-list-box .discuss-item-bottom[data-v-28d46132]{display:flex;margin-top:5px;color:#959595;cursor:pointer;font-size:12px}.course-right .discuss-list-box .discuss-item-bottom .share-box[data-v-28d46132]{margin-left:10px}.course-right .discuss-list-box .discuss-item-bottom .iconfont[data-v-28d46132]{font-size:12px}.course-right .discuss-list-box[data-v-28d46132]::-webkit-scrollbar{width:0}.course-right .comment-box[data-v-28d46132]{position:absolute;bottom:15px;right:10px;width:340px;background:#1e1e1e}.course-right .comment-box .input-box[data-v-28d46132]{border-bottom:1px solid hsla(0,0%,93.7%,.51)}.course-right .comment-box .input-box .title-box[data-v-28d46132]{font-size:12px;padding:5px;display:flex;align-items:center;justify-content:space-between}.course-right .comment-box .input-box .icon-close11[data-v-28d46132]{font-size:12px;cursor:pointer}.course-right .comment-box .input-box textarea[data-v-28d46132]{width:100%;min-height:60px;padding:5px;box-sizing:border-box;border:none;box-shadow:none;background:#1e1e1e;outline:none;resize:none;color:#fff}.course-right .comment-box .comment-bottom-box[data-v-28d46132]{display:flex;align-items:center;justify-content:flex-end;font-size:12px;cursor:pointer;padding:5px 10px}.course-right .comment-box .comment-cancel[data-v-28d46132]{color:#656464;margin-right:15px}.course-right .comment-box .comment-publish[data-v-28d46132]{color:#ec544a;border:1px solid #ec544a;border-radius:10px;padding:2px 10px}.icon-zb_all_like[data-v-28d46132]{color:#ec544a}.share-code[data-v-28d46132]{margin-top:8px;display:flex}.share-code #qrccode-canvas-code[data-v-28d46132]{width:65px!important;height:65px!important;margin-right:10px}.share-code .share-code-link[data-v-28d46132]{display:flex;flex-direction:column;justify-content:space-between;padding:5px 0}.share-code .link-box[data-v-28d46132]{margin-top:5px;width:230px;display:flex;border-radius:4px;overflow:hidden}.share-code .link[data-v-28d46132]{background-color:#ececec;overflow:hidden;flex:1;word-break:keep-all;white-space:nowrap;padding:3px 0 3px 5px;border:none}.share-code .copy-btn[data-v-28d46132]{flex:0 0 36px;font-size:12px;text-align:center;background-color:#ec544a;color:#fff;border-radius:4px;padding:3px 5px;cursor:pointer}",""]),t.exports=n},907:function(t,e,o){"use strict";o(806)},908:function(t,e,o){var n=o(7)(!1);n.push([t.i,".prism-player .prism-cover{background-size:contain!important;background-color:#000}",""]),t.exports=n}}]);