zx/public/static/js/pages-short_video-nvueSwipe...

1 line
60 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-short_video-nvueSwiper-index"],{"041a":function(t,i,e){"use strict";var a=e("96a6"),n=e.n(a);n.a},"0e57":function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a(e("2634")),o=a(e("2fdc"));e("bf0f"),e("2797"),e("aa9c"),e("c223");var s=e("e44d"),c=e("8f59"),r=e("96e0"),u=a(e("3753")),d=a(e("4273")),l=e("aa10"),v=e("edc0b"),p=e("672a"),f=(a(e("5f97")),getApp()),h={components:{comment:u.default,mentioned:d.default},computed:(0,r.configMap)({community_reply_status:0},(0,c.mapGetters)(["isLogin","uid"])),data:function(){return{imgHost:l.HTTP_REQUEST_URL,videoID:0,pinlunNum:0,windowWidth:0,windowHeight:0,platform:"",deleteHeight:0,dataList:[],shareItem:null,k:0,max:2,oldVideo:"",voice:"",timeout:"",authorUid:0,current:0,heightNum:1.3,touchNum:0,aixinLeft:0,aixinTop:0,Rotate:0,currentNav:1,limit:6,page:1,oldCurrent:1,H5ShareBox:!1,showComment:!1,loadVideo:!0,loadend:!1,userInfo:{},moreList:[],posters:!1,weixinStatus:!1,showManage:!1,isUser:!1,isSatrt:0,userUid:0,posterImageStatus:!1,storeImage:"",PromotionCode:"",canvasStatus:!1,posterImage:"",posterbackgd:"../static/img/index/posterbackgd.png",avatar:"/static/images/f.png",codeImg:"",autoplay:!1,circular:!0,interval:3e3,duration:500,actionSheetHidden:!1,isRoutine:!1}},watch:{k:function(t,i){var e=t+2;if(this.max<e&&(this.max=e),this.oldCurrent!=this.currentNav)return this.oldCurrent=this.currentNav,!1;this.dataList[i].playIng=!1,this.dataList[i].isplay=!0,this.dataList[i].state="pause",uni.createVideoContext(this.dataList[i].community_id+""+i,this).pause()}},onLoad:function(t){this.getOptions(t),this.videoID=t.id,this.isUser=1==t.user,this.userUid=t.uid?t.uid:0,this.isSatrt=1==t.tab?1:0,this.get(),this.downloadFilePromotionCode(this.videoID),this.isLogin&&this.getUserInfo(),this.setOpenShare()},onShow:function(){},onHide:function(){this.dataList[this.k].state="pause",uni.createVideoContext(this.dataList[this.k].community_id+""+this.k,this).pause()},onReady:function(){this.windowWidth=uni.getSystemInfoSync().windowWidth,this.windowHeight=uni.getSystemInfoSync().windowHeight},onShareAppMessage:function(t){var i=this.uid?this.uid:0;return{title:this.shareItem.title||"",path:"/pages/short_video/nvueSwiper/index?id="+this.shareItem.community_id+"&pid="+i,imageUrl:this.shareItem.image[0]||""}},onShareTimeline:function(t){return{title:this.shareItem.title||"",query:{id:this.shareItem.community_id,pid:this.uid},imageUrl:this.shareItem.image[0]||""}},methods:{goBack:function(){uni.navigateBack()},navTap:function(t){this.currentNav=t,this.dataList.forEach((function(t){t.state="pause"})),this.k=0,this.page=1,this.loadVideo=!0,this.loadend=!1,this.dataList=[],1==t?this.get():this.getFocusList()},getUserInfo:function(){var t=this;(0,p.getUserInfo)().then((function(i){t.userInfo=i.data}))},followAuthor:function(t){var i=this;if(!1===this.isLogin)(0,s.toLogin)();else{(0,v.followAuthorApi)(t.uid,{status:1}).then((function(e){200===e.status&&(t.is_fans=!0),i.$util.Tips({title:e.message})})).catch((function(t){return uni.showToast({title:t,icon:"none",duration:2e3})}))}},deleteTopic:function(t){var i=this;uni.showModal({content:"确定要删除该话题么?",success:function(e){e.confirm?(0,v.deletePlantApi)(t.community_id).then((function(e){200===e.status&&(i.$util.Tips({title:e.message}),setTimeout((function(){uni.redirectTo({url:"/pages/plantGrass/plant_user/index?id="+t.uid})}),1e3))})):e.cancel}})},play:function(t){this.dataList[t].isplay=!1,this.dataList[t].playIng=!0,this.dataList[t].state="play",this.dataList[t].loading=!1},waiting:function(t){this.dataList[t].loading=!0},pinlunFun:function(t){var i=this;this.pinlunNum=t,this.dataList.forEach((function(t){t.community_id==i.videoID&&(t.count_reply=t.count_reply+1)}))},getOptions:function(t){t.pid&&(f.globalData.spid=t.pid)},setOpenShare:function(){var t=this.uid?this.uid:0;if(this.$wechat.isWeixin()){var i=this.dataList[0],e={desc:i.content,title:i.title,link:location.href+"?pid="+t+"&id="+th