Page({
/**
* 页面的初始数据
*/
data: {
statusList: [{
statusId: '0',
isClicked: true
},
{
statusId: '1',
isClicked: false
},
{
statusId: '2',
isClicked: false
},
],
}
})
//点击状态按钮
clickListTopRow: function(e) {
let choseChange = "statusList[" + e.currentTarget.dataset.index + "].isClicked";
this.setData({
[choseChange]: true
})
},
网友评论