ss
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<ul class="content" v-if="curMenu">
|
||||
<li class="category" v-for=" sonmenu in curMenu.child" :key="sonmenu.name" >
|
||||
<router-link :to="sonmenu.url" class="categoryHead h2 linkProduct">
|
||||
<router-link :to="sonmenu.url" :class="sonmenu.strong" >
|
||||
<div class="triangle"></div>
|
||||
<font style="vertical-align: inherit;">
|
||||
<font style="vertical-align: inherit;"> {{sonmenu.name}}</font>
|
||||
@@ -33,22 +33,31 @@ export default {
|
||||
menus: window.config.menus,
|
||||
isMobile: false,
|
||||
curMenu: null,
|
||||
curChildMenu: null
|
||||
curChildMenu: null,
|
||||
strong: ""
|
||||
};
|
||||
},
|
||||
created: function() {
|
||||
this.mobileHide();
|
||||
this.Init();
|
||||
},
|
||||
methods: {
|
||||
mobileHide: function() {
|
||||
Init: function() {
|
||||
this.isMobile = common.isMobile();
|
||||
var path = this.$route.fullPath.split("/");
|
||||
|
||||
this.curMenu = this.menus.find(p => {
|
||||
return p.url.indexOf(path[1]) > 0;
|
||||
});
|
||||
|
||||
this.curChildMenu = this.curMenu.child.find(p => {
|
||||
return p.url.indexOf(path[2]);
|
||||
return p.url.indexOf(path[2]) > 0;
|
||||
});
|
||||
|
||||
this.curMenu.child.map(p => {
|
||||
p.strong = "categoryHead h2 linkProduct";
|
||||
if (p.url.indexOf(path[2]) > 0) {
|
||||
this.curChildMenu.strong = "categoryHead h2 linkProduct strong";
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
<div class="contentPage">
|
||||
|
||||
<div class="contentTable">
|
||||
<router-view></router-view>
|
||||
<leftMenu > </leftMenu>
|
||||
<icontent>
|
||||
<router-view></router-view>
|
||||
|
||||
</icontent>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div >
|
||||
|
||||
<leftMenu > </leftMenu>
|
||||
<icontent>
|
||||
<div class="row left">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-5 col-sm-5 scrollpoint sp-effect1" style="padding:0px;">
|
||||
@@ -29,6 +30,8 @@
|
||||
<img width="100%" src="http://api.map.baidu.com/staticimage/v2?ak=y2qrobvV7OiT0P5FuoOXzvr1NzRbKPEE&mcode=666666¢er=121.425276,31.438629&zoom=13 " />
|
||||
</div>
|
||||
|
||||
</icontent>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -37,14 +40,9 @@
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
return {};
|
||||
},
|
||||
mounted: function() {
|
||||
|
||||
|
||||
}
|
||||
mounted: function() {}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<leftMenu > </leftMenu>
|
||||
<icontent>
|
||||
</icontent>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user