|
@@ -1,13 +1,17 @@
|
|
|
<template>
|
|
|
<div class="ExhibitionsInfo">
|
|
|
- <div class="topImg">
|
|
|
+ <div class="topImg" data-aria-viewport-area tabindex="0"
|
|
|
+ aria-label="You've reached the banner area of the tertiary exhibition page; this area has one image; please use the tab key to go through the content."
|
|
|
+ >
|
|
|
<img
|
|
|
:src="`/data/Exhibitions/${dataUrl}/infoTop${data.topImg}.jpg`"
|
|
|
alt=""
|
|
|
/>
|
|
|
</div>
|
|
|
<!-- 面包屑 -->
|
|
|
- <div class="pos">
|
|
|
+ <div class="pos" data-aria-viewport-area tabindex="0"
|
|
|
+ aria-label="You've reached the path area; this area has three URLs; please use the tab key to go through the content."
|
|
|
+ >
|
|
|
<div>
|
|
|
<span class="pos1">Your Position: </span>
|
|
|
<Router-link to="/Layout/Home">Home></Router-link>
|
|
@@ -19,13 +23,19 @@
|
|
|
<div class="conten">
|
|
|
<!-- Exhibition Overview -->
|
|
|
<div class="y_box" ref="Overview">
|
|
|
- <div class="title_2">{{ data.title }}</div>
|
|
|
- <div class="info">
|
|
|
- <span class="info_1">{{ data.date }}</span>
|
|
|
- <span class="info_2">{{ data.time }}</span>
|
|
|
- <span class="info_3">{{ data.loc }}</span>
|
|
|
+ <div class="title_area" data-aria-viewport-area tabindex="0"
|
|
|
+ aria-label="You've reached the section of exhibition title, please use the tab key to navigate through the content."
|
|
|
+ >
|
|
|
+ <div class="title_2">{{ data.title }}</div>
|
|
|
+ <div class="info">
|
|
|
+ <span class="info_1">{{ data.date }}</span>
|
|
|
+ <span class="info_2">{{ data.time }}</span>
|
|
|
+ <span class="info_3">{{ data.loc }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="content_2">
|
|
|
+ <div class="content_2" data-aria-viewport-area tabindex="0"
|
|
|
+ aria-label="You've reached the section of exhibition overview, please use the tab key to go through the content."
|
|
|
+ >
|
|
|
<div class="title_3">——<span>Exhibition Overview</span>——</div>
|
|
|
<div
|
|
|
v-show="index === pageInd"
|
|
@@ -58,7 +68,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- Exhibition Objects -->
|
|
|
- <div class="picpart" ref="Objects" :class="{ null: data.objects === 0 }">
|
|
|
+ <div class="picpart" ref="Objects" v-if="data.objects !== 0" data-aria-viewport-area tabindex="0"
|
|
|
+ aria-label="You've reached the section of exhibition objects, please use the tab key to go through the content."
|
|
|
+ >
|
|
|
<div class="title_3">——<span>Exhibition Objects</span>——</div>
|
|
|
<!-- 图片 -->
|
|
|
<div class="row" :class="{ show: showObjects }">
|
|
@@ -90,7 +102,10 @@
|
|
|
<div
|
|
|
class="other"
|
|
|
ref="Galleries"
|
|
|
- :class="{ nullG: data.galleries === 0 }"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="You've reached the section of exhibition galleries, please use the tab key to go through the content."
|
|
|
+ v-if="data.galleries !== 0"
|
|
|
>
|
|
|
<div class="title_3">——<span>Exhibition Galleries</span>——</div>
|
|
|
<!-- 图片 -->
|
|
@@ -219,7 +234,9 @@ export default {
|
|
|
created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
- this.$eventBus.$emit('request-read', `You've reached the tertiary exhibition page. There is one navigation section, eight window sections, and one interactive section on this page. To choose a section, please hit the shortcut key.`)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$eventBus.$emit('request-read', `You've reached the tertiary exhibition page. There is one navigation section, ${document.querySelectorAll('*[data-aria-viewport-area]').length} window sections, and one interactive section on this page. To choose a section, please hit the shortcut key.`)
|
|
|
+ }, 100);
|
|
|
|
|
|
let { id, k } = this.$route.query;
|
|
|
id = Number(id);
|
|
@@ -332,6 +349,7 @@ export default {
|
|
|
.y_box {
|
|
|
background: #fff;
|
|
|
border: 1px solid #e0e0e0;
|
|
|
+ margin-bottom: 40px;
|
|
|
.title_2 {
|
|
|
font-size: 30px;
|
|
|
line-height: 44px;
|
|
@@ -464,13 +482,6 @@ export default {
|
|
|
height: auto;
|
|
|
}
|
|
|
}
|
|
|
- .null {
|
|
|
- height: 0px;
|
|
|
- overflow: hidden;
|
|
|
- padding: 0;
|
|
|
- margin-top: 0;
|
|
|
- border: none;
|
|
|
- }
|
|
|
.other {
|
|
|
background: #fff;
|
|
|
border: 1px solid #e0e0e0;
|
|
@@ -492,13 +503,6 @@ export default {
|
|
|
height: auto;
|
|
|
}
|
|
|
}
|
|
|
- .nullG {
|
|
|
- height: 0px;
|
|
|
- overflow: hidden;
|
|
|
- padding: 0;
|
|
|
- margin-top: 0;
|
|
|
- border: none;
|
|
|
- }
|
|
|
}
|
|
|
.back_btn {
|
|
|
height: 38px;
|