indexBanner.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view style="height: 100%; font-size: 0" @click="showLuckGoods">
  3. <image
  4. :src="data.cover"
  5. style="width: 100%; height: 100%"
  6. class="radius4 overflow-hidden"
  7. mode="aspectFill"
  8. />
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. data: {
  15. type: Object
  16. }
  17. },
  18. methods: {
  19. showLuckGoods() {
  20. this.$emit('click', this.data)
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .cu-list {
  27. padding-top: 12rpx;
  28. .cu-item {
  29. background-color: rgba(23, 17, 35, 0.7);
  30. color: #fff;
  31. min-height: 96rpx;
  32. &::after {
  33. border-color: #aaa;
  34. }
  35. .content {
  36. display: flex;
  37. align-items: center;
  38. width: 30rpx;
  39. font-size: 28rpx;
  40. .png {
  41. height: 42rpx;
  42. width: 42rpx;
  43. margin-right: 16rpx;
  44. }
  45. }
  46. }
  47. }
  48. </style>