劉先森
劉先森
  • 发布:2020-07-06 10:28
  • 更新:2021-04-14 10:55
  • 阅读:2668

uni.share 暂不支持 share 方法 ?

分类:uni-app
uni.getProvider({  
				    service: 'share',  
				    success: function (res) {  
				        console.log(res.provider)  
				        if (~res.provider.indexOf('weixin')) {  
				           uni.share({  
				               provider: "weixin",  
				               scene: "WXSceneSession",  
				               type: 0,  
				               href: "http://uniapp.dcloud.io/",  
				               title: "uni-app分享",  
				               summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",  
				               imageUrl: "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/uni@2x.png",  
				               success: function (res) {  
				                   console.log("success:" + JSON.stringify(res));  
				               },  
				               fail: function (err) {  
				                   console.log("fail:" + JSON.stringify(err));  
				               }  
				           });  
				        }  
				    }  
				});

2020-07-06 10:28 负责人:无 分享
已邀请:
劉先森

劉先森 (作者)

结案~

BiggerWu

BiggerWu

这个是app分享使用,并不是微信小程序使用的是吗?

前端最菜的妹

前端最菜的妹

微信小程序分享到微信通过纯图片分享如何分享呢

该问题目前已经被锁定, 无法添加新回复