honor.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="honor">
  3. <view v-for="(item,index) in list" :key="index" class="honor-item">
  4. <view class="honor-item-left">
  5. <image style="width: 100%;height: 100%;border-radius: 10rpx;border: 2px solid #999;" :src="item.img" mode=""></image>
  6. </view>
  7. <view class="honor-item-right">
  8. <view class="honor-item-right-title">
  9. {{item.active_honor_name}}
  10. </view>
  11. <!-- <view class="honor-table">
  12. <view :style="`
  13. background-color:${item1.bgcColor} ;
  14. color:${item1.color} ;
  15. `" v-for="(item1,index1) in item.honor" :key="index1" class="honor-table-item">
  16. {{item1.title}}
  17. </view>
  18. </view> -->
  19. <view class="honor-date">
  20. {{item.create_time}}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. name: "honor",
  29. props: {
  30. list: {
  31. default: () => [],
  32. type: Array
  33. }
  34. },
  35. data() {
  36. return {
  37. };
  38. },
  39. mounted() {
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. .honor {
  45. width: 100%;
  46. .honor-item {
  47. width: 100%;
  48. margin-bottom: 32rpx;
  49. display: flex;
  50. }
  51. .honor-item-left {
  52. width: 224rpx;
  53. height: 140rpx;
  54. margin-right: 32rpx;
  55. }
  56. .honor-item-right {
  57. font-size: 24rpx;
  58. line-height: 30rpx;
  59. .honor-table {
  60. display: flex;
  61. margin-bottom: 15rpx;
  62. margin-top: 5rpx;
  63. .honor-table-item {
  64. padding: 6rpx 10rpx;
  65. border-radius: 6rpx;
  66. margin-right: 10rpx;
  67. }
  68. }
  69. }
  70. .honor-date {
  71. color: #999;
  72. }
  73. .honor-item-right-title {
  74. height: 60rpx;
  75. font-size: 32rpx;
  76. margin-bottom: 50rpx;
  77. }
  78. }
  79. </style>