info.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_1.png" />
  10. </span>
  11. </template>
  12. <n-tab-pane name="展览" tab="展览">
  13. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  14. <template v-for="(_, index) in 16">
  15. <n-gi>
  16. <infoBox
  17. :id="index + 1"
  18. :title="`湘鄂赣省工农银行洋银叁角纸币-${index + 1}`"
  19. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  20. time="2023-01-02"
  21. />
  22. </n-gi>
  23. </template>
  24. </n-grid>
  25. </n-tab-pane>
  26. <n-tab-pane name="活动" tab="活动">
  27. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  28. <template v-for="(_, index) in 16">
  29. <n-gi>
  30. <infoBox
  31. :id="index + 1"
  32. title="卡片"
  33. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  34. time="2023-01-02"
  35. />
  36. </n-gi>
  37. </template>
  38. </n-grid>
  39. </n-tab-pane>
  40. <n-tab-pane name="新闻" tab="新闻">
  41. <n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
  42. <template v-for="item in 16">
  43. <n-gi>
  44. <infoBox
  45. title="卡片"
  46. cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
  47. time="2023-01-02"
  48. />
  49. </n-gi>
  50. </template>
  51. </n-grid>
  52. </n-tab-pane>
  53. <n-tab-pane name="通知" tab="通知">
  54. <n-grid :y-gap="YGap" :cols="1" class="tab-grid">
  55. <template v-for="(_, index) in 16">
  56. <n-gi>
  57. <notice-box
  58. :id="`${index + 2}_notice`"
  59. title="这是一段标题这是一段标题"
  60. content="这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段..."
  61. time="2023-01-02"
  62. />
  63. </n-gi>
  64. </template>
  65. </n-grid>
  66. </n-tab-pane>
  67. </n-tabs>
  68. </div>
  69. <side-menu />
  70. </div>
  71. </div>
  72. </template>
  73. <script setup>
  74. import { onMounted } from "vue";
  75. import { useFullscreen } from "@vueuse/core";
  76. import infoBox from "../components/infoBox";
  77. import subHeader from "../components/subHeader";
  78. import sideMenu from "../components/sideMenu";
  79. import noticeBox from "../components/noticeBox";
  80. import { useInfoStore } from "../store/info";
  81. const XGap = ref(50);
  82. const YGap = ref(50);
  83. const { isFullscreen, enter, exit, toggle } = useFullscreen();
  84. const InfoStore = useInfoStore();
  85. onMounted(() => {
  86. InfoStore.getData();
  87. });
  88. </script>
  89. <style lang="scss" scoped></style>