|
@@ -84,7 +84,7 @@
|
|
|
// 选择分享方式
|
|
// 选择分享方式
|
|
|
const select = (scene) => {
|
|
const select = (scene) => {
|
|
|
//emit('select', scene)
|
|
//emit('select', scene)
|
|
|
-
|
|
|
|
|
|
|
+ console.log('props.currentPageprops.currentPageprops.currentPage',props.currentPage);
|
|
|
try {
|
|
try {
|
|
|
if (props.currentPage == 'haibao') {
|
|
if (props.currentPage == 'haibao') {
|
|
|
shareToWeChatHaibao(scene)
|
|
shareToWeChatHaibao(scene)
|
|
@@ -138,6 +138,7 @@
|
|
|
}
|
|
}
|
|
|
// 分享针对海报
|
|
// 分享针对海报
|
|
|
const shareToWeChatHaibao = (scene) => {
|
|
const shareToWeChatHaibao = (scene) => {
|
|
|
|
|
+ console.log('12311');
|
|
|
uni.downloadFile({
|
|
uni.downloadFile({
|
|
|
url: props.image, // 你的网络图片地址
|
|
url: props.image, // 你的网络图片地址
|
|
|
success: (downloadRes) => {
|
|
success: (downloadRes) => {
|
|
@@ -173,13 +174,6 @@
|
|
|
console.log('分享配置:', shareConfig)
|
|
console.log('分享配置:', shareConfig)
|
|
|
uni.share(shareConfig)
|
|
uni.share(shareConfig)
|
|
|
}
|
|
}
|
|
|
- }).fail(() => {
|
|
|
|
|
- // 其他错误
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '海报分享失败,请检测网络状态',
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- duration: 3000
|
|
|
|
|
- })
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|