share.js 597 B

12345678910111213141516171819202122
  1. export default {
  2. data() {
  3. return {
  4. share:{
  5. title: '方便快捷的粮食流通行业ERP平台,给你大智慧。',
  6. imageUrl:'https://taohaoliang.oss-cn-beijing.aliyuncs.com/shareLogo.png',
  7. }
  8. }
  9. },
  10. onShareAppMessage(res) { //发送给朋友
  11. return {
  12. title: this.share.title,
  13. imageUrl: this.share.imageUrl,
  14. }
  15. },
  16. onShareTimeline(res) {//分享到朋友圈
  17. return {
  18. title: this.share.title,
  19. imageUrl: this.share.imageUrl,
  20. }
  21. },
  22. }