酒店桌布为微信小程序
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.

28 lines
652 B

3 months ago
  1. export default {
  2. data() {
  3. return {
  4. // 默认的全局分享内容
  5. share: {
  6. title: '补周到',
  7. path: '/pages/index/index', // 全局分享的路径,比如 首页
  8. // imageUrl: '/static/image/login/logo.png', // 全局分享的图片(可本地可网络)
  9. }
  10. }
  11. },
  12. // 定义全局分享
  13. // 1.发送给朋友
  14. onShareAppMessage(res) {
  15. return {
  16. title: this.share.title,
  17. path: this.share.path,
  18. imageUrl: this.share.imageUrl,
  19. }
  20. },
  21. //2.分享到朋友圈
  22. onShareTimeline(res) {
  23. return {
  24. title: this.share.title,
  25. path: this.share.path,
  26. imageUrl: this.share.imageUrl,
  27. }
  28. },
  29. }