特易招,招聘小程序
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.

42 lines
898 B

4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
  1. import {
  2. mapState
  3. } from 'vuex'
  4. export default {
  5. data() {
  6. return {
  7. // 默认的全局分享内容
  8. Gshare: {
  9. title: '特易招',
  10. path: '/pages/index/index', // 全局分享的路径,比如 首页
  11. // imageUrl: '/static/image/login/logo.png', // 全局分享的图片(可本地可网络)
  12. }
  13. }
  14. },
  15. computed: {
  16. ...mapState(['configList', 'userInfo', 'role']),
  17. },
  18. // 定义全局分享
  19. // 1.发送给朋友
  20. onShareAppMessage(res) {
  21. let o = {
  22. ...this.Gshare,
  23. title: this.configList.config_app_name,
  24. }
  25. if (this.userInfo.id) {
  26. o.path = this.Gshare.path + '?shareId=' + this.userInfo.id
  27. }
  28. return o
  29. },
  30. //2.分享到朋友圈
  31. onShareTimeline(res) {
  32. let o = {
  33. ...this.Gshare,
  34. title: this.configList.config_app_name,
  35. }
  36. if (this.userInfo.id) {
  37. o.path = this.Gshare.path + '?shareId=' + this.userInfo.id
  38. }
  39. return o
  40. },
  41. methods: {
  42. }
  43. }