gifts.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <cover-view class="div gifts-inner">
  3. <text class="div gifts-title">给主播送礼物</text>
  4. <cover-image mode="aspectFit" src="@/static/image/live/close.png" class="img close" @click="hide"/>
  5. <cover-view class="div gift-box">
  6. <cover-view class="div gift-item" @click="sendgift">
  7. <cover-image mode="aspectFit" src="@/static/image/live/gift-item.png" class="img gift-item-img" />
  8. <text class="div gift-text">100积分</text>
  9. </cover-view>
  10. </cover-view>
  11. </cover-view>
  12. </template>
  13. <script>
  14. export default {
  15. props: {},
  16. data () {
  17. return {}
  18. },
  19. methods: {
  20. hide () {
  21. this.$emit('hideGift')
  22. },
  23. sendgift () {
  24. this.$emit('sendgift')
  25. }
  26. },
  27. computed: {}
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .gifts-inner {
  32. padding: 0 24rpx;
  33. /* #ifndef APP-PLUS-NVUE */
  34. box-sizing: border-box;
  35. /* #endif */
  36. }
  37. .gifts-title {
  38. height: 114rpx;
  39. line-height: 114rpx;
  40. font-family: PingFangSC-Medium;
  41. font-size:16px;
  42. color: #111111;
  43. /* #ifndef APP-PLUS-NVUE */
  44. letter-spacing: 0;
  45. /* #endif */
  46. text-align: left;
  47. /* #ifndef APP-PLUS-NVUE */
  48. display: block;
  49. /* #endif */
  50. border-bottom: 1px solid #DBDBDB;
  51. }
  52. .close {
  53. height: 64rpx;
  54. width: 64rpx;
  55. position: absolute;
  56. right: 24rpx;
  57. top: 24rpx;
  58. }
  59. .gift-item {
  60. width: 218rpx;
  61. height: 218rpx;
  62. /* #ifndef APP-PLUS-NVUE */
  63. float: left;
  64. /* #endif */
  65. background: rgba(0, 0, 0, 0.10);
  66. border-radius: 8rpx;
  67. text-align: center;
  68. margin-bottom: 50rpx;
  69. margin-right: 25rpx;
  70. position:relative;
  71. }
  72. .gift-text{font-size:12px;position: absolute;right:10rpx;bottom:10rpx;color:$primaryColor}
  73. .gift-box{
  74. overflow: hidden;
  75. padding: 24rpx;
  76. }
  77. .gift-item-img{
  78. margin-left:67rpx;
  79. width: 84rpx;
  80. height: 171rpx;
  81. margin-top: 24rpx
  82. }
  83. </style>