You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
344 B

9 months ago
  1. module.exports = {
  2. onLoad() {
  3. // 设置默认的转发参数
  4. uni.$u.mpShare = {
  5. title: '', // 默认为小程序名称
  6. path: '', // 默认为当前页面路径
  7. imageUrl: '' // 默认为当前页面的截图
  8. }
  9. },
  10. onShareAppMessage() {
  11. return uni.$u.mpShare
  12. }
  13. }