|
@@ -5,34 +5,43 @@
|
|
style="padding-left: 0px;height: 50px;font-size: 14px;"
|
|
style="padding-left: 0px;height: 50px;font-size: 14px;"
|
|
>
|
|
>
|
|
<div class="innerBox d-flex justify-space-between">
|
|
<div class="innerBox d-flex justify-space-between">
|
|
- <div class="d-flex">
|
|
|
|
|
|
+ <div class="d-flex align-center">
|
|
<div class="nav-logo" style="cursor: pointer;" @click="handleLogoClick">
|
|
<div class="nav-logo" style="cursor: pointer;" @click="handleLogoClick">
|
|
- <v-img src="@/assets/logo.png" aspect-ratio="16/9" cover :width="90" style="height: 40px"></v-img>
|
|
|
|
|
|
+ <v-img src="@/assets/logo.png" aspect-ratio="16/9" cover :width="90" style="height: 40px;"></v-img>
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="menuList ml-10">
|
|
|
|
|
|
+ <div class="menuList ml-10">
|
|
<div v-for="val in menuList" :key="val.name">
|
|
<div v-for="val in menuList" :key="val.name">
|
|
- <component :is="val.path"></component>
|
|
|
|
|
|
+ <template v-if="val.fileName">
|
|
|
|
+ <component :is="val.fileName" :title="val.title"></component>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <span class="cursor-pointer">{{ val.title }}</span>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="d-flex">
|
|
|
|
|
|
+ <div class="d-flex">
|
|
<span>右侧</span>
|
|
<span>右侧</span>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</v-toolbar>
|
|
</v-toolbar>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-// import product from './components/product.vue'
|
|
|
|
-// import solution from './components/solution.vue'
|
|
|
|
|
|
+import product from './components/product.vue'
|
|
|
|
+import solution from './components/solution.vue'
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
defineOptions({name: 'entrances-navBar'})
|
|
defineOptions({name: 'entrances-navBar'})
|
|
const handleLogoClick = () => { router.push({ path: '/'}) }
|
|
const handleLogoClick = () => { router.push({ path: '/'}) }
|
|
|
|
|
|
-// const menuList = [
|
|
|
|
-// { name: 'product', path: product },
|
|
|
|
-// { name: 'solution', path: solution },
|
|
|
|
-// ]
|
|
|
|
|
|
+const menuList = [
|
|
|
|
+ { title: '产品', fileName: product },
|
|
|
|
+ { title: '解决方案', fileName: solution },
|
|
|
|
+ { title: '客户案例', path: '/' },
|
|
|
|
+ { title: '服务支持', fileName: product },
|
|
|
|
+ { title: '资源中心', fileName: product },
|
|
|
|
+ { title: '了解门墩儿', fileName: product },
|
|
|
|
+]
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@import '@/styles/entrances/navBar.scss'
|
|
@import '@/styles/entrances/navBar.scss'
|