swiper.js 530 B

1234567891011121314151617181920212223242526272829
  1. Page({
  2. data: {
  3. background: ['blue', 'red', 'yellow'],
  4. indicatorDots: true,
  5. autoplay: false,
  6. interval: 1000,
  7. circular: false,
  8. },
  9. changeIndicatorDots(e) {
  10. this.setData({
  11. indicatorDots: !this.data.indicatorDots,
  12. });
  13. },
  14. changeCircular(e) {
  15. this.setData({
  16. circular: !this.data.circular,
  17. });
  18. },
  19. changeAutoplay(e) {
  20. this.setData({
  21. autoplay: !this.data.autoplay,
  22. });
  23. },
  24. intervalChange(e) {
  25. this.setData({
  26. interval: e.detail.value,
  27. });
  28. },
  29. });