|
@@ -50,7 +50,7 @@
|
|
active: index === 4 || index === 6,
|
|
active: index === 4 || index === 6,
|
|
accOne: $route.meta.myTitle === item.acc,
|
|
accOne: $route.meta.myTitle === item.acc,
|
|
}"
|
|
}"
|
|
- @click="menaSonFu(index)"
|
|
|
|
|
|
+ @click="menaSonFu(index, item.path)"
|
|
class="row"
|
|
class="row"
|
|
v-for="(item, index) in menaData"
|
|
v-for="(item, index) in menaData"
|
|
:key="index"
|
|
:key="index"
|
|
@@ -64,7 +64,7 @@
|
|
v-for="(val, valInd) in item.son"
|
|
v-for="(val, valInd) in item.son"
|
|
:key="valInd"
|
|
:key="valInd"
|
|
:class="{ acc: menaInd === val.path }"
|
|
:class="{ acc: menaInd === val.path }"
|
|
- @click="skip(val.path)"
|
|
|
|
|
|
+ @click.stop="skip(val.path)"
|
|
>
|
|
>
|
|
{{ val.name }}
|
|
{{ val.name }}
|
|
</div>
|
|
</div>
|
|
@@ -153,27 +153,46 @@ export default {
|
|
name: "Exhibitions",
|
|
name: "Exhibitions",
|
|
path: "",
|
|
path: "",
|
|
son: [
|
|
son: [
|
|
- { name: "Current Exhibitions", path: "/Layout/Exhibitions/Current" },
|
|
|
|
- { name: "Permanent Exhibitions", path: "/Layout/Exhibitions/Permanent" },
|
|
|
|
|
|
+ {
|
|
|
|
+ name: "Current Exhibitions",
|
|
|
|
+ path: "/Layout/Exhibitions/Current",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: "Permanent Exhibitions",
|
|
|
|
+ path: "/Layout/Exhibitions/Permanent",
|
|
|
|
+ },
|
|
{ name: "Past Exhibitions", path: "/Layout/Exhibitions/Past" },
|
|
{ name: "Past Exhibitions", path: "/Layout/Exhibitions/Past" },
|
|
- { name: "Overseas Exhibitions", path: "/Layout/Exhibitions/Overseas" },
|
|
|
|
|
|
+ {
|
|
|
|
+ name: "Overseas Exhibitions",
|
|
|
|
+ path: "/Layout/Exhibitions/Overseas",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "Collections",
|
|
name: "Collections",
|
|
- path: "",
|
|
|
|
|
|
+ acc: "Collections",
|
|
|
|
+ path: "/Layout/Collections",
|
|
son: [
|
|
son: [
|
|
- { name: "Bronzes", path: "" },
|
|
|
|
- { name: "Ceramics", path: "" },
|
|
|
|
- { name: "Buddhist Statues", path: "" },
|
|
|
|
- { name: "Jadewares", path: "" },
|
|
|
|
- { name: "Calligraphies", path: "" },
|
|
|
|
- { name: "Paintings", path: "" },
|
|
|
|
- { name: "Gold & Silverwares", path: "" },
|
|
|
|
- { name: "Coins & Banknotes", path: "" },
|
|
|
|
- { name: "Brocades & Embroideries", path: "" },
|
|
|
|
- { name: "Cultural Supplies", path: "" },
|
|
|
|
- { name: "Miscellaneous", path: "" },
|
|
|
|
|
|
+ { name: "Bronzes", path: "/Layout/Collections/Bronzes" },
|
|
|
|
+ { name: "Ceramics", path: "/Layout/Collections/Ceramics" },
|
|
|
|
+ { name: "Buddhist Statues", path: "/Layout/Collections/Buddhist" },
|
|
|
|
+ { name: "Jadewares", path: "/Layout/Collections/Jadewares" },
|
|
|
|
+ {
|
|
|
|
+ name: "Calligraphies",
|
|
|
|
+ path: "/Layout/Collections/Calligraphies",
|
|
|
|
+ },
|
|
|
|
+ { name: "Paintings", path: "/Layout/Collections/Paintings" },
|
|
|
|
+ { name: "Gold & Silverwares", path: "/Layout/Collections/Gold" },
|
|
|
|
+ { name: "Coins & Banknotes", path: "/Layout/Collections/Coins" },
|
|
|
|
+ {
|
|
|
|
+ name: "Brocades & Embroideries",
|
|
|
|
+ path: "/Layout/Collections/Brocades",
|
|
|
|
+ },
|
|
|
|
+ { name: "Cultural Supplies", path: "/Layout/Collections/Cultural" },
|
|
|
|
+ {
|
|
|
|
+ name: "Miscellaneous",
|
|
|
|
+ path: "/Layout/Collections/Miscellaneous",
|
|
|
|
+ },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -236,12 +255,17 @@ export default {
|
|
searcBtn() {
|
|
searcBtn() {
|
|
console.log("搜索~");
|
|
console.log("搜索~");
|
|
},
|
|
},
|
|
- menaSonFu(index) {
|
|
|
|
|
|
+ menaSonFu(index, path) {
|
|
|
|
+ if (path) {
|
|
|
|
+ this.$router.push("/Layout/Collections").catch(() => {});
|
|
|
|
+ this.menaSon = index;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (this.menaSon === index) this.menaSon = null;
|
|
if (this.menaSon === index) this.menaSon = null;
|
|
else this.menaSon = index;
|
|
else this.menaSon = index;
|
|
},
|
|
},
|
|
skip(path) {
|
|
skip(path) {
|
|
- this.$router.push(path).catch(() => {});
|
|
|
|
|
|
+ this.$router.push(path).catch(() => {});
|
|
},
|
|
},
|
|
toTop() {
|
|
toTop() {
|
|
let dom = this.$refs.Layout;
|
|
let dom = this.$refs.Layout;
|
|
@@ -281,7 +305,6 @@ export default {
|
|
|
|
|
|
.Layout {
|
|
.Layout {
|
|
position: relative;
|
|
position: relative;
|
|
- padding-top: 50px;
|
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
.top {
|
|
.top {
|