From f0292fb47614d96efe7a3360ff4945ef1c6f28d9 Mon Sep 17 00:00:00 2001 From: "MY-SH\\lenovo" <1312913002@qq.com> Date: Sun, 11 Aug 2024 13:28:41 +0800 Subject: [PATCH] 111 --- .../s-share-modal/canvas-poster/index.vue | 2 +- .../s-share-modal/s-share-modal.vue | 30 ++++++++++--------- .../components/l-painter/l-painter.vue | 1 + 3 files changed, 18 insertions(+), 15 deletions(-) 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 5d9d73a..38a66bf 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 @@ -117,7 +117,7 @@ shareInfo: props.shareInfo, }); await renderPoster(); - return poster.views + // return poster.views } defineExpose({ getPoster, 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 7bb7d9c..ea7e632 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 @@ -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,'isHave判断什么存在11111111111111111'); + // if (isHave===",null"){ + // uni.showToast({ + // title: '无权推广', + // duration: 2000, + // icon: 'none' + // }) + // }else{ + // state.showPosterModal = true; + // console.log('改变showPosterModal的值为true,应是显示弹框11111111111111111'); + // } }; // 操作 ①:直接转发分享 diff --git a/yudao-mall-uniapp-master/uni_modules/lime-painter/components/l-painter/l-painter.vue b/yudao-mall-uniapp-master/uni_modules/lime-painter/components/l-painter/l-painter.vue index 83926fd..647b133 100644 --- a/yudao-mall-uniapp-master/uni_modules/lime-painter/components/l-painter/l-painter.vue +++ b/yudao-mall-uniapp-master/uni_modules/lime-painter/components/l-painter/l-painter.vue @@ -189,6 +189,7 @@ }) }, async render(args = {}) { + console.log(args,'+1 render方法执行'); if(!Object.keys(args).length) { return console.error('空对象') }