|
|
@@ -1,23 +1,25 @@
|
|
|
<template>
|
|
|
- <div class="header clearfix">
|
|
|
- <div class="container">
|
|
|
- <!--Logo商标-->
|
|
|
- <div class="header-brand pull-left">
|
|
|
- <nuxt-link :to="'/'">
|
|
|
- <img src="/images/logo/uas_mall.png" class="mall-logo"/>
|
|
|
- <div class="mall-slogan">
|
|
|
- <p>For the World<br/>为世界电子产业创造价值</p>
|
|
|
- </div>
|
|
|
- </nuxt-link>
|
|
|
+ <div class="header-wrapper" id="headerWrapperContent">
|
|
|
+ <div class="header clearfix" :class="{'fixed': isFixed}">
|
|
|
+ <div class="container">
|
|
|
+ <!--Logo商标-->
|
|
|
+ <div class="header-brand pull-left">
|
|
|
+ <nuxt-link :to="'/'">
|
|
|
+ <img src="/images/logo/uas_mall.png" class="mall-logo"/>
|
|
|
+ <div class="mall-slogan">
|
|
|
+ <p>For the World<br/>为世界电子产业创造价值</p>
|
|
|
+ </div>
|
|
|
+ </nuxt-link>
|
|
|
+ </div>
|
|
|
+ <!--搜索-->
|
|
|
+ <div class="header-search pull-left">
|
|
|
+ <search-box :isPcb="isPcb"></search-box>
|
|
|
+ </div>
|
|
|
+ <!--统计-->
|
|
|
+ <!-- <div class="header-count pull-right">
|
|
|
+ <count-box></count-box>
|
|
|
+ </div>-->
|
|
|
</div>
|
|
|
- <!--搜索-->
|
|
|
- <div class="header-search pull-left">
|
|
|
- <search-box :isPcb="isPcb"></search-box>
|
|
|
- </div>
|
|
|
- <!--统计-->
|
|
|
- <!-- <div class="header-count pull-right">
|
|
|
- <count-box></count-box>
|
|
|
- </div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -35,15 +37,30 @@
|
|
|
isPcb: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ isFixed: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
@import '~assets/scss/variables';
|
|
|
+ .header-wrapper {
|
|
|
+ height: 103px;
|
|
|
+ }
|
|
|
|
|
|
.header {
|
|
|
padding: 10px 0;
|
|
|
+ &.fixed {
|
|
|
+ position: fixed;
|
|
|
+ width: 100%;
|
|
|
+ background: #fff;
|
|
|
+ z-index: 999;
|
|
|
+ top: 0;
|
|
|
+ padding-top: 20px;
|
|
|
+ }
|
|
|
|
|
|
.header-brand {
|
|
|
|