|
@@ -21,42 +21,12 @@
|
|
|
v-for="(item, i) in store.newCatalogRoot"
|
|
|
:key="i"
|
|
|
>
|
|
|
- <div
|
|
|
- class="area-text"
|
|
|
- v-if="store.currentCatalogRoot.id == item.id"
|
|
|
-
|
|
|
- >
|
|
|
+ <div class="area-text" v-if="store.currentCatalogRoot.id == item.id">
|
|
|
<!-- {{ item.name }} -->
|
|
|
<div class="area-text-left">
|
|
|
<div>{{ item.name }}</div>
|
|
|
<div class="active-line"></div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="area-text-right"
|
|
|
- v-if="store.secondaryList.length > 1"
|
|
|
- @click.stop=""
|
|
|
- >
|
|
|
- <ul>
|
|
|
- <li
|
|
|
- @click="tabSecondary(item)"
|
|
|
- :class="{
|
|
|
- active: store.currentSecondary.id == item.id,
|
|
|
- }"
|
|
|
- v-for="(item, i) in store.newSecondaryList"
|
|
|
- :key="i"
|
|
|
- v-show="i != 0"
|
|
|
- >
|
|
|
- <span v-if="store.currentSecondary.id == item.id">{{
|
|
|
- item.name
|
|
|
- }}</span>
|
|
|
- <span v-else>{{
|
|
|
- item.name.length > spanlength
|
|
|
- ? item.name.slice(0, spanlength)
|
|
|
- : item.name
|
|
|
- }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="area-text" v-else>
|
|
@@ -68,6 +38,32 @@
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
+ <div
|
|
|
+ class="area-text-right"
|
|
|
+ v-if="store.secondaryList.length > 1"
|
|
|
+ @click.stop=""
|
|
|
+ >
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ @click="tabSecondary(item)"
|
|
|
+ :class="{
|
|
|
+ active: store.currentSecondary.id == item.id,
|
|
|
+ }"
|
|
|
+ v-for="(item, i) in store.newSecondaryList"
|
|
|
+ :key="i"
|
|
|
+ v-show="i != 0"
|
|
|
+ >
|
|
|
+ <span v-if="store.currentSecondary.id == item.id">{{
|
|
|
+ item.name
|
|
|
+ }}</span>
|
|
|
+ <span v-else>{{
|
|
|
+ item.name.length > spanlength
|
|
|
+ ? item.name.slice(0, spanlength)
|
|
|
+ : item.name
|
|
|
+ }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
<img
|
|
|
src="../../assets/images/resource/scene/downIcon.png"
|
|
|
@click="departure"
|
|
@@ -178,7 +174,7 @@ const tabSecondary = (data) => {
|
|
|
return data.id === item.id;
|
|
|
});
|
|
|
store.setCurrentSecondary(cur);
|
|
|
- store.currentScene = store.currentScenesList[0]
|
|
|
+ store.currentScene = store.currentScenesList[0];
|
|
|
};
|
|
|
|
|
|
const tabRoot = (data) => {
|
|
@@ -300,6 +296,37 @@ $width: 100%;
|
|
|
}
|
|
|
|
|
|
#swcatalogRoot {
|
|
|
+ .area-text-right {
|
|
|
+ margin-left: 300px;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 80px;
|
|
|
+ color: white;
|
|
|
+ font-weight: bold;
|
|
|
+ z-index: 999;
|
|
|
+ // margin-top: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+ ul {
|
|
|
+ display: flex;
|
|
|
+ height: 30px;
|
|
|
+ li {
|
|
|
+ margin-left: 15px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ border: 1px solid 1px solid rgba(225, 206, 170, 0.5);
|
|
|
+ box-shadow: inset 0px 2px 5px 0px rgba(255, 255, 255, 0.25);
|
|
|
+ background: rgba(225, 196, 141, 0.3);
|
|
|
+ border-radius: 5px;
|
|
|
+ width: 50px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ opacity: 0.5;
|
|
|
+ }
|
|
|
+ .active {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.swiper-wrapper {
|
|
|
transform: translate3d(0, 0px, 0px) !important;
|
|
|
}
|
|
@@ -318,30 +345,6 @@ $width: 100%;
|
|
|
cursor: pointer;
|
|
|
position: relative;
|
|
|
font-size: 14px;
|
|
|
-
|
|
|
- &-right {
|
|
|
- margin-left: 10px;
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 80px;
|
|
|
- ul {
|
|
|
- display: flex;
|
|
|
- li {
|
|
|
- margin-left: 15px;
|
|
|
- border: 1px solid 1px solid rgba(225, 206, 170, 0.5);
|
|
|
- box-shadow: inset 0px 2px 5px 0px rgba(255, 255, 255, 0.25);
|
|
|
- background: rgba(225, 196, 141, 0.3);
|
|
|
- border-radius: 5px;
|
|
|
- width: 50px;
|
|
|
- text-align: center;
|
|
|
- font-size: 14px;
|
|
|
- opacity: 0.5;
|
|
|
- }
|
|
|
- .active {
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
&.active {
|