艺易修小程序24.08.21
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.

33 lines
607 B

  1. import { mapState } from 'vuex'
  2. export default {
  3. data() {
  4. return {
  5. // 默认的全局分享内容
  6. Gshare: {
  7. title: '艺易修',
  8. path: '/pages/repair/repair', // 全局分享的路径,比如 首页
  9. // imageUrl: '/static/image/login/logo.png', // 全局分享的图片(可本地可网络)
  10. }
  11. }
  12. },
  13. computed: {
  14. },
  15. // 定义全局分享
  16. // 1.发送给朋友
  17. onShareAppMessage(res) {
  18. let o = {
  19. ...this.Gshare,
  20. }
  21. return o
  22. },
  23. //2.分享到朋友圈
  24. onShareTimeline(res) {
  25. let o = {
  26. ...this.Gshare,
  27. }
  28. return o
  29. },
  30. methods: {
  31. }
  32. }