itemmyNews.js 478 B

12345678910111213141516171819202122232425262728293031
  1. Component({
  2. options: {
  3. styleIsolation: "apply-shared"
  4. },
  5. properties: {
  6. item: {
  7. type: Object,
  8. value: {}
  9. }
  10. },
  11. data: {
  12. ellipsis: true
  13. },
  14. methods: {
  15. getPublisherInfo: function (e) {
  16. wx.navigateTo({
  17. url: "/pages/publisher/publisher?id=" + e.target.dataset.publisherId
  18. })
  19. },
  20. elli: function () {
  21. this.setData({
  22. ellipsis: !this.data.ellipsis
  23. })
  24. }
  25. }
  26. })