CameraContent-2-1-2.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <div class="camera-content-1-1">
  3. <button
  4. class="return"
  5. @click="emit('close')"
  6. />
  7. <!-- <h1>{{ title }}</h1> -->
  8. <div class="content-wrap">
  9. <div
  10. class="design-wrap"
  11. >
  12. <div class="design-wrap-left">
  13. <div class="left-title">
  14. 元大都用水水系
  15. </div>
  16. <p class="left-text text-indent">
  17. 元大都用水的水系,重要的有两条。一条是由金水河、太液池构成的宫苑用水系统。金水河从和义门(今西直门)南入城,后分两支:一支汇入北海,另一支进入中海,再经元宫城的前面流出,经东华门附近汇入通惠河。另一条是由高梁河、海子(积水潭)、通惠河构成的漕运系统。高梁河由和义门北入城,汇为积水潭,经海子桥(即后门桥)往东往南汇入通惠河。这条漕运水系将大运河的终点通州与积水潭连接起来。
  18. </p>
  19. </div>
  20. <div class="design-wrap-right">
  21. <img
  22. class="detail-img"
  23. :src="require(`@/assets/images/CameraContent-2-1-2-img-${currentSwitchIdx + 1}.png`)"
  24. alt=""
  25. >
  26. <div class="img-title">
  27. 元大都水系图
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script setup>
  35. import { ref } from "vue"
  36. const {
  37. windowSizeInCssForRef,
  38. windowSizeWhenDesignForRef,
  39. } = useSizeAdapt(1920, 968)
  40. const emit = defineEmits(['close'])
  41. const currentSwitchIdx = ref(0)
  42. const title = '著名元曲作家与作品'
  43. const imgLists = [
  44. '@/assets/images/CameraContent-2-1-2-img-1.png',
  45. ]
  46. const previous = () => {
  47. console.log('上一页', currentSwitchIdx.value)
  48. if (currentSwitchIdx.value > 0 ) {
  49. console.log('上一页2')
  50. currentSwitchIdx.value -= 1
  51. } else {
  52. return
  53. }
  54. }
  55. const next = () => {
  56. console.log('下一页')
  57. if (currentSwitchIdx.value < imgLists.length - 1) {
  58. currentSwitchIdx.value += 1
  59. } else {
  60. return
  61. }
  62. }
  63. </script>
  64. <style lang="less" scoped>
  65. @page-height-design-px: 970;
  66. .camera-content-1-1 {
  67. position: absolute;
  68. left: 0;
  69. top: 0;
  70. width: 100%;
  71. height: 100%;
  72. background: rgba(0, 0, 0, 0.45);
  73. backdrop-filter: blur(60px);
  74. >button.return {
  75. position: absolute;
  76. width: 58px;
  77. height: 58px;
  78. left: 42px;
  79. top: 68px;
  80. background-image: url(@/assets/images/btn-return.png);
  81. background-size: contain;
  82. background-repeat: no-repeat;
  83. background-position: center center;
  84. z-index: 10;
  85. }
  86. >h1 {
  87. position: absolute;
  88. left: 0;
  89. top: calc(93 / @page-height-design-px * 100vh);
  90. width: 100%;
  91. height: calc(120 / @page-height-design-px * 100vh);
  92. background-image: url(@/assets/images/camera-content-2-1-1-title-bg.png);
  93. background-size: auto 100%;
  94. background-repeat: no-repeat;
  95. background-position: center center;
  96. font-size: calc(32 / @page-height-design-px * 100vh);
  97. font-family: "SourceHanSansSC-Normal";
  98. font-weight: 800;
  99. color: #FFEEC0;
  100. line-height: calc(38 / @page-height-design-px * 100vh);
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. z-index: 1;
  105. }
  106. >.content-wrap {
  107. position: absolute;
  108. left: 50%;
  109. top: 54%;
  110. width: 100%;
  111. // width: calc(1920 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  112. height: calc(723 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  113. transform: translate(-50%, -50%);
  114. >.switch-wrap {
  115. position: absolute;
  116. right: calc(65 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  117. bottom: calc(83 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  118. z-index: 10;
  119. >button {
  120. width: calc(118 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  121. height: calc(118 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  122. background-image: url(@/assets/images/camera-content-1-1-1-swtich-btn-bg.png);
  123. background-size: 60%;
  124. background-repeat: no-repeat;
  125. background-position: center center;
  126. font-size: calc(24 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  127. font-family: Source Han Sans SC, Source Han Sans SC;
  128. font-weight: 400;
  129. color: #FFFFFF;
  130. line-height: calc(28 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  131. letter-spacing: calc(4 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  132. }
  133. >button:last-of-type {
  134. margin-left: calc(60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  135. }
  136. >button.active {
  137. background-image: url(@/assets/images/camera-content-1-1-1-swtich-btn-bg-active.png);
  138. background-size: 100%;
  139. }
  140. }
  141. >.design-wrap {
  142. position: absolute;
  143. left: 0;
  144. top: 0;
  145. width: 100%;
  146. height: 100%;
  147. background-image: url(@/assets/images/camera-content-2-1-1-design-bg.png);
  148. background-size: 100% 100%;
  149. background-repeat: no-repeat;
  150. background-position: center center;
  151. display: flex;
  152. justify-content: space-evenly;
  153. align-items: center;
  154. >.design-wrap-left {
  155. width: calc(700 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  156. >.left-title {
  157. width: calc(579 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  158. height: calc(62 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  159. color: #6A3906 ;
  160. font-family: "SourceHanSerifCN-SemiBold";
  161. font-size: calc(22 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  162. background: url(@/assets/images/camera-content-3-1-3-tab-1-img.png);
  163. background-size: cover;
  164. line-height: calc(62 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  165. padding-left: calc(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  166. }
  167. >.left-text {
  168. // font-family: 'SourceHanSansSC-Normal';
  169. margin-top: 25px;
  170. height: calc(300 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  171. overflow: auto;
  172. // font-family: 'SourceHanSansSC-Normal';
  173. // letter-spacing: 3px;
  174. font-size: 18px;
  175. line-height: 30px;
  176. font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  177. >strong {
  178. color: #000000;
  179. font-family: 'SourceHanSansSC-Bold';
  180. margin-bottom: 10px;
  181. }
  182. }
  183. }
  184. >.design-wrap-right {
  185. width: calc(818 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  186. height: calc(438 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  187. // background: rgba(145,129,117,0.25);
  188. // border: 1px solid #FFE88B;
  189. // padding: 15px 10px;
  190. position: relative;
  191. display: flex;
  192. flex-direction: column;
  193. justify-content: center;
  194. align-items: center;
  195. >.detail-img {
  196. width: 100%;
  197. }
  198. >.img-title{
  199. margin-top: 0.5em;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. </style>