From 78dc415b1aabf7fcf26e31fc7fa693843f175386 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Thu, 7 Dec 2023 14:15:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=B8=9A=E8=AE=BE=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 2 +-
src/components/Bottom.vue | 8 +---
src/components/SubNavigation.vue | 9 ++++
src/components/Top.vue | 16 ++++---
src/pages/Hardware.bak.vue | 84 -----------------------------------
src/pages/Hardware.vue | 95 ----------------------------------------
src/pages/HardwareCase.vue | 10 -----
src/pages/index.bak.vue | 47 --------------------
src/pages/index.vue | 95 ----------------------------------------
src/router/index.js | 8 +---
vite.config.js | 2 +-
11 files changed, 23 insertions(+), 353 deletions(-)
delete mode 100644 src/pages/Hardware.bak.vue
delete mode 100644 src/pages/Hardware.vue
delete mode 100644 src/pages/HardwareCase.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..c1c36ba 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
-
产品梦工厂
+ 产品梦工厂 - 工业设计
diff --git a/src/components/Bottom.vue b/src/components/Bottom.vue
index 471275a..7313dbf 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 BottomBackground2
}
const addWeChat = () => {
diff --git a/src/components/SubNavigation.vue b/src/components/SubNavigation.vue
index c497df0..b1533b6 100644
--- a/src/components/SubNavigation.vue
+++ b/src/components/SubNavigation.vue
@@ -19,6 +19,7 @@
招贤纳士
工厂展示
软硬件研发
+ 加工生产
@@ -41,6 +42,14 @@ const toPage = path => {
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`
+ if (path == '/hardware') {
+ window.location.href = 'https://iflytop.com/mobile/hardware/#/'
+ return
+ }
+ if (path == '/metal') {
+ window.location.href = 'https://iflytop.com/mobile/metal/#/'
+ return
+ }
window.location.href = p
}
diff --git a/src/components/Top.vue b/src/components/Top.vue
index 541961a..455c0df 100644
--- a/src/components/Top.vue
+++ b/src/components/Top.vue
@@ -30,12 +30,8 @@
联系我们
招贤纳士
工厂展示
-
- {{ isHard ? '工业设计' : '软硬件研发' }}
-
+ 软硬件研发
+ 加工生产
@@ -76,6 +72,14 @@ const toPage = path => {
const origin = window.location.origin
const pathname = window.location.pathname
const p = `${origin}${pathname}#${path}`
+ if (path == '/hardware') {
+ window.location.href = 'https://iflytop.com/mobile/hardware/#/'
+ return
+ }
+ if (path == '/metal') {
+ window.location.href = 'https://iflytop.com/mobile/metal/#/'
+ return
+ }
window.location.href = p
}
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/Hardware.vue b/src/pages/Hardware.vue
deleted file mode 100644
index 9ed9b1b..0000000
--- a/src/pages/Hardware.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/pages/HardwareCase.vue b/src/pages/HardwareCase.vue
deleted file mode 100644
index b44fad8..0000000
--- a/src/pages/HardwareCase.vue
+++ /dev/null
@@ -1,10 +0,0 @@
-
- hardware case
-
-
-
-
-
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..adfd9af 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,29 +1,23 @@
import { createRouter, createWebHashHistory } from 'vue-router'
-const Home = () => import('@/pages')
const Detail = () => import('@/pages/Detail')
const Recruit = () => import('@/pages/Recruit')
const Contact = () => import('@/pages/Contact')
-const HardwareCase = () => import('@/pages/HardwareCase')
const Company = () => import('@/pages/Company')
const CaseShow = () => import('@/pages/CaseShow')
const Product = () => import('@/pages/Product')
-const Hardware = () => import('@/pages/Hardware')
const QRCode = () => import('@/pages/QRCode')
const Factory = () => import('@/pages/Factory')
const Industry = () => import('@/pages/Industry')
// 配置路由信息
const routes = [
- { path: '/', component: Home },
+ { path: '/', component: Industry },
{ 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..433e0bd 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/design/',
//配置sass
css: {
preprocessorOptions: {