share.js 657B

12345678910111213141516171819202122232425262728293031
  1. export const shareMixins = {
  2. data () {
  3. return {
  4. shareData: {
  5. title: '',
  6. path: '',
  7. imageUrl: '',
  8. content: '',
  9. desc: ''
  10. }
  11. }
  12. },
  13. //#ifdef MP-WEIXIN
  14. onShareAppMessage () {
  15. return {
  16. title: this.shareData.title,
  17. path: this.shareData.path,
  18. imageUrl: this.shareData.imageUrl,
  19. content: this.shareData.content,
  20. desc: this.shareData.desc,
  21. // success: res = {
  22. // }
  23. }
  24. },
  25. //#endif
  26. onLoad(option) {
  27. }
  28. }