index.js 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // nova-tourism/components/list-card/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. info:{
  8. type: Object,
  9. default: {}
  10. },
  11. islink:{
  12. type:Boolean,
  13. default: false
  14. },
  15. url: {
  16. type:String,
  17. default:''
  18. },
  19. linkdesc:{
  20. type:String,
  21. default:''
  22. },
  23. activeColor:{
  24. type: String,
  25. value: ''
  26. },
  27. },
  28. /**
  29. * 组件的初始数据
  30. */
  31. data: {
  32. },
  33. /**
  34. * 组件的方法列表
  35. */
  36. methods: {
  37. navigate(){
  38. wx.navigateTo({
  39. url: this.data.url,
  40. })
  41. }
  42. }
  43. })