InstitutionView.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <template>
  2. <div
  3. class="institution-view"
  4. >
  5. <div class="page-1">
  6. <ElCarousel
  7. class="page-1-carousel"
  8. height="100%"
  9. direction="vertical"
  10. arrow="never"
  11. :interval="4000"
  12. >
  13. <ElCarouselItem
  14. v-for="url of bannerBgs"
  15. :key="url"
  16. >
  17. <ElImage
  18. :src="url"
  19. fit="cover"
  20. style="width: 100%"
  21. />
  22. </ElCarouselItem>
  23. </ElCarousel>
  24. <div class="text-wrap">
  25. <img
  26. class="title"
  27. src="@/assets/images/about/title_museum.png"
  28. alt=""
  29. draggable="false"
  30. >
  31. <div class="desc-wrap">
  32. <div class="deco-bar" />
  33. <div class="desc">
  34. <p
  35. v-for="(paragraph, idx) in museumDesc.split('\n')"
  36. :key="idx"
  37. >
  38. {{ paragraph }}
  39. </p>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <!-- <div class="page-2">
  45. <TableTitle
  46. text-cn="领导成员"
  47. text-en="MEMBER"
  48. />
  49. <div class="splitter" />
  50. <ul
  51. class="table"
  52. >
  53. <li
  54. v-for="(item, idx) in memberList"
  55. :key="idx"
  56. >
  57. <div class="line">
  58. <span class="key">{{ item.name }}</span>
  59. <span
  60. class="value"
  61. :title="item.desc"
  62. >{{ item.desc }}</span>
  63. </div>
  64. <div class="line-splitter" />
  65. </li>
  66. </ul>
  67. </div> -->
  68. <div class="page-3">
  69. <TableTitle
  70. text-cn="管理信息"
  71. text-en="Management Information"
  72. />
  73. <div class="wrapper">
  74. <menu class="tab-bar">
  75. <button
  76. class="tab-item"
  77. :class="{
  78. active: p3ActiveTabIdx === 0
  79. }"
  80. @click="p3ActiveTabIdx = 0"
  81. >
  82. 机构
  83. </button>
  84. <div class="splitter" />
  85. <button
  86. class="tab-item"
  87. :class="{
  88. active: p3ActiveTabIdx === 1
  89. }"
  90. @click="p3ActiveTabIdx = 1"
  91. >
  92. 章程
  93. </button>
  94. <div class="splitter" />
  95. <!-- <button
  96. class="tab-item"
  97. :class="{
  98. active: p3ActiveTabIdx === 2
  99. }"
  100. @click="p3ActiveTabIdx = 2"
  101. >
  102. 规划
  103. </button>
  104. <div class="splitter" />
  105. <button
  106. class="tab-item"
  107. :class="{
  108. active: p3ActiveTabIdx === 3
  109. }"
  110. @click="p3ActiveTabIdx = 3"
  111. >
  112. 年报
  113. </button>
  114. <div class="splitter" />
  115. <button
  116. class="tab-item"
  117. :class="{
  118. active: p3ActiveTabIdx === 4
  119. }"
  120. @click="p3ActiveTabIdx = 4"
  121. >
  122. 计划
  123. </button> -->
  124. </menu>
  125. <div class="detail-area">
  126. <div
  127. class="inner-wrap"
  128. v-html="managementInfo[p3ActiveTabIdx]"
  129. />
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </template>
  135. <script setup>
  136. import { ref, computed, watch, onMounted, onBeforeUnmount, inject } from "vue"
  137. import { useRoute, useRouter } from "vue-router"
  138. import { useStore } from "vuex"
  139. import bg1 from '@/assets/images/institution/1-min.jpg'
  140. import bg2 from '@/assets/images/institution/2-min.jpg'
  141. import bg3 from '@/assets/images/institution/3-min.jpg'
  142. import bg4 from '@/assets/images/institution/4-min.jpg'
  143. import { ElImage } from "element-plus"
  144. const route = useRoute()
  145. const router = useRouter()
  146. const store = useStore()
  147. const $env = inject('$env')
  148. const bannerBgs = [
  149. bg1, bg2, bg3, bg4
  150. ]
  151. const museumDesc = staticConfig.museumDesc
  152. const memberList = staticConfig.memberList
  153. const managementInfo = [
  154. staticConfig.managementInfo.institution,
  155. staticConfig.managementInfo.constitution,
  156. staticConfig.managementInfo.schedule,
  157. staticConfig.managementInfo.annualReport,
  158. staticConfig.managementInfo.planning,
  159. ]
  160. const p3ActiveTabIdx = ref(0)
  161. </script>
  162. <style lang="less" scoped>
  163. .institution-view{
  164. position: absolute;
  165. left: 0;
  166. top: 0;
  167. width: 100%;
  168. height: 100%;
  169. overflow: auto;
  170. :deep(.el-carousel__indicators) {
  171. display: flex;
  172. flex-direction: column;
  173. }
  174. .page-1{
  175. position: relative;
  176. height: 100%;
  177. &-carousel {
  178. width: 100%;
  179. height: 100%;
  180. img {
  181. width: 100%;
  182. height: 100%;
  183. }
  184. }
  185. >.text-wrap{
  186. position: absolute;
  187. top: 0;
  188. left: calc(644 / 1920 * 100vw);
  189. width: 984px;
  190. height: 100%;
  191. background: rgba(255,255,255,0.85);
  192. transform: translate(-50%, 0);
  193. >img.title{
  194. position: absolute;
  195. top: 123px;
  196. right: 69px;
  197. width: 77px;
  198. }
  199. >.desc-wrap{
  200. position: absolute;
  201. top: 291px;
  202. left: 111px;
  203. width: 639px;
  204. height: 100px;
  205. >.deco-bar{
  206. width: 88px;
  207. height: 5px;
  208. background: #D7C78E;
  209. margin-bottom: 51px;
  210. }
  211. >.desc{
  212. white-space: pre-line;
  213. text-indent: 2em;
  214. font-family: Source Han Sans CN, Source Han Sans CN;
  215. font-weight: 400;
  216. font-size: 18px;
  217. color: #474747;
  218. line-height: 29px;
  219. }
  220. }
  221. }
  222. }
  223. >.page-2{
  224. background-color: #fff;
  225. height: 100%;
  226. padding: 108px 243px;
  227. >.splitter{
  228. height: 1px;
  229. background: #589498;
  230. }
  231. >ul.table{
  232. height: 580px;
  233. overflow: auto;
  234. padding-right: 15px;
  235. >li{
  236. width: 100%;
  237. >.line{
  238. width: 100%;
  239. display: flex;
  240. justify-content: space-between;
  241. align-items: center;
  242. height: 88px;
  243. >span.key{
  244. margin-left: 80px;
  245. width: 250px;
  246. display: inline-block;
  247. flex: 0 0 auto;
  248. font-family: Source Han Sans CN, Source Han Sans CN;
  249. font-weight: 400;
  250. font-size: 24px;
  251. color: #474747;
  252. }
  253. >span.value{
  254. width: 750px;
  255. display: inline-block;
  256. flex: 0 0 auto;
  257. font-family: Source Han Sans CN, Source Han Sans CN;
  258. font-weight: 400;
  259. font-size: 24px;
  260. color: #474747;
  261. overflow: hidden;
  262. white-space: pre;
  263. text-overflow: ellipsis;
  264. }
  265. }
  266. >.line-splitter{
  267. height: 1px;
  268. border: 1px dashed rgba(88,148,152,0.5);
  269. }
  270. }
  271. >li:last-of-type{
  272. >.line-splitter{
  273. display: none;
  274. }
  275. }
  276. }
  277. }
  278. >.page-3{
  279. height: 100%;
  280. background-color: green;
  281. padding: 108px 243px;
  282. background-image: url(@/assets/images/about/institu-p3-bg.jpg);
  283. background-size: cover;
  284. background-repeat: no-repeat;
  285. background-position: center center;
  286. >.wrapper{
  287. margin-top: 79px;
  288. width: 100%;
  289. display: flex;
  290. >menu.tab-bar{
  291. flex: 0 0 auto;
  292. margin-left: calc(30 / 1920 * 100vw);
  293. >button.tab-item{
  294. width: 200px;
  295. height: 100px;
  296. font-family: Source Han Serif CN, Source Han Serif CN;
  297. font-weight: bold;
  298. font-size: 24px;
  299. color: #589498;
  300. }
  301. >button.tab-item.active{
  302. color: #AAA282;
  303. background-image: url(@/assets/images/about/institu-p3-button-active-deco.png);
  304. background-size: 60%;
  305. background-repeat: no-repeat;
  306. background-position: center center;
  307. }
  308. > button.tab-item:hover{
  309. color: #AAA282;
  310. }
  311. >.splitter{
  312. flex: 0 0 auto;
  313. height: 1Px;
  314. background: linear-gradient(90deg, rgba(88,148,152,0) 0%, rgba(88,148,152,0.2) 35%, rgba(88,148,152,0.2) 65%, rgba(88,148,152,0) 100%);
  315. }
  316. }
  317. >.detail-area{
  318. flex: 0 0 auto;
  319. display: flex;
  320. justify-content: center;
  321. align-items: center;
  322. height: 520px;
  323. >.inner-wrap{
  324. margin-left: calc(100 / 1920 * 100vw);
  325. width: 900px;
  326. max-height: 100%;
  327. overflow: auto;
  328. padding-right: 0.5em;
  329. font-family: Source Han Sans CN, Source Han Sans CN;
  330. font-weight: 400;
  331. font-size: 18px;
  332. color: #474747;
  333. line-height: 22px;
  334. white-space: pre-line;
  335. ::v-deep{
  336. >b{
  337. font-weight: bold;
  338. }
  339. }
  340. }
  341. }
  342. }
  343. }
  344. }
  345. </style>