index.js 465 B

12345678910111213141516171819202122232425262728293031
  1. var app = getApp();
  2. Component({
  3. properties: {
  4. imgUrls:{
  5. type:Object,
  6. value:[]
  7. },
  8. videoline:
  9. {
  10. type:String,
  11. value:""
  12. }
  13. },
  14. data: {
  15. indicatorDots: true,
  16. circular: true,
  17. autoplay: false,
  18. interval: 3000,
  19. duration: 500,
  20. currents: "1"
  21. },
  22. attached:function(){
  23. },
  24. methods: {
  25. change: function (e) {
  26. this.setData({
  27. currents: e.detail.current + 1
  28. })
  29. }
  30. }
  31. })