|
@@ -1,9 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<!--标题logo-->
|
|
<!--标题logo-->
|
|
<div class="header">
|
|
<div class="header">
|
|
- <div :class="[showTitle?'YztTitle':'YztWxzTitle']" @click="slideTitle"></div>
|
|
|
|
- <div class="SqTitle"></div>
|
|
|
|
- <div class="GgTitle"></div>
|
|
|
|
|
|
+ <div :class="[yztTitle?'YztTitle':'YztWxzTitle']" @click="slideTitle(YztTitle)"></div>
|
|
|
|
+ <div :class="[sqTitle?'SqTitle':'SqWxzTitle']" @click="slideTitle(sqTitle)"></div>
|
|
|
|
+ <div :class="[ggTitie?'GgTitle':'GgWxzTitle']" @click="slideTitle(ggTitie)"></div>
|
|
<div class="YwTitle"></div>
|
|
<div class="YwTitle"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -13,10 +13,24 @@ export default {
|
|
name: "ZhHeader",
|
|
name: "ZhHeader",
|
|
data() {
|
|
data() {
|
|
return{
|
|
return{
|
|
- slideTitle:true
|
|
|
|
|
|
+ yztTitle:true,
|
|
|
|
+ sqTitle:true,
|
|
|
|
+ ggTitie:true,
|
|
|
|
+ ywTitle:true
|
|
}
|
|
}
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ slideTitle(val){
|
|
|
|
+ console.log(val)
|
|
|
|
+ if(val==yztTitle){
|
|
|
|
+ this.yztTitle=!this.yztTitle
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -44,7 +58,7 @@ $fullsize: calc(100% - 0px);
|
|
top:4%;
|
|
top:4%;
|
|
width: 246rem;
|
|
width: 246rem;
|
|
height: 54rem;
|
|
height: 54rem;
|
|
- background: url(src/assets/images/yztTitie.png) no-repeat;
|
|
|
|
|
|
+ background: url(src/assets/images/yztWxzTitie.png) no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
}
|
|
}
|
|
@@ -57,6 +71,15 @@ $fullsize: calc(100% - 0px);
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
+.SqWxzTitle{
|
|
|
|
+ left:23%;
|
|
|
|
+ top:4%;
|
|
|
|
+ width: 246rem;
|
|
|
|
+ height: 54rem;
|
|
|
|
+ background: url(src/assets/images/sqWxzTitle.png) no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ position: absolute;
|
|
|
|
+}
|
|
.GgTitle{
|
|
.GgTitle{
|
|
left:67%;
|
|
left:67%;
|
|
top:4%;
|
|
top:4%;
|