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