You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
533 B

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="oneBtn" :class="{hui: disabled}" @click="oneBtnClick">{{ text }}</view>
  3. </template>
  4. <script>
  5. export default {
  6. props: ['text', 'disabled'],
  7. methods: {
  8. oneBtnClick() {
  9. this.$emit('oneBtnClick')
  10. }
  11. }
  12. }
  13. </script>
  14. <style lang="scss" scoped>
  15. .oneBtn {
  16. height: 80rpx;
  17. background: #DE3A26;
  18. box-shadow: 0px 3rpx 20rpx 0px rgba(222,58,38,0.53);
  19. border-radius: 40rpx;
  20. text-align: center;
  21. line-height: 80rpx;
  22. font-size: 28rpx;
  23. color: #fff;
  24. &.hui {
  25. opacity: 0.4;
  26. }
  27. }
  28. </style>