uni-app怎么分享VX、微信朋友圈的代码分享

2022年07月11日 • 阅读 1717
给大家分享一下uniapp如何分享到微信朋友圈shareWx(sharetype){     <!--sharetype为 WXSceneSe

给大家分享一下uniapp如何分享到微信朋友圈

shareWx(sharetype){
    <!--sharetype为 WXSceneSession 、 WXSenceTimeline-->
        uni.share({
                provider: 'weixin',
                scene: sharetype,
                title:'xxApp',
                href:this.logs.invite_url,  //地址
                summary: "您的好友邀请您******",
                imageUrl:'/static/img/thumb.png', //可以使用本地或网络图片
                success:(res)=>{
                         
                },
                fail:(err)=>{
                        uni.showToast({
                                title: '分享失败',
                                icon: 'none'
                        });
                }
        })
},


本文由青舟模板网发布,如若转载,请注明出处:http://qingzo.com/jishu/20220415221949.html
评论列表

共有0条评论来说两句吧...

欢迎 发表评论: