collect.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <div class="main">
  3. <div class="content">
  4. <sub-header />
  5. <div class="left">
  6. <n-tabs type="line" pane-class="tab-content">
  7. <template #prefix>
  8. <span class="meta-title">
  9. <img src="img/subtitle_3.png" />
  10. </span>
  11. </template>
  12. <template #suffix>
  13. <span class="input-container">
  14. <!-- <n-input
  15. v-model:value="inputValue"
  16. placeholder="请输入要搜索的藏品"
  17. /> -->
  18. <n-input-group round>
  19. <n-input
  20. round
  21. v-model:value="inputValue"
  22. placeholder="请输入要搜索的藏品"
  23. />
  24. <n-button round type="primary"> 搜索 </n-button>
  25. </n-input-group>
  26. </span>
  27. </template>
  28. <n-tab-pane name="all" tab="全部">
  29. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  30. <template v-for="(_, index) in 16">
  31. <n-gi>
  32. <collect-box
  33. :id="index + 1"
  34. title="里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》"
  35. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  36. time="2023-01-02"
  37. />
  38. </n-gi>
  39. </template>
  40. </n-grid>
  41. </n-tab-pane>
  42. <n-tab-pane name="one" tab="一级">
  43. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  44. <template v-for="(_, index) in 16">
  45. <n-gi>
  46. <collect-box
  47. :id="index + 1"
  48. title="里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》"
  49. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  50. time="2023-01-02"
  51. />
  52. </n-gi>
  53. </template>
  54. </n-grid>
  55. </n-tab-pane>
  56. <n-tab-pane name="two" tab="二级">
  57. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  58. <template v-for="(_, index) in 16">
  59. <n-gi>
  60. <collect-box
  61. :id="index + 1"
  62. title="里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》"
  63. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  64. time="2023-01-02"
  65. />
  66. </n-gi>
  67. </template>
  68. </n-grid>
  69. </n-tab-pane>
  70. <n-tab-pane name="three" tab="三级">
  71. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  72. <template v-for="(_, index) in 16">
  73. <n-gi>
  74. <collect-box
  75. :id="index + 1"
  76. title="里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》里仁学校学生使用的课本——日本东洋博物学 会编《博物标本图汇》"
  77. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  78. time="2023-01-02"
  79. />
  80. </n-gi>
  81. </template>
  82. </n-grid>
  83. </n-tab-pane>
  84. </n-tabs>
  85. </div>
  86. <side-menu />
  87. </div>
  88. </div>
  89. </template>
  90. <script setup>
  91. import { onMounted, ref } from "vue";
  92. import { useFullscreen } from "@vueuse/core";
  93. import collectBox from "../components/collectBox";
  94. import subHeader from "../components/subHeader";
  95. import sideMenu from "../components/sideMenu";
  96. // import noticeBox from "../components/noticeBox";
  97. // import { useInfoStore } from "../store/info";
  98. const XGap = ref(50);
  99. const YGap = ref(50);
  100. const inputValue = ref("");
  101. // const InfoStore = useInfoStore();
  102. onMounted(() => {
  103. // InfoStore.getData();
  104. });
  105. </script>
  106. <style lang="scss" scoped>
  107. :deep(.n-tabs-nav__suffix) {
  108. min-width: 100px;
  109. flex: 1;
  110. .input-container {
  111. width: 100%;
  112. max-width: 515px;
  113. padding: 0 20px;
  114. }
  115. }
  116. </style>