component-search.js 519 B

123456789101112131415161718192021222324252627282930313233
  1. // components/component-tag-name.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. options: {
  7. addGlobalClass: true,
  8. },
  9. properties: {
  10. },
  11. /**
  12. * 组件的初始数据
  13. */
  14. data: {
  15. text:"搜索博物館、展览"
  16. },
  17. /**
  18. * 组件的方法列表
  19. */
  20. methods: {
  21. to_search: function () {
  22. wx.navigateTo({
  23. url: '../yuezhan/search/index',
  24. success: function (res) { },
  25. fail: function (res) { },
  26. complete: function (res) { },
  27. })
  28. }
  29. }
  30. })