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.

62 lines
1.1 KiB

  1. <template>
  2. <view class="commentItem">
  3. <view class="flex">
  4. <view class="avatar">
  5. <image :src="item.avatar" mode="widthFix"></image>
  6. </view>
  7. <view class="name">{{ item.name }}</view>
  8. <view class="tag">{{ item.label }}</view>
  9. </view>
  10. <view class="text">
  11. {{ item.description }}
  12. </view>
  13. </view>
  14. </template>
  15. <script setup>
  16. defineProps(['item'])
  17. </script>
  18. <style lang="scss" scoped>
  19. image {
  20. display: block;width: 100%;height: 100%;
  21. }
  22. .commentItem {
  23. width: 100%;
  24. height: 236rpx;
  25. background: #FFFFFF;
  26. box-shadow: 0px 0px 18rpx 0px rgba(0, 0, 0, 0.04);
  27. border-radius: 10rpx;
  28. padding: 40rpx;
  29. .flex {
  30. .avatar {
  31. width: 40rpx;
  32. height: 40rpx;
  33. border-radius: 50%;
  34. overflow: hidden;
  35. }
  36. .name {
  37. font-size: 28rpx;
  38. font-weight: 500;
  39. padding: 0 10rpx;
  40. }
  41. .tag {
  42. min-width: 100rpx;
  43. height: 36rpx;
  44. background: linear-gradient(135deg, #F9E4B1 0%, #F1C477 100%);
  45. border-radius: 6rpx;
  46. line-height: 36rpx;
  47. text-align: center;
  48. padding: 0 10rpx;
  49. font-size: 20rpx;
  50. }
  51. }
  52. .text {
  53. margin-top: 26rpx;
  54. font-size: 24rpx;
  55. color: #2D1306;
  56. }
  57. }
  58. </style>