C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
404 B

  1. // pages/index/sw/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. imgUrls: {
  8. value: [],
  9. type: Array,
  10. },
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. swiperCurrent: 0,
  17. },
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. swiperChange: function (e) {
  23. this.setData({
  24. swiperCurrent: e.detail.current
  25. })
  26. },
  27. }
  28. })