小程序
小游戏
企业微信
微信支付
扫描小程序码分享
注:苹果和安卓手机下,如何实现点击按钮,实现分享朋友圈?
分享出来的链接如下:8.16 喜喜-已结束-团管理#小程序://快团团/点击跟团/FKOF7jGvMptguBq
(ps:这个是在别的小程序看到的,现在要去实现这个功能。。。)
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html
点击复制的时候生成链接并使用复制api,复制到剪贴板。
获取参数:
// app.js onLaunch(options) { this.globalData.query = options.query || {} if (options.referrerInfo) { this.globalData.query = Object.assign(this.globalData.query, options.referrerInfo.extraData) } }, onShow(options) { this.globalData.query = options.query || {} if (options.referrerInfo) { this.globalData.query = Object.assign(this.globalData.query, options.referrerInfo.extraData) } }, globalData: { query: {} } // 你详情页面js: onLoad(options) { this.setData({ id: options.id || app.globalData.query.id || '' }) }
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
参考这个:https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.onCopyUrl.html
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html
点击复制的时候生成链接并使用复制api,复制到剪贴板。
获取参数:
// app.js onLaunch(options) { this.globalData.query = options.query || {} if (options.referrerInfo) { this.globalData.query = Object.assign(this.globalData.query, options.referrerInfo.extraData) } }, onShow(options) { this.globalData.query = options.query || {} if (options.referrerInfo) { this.globalData.query = Object.assign(this.globalData.query, options.referrerInfo.extraData) } }, globalData: { query: {} } // 你详情页面js: onLoad(options) { this.setData({ id: options.id || app.globalData.query.id || '' }) }
参考这个:https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.onCopyUrl.html