mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
30 lines
435 B
JavaScript
30 lines
435 B
JavaScript
Page({
|
|
data: {
|
|
active: 0,
|
|
steps: [
|
|
{
|
|
text: '步骤一',
|
|
desc: '描述信息'
|
|
},
|
|
{
|
|
text: '步骤二',
|
|
desc: '描述信息'
|
|
},
|
|
{
|
|
text: '步骤三',
|
|
desc: '描述信息'
|
|
},
|
|
{
|
|
text: '步骤四',
|
|
desc: '描述信息'
|
|
}
|
|
]
|
|
},
|
|
|
|
nextStep() {
|
|
this.setData({
|
|
active: ++this.data.active % 4
|
|
});
|
|
}
|
|
});
|