2024-09-01 21:51:50 +01:00

40 lines
535 B
JavaScript

// components/verifyspin/verifyspin.js
Component({
/**
* Component properties
*/
properties: {
},
/**
* Component initial data
*/
data: {
stage: 0,
},
/**
* Component methods
*/
methods: {
begin() {
setTimeout(() => {
this.next()
}, 3000);
},
next() {
this.setData({
stage: this.stage + 1,
});
},
},
lifetimes: {
attached() {
this.begin();
}
},
})