From f6a160e086ad8db894679a9e689201f47c99f666 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Thu, 7 Dec 2023 15:05:39 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BD=AF=E7=A1=AC=E4=BB=B6=E7=A0=94=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 2 +-
src/components/Bottom.bak.vue | 147 ---------------------------------------
src/components/Bottom.vue | 8 +--
src/components/HeadLine.vue | 4 +-
src/components/SubNavigation.vue | 13 +++-
src/components/Top.vue | 17 +++--
src/pages/Hardware.bak.vue | 84 ----------------------
src/pages/Industry.vue | 54 --------------
src/pages/index.bak.vue | 47 -------------
src/pages/index.vue | 95 -------------------------
src/router/index.js | 4 +-
vite.config.js | 2 +-
12 files changed, 27 insertions(+), 450 deletions(-)
delete mode 100644 src/components/Bottom.bak.vue
delete mode 100644 src/pages/Hardware.bak.vue
delete mode 100644 src/pages/Industry.vue
delete mode 100644 src/pages/index.bak.vue
delete mode 100644 src/pages/index.vue
diff --git a/index.html b/index.html
index 860ca36..8ce3871 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
-
产品梦工厂
+ 产品梦工厂 - 软硬件研发
diff --git a/src/components/Bottom.bak.vue b/src/components/Bottom.bak.vue
deleted file mode 100644
index 468918c..0000000
--- a/src/components/Bottom.bak.vue
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
![]()
-
在线咨询
-
-
-
-
![]()
-
拨打电话
-
-
-
-
添加微信
-
-
-
-
-
-
-
diff --git a/src/components/Bottom.vue b/src/components/Bottom.vue
index 471275a..21c99e3 100644
--- a/src/components/Bottom.vue
+++ b/src/components/Bottom.vue
@@ -30,13 +30,7 @@ const props = defineProps({
})
const getData = () => {
- if (route.path.indexOf('/hardware') != -1) {
- return BottomBackground3
- }
- if (route.path.indexOf('/industry') != -1) {
- return BottomBackground2
- }
- return BottomBackground
+ return BottomBackground3
}
const addWeChat = () => {
diff --git a/src/components/HeadLine.vue b/src/components/HeadLine.vue
index b058725..e3c708f 100644
--- a/src/components/HeadLine.vue
+++ b/src/components/HeadLine.vue
@@ -2,9 +2,7 @@
{{ flip ? title : '' }}
- {{
- themeTitle
- }}
+ {{ themeTitle }}
{{ !flip ? title : '' }}
+
工业设计
+
加工生产
@@ -41,7 +41,16 @@ const toPage = path => {
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`
+ if (path == '/design') {
+ window.location.href = 'https://iflytop.com/mobile/design/#/'
+ return
+ }
+ if (path == '/metal') {
+ window.location.href = 'https://iflytop.com/mobile/metal/#/'
+ return
+ }
window.location.href = p
+ drawer.value = false
}
const hidePanel = event => {
diff --git a/src/components/Top.vue b/src/components/Top.vue
index 541961a..e975d78 100644
--- a/src/components/Top.vue
+++ b/src/components/Top.vue
@@ -30,12 +30,8 @@
联系我们
招贤纳士
工厂展示
-
- {{ isHard ? '工业设计' : '软硬件研发' }}
-
+ 工业设计
+ 加工生产
@@ -76,7 +72,16 @@ const toPage = path => {
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`
+ if (path == '/design') {
+ window.location.href = 'https://iflytop.com/mobile/design/#/'
+ return
+ }
+ if (path == '/metal') {
+ window.location.href = 'https://iflytop.com/mobile/metal/#/'
+ return
+ }
window.location.href = p
+ drawer.value = false
}
const hidePanel = event => {
diff --git a/src/pages/Hardware.bak.vue b/src/pages/Hardware.bak.vue
deleted file mode 100644
index 24b04a8..0000000
--- a/src/pages/Hardware.bak.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
![]()
-
-
-
![]()
-
![]()
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/Industry.vue b/src/pages/Industry.vue
deleted file mode 100644
index 5e3ea64..0000000
--- a/src/pages/Industry.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
![]()
-
-
-
![]()
-
-
-
-
-
-
diff --git a/src/pages/index.bak.vue b/src/pages/index.bak.vue
deleted file mode 100644
index 3bd8812..0000000
--- a/src/pages/index.bak.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/pages/index.vue b/src/pages/index.vue
deleted file mode 100644
index 3eae802..0000000
--- a/src/pages/index.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/router/index.js b/src/router/index.js
index 05e3f8e..9ec99a2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -14,16 +14,14 @@ const Industry = () => import('@/pages/Industry')
// 配置路由信息
const routes = [
- { path: '/', component: Home },
+ { path: '/', component: Hardware },
{ path: '/detail', component: Detail },
- { path: '/industry', component: Industry },
{ path: '/recruit', component: Recruit },
{ path: '/contact', component: Contact },
{ path: '/hardware-case', component: HardwareCase },
{ path: '/company', component: Company },
{ path: '/case-show', component: CaseShow },
{ path: '/product', component: Product },
- { path: '/hardware', component: Hardware },
{ path: '/code', component: QRCode },
{ path: '/factory', component: Factory },
]
diff --git a/vite.config.js b/vite.config.js
index 5f9f07b..05bc135 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -18,7 +18,7 @@ export default defineConfig({
host: '0.0.0.0',
},
plugins: [vue()],
- base: '/mobile/',
+ base: '/mobile/hardware/',
//配置sass
css: {
preprocessorOptions: {