homeWords.js 485 B

123456789101112131415161718192021222324252627282930313233
  1. // pages/components/blocks/home_words/homeWords.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. items: {
  8. type: Array
  9. },
  10. specialData:{
  11. type:String
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. },
  19. /**
  20. * 组件的方法列表
  21. */
  22. methods: {
  23. navigator(e){
  24. const title = e.target.dataset.title;
  25. wx.navigateTo({
  26. url: `/pages/brand/brand?keyword=${title}&title=${title}`,
  27. })
  28. }
  29. }
  30. })