index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <!-- 可视监控 -->
  3. <view class="monitor-panel">
  4. <!-- 监控列表 -->
  5. <block v-for="(item,index) in monitorList" :key="index">
  6. <view class="monitor-item">
  7. <image class="pic" mode="aspectFill"
  8. src="https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/6acec660-4f31-11eb-a16f-5b3e54966275.jpg">
  9. </image>
  10. <view class="row-between p-10">
  11. <text class="text">2022-9-2 20:12:57</text>
  12. <text class="tips"></text>
  13. </view>
  14. </view>
  15. </block>
  16. <!-- 监控列表end -->
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. // 监控列表
  24. monitorList: [{}, {}, {}, {}, {}, {}, {}],
  25. };
  26. }
  27. }
  28. </script>
  29. <style lang="scss">
  30. // 可视监控面板
  31. .monitor-panel {
  32. display: flex;
  33. flex-wrap: wrap;
  34. padding: 24rpx;
  35. margin-top: 24rpx;
  36. background-color: #fff;
  37. }
  38. // 可视列表项
  39. .monitor-item {
  40. width: 336rpx;
  41. margin-right: 28rpx;
  42. margin-bottom: 24rpx;
  43. border-radius: 12rpx;
  44. border: 1rpx solid #F1F1F1;
  45. &:nth-child(2n) {
  46. margin-right: 0;
  47. }
  48. .pic {
  49. display: block;
  50. width: 336rpx;
  51. height: 255rpx;
  52. border-radius: 4rpx;
  53. }
  54. .text {
  55. font-size: 20rpx;
  56. color: #666666;
  57. }
  58. .tips {
  59. width: 24rpx;
  60. height: 24rpx;
  61. background: #07F546;
  62. border-radius: 100%;
  63. }
  64. }
  65. </style>