index.js 560 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // components/cotent-title/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. name: {
  8. type: String
  9. },
  10. describe: {
  11. type: String
  12. },
  13. doc: {
  14. type: Boolean,
  15. value: true
  16. }
  17. },
  18. /**
  19. * 组件的初始数据
  20. */
  21. data: {
  22. },
  23. /**
  24. * 组件的方法列表
  25. */
  26. methods: {
  27. onDoc() {
  28. wx.navigateToMiniProgram({
  29. appId: 'wxb05fa7b69aa7e5b7',
  30. path: '/pages/md/index?title=' + this.properties.name + '&desc=' + this.properties.describe
  31. });
  32. }
  33. }
  34. });