wxml
10元
20元
50元
100元
200元
500元
js
on: function (e) {
var that = this;
if (this.data.currentTab === e.target.dataset.current) {
return false;
} else {
that.setData({
currentTab: e.target.dataset.current
})
}
}
wxss
.butt{
border-radius: 20rpx;
border: solid 1rpx #d3d7d4;
width:194rpx;
height: 138rpx;
margin-top: 22rpx;
margin-left: 18rpx;
line-height: 138rpx;
}
.on{
background-color: #fd555a;
color: white;
}