require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/short_video/nvueSwiper/index"],{"13e4":function(t,i,e){"use strict";var n=e("e25b"),o=e.n(n);o.a},3377:function(t,i,e){"use strict";(function(t){var n=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;e("8e8a");var o=e("26cb"),a=e("865e"),s=e("669d"),u=e("bcf5"),d=(n(e("61e9")),getApp()),r={components:{douyinScrollview:function(){Promise.all([e.e("pages/short_video/common/vendor"),e.e("pages/short_video/components/douyin-scrollview/douyin-scrollview")]).then(function(){return resolve(e("85d3"))}.bind(null,e)).catch(e.oe)},goodsList:function(){Promise.all([e.e("common/vendor"),e.e("pages/short_video/components/goodsList/index")]).then(function(){return resolve(e("d812"))}.bind(null,e)).catch(e.oe)}},computed:(0,o.mapGetters)(["isLogin","uid","cartNum"]),data:function(){return{imgHost:a.HTTP_REQUEST_URL,videoID:0,pinlunNum:0,windowWidth:0,windowHeight:0,platform:"",deleteHeight:0,isComment:0,dataList:[],k:0,oldVideo:"",voice:"",timeout:"",current:0,boxStyle:{height:0,width:0},heightNum:1.3,touchNum:0,aixinLeft:0,aixinTop:0,isShowAixin:!1,Rotate:0,currentNav:1,limit:3,page:1,oldCurrent:1,H5ShareBox:!1}},watch:{currentNav:function(t,i){this.oldCurrent=i},k:function(i,e){var n=this;if(this.oldCurrent!=this.currentNav)return this.oldCurrent=this.currentNav,!1;this.dataList[e].playIng=!1,this.dataList[e].isplay=!0,this.dataList[e].state="pause",t.createVideoContext(this.dataList[e].id+""+e,this).stop(),this.dataList[i].state="play",setTimeout((function(){t.createVideoContext(n.dataList[i].id+""+i,n).play(),setTimeout((function(){n.dataList[i].isplay=!1,n.dataList[i].playIng=!0}),50)}),250)}},onLoad:function(i){this.videoID=i.id||0,this.getOptions(i),this.platform=t.getSystemInfoSync().platform;var e=t.getSystemInfoSync().model;"ios"!=this.platform||"iPhone6"===e&&"iPhone6s"===e&&"iPhone7"===e&&"iPhone8"===e||(this.deleteHeight=0),this.windowWidth=t.getSystemInfoSync().windowWidth,this.windowHeight=t.getSystemInfoSync().windowHeight-59,this.boxStyle.width=this.windowWidth+"px",this.boxStyle.height=this.windowHeight-this.deleteHeight,this.get(),this.isLogin&&this.getCartNum()},onShow:function(){0!==this.dataList.length&&(this.dataList[this.k].state="play",t.createVideoContext(this.dataList[this.k].id+""+this.k,this).play())},onHide:function(){this.dataList[this.k].state="pause",t.createVideoContext(this.dataList[this.k].id+""+this.k,this).pause()},onReady:function(){},onShareAppMessage:function(){var t=this.uid?this.uid:0,i=this.dataList[this.k];return this.cShare(this.videoID),{title:i.type_name||"",imageUrl:i.image||"",path:"/pages/short_video/nvueSwiper/index?spid="+t+"&id="+this.videoID}},methods:{getCartNum:function(){var t=this;(0,u.getCartCounts)().then((function(i){t.$store.commit("indexData/setCartNum",i.data.count+"")}))},goIndex:function(){t.switchTab({url:"/pages/index/index"})},goCarts:function(){t.switchTab({url:"/pages/order_addcart/order_addcart"})},goUser:function(){t.switchTab({url:"/pages/user/index"})},goLive:function(){t.navigateTo({url:"/pages/columnGoods/live_list/index"})},tozuozhe:function(i){0==i.type?t.reLaunch({url:"/pages/index/index"}):t.reLaunch({url:"/pages/store_cate/store_cate?id="+i.relation_id})},getOptions:function(t){if(t.scene){var i=this.$util.getUrlParams(decodeURIComponent(t.scene));i.spid&&(d.globalData.spid=i.spid),i.id&&(this.videoID=i.id||0)}t.spid&&(d.globalData.spid=t.spid)},goCart:function(i){!1!==this.isLogin?(this.$refs.goodsLists.productList(i.id,1),this.$refs.pinglunGoods.open("bottom")):t.showToast({title:"请登录",icon:"none",duration:1e3})},navTap:function(t){this.currentNav=t,this.timeout="",this.k=0,this.page=1,this.dataList=[],this.get()},moreTap:function(t){t.isMore=!t.isMore},moveHandle:function(){},closeScrollview:function(){this.$refs.pinglun.close(),this.isComment=!1},pinlunFun:function(t,i){this.pinlunNum=t,this.dataList.forEach((function(e){e.id==i&&(e.comment_num=t)}))},toComment:function(i){var e=this;this.isComment=!0,t.showToast({title:"加载中...",icon:"none",position:"bottom",duration:300}),this.$nextTick((function(t){e.pinlunNum=i.comment_num,e.$refs.comments.getnewpinlun(i.id,1),e.$refs.pinglun.open("bottom")}))},ended:function(){},touchstartHover:function(t){var i=this;if(this.touchNum>=1){this.aixinLeft=t.touches[0].screenX-50,this.aixinTop=t.touches[0].screenY-50,this.isShowAixin=!0;this.Rotate=Math.floor(81*Math.random())+-40,setTimeout((function(){i.isShowAixin=!1}),700)}},tapVideoHover:function(i,e){var n=this;this.dataList[this.k].isShowimage=!1,this.dataList[this.k].isShowProgressBarTime=!1,this.ProgressBarOpacity=.5,this.dotWidth=0,this.touchNum++,setTimeout((function(){1==n.touchNum&&(n.dataList[n.k].state="play"==i||"continue"==i?"pause":"continue","continue"==n.dataList[n.k].state&&t.createVideoContext(n.dataList[n.k].id+""+n.k,n).play(),"pause"==n.dataList[n.k].state&&t.createVideoContext(n.dataList[n.k].id+""+n.k,n).pause()),n.touchNum,n.touchNum=0}),200)},doubleLike:function(){0==this.dataList[this.k].is_like&&(this.dataList[this.k].like_num+=1,this.dataList[this.k].is_like=!0)},change:function(t){this.k=t.detail.current},animationfinish:function(t){this.k==this.dataList.length-1&&this.GET()},GET:function(){var i=this;(0,s.videoList)({page:this.page,limit:this.limit,order_type:this.currentNav,id:this.page>1||2==this.currentNav?0:this.videoID}).then((function(t){i.page=i.page+1;for(var e=t.data,n=0;n1||2==this.currentNav?0:this.videoID}).then((function(e){i.page=i.page+1;for(var n=e.data,o=0;o