var idxall = e.currentTarget.dataset.idxall;
// var idx = e.currentTarget.dataset.idx;
var datas = that.data.activity_list;
var arrList = [];
// 如果没有这之间的代码,会有bug
var tempAniamtion = that.animation.left('0rpx').step({ duration: 1 });
that.data.AnimatingName = '';
that.setData({
AnimatingName: '',
deleteAnimation: tempAniamtion.export()
})
// 如果没有这之间的代码,会有bug
datas.splice(idxall, 1);
console.log(datas)
for (var i = 0; i < datas.length;i++){
arrList.push(datas[i])
}
that.setData({
activity_list: arrList,
})
网友评论