123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <template>
- <div class="camera-content-1-1">
- <button
- class="return"
- @click="emit('close')"
- />
- <h1>{{ title }}</h1>
- <div class="content-wrap">
- <div
- class="design-wrap"
- >
- <div class="design-wrap-left">
- <div class="left-title">
- 元代时期元曲文学大家及其代表作品
- </div>
- <div class="left-text text-indent">
- <strong><p>(1)关汉卿《窦娥冤》</p></strong>
- <p>在大都的剧作家中,关汉卿占有特殊重要的地位。他一生创作的杂剧在六十种以上,但大多已经散失,传世的仅有十余种。他的作品反映底层人民生活的困苦,塑造了众多令人难忘的人物形象。其代表作《窦娥冤》,是对当时社会的血泪控诉,在我国文学史上占有重要地位。</p>
- <strong><p>(3)马致远《天净沙·秋思》</p></strong>
- <strong><p>(4)白朴《墙头马上》</p></strong>
- <strong><p>(5)王实甫《西厢记》</p></strong>
- <p>大都剧作家王实甫,也有很高的成就,《西厢记》,天下夺魁,几百年来深受人民的赞赏。</p>
- </div>
- </div>
- <div class="design-wrap-right">
- <img
- class="detail-img"
- :src="require(`@/assets/images/CameraContent-3-2-2-img-${currentSwitchIdx + 1}.png`)"
- alt=""
- >
- </div>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import { ref } from "vue"
- const {
- windowSizeInCssForRef,
- windowSizeWhenDesignForRef,
- } = useSizeAdapt(1920, 968)
- const emit = defineEmits(['close'])
- const currentSwitchIdx = ref(0)
- const title = '著名元曲作家与作品'
- const imgLists = [
- '@/assets/images/CameraContent-3-2-2-img-1.png',
- ]
- const previous = () => {
- console.log('上一页', currentSwitchIdx.value)
- if (currentSwitchIdx.value > 0 ) {
- console.log('上一页2')
- currentSwitchIdx.value -= 1
- } else {
- return
- }
- }
- const next = () => {
- console.log('下一页')
- if (currentSwitchIdx.value < imgLists.length - 1) {
- currentSwitchIdx.value += 1
- } else {
- return
- }
- }
- </script>
- <style lang="less" scoped>
- @page-height-design-px: 970;
- .camera-content-1-1 {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.45);
- backdrop-filter: blur(60px);
- >button.return {
- position: absolute;
- width: 58px;
- height: 58px;
- left: 42px;
- top: 68px;
- background-image: url(@/assets/images/btn-return.png);
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center center;
- z-index: 10;
- }
- >h1 {
- position: absolute;
- left: 0;
- top: calc(93 / @page-height-design-px * 100vh);
- width: 100%;
- height: calc(120 / @page-height-design-px * 100vh);
- background-image: url(@/assets/images/camera-content-3-1-3-title-bg.png);
- background-size: auto 100%;
- background-repeat: no-repeat;
- background-position: center center;
- font-size: calc(32 / @page-height-design-px * 100vh);
- font-family: "SourceHanSerifCN-SemiBold";
- color: #FFEEC0;
- line-height: calc(38 / @page-height-design-px * 100vh);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1;
- }
- >.content-wrap {
- position: absolute;
- left: 50%;
- top: 54%;
- width: 100%;
- // width: calc(1920 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(723 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- transform: translate(-50%, -50%);
- >.switch-wrap {
- position: absolute;
- right: calc(65 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- bottom: calc(83 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- z-index: 10;
- >button {
- width: calc(118 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(118 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background-image: url(@/assets/images/camera-content-1-1-1-swtich-btn-bg.png);
- background-size: 60%;
- background-repeat: no-repeat;
- background-position: center center;
- font-size: calc(24 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- font-family: Source Han Sans SC, Source Han Sans SC;
- font-weight: 400;
- color: #FFFFFF;
- line-height: calc(28 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- letter-spacing: calc(4 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >button:last-of-type {
- margin-left: calc(60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >button.active {
- background-image: url(@/assets/images/camera-content-1-1-1-swtich-btn-bg-active.png);
- background-size: 100%;
- }
- }
- >.design-wrap {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-image: url(@/assets/images/camera-content-3-1-3-design-bg.png);
- background-size: 100% 100%;
- background-repeat: no-repeat;
- background-position: center center;
- display: flex;
- justify-content: space-evenly;
- align-items: center;
- >.design-wrap-left {
- width: calc(700 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- >.left-title {
- width: calc(579 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(62 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- color: #6A3906 ;
- font-family: "SourceHanSerifCN-SemiBold";
- font-size: calc(22 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: url(@/assets/images/camera-content-3-1-3-tab-1-img.png);
- background-size: cover;
- line-height: calc(62 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- padding-left: calc(60 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >.left-text {
- margin-top: 15px;
- height: calc(300 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- overflow: auto;
- line-height: 30px;
- >strong p {
- color: #000000;
- font-family: "Source Han Sans SC Bold" !important;
- }
- p {
- font-family: "Source Han Sans SC Normal" !important;
- }
- }
- }
- >.design-wrap-right {
- width: calc(818 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- height: calc(438 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- background: rgba(145,129,117,0.25);
- border: 1px solid #FFE88B;
- padding: 15px 10px;
- position: relative;
- >.btn-left {
- width: 50px;
- height: 50px;
- position: absolute;
- left: -25px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 2;
- cursor: pointer;
- }
- >.btn-right {
- width: 50px;
- height: 50px;
- position: absolute;
- right: -25px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 2;
- cursor: pointer;
- }
- >.detail-img {
- width: 100%;
- }
- }
- }
- }
- }
- </style>
|