怎样分享指定页面?
发布于 5 年前 作者 pingxia 884 次浏览 来自 问答

  onShareAppMessage: function (res) {

    // if (res.from === ‘button’) {

    //   // 来自页面内转发按钮

    //   console.log(res.target)

    // }

    return {

      title: ‘xxx’,

      path:’/pages/share/share’,

      imageUrl: ‘/data/img/change1.png’,

    }

  }

  ,

    onShareAppMessage 放在js里,点右上角分享还是分享本页,没有分享’/pages/share/share’。请教正确的方式?

2 回复

title 也没有

title设置生效了吗

回到顶部