punishmentInfo.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="punishment-info">
  3. <view class="punishment-info-item" v-for="(item,index) in list" :key="index">
  4. <view class="punishment-info-item-icon">
  5. !
  6. </view>
  7. <view class="punishment-info-item-text">
  8. {{item.title}}
  9. </view>
  10. <view class="punishment-info-item-date">
  11. {{item.date}}
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: "punishmentInfo",
  19. props: {
  20. list: {
  21. default: () => [],
  22. type: Array
  23. }
  24. },
  25. data() {
  26. return {
  27. };
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. .punishment-info {
  33. width: 100%;
  34. .punishment-info-item {
  35. width: 100%;
  36. display: flex;
  37. align-items: center;
  38. .punishment-info-item-icon {
  39. width: 28rpx;
  40. text-align: center;
  41. height: 28rpx;
  42. line-height: 28rpx;
  43. color: rgba(253, 173, 70, 1);
  44. border-radius: 50%;
  45. border: 1px solid rgba(253, 173, 70, 1);
  46. margin-right: 20rpx;
  47. }
  48. .punishment-info-item-text {
  49. flex: 1;
  50. }
  51. .punishment-info-item-date {
  52. color: #999;
  53. }
  54. }
  55. }
  56. </style>