bottombtn.vue 899 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="bottombtn" @click="goExDetail">
  3. <view class="btnitem" >
  4. <text>{{btnName}}</text>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default{
  10. name:'bottombtn',
  11. props:['text'],
  12. data(){
  13. return{
  14. btnName:''
  15. }
  16. },
  17. created() {
  18. this.btnName=this.text
  19. },
  20. methods:{
  21. goExDetail(){
  22. this.$emit('goExDetail')
  23. }
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. @mixin flexlayout {
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. }
  33. .bottombtn{
  34. width: 690rpx;
  35. height: 92rpx;
  36. background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
  37. border-radius: 12rpx;
  38. margin-left: 30rpx;
  39. position: fixed;
  40. bottom: 72rpx;
  41. @include flexlayout();
  42. .btnitem{
  43. @include flexlayout();
  44. text{
  45. font-size: 30rpx;
  46. font-family: PingFang-SC-Bold, PingFang-SC;
  47. font-weight: bold;
  48. color: #FFFFFF;
  49. }
  50. }
  51. }
  52. </style>