@button-default-height: 86rpx; @button-border-radius: 18rpx; @button-default-font-size: 32rpx; @button-default-color: #fff; .toy-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: @button-default-height; line-height: @button-default-height; border-radius: @button-border-radius; font-size: @button-default-font-size; color: @button-default-color; &--primary { background: rgba(255, 215, 25, 1); box-shadow: 0px 10rpx 4rpx #DBB917; &.disabled { background: rgba(255, 215, 25, 0.5); box-shadow: 0px 10rpx 4rpx rgba(219, 185, 23, 0.5); } &.active { transform: translateY(10rpx); box-shadow: 0 0 0 rgba(219, 185, 23, 0.5); /* 阴影效果 */ } } &--green { background: rgba(147, 211, 51, 1); box-shadow: 0px 10rpx 4rpx rgba(121, 185, 21, 1); &.disabled { background: rgba(147, 211, 51, 0.5); box-shadow: 0px 10rpx 4rpx rgba(121, 185, 21, 0.5); } &.active { transform: translateY(10rpx); box-shadow: 0 0 0 rgba(121, 185, 21, 0.5); /* 阴影效果 */ } } .loading-class, &__icon { margin-right: 24rpx; } }