导航栏彻底完备

This commit is contained in:
zhcnyuyang 2025-05-03 14:45:27 +08:00
parent 82be0e9f35
commit cc41555064
4 changed files with 95 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -17,7 +17,7 @@ import MobileToolbar from "@/components/Tools/MobileToolbar.vue";
class="label_1" class="label_1"
referrerpolicy="no-referrer" referrerpolicy="no-referrer"
src="/topcode.png"/> src="/topcode.png"/>
<a href="javascript:;" onclick="show_weptoolbar()"> <a href="javascript:;" @click="show_weptoolbar">
<img <img
id="wepmenubutton" id="wepmenubutton"
class="label_1" class="label_1"

View File

@ -4,7 +4,43 @@ import FooterContent from './FooterContent.vue'
<template> <template>
<div id="mobilebarroot"> <div id="mobilebarroot">
<div id="barcontent"></div> <div id="barcontent">
<div class="image-wrapper_2 flex-row justify-between">
<a href="/">
<img
id="image_1"
referrerpolicy="no-referrer"
src="/MobileToolbar/weptoolbarlogo.png"
/>
</a>
<span style="width: 100%;"></span>
<a href="javascript:;" @click="hide_toolbar">
<img
id="thumbnail_1"
referrerpolicy="no-referrer"
src="/MobileToolbar/closeweptoolbar.png"
/>
</a>
</div>
<div id="barlist">
<a href="/Examples"
style="text-decoration: none; color: inherit;">
<div class="baritem">行业案例</div>
</a>
<a href="/ServiceProcess"
style="text-decoration: none; color: inherit;">
<div class="baritem">服务流程</div>
</a>
<a href="/Aboutus"
style="text-decoration: none; color: inherit;">
<div class="baritem">关于我们</div>
</a>
<a href="/ContactUs"
style="text-decoration: none; color: inherit;">
<div class="baritem">联系我们</div>
</a>
</div>
</div>
<div id="barbottom"> <div id="barbottom">
<FooterContent></FooterContent> <FooterContent></FooterContent>
</div> </div>
@ -13,7 +49,12 @@ import FooterContent from './FooterContent.vue'
<script> <script>
export default { export default {
name: "MobileToolbar" name: "MobileToolbar",
methods: {
hide_toolbar:function (){
document.getElementById('mobilebarroot').style.visibility="collapse";
}
}
} }
</script> </script>
@ -24,7 +65,7 @@ export default {
#mobilebarroot{ #mobilebarroot{
position: fixed; position: fixed;
z-index: 10; z-index: 100;
@include media-breakpoint-between(xs, md) { @include media-breakpoint-between(xs, md) {
background-color: black; background-color: black;
display: flex; display: flex;
@ -35,6 +76,10 @@ export default {
visibility: collapse; visibility: collapse;
margin-top: 0px; margin-top: 0px;
margin-left: 0px; margin-left: 0px;
margin-bottom: 0px;
top: 0;
left: 0;
overflow: auto; /* 关键点 */
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
visibility: collapse!important; visibility: collapse!important;
@ -46,10 +91,11 @@ export default {
visibility: inherit; visibility: inherit;
@include media-breakpoint-between(xs, md) { @include media-breakpoint-between(xs, md) {
display: flex; display: flex;
flex-direction: column;
position: relative; position: relative;
flex:1; flex:1;
width: 100%; width: 100%;
min-height: 100%; //min-height: 100%;
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
//visibility: collapse!important; //visibility: collapse!important;
@ -57,12 +103,56 @@ export default {
} }
#barbottom{ #barbottom{
display: flex;
visibility: inherit; visibility: inherit;
@include media-breakpoint-between(xs, md) { @include media-breakpoint-between(xs, md) {
width: 100%; width: 100%;
justify-content: left;
padding-left: 32px;
margin-top: 72px;
//padding-bottom: 72px;
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
//visibility: collapse!important; //visibility: collapse!important;
} }
} }
.image-wrapper_2 {
display: flex;
flex-direction: row;
width: 100%;
padding-left: 32px;
padding-top: 24px;
padding-right: 32px;
}
#image_1 {
width: 88px;
height: 16px;
margin: 3px 0 1px 0;
}
#thumbnail_1 {
width: 20px;
height: 20px;
float: right;
}
#barlist{
margin-top: 44px;
width: 100%;
padding-left: 32px;
//padding-top: 24px;
padding-right: 32px;
}
.baritem{
width: 100%;
height:72px;
color: rgba(255, 255, 255, 1);
font-size: 24px;
font-family: PingFangSC-Medium;
font-weight: 500;
text-align: left;
}
</style> </style>