index.js 953 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. const app = require('../../utils/util.js');
  2. const tools = require('../../utils/tools.js');
  3. Page({
  4. data: {
  5. // 轮播
  6. backgrounds: [{
  7. "pic": "/images/banner1.png",
  8. // link:'../aboutme/index',
  9. },
  10. {
  11. "pic": "/images/banner2.png",
  12. // link:'../aboutme/index',
  13. },
  14. {
  15. "pic": "/images/banner3.png",
  16. // link:'../aboutme/index',
  17. },
  18. ],
  19. indicatorDots: true,
  20. vertical: false,
  21. autoplay: true,
  22. interval: 5000,
  23. duration: 500
  24. },
  25. goCollect() {
  26. wx.switchTab({
  27. url: '/pages/collectInfo/collectInfo',
  28. })
  29. },
  30. goXunfang() {
  31. wx.switchTab({
  32. url: '/pages/visitandinfo/visitandinfo',
  33. })
  34. },
  35. goTongzhi(){
  36. wx.navigateTo({
  37. url: '/pages/notice/notice',
  38. })
  39. },
  40. goPaiming() {
  41. wx.navigateTo({
  42. url: '/pages/paiming/paiming',
  43. })
  44. },
  45. goSaoMa() {
  46. console.log("扫阿");
  47. },
  48. onLoad() {
  49. },
  50. })