微信小程序-转发

仅供参考

1,js:

        onShareAppMessage(res) {
            return {
                  title: '我在使用俺搜·找客户,10万+材料人都在用,就差你了',
                  path: '/pages/index',
                  success: function(res) {// 转发成功
                    console.log(res)
                  },
                  fail: function(res) {// 转发失败
                    console.log(res)
                  }
            }
          }
      
      onLoad(e){
        this.
onShareAppMessage();
      }

 

posted @ 2018-05-07 14:41  谭翔随笔  阅读(108)  评论(0编辑  收藏  举报