123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <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>
- <p class="left-text text-indent">
- 元大都用水的水系,重要的有两条。一条是由金水河、太液池构成的宫苑用水系统。金水河从和义门(今西直门)南入城,后分两支:一支汇入北海,另一支进入中海,再经元宫城的前面流出,经东华门附近汇入通惠河。另一条是由高梁河、海子(积水潭)、通惠河构成的漕运系统。高梁河由和义门北入城,汇为积水潭,经海子桥(即后门桥)往东往南汇入通惠河。这条漕运水系将大运河的终点通州与积水潭连接起来。
- </p>
- </div>
- <div class="design-wrap-right">
- <img
- class="detail-img"
- :src="require(`@/assets/images/CameraContent-2-1-2-img-${currentSwitchIdx + 1}.png`)"
- alt=""
- >
- <div class="img-title">
- 元大都水系图
- </div>
- </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-2-1-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-2-1-1-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: "SourceHanSansSC-Normal";
- font-weight: 800;
- 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-2-1-1-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(70 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- }
- >.left-text {
- // font-family: 'SourceHanSansSC-Normal';
- margin-top: 25px;
- height: calc(300 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- overflow: auto;
- // font-family: 'SourceHanSansSC-Normal';
- // letter-spacing: 3px;
- font-size: 18px;
- line-height: 30px;
- font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
- >strong {
- color: #000000;
- font-family: 'SourceHanSansSC-Bold';
- margin-bottom: 10px;
- }
- }
- }
- >.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;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- >.detail-img {
- width: 100%;
- }
- >.img-title{
- margin-top: 0.5em;
- }
- }
- }
- }
- }
- </style>
|