修改视频分享的错误

This commit is contained in:
luofei 2023-06-02 15:59:47 +08:00
parent 6110b4a2f7
commit 1589cca4b4

View File

@ -389,6 +389,7 @@
page: 1, page: 1,
limit: 10 limit: 10
}, },
communityId:'',
} }
}, },
watch: { watch: {
@ -413,9 +414,11 @@
this.dataList[new_k].state = 'play' this.dataList[new_k].state = 'play'
this.dataList[new_k].isplay = false this.dataList[new_k].isplay = false
this.dataList[new_k].playIng = true this.dataList[new_k].playIng = true
if (this.currentNav !== 3) {
setTimeout(() => { setTimeout(() => {
uni.createVideoContext(this.dataList[new_k].community_id + '' + new_k, this).play() uni.createVideoContext(this.dataList[new_k].community_id + '' + new_k, this).play()
}, 250) }, 250)
}
this.videoShare(this.dataList[new_k]) this.videoShare(this.dataList[new_k])
// #endif // #endif
} }
@ -679,13 +682,9 @@
}, 200) }, 200)
}, },
change(event) { change(event) {
console.log('eeeee', event.detail.current);
this.k = event.detail.current; this.k = event.detail.current;
this.posterImage = false; this.posterImage = false;
if (this.isLogin) { this.communityId = this.dataList[this.k]['community_id'];
this.downloadFilePromotionCode(this.dataList[this.k]['community_id']);
}
}, },
animationfinish(event) { animationfinish(event) {
// 1.这里进行判断,如果是最后一个视频就进入 get() 方法加载视频进入列表 // 1.这里进行判断,如果是最后一个视频就进入 get() 方法加载视频进入列表
@ -791,6 +790,7 @@
}) })
}, },
videoData(list) { videoData(list) {
this.communityId = list[0]['community_id']
if (list.length == 0) return if (list.length == 0) return
let that = this; let that = this;
that.page = that.page + 1; that.page = that.page + 1;
@ -933,10 +933,6 @@
* 生成海报 * 生成海报
*/ */
async goPoster() { async goPoster() {
// if (!this.isLogin) {
// console.log(this.downloadFilePromotionCode(this.dataList[this.k]['community_id']));
// // this.downloadFilePromotionCode(this.videoID);
// }
let that = this; let that = this;
if (!that.isLogin) {} if (!that.isLogin) {}
let type; let type;