index.vue 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view class="content">
  3. <CustomNavbar></CustomNavbar>
  4. <view class="devicesBox">
  5. <h3 style="font-size: 2rem">我的设备</h3>
  6. <!-- 设备列表-->
  7. <view class="box">
  8. <view class="devices" v-for="item in 8">
  9. <!-- 设备卡片-->
  10. <h5>客厅智能电视</h5>
  11. <span>在线</span>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import CustomNavbar from '../../components/CustomNavbar.vue'
  19. export default {
  20. components: {
  21. CustomNavbar
  22. },
  23. data() {
  24. return {
  25. }
  26. },
  27. onLoad() {
  28. },
  29. async onShow() {
  30. },
  31. methods: {}
  32. }
  33. </script>
  34. <style lang="scss">
  35. .content {
  36. position: fixed;
  37. top: 0;
  38. left: 0;
  39. bottom: 0;
  40. right: 0;
  41. height: 100vh;
  42. background: rgba(218, 218, 218, 0.5);
  43. }
  44. .devicesBox {
  45. margin: .5rem 1rem;
  46. }
  47. .box{
  48. height: 72vh;
  49. overflow-y: scroll;
  50. }
  51. .devices {
  52. font-size: 1rem;
  53. border: 1px solid #c3c3c3;
  54. padding: 10px;
  55. }
  56. </style>