219 lines
4.2 KiB
Vue
219 lines
4.2 KiB
Vue
<template>
|
|
<div id="toproot">
|
|
<div id="topbar">
|
|
<a href="/">
|
|
<img
|
|
id="toplogo"
|
|
referrerpolicy="no-referrer"
|
|
src="/toplogo.png"/>
|
|
</a>
|
|
<img
|
|
id="topcode"
|
|
class="label_1"
|
|
referrerpolicy="no-referrer"
|
|
src="/topcode.png"/>
|
|
<img
|
|
id="webmenubutton"
|
|
class="label_1"
|
|
referrerpolicy="no-referrer"
|
|
src="/waptoptoolbarbuttom.png"/>
|
|
<span id="rightcontent">
|
|
<span class="toptext" id="hyal">
|
|
<a href="/Examples"
|
|
style="text-decoration: none; color: inherit;">
|
|
行业案例
|
|
</a>
|
|
</span>
|
|
<span class="toptext" id="fwlc">
|
|
<a href="/ServiceProcess"
|
|
style="text-decoration: none; color: inherit;">
|
|
服务流程
|
|
</a>
|
|
</span>
|
|
<span class="toptext" id="gywm">
|
|
<a href="/Aboutus"
|
|
style="text-decoration: none; color: inherit;">
|
|
关于我们
|
|
</a>
|
|
</span>
|
|
<span class="toptext" id="lxwm">
|
|
<a href="/ContactUs"
|
|
style="text-decoration: none; color: inherit;">
|
|
联系我们
|
|
</a>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Toolbar",
|
|
mounted() {
|
|
this.$nextTick(function() {
|
|
// 调用你想执行的方法
|
|
this.contain_toolbar();
|
|
});
|
|
},
|
|
methods:{
|
|
contain_toolbar:function (){
|
|
window.onscroll = function(){
|
|
if(window.scrollY==0){
|
|
document.getElementById("toproot")
|
|
.style.backgroundColor='rgba(0, 0, 0, 0)';
|
|
}
|
|
else{
|
|
document.getElementById("toproot")
|
|
.style.backgroundColor="black";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "node_modules/bootstrap/scss/_functions.scss";
|
|
@import "node_modules/bootstrap/scss/_variables.scss";
|
|
@import "node_modules/bootstrap/scss/_mixins.scss";
|
|
|
|
.toptext
|
|
{
|
|
@include media-breakpoint-between(xs, md) {
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
width: 100px;
|
|
height: 28px;
|
|
overflow-wrap: break-word;
|
|
color: rgba(255, 255, 255, 1);
|
|
font-size: 20px;
|
|
font-family: PingFangSC-Regular;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 28px;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
#hyal
|
|
{
|
|
@include media-breakpoint-between(xs, md) {
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
}
|
|
}
|
|
#fwlc
|
|
{
|
|
@include media-breakpoint-between(xs, md) {
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
}
|
|
}
|
|
#lxwm
|
|
{
|
|
@include media-breakpoint-between(xs, md) {
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
}
|
|
}
|
|
#hyal
|
|
{
|
|
@include media-breakpoint-between(xs, md) {
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
}
|
|
}
|
|
|
|
#topbar
|
|
{
|
|
//background-color: black;
|
|
background-color: rgba(255,255,255,0);
|
|
width: 100%;
|
|
@include media-breakpoint-between(xs, md) {
|
|
height: 28px;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
height: 28px;
|
|
}
|
|
}
|
|
|
|
#toplogo
|
|
{
|
|
//float: right;
|
|
@include media-breakpoint-between(xs, md) {
|
|
width:88px;
|
|
height:16px;
|
|
margin-left: 3px;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
margin-left: 100px;
|
|
}
|
|
}
|
|
|
|
#rightcontent
|
|
{
|
|
float: right;
|
|
@include media-breakpoint-between(xs, md) {
|
|
visibility: collapse;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
//width:100%;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
#topcode
|
|
{
|
|
float: right;
|
|
@include media-breakpoint-between(xs, md) {
|
|
visibility: collapse;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
width: 23px;
|
|
height: 23px;
|
|
//margin-top: 2px;
|
|
//margin: 3px 0 0 30px;
|
|
//top:3px;
|
|
margin-right: 100px;
|
|
}
|
|
}
|
|
|
|
#webmenubutton
|
|
{
|
|
float: right;
|
|
@include media-breakpoint-between(xs, md) {
|
|
width: 23px;
|
|
height: 23px;
|
|
margin-right: 3px;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
visibility: collapse;
|
|
}
|
|
}
|
|
|
|
#toproot
|
|
{
|
|
display: flex;
|
|
//position: -webkit-fixed;
|
|
position: fixed;
|
|
top:0px;
|
|
background-color: rgba(255,255,255,0);
|
|
z-index: 7;
|
|
width: 100%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
@include media-breakpoint-between(xs, md) {
|
|
height:70px;
|
|
}
|
|
@include media-breakpoint-up(md){
|
|
//height: 34px;
|
|
height: 95.17px;
|
|
//margin-top: 2px;
|
|
//margin: 3px 0 0 30px;
|
|
}
|
|
}
|
|
|
|
</style>
|