MY-SH\lenovo 3 months ago
parent fd95b740d9
commit f0292fb476

@ -117,7 +117,7 @@
shareInfo: props.shareInfo,
});
await renderPoster();
return poster.views
// return poster.views
}
defineExpose({
getPoster,

@ -95,20 +95,22 @@
return;
}
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: '无权推广',
duration: 2000,
icon: 'none'
})
}else{
state.showPosterModal = true;
console.log('改变showPosterModal的值为true应是显示弹框11111111111111111');
}
unref(SharePosterRef).getPoster();
state.showPosterModal = true;
// const res = await unref(SharePosterRef).getPoster();
// console.log(res,'getPoster1111111111111111111');
// const isHave = res[3].src.slice(-5)
// console.log(isHave,'isHave11111111111111111');
// if (isHave===",null"){
// uni.showToast({
// title: '广',
// duration: 2000,
// icon: 'none'
// })
// }else{
// state.showPosterModal = true;
// console.log('showPosterModaltrue11111111111111111');
// }
};
//

@ -189,6 +189,7 @@
})
},
async render(args = {}) {
console.log(args,'+1 render方法执行');
if(!Object.keys(args).length) {
return console.error('空对象')
}

Loading…
Cancel
Save