| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- var app = getApp()
- Component({
- properties: {
- imgUrls: {
- type: Object,
- value: []
- },
- videoline: {
- type: String,
- value: ''
- }
- },
- data: {
- indicatorDots: true,
- circular: true,
- autoplay: false,
- interval: 3000,
- duration: 500,
- currents: '1',
- controls: true
- },
- ready: function () {
- this.videoContext = wx.createVideoContext('myVideo', this)
- },
- methods: {
- bindPause: function () {
- this.videoContext.play()
- this.setData({
- controls: false
- })
- },
- change: function (e) {
- this.setData({
- currents: e.detail.current + 1
- })
- }
- }
- })
|