|
|
@ -88,13 +88,17 @@
|
|
|
|
// 操作 ②:生成海报分享
|
|
|
|
// 操作 ②:生成海报分享
|
|
|
|
const onShareByPoster = async () => {
|
|
|
|
const onShareByPoster = async () => {
|
|
|
|
closeShareModal();
|
|
|
|
closeShareModal();
|
|
|
|
|
|
|
|
console.log(sheep.$store('user').isLogin,'sheep$store(user)isLogin111111111111')
|
|
|
|
if (!sheep.$store('user').isLogin) {
|
|
|
|
if (!sheep.$store('user').isLogin) {
|
|
|
|
showAuthModal();
|
|
|
|
showAuthModal();
|
|
|
|
|
|
|
|
console.log('打开授权弹框11111111111111111')
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(props.shareInfo);
|
|
|
|
console.log(props.shareInfo,'1111');
|
|
|
|
const res = await unref(SharePosterRef).getPoster();
|
|
|
|
const res = await unref(SharePosterRef).getPoster();
|
|
|
|
|
|
|
|
console.log(res,'不知名方法海报getPoster1111111111111111111');
|
|
|
|
const isHave = res[3].src.slice(-5)
|
|
|
|
const isHave = res[3].src.slice(-5)
|
|
|
|
|
|
|
|
console.log(isHave,'isHave判断什么存在11111111111111111');
|
|
|
|
if (isHave===",null"){
|
|
|
|
if (isHave===",null"){
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
title: '无权推广',
|
|
|
|
title: '无权推广',
|
|
|
@ -103,6 +107,7 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
state.showPosterModal = true;
|
|
|
|
state.showPosterModal = true;
|
|
|
|
|
|
|
|
console.log('改变showPosterModal的值为true,应是显示弹框11111111111111111');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|