physicalForCard.js 750 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Component({
  2. options: {
  3. addGlobalClass: true
  4. },
  5. properties: {
  6. title:{
  7. type: String,
  8. observer:function(newVal){
  9. this.setData({list: newVal });
  10. }
  11. },
  12. icon:{
  13. type: String,
  14. observer:function(newVal){
  15. this.setData({icon:newVal});
  16. }
  17. },
  18. link:{
  19. type: String,
  20. observer:function(newVal){
  21. this.setData({link: newVal });
  22. }
  23. },
  24. aid:{
  25. type:String,
  26. observer:function(newVal){
  27. this.setData({aid:newVal})
  28. }
  29. },
  30. },
  31. data: {
  32. title:'',
  33. aid:'',
  34. icon:'',
  35. link:''
  36. },
  37. methods: {
  38. jumpPage(){
  39. if (this.data.link) {
  40. wx.navigateTo({
  41. url: this.data.link
  42. })
  43. }
  44. }
  45. }
  46. })