MY-SH\lenovo 4 months ago
parent 573a36adf7
commit fd95b740d9

@ -110,6 +110,7 @@
// //
async function getPoster() { async function getPoster() {
console.log('获得海报数据接口');
painterImageUrl.value = undefined painterImageUrl.value = undefined
poster.views = await getPosterData({ poster.views = await getPosterData({
width: poster.css.width, width: poster.css.width,

@ -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');
} }
}; };

Loading…
Cancel
Save