bottom.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <cover-view class="div room-bottom">
  3. <!-- 当前商品 start -->
  4. <goods class="goods" @showgoods="showgoods"></goods>
  5. <!-- 当前商品 end -->
  6. <!-- 消息输入 start -->
  7. <message class="message" @send-message="sendMessage" :isTimReady="isTimReady"></message>
  8. <!-- 消息输入 end -->
  9. <!-- 送礼物 start -->
  10. <gift class="gift" @showGift="showGift"></gift>
  11. <!-- 送礼物 end -->
  12. <!-- 点赞 start -->
  13. <like class="like" @like="like"></like>
  14. <!-- 点赞 end -->
  15. </cover-view>
  16. </template>
  17. <script>
  18. import goods from './goods'
  19. import gift from './gift'
  20. import like from './like'
  21. import message from './message'
  22. export default {
  23. props: {
  24. header: {},
  25. isTimReady: {
  26. type: Boolean,
  27. default: false
  28. }
  29. },
  30. data () {
  31. return {}
  32. },
  33. components: {
  34. goods,
  35. gift,
  36. like,
  37. message
  38. },
  39. methods: {
  40. showgoods () {
  41. this.$emit('showgoods')
  42. },
  43. showGift () {
  44. this.$emit('showGift')
  45. },
  46. sendMessage (data) {
  47. this.$emit('send-message', data)
  48. },
  49. like () {
  50. this.$emit('like')
  51. }
  52. },
  53. created () {},
  54. mounted () {}
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .room-bottom{
  59. /* #ifndef APP-PLUS-NVUE */
  60. display: flex;
  61. overflow: visible;
  62. /* #endif */
  63. /* #ifdef APP-PLUS-NVUE */
  64. flex-direction: row;
  65. /* #endif */
  66. align-items: flex-end;
  67. }
  68. .goods {
  69. margin: 0 32rpx 0 32rpx;
  70. }
  71. .gift {
  72. margin-left: 32rpx;
  73. }
  74. .like {
  75. }
  76. .message {
  77. flex:1;
  78. /*width: 266rpx;*/
  79. height: 66rpx;
  80. background: rgba(0, 0, 0, 0.25);
  81. border-radius: 40rpx;
  82. border-radius: 40rpx;
  83. }
  84. </style>