detail.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="content">
  3. <view class="item" v-for="item in 3">
  4. <view class="title">
  5. <view class="left">队部</view>
  6. <view class="right">扣分:0.03</view>
  7. </view>
  8. <view class="time">
  9. <view class="icon"></view>
  10. <view class="text">2021-03-01 08:47:40</view>
  11. </view>
  12. <view class="inner">
  13. <view class="item">
  14. <view class="label">问题描述:</view>
  15. <view class="text">在训练时,没有提前检查装备,不能确保完好。</view>
  16. </view>
  17. <view class="item">
  18. <view class="label">解决建议:</view>
  19. <view class="text">在训练时,没有提前检查装备,确保装备完好。</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. };
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. page{
  35. background-color: #F1F1F1;
  36. }
  37. .content{
  38. width: 749rpx;
  39. box-sizing: border-box;
  40. padding: 24rpx;
  41. }
  42. .item{
  43. margin-bottom: 20rpx;
  44. background-color: #FFFFFF;
  45. border-radius: 8px;
  46. overflow: hidden;
  47. .title{
  48. line-height: 80rpx;
  49. border-left: 8rpx solid #E54E3A;
  50. border-bottom: 1px solid #eee;
  51. display: flex;
  52. justify-content: space-between;
  53. .left{
  54. padding-left: 20rpx;
  55. }
  56. .right{
  57. margin-right: 20rpx;
  58. color: #BE5853;
  59. }
  60. }
  61. .time{
  62. height: 80rpx;
  63. display: flex;
  64. align-items: center;
  65. box-sizing: border-box;
  66. padding: 0 20rpx;
  67. .icon{
  68. width: 40rpx;
  69. height: 40rpx;
  70. background-image: url(./icon/time.png);
  71. background-size: cover;
  72. background-repeat: no-repeat;
  73. }
  74. .text{
  75. margin-left: 10rpx;
  76. }
  77. }
  78. .inner{
  79. width: 700rpx;
  80. box-sizing: border-box;
  81. padding: 0 20rpx 40rpx;
  82. .item{
  83. display: flex;
  84. .label{
  85. width: 220rpx;
  86. }
  87. .text{
  88. width: 480rpx;
  89. }
  90. }
  91. }
  92. }
  93. </style>