itemPublisher.js 466 B

123456789101112131415161718192021222324252627282930313233
  1. Component({
  2. options: {
  3. styleIsolation: "apply-shared"
  4. },
  5. /**
  6. * 组件的属性列表
  7. */
  8. properties: {
  9. item:{
  10. type:Object,
  11. value:{}
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. },
  19. /**
  20. * 组件的方法列表
  21. */
  22. methods: {
  23. getMessageInfo: function () {
  24. wx.navigateTo({
  25. url: "/pages/message/message?id=" + this.properties.item._id
  26. })
  27. }
  28. }
  29. })