survey.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div class="main">
  3. <div class="content">
  4. <sub-header />
  5. <div class="left">
  6. <hero-sub-title :type="4" />
  7. <div class="detail">
  8. <div class="info">
  9. <n-grid :y-gap="YGap" :cols="1" class="tab-grid">
  10. <template v-for="(_, index) in 16">
  11. <n-gi>
  12. <survey-box
  13. :id="`${index + 1}`"
  14. title="这是一段标题这是一段标题"
  15. content="这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段摘要这是一段..."
  16. time="2023-01-02"
  17. />
  18. </n-gi>
  19. </template>
  20. </n-grid>
  21. </div>
  22. </div>
  23. </div>
  24. <side-menu />
  25. </div>
  26. </div>
  27. </template>
  28. <script setup>
  29. import { watchEffect, ref } from "vue";
  30. import subHeader from "../components/subHeader";
  31. import sideMenu from "../components/sideMenu";
  32. import heroSubTitle from "../components/heroSubTitle";
  33. import surveyBox from "../components/surveyBox";
  34. const title = ref("detail");
  35. const YGap = ref(50);
  36. watchEffect(() => {
  37. document.title = title.value;
  38. });
  39. </script>
  40. <style lang="scss" scoped>
  41. .detail {
  42. --main-show-case-background: #ddd5d5;
  43. --main-detail-margin: 1.875rem;
  44. --main-detail-padding: 1.875rem;
  45. // box-shadow: var(--main-box-shadow);
  46. margin: var(--main-detail-margin);
  47. margin-bottom: 0;
  48. flex: 1;
  49. border-radius: 0.8125rem;
  50. // background: #fff;
  51. padding: 2rem 3rem 4rem 3rem;
  52. overflow-y: scroll;
  53. &::-webkit-scrollbar {
  54. display: none;
  55. }
  56. .back {
  57. background-image: url("/img/back_arrow.png");
  58. width: 7.5rem;
  59. height: 1.875rem;
  60. background-repeat: no-repeat;
  61. background-size: contain;
  62. margin-bottom: 0.75rem;
  63. }
  64. .info {
  65. max-width: 66.8125rem;
  66. margin: 0 auto;
  67. font-size: 20px;
  68. .title {
  69. font-size: 1.875rem;
  70. line-height: 3.75rem;
  71. margin: 1.2rem 0;
  72. }
  73. .label-list {
  74. margin-bottom: 1.5rem;
  75. display: inline-flex;
  76. flex-direction: row;
  77. justify-content: space-between;
  78. gap: 0 1.875rem;
  79. span {
  80. padding-left: 1.5625rem;
  81. background-image: url("/img/dot.png");
  82. background-repeat: no-repeat;
  83. background-size: 1.25rem 1.25rem;
  84. background-position: left center;
  85. }
  86. }
  87. .text {
  88. font-weight: 400;
  89. color: #6e6e6e;
  90. line-height: 2.125rem;
  91. font-size: 1.25rem;
  92. }
  93. }
  94. .show-case {
  95. max-width: 66.8125rem;
  96. height: 34.1875rem;
  97. background: var(--main-show-case-background);
  98. }
  99. }
  100. </style>