|
@@ -26,6 +26,7 @@ function handleClose(){
|
|
|
function dialogPersona(){
|
|
|
store.commit("setDialogPersonalStatus",true)
|
|
|
}
|
|
|
+console.log(store.state.menuList,123)
|
|
|
if(typeof window !== 'undefined' && typeof window.globalThis.addEventListener === 'function') {
|
|
|
globalThis.addEventListener('scroll', function() {
|
|
|
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
@@ -74,11 +75,16 @@ if(typeof window !== 'undefined' && typeof window.globalThis.addEventListener ==
|
|
|
>
|
|
|
<a :href="item.sname ? `${item.path}?dup=${item.sname}` : item.path
|
|
|
">{{item.categoryName}}</a>
|
|
|
- <ul class="submenu">
|
|
|
- <li v-if="item.children" v-for="children in item.children" :key="children.id">
|
|
|
- <a :href="item.sname ? `${item.path}?dup=${item.sname}&categoryid=${children.id}&isUrlId=1` : `${item.path}?categoryid=${children.id}&isUrlId=1` ">
|
|
|
+ <ul class="submenu" v-if="item.children">
|
|
|
+ <li v-for="children in item.children" :key="children.id" class="submenu-item" style="display: inblock !important;vertical-align: top;">
|
|
|
+ <a :href="item.sname ? `${item.path}?dup=${item.sname}&categoryid=${children.id}&isUrlId=1` : `${item.path}?categoryid=${children.id}&isUrlId=1` " class="level2">
|
|
|
<span style="font-weight:bold;margin-right:10px">·</span>
|
|
|
- {{children.categoryName}}
|
|
|
+ <span>{{children.categoryName}}</span>
|
|
|
+ <ul class="submenu2" v-if="children?.children.length>0">
|
|
|
+ <li v-for="(children2,index) in children.children" :key="index" class="submenu2Li" style="">
|
|
|
+ <a href="">{{ children2.categoryName }}</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -135,6 +141,42 @@ if(typeof window !== 'undefined' && typeof window.globalThis.addEventListener ==
|
|
|
</div>
|
|
|
</header>
|
|
|
</template>
|
|
|
-<style lang="scss" scoped>
|
|
|
-
|
|
|
+<style lang="scss" >
|
|
|
+.level2{
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.level2>span{
|
|
|
+ color:#fff;
|
|
|
+}
|
|
|
+.level2:hover{
|
|
|
+ >span{
|
|
|
+ color:#409EFF;
|
|
|
+ }
|
|
|
+ .submenu2{
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+.submenu2{
|
|
|
+ text-align: center;
|
|
|
+ display: none;
|
|
|
+ width:100% !important;
|
|
|
+ overflow: hidden;
|
|
|
+ padding:0 0 10px 18px !important;
|
|
|
+ margin:0 !important;
|
|
|
+ .submenu2Li{
|
|
|
+ display: block !important;
|
|
|
+ margin:-10px 0 0 0px !important;
|
|
|
+ height:30px !important;
|
|
|
+ width:100% !important;
|
|
|
+ a{
|
|
|
+ height:20px !important;
|
|
|
+ line-height: 20px !important;
|
|
|
+ text-align:left;
|
|
|
+ padding:0 !important;
|
|
|
+ font-size: 15px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|