Browse Source

pages

master
maochaoying 2 years ago
parent
commit
7d68b1ac69
  1. 5
      src/components/SubNavigation.vue
  2. 5
      src/components/Top.vue

5
src/components/SubNavigation.vue

@ -20,6 +20,7 @@
<div class="btn" @click="toPage('/factory')">工厂展示</div>
<div class="btn" @click="toPage('/mobile/design')">工业设计</div>
<div class="btn" @click="toPage('/mobile/hardware')">软硬件研发</div>
<div class="btn" @click="toPage('/mobile/metal')">加工生产</div>
</div>
</div>
</div>
@ -46,6 +47,10 @@ const toPage = path => {
window.location.href = 'https://iflytop.com/mobile/hardware'
return
}
if (path == '/mobile/metal') {
window.location.href = 'https://iflytop.com/mobile/metal'
return
}
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`

5
src/components/Top.vue

@ -32,6 +32,7 @@
<div class="btn" @click="toPage('/factory')">工厂展示</div>
<div class="btn" @click="toPage('/mobile/design')">工业设计</div>
<div class="btn" @click="toPage('/mobile/hardware')">软硬件研发</div>
<div class="btn" @click="toPage('/mobile/metal')">加工生产</div>
</div>
</div>
</div>
@ -76,6 +77,10 @@ const toPage = path => {
window.location.href = 'https://iflytop.com/mobile/hardware'
return
}
if (path == '/mobile/metal') {
window.location.href = 'https://iflytop.com/mobile/metal'
return
}
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`

Loading…
Cancel
Save