修改视频分享的错误
This commit is contained in:
parent
ad430cc293
commit
9f816ae1eb
@ -365,6 +365,7 @@
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
communityId:'',
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -409,7 +410,6 @@
|
||||
this.get() //刚进入页面加载数据
|
||||
if (this.isLogin) {
|
||||
this.getUserInfo();
|
||||
this.downloadFilePromotionCode(this.videoID);
|
||||
}
|
||||
// #ifdef H5
|
||||
this.setOpenShare();
|
||||
@ -647,13 +647,9 @@
|
||||
}, 200)
|
||||
},
|
||||
change(event) {
|
||||
console.log('eeeee', event.detail.current);
|
||||
this.k = event.detail.current;
|
||||
this.posterImage = false;
|
||||
if (this.isLogin) {
|
||||
this.downloadFilePromotionCode(this.dataList[this.k]['community_id']);
|
||||
}
|
||||
|
||||
this.communityId = this.dataList[this.k]['community_id'];
|
||||
},
|
||||
animationfinish(event) {
|
||||
// 1.这里进行判断,如果是最后一个视频就进入 get() 方法加载视频进入列表
|
||||
@ -759,6 +755,7 @@
|
||||
})
|
||||
},
|
||||
videoData(list) {
|
||||
this.communityId = list[0]['community_id']
|
||||
if (list.length == 0) return
|
||||
let that = this;
|
||||
that.page = that.page + 1;
|
||||
@ -899,15 +896,40 @@
|
||||
* 生成海报
|
||||
*/
|
||||
async goPoster() {
|
||||
if (!this.isLogin) {
|
||||
|
||||
let that = this;
|
||||
if (!that.isLogin) {
|
||||
}
|
||||
let type;
|
||||
// #ifndef MP
|
||||
type = 'wechat'
|
||||
// #endif
|
||||
// #ifdef MP
|
||||
type = 'routine'
|
||||
// #endif
|
||||
getVideoCode(that.communityId, {
|
||||
type: type
|
||||
}).then(async res => {
|
||||
if (res.status !== 200) {
|
||||
that.$util.Tips({
|
||||
title: '生成海报失败'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
that.codeImg = res.data.url
|
||||
}).catch(err => {
|
||||
that.$set(that, 'PromotionCode', '');
|
||||
that.$util.Tips({
|
||||
title: '生成海报失败'
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
console.log(this.posterImage)
|
||||
if (this.posterImage) {
|
||||
this.posterImageStatus = true
|
||||
this.posters = false
|
||||
return
|
||||
}
|
||||
let that = this;
|
||||
let arr2
|
||||
that.posters = false;
|
||||
that.$set(that, 'canvasStatus', true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user