平安校园
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

159 řádky
3.0 KiB

  1. <template>
  2. <view>
  3. <view class="title">
  4. <image src="@/static/image/home1.png" mode="" style="width: 40rpx;height: 40rpx;margin-right: 8rpx;">
  5. </image>
  6. 寝室104
  7. </view>
  8. <view class="listTitlte">
  9. 已归寝
  10. </view>
  11. <view class="list">
  12. <view v-for="(item, index) in list" :key="index" class="item">
  13. <view class="right">
  14. <image src="@/static/image/test/test.png" mode="" style="width: 160rpx;height: 160rpx;"></image>
  15. <view class="des">
  16. <view class="top">
  17. <view class="status">
  18. 已归寝
  19. </view>
  20. <view class="name">
  21. 杨云
  22. </view>
  23. </view>
  24. <view class="depart">
  25. 系部:安环部
  26. </view>
  27. <view class="bottom">
  28. <view class="major">专业:环艺</view>
  29. <view class="class">班级:第二班</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="listTitlte">
  36. 未归寝
  37. </view>
  38. <view class="list">
  39. <view v-for="(item, index) in list" :key="index" class="item">
  40. <view class="right">
  41. <image src="@/static/image/test/test.png" mode="" style="width: 160rpx;height: 160rpx;"></image>
  42. <view class="des">
  43. <view class="top">
  44. <view class="status error">
  45. 未归寝
  46. </view>
  47. <view class="name">
  48. 杨云
  49. </view>
  50. </view>
  51. <view class="depart">
  52. 系部:安环部
  53. </view>
  54. <view class="bottom">
  55. <view class="major">专业:环艺</view>
  56. <view class="class">班级:第二班</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. list: [{
  70. name: 1
  71. }, {
  72. name: 2
  73. }, {
  74. name: 3
  75. }],
  76. checkboxValue:[],
  77. }
  78. },
  79. methods: {
  80. }
  81. }
  82. </script>
  83. <style scoped lang="scss">
  84. .title {
  85. display: flex;
  86. color: #333333;
  87. padding: 26rpx;
  88. background: #fff;
  89. border-top: 1rpx solid rgba(0, 0, 0, 0.03);
  90. font-size: 30rpx;
  91. }
  92. .listTitlte{
  93. color: #777777;
  94. font-size:28rpx;
  95. padding:18rpx 30rpx;
  96. }
  97. .list {
  98. padding: 0 26rpx;
  99. margin-bottom: 16rpx;
  100. .item {
  101. display: flex;
  102. margin-bottom: 28rpx;
  103. &:last-child {
  104. margin-bottom: 0;
  105. }
  106. .right {
  107. padding: 30rpx;
  108. flex: 1;
  109. background-color: #fff;
  110. border-radius: 18rpx;
  111. display: flex;
  112. .des {
  113. flex: 1;
  114. padding-left: 24rpx;
  115. font-size: 26rpx;
  116. color: #333;
  117. .top {
  118. color: #333;
  119. font-size: 32rpx;
  120. display:flex;
  121. .status{
  122. display: inline-block;
  123. font-size: 26rpx;
  124. line-height: 1.5;
  125. background-color: #0FAF76;
  126. color: #fff;
  127. padding: 0 12rpx;
  128. border-radius: 8rpx;
  129. margin-right: 12rpx;
  130. }
  131. .status.error{
  132. background-color: #EF2D2D;
  133. }
  134. }
  135. .depart {
  136. margin-top: 28rpx;
  137. }
  138. .bottom {
  139. margin-top: 18rpx;
  140. display: flex;
  141. justify-content: space-between;
  142. .major {}
  143. .class {}
  144. }
  145. }
  146. }
  147. }
  148. }
  149. </style>