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.
 
 
 

30 lines
533 B

<template>
<view class="oneBtn" :class="{hui: disabled}" @click="oneBtnClick">{{ text }}</view>
</template>
<script>
export default {
props: ['text', 'disabled'],
methods: {
oneBtnClick() {
this.$emit('oneBtnClick')
}
}
}
</script>
<style lang="scss" scoped>
.oneBtn {
height: 80rpx;
background: #DE3A26;
box-shadow: 0px 3rpx 20rpx 0px rgba(222,58,38,0.53);
border-radius: 40rpx;
text-align: center;
line-height: 80rpx;
font-size: 28rpx;
color: #fff;
&.hui {
opacity: 0.4;
}
}
</style>