修改视频分享的错误
This commit is contained in:
parent
ad430cc293
commit
9f816ae1eb
@ -365,6 +365,7 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
limit: 10
|
limit: 10
|
||||||
},
|
},
|
||||||
|
communityId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -409,7 +410,6 @@
|
|||||||
this.get() //刚进入页面加载数据
|
this.get() //刚进入页面加载数据
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.downloadFilePromotionCode(this.videoID);
|
|
||||||
}
|
}
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.setOpenShare();
|
this.setOpenShare();
|
||||||
@ -647,13 +647,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() 方法加载视频进入列表
|
||||||
@ -759,6 +755,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;
|
||||||
@ -899,15 +896,40 @@
|
|||||||
* 生成海报
|
* 生成海报
|
||||||
*/
|
*/
|
||||||
async goPoster() {
|
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) {
|
if (this.posterImage) {
|
||||||
this.posterImageStatus = true
|
this.posterImageStatus = true
|
||||||
this.posters = false
|
this.posters = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let that = this;
|
|
||||||
let arr2
|
let arr2
|
||||||
that.posters = false;
|
that.posters = false;
|
||||||
that.$set(that, 'canvasStatus', true);
|
that.$set(that, 'canvasStatus', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user