From fd95b740d941eb2285189ad1db3b620d1d50b021 Mon Sep 17 00:00:00 2001 From: "MY-SH\\lenovo" <1312913002@qq.com> Date: Sat, 10 Aug 2024 16:45:31 +0800 Subject: [PATCH] log --- .../sheep/components/s-share-modal/canvas-poster/index.vue | 1 + .../sheep/components/s-share-modal/s-share-modal.vue | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/yudao-mall-uniapp-master/sheep/components/s-share-modal/canvas-poster/index.vue b/yudao-mall-uniapp-master/sheep/components/s-share-modal/canvas-poster/index.vue index 25e4fe4..5d9d73a 100644 --- a/yudao-mall-uniapp-master/sheep/components/s-share-modal/canvas-poster/index.vue +++ b/yudao-mall-uniapp-master/sheep/components/s-share-modal/canvas-poster/index.vue @@ -110,6 +110,7 @@ // 获得海报数据 async function getPoster() { + console.log('获得海报数据接口'); painterImageUrl.value = undefined poster.views = await getPosterData({ width: poster.css.width, diff --git a/yudao-mall-uniapp-master/sheep/components/s-share-modal/s-share-modal.vue b/yudao-mall-uniapp-master/sheep/components/s-share-modal/s-share-modal.vue index 2cca150..7bb7d9c 100644 --- a/yudao-mall-uniapp-master/sheep/components/s-share-modal/s-share-modal.vue +++ b/yudao-mall-uniapp-master/sheep/components/s-share-modal/s-share-modal.vue @@ -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'); } };