diff --git a/.env.development b/.env.development index 145e790..920091a 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,8 @@ VITE_PUBLIC_PATH = / VITE_API_BASE_URL = 'http://test-admin.haituaigc.com' -VITE_API_CHAT_URL = 'http://openai-test.haituaigc.com' \ No newline at end of file +VITE_API_CHAT_URL = 'http://openai-test.haituaigc.com' + +VITE_PC_HOST = 'http://test.haituaigc.com' + +VITE_M_HOST = 'http://test-m.haituaigc.com' \ No newline at end of file diff --git a/.env.production b/.env.production index 145e790..920091a 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,8 @@ VITE_PUBLIC_PATH = / VITE_API_BASE_URL = 'http://test-admin.haituaigc.com' -VITE_API_CHAT_URL = 'http://openai-test.haituaigc.com' \ No newline at end of file +VITE_API_CHAT_URL = 'http://openai-test.haituaigc.com' + +VITE_PC_HOST = 'http://test.haituaigc.com' + +VITE_M_HOST = 'http://test-m.haituaigc.com' \ No newline at end of file diff --git a/src/assets/images/law_cube1.png b/src/assets/images/law_cube1.png new file mode 100644 index 0000000..b84c57e Binary files /dev/null and b/src/assets/images/law_cube1.png differ diff --git a/src/assets/images/law_cube2.png b/src/assets/images/law_cube2.png new file mode 100644 index 0000000..b23667b Binary files /dev/null and b/src/assets/images/law_cube2.png differ diff --git a/src/assets/images/map_guide.jpg b/src/assets/images/map_guide.jpg new file mode 100644 index 0000000..304bd19 Binary files /dev/null and b/src/assets/images/map_guide.jpg differ diff --git a/src/assets/images/oversea_law.jpg b/src/assets/images/oversea_law.jpg new file mode 100644 index 0000000..7ef5d67 Binary files /dev/null and b/src/assets/images/oversea_law.jpg differ diff --git a/src/assets/images/policy_analysis.jpg b/src/assets/images/policy_analysis.jpg new file mode 100644 index 0000000..8acc6d1 Binary files /dev/null and b/src/assets/images/policy_analysis.jpg differ diff --git a/src/layouts/Header.vue b/src/layouts/Header.vue index 7ddb6f9..908e547 100644 --- a/src/layouts/Header.vue +++ b/src/layouts/Header.vue @@ -120,6 +120,8 @@ const jump = (url)=>{ color: #FFF; padding: 10px; box-sizing: border-box; + position: relative; + z-index: 9; .logo{ width: 230px; display: flex; diff --git a/src/layouts/index.vue b/src/layouts/index.vue index f37387d..f8d55e1 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -26,6 +26,8 @@ import Footer from './Footer.vue'; flex: 1; width: 100%; overflow-y: auto; + position: relative; + z-index: 1; } } \ No newline at end of file diff --git a/src/main.js b/src/main.js index ff6975b..d7ebac0 100644 --- a/src/main.js +++ b/src/main.js @@ -15,6 +15,15 @@ import 'vant/es/toast/style'; import 'amfe-flexible' +function platCheck() { + const userAgent = navigator.userAgent.toLowerCase(); + const mobileKeywords = ['iphone', 'ipod', 'android', 'silk', 'blackberry', 'bb10', 'phone', 'mobile', 'kindle', 'opera mini', 'mobile safari', 'windows phone']; + const isMobileDevice = mobileKeywords.some(keyword => userAgent.includes(keyword)); + if (!isMobileDevice) { + window.location.href = import.meta.env.VITE_PC_HOST; + } +} +platCheck(); const app = createApp(App); diff --git a/src/router/index.js b/src/router/index.js index c91f681..23df686 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,7 +79,7 @@ const router = createRouter({ title: 'AI商情-行业洞察', group: 'business' }, - component: () => import("@/views/business/insight.vue"), + component: () => import("@/views/business/insight/index.vue"), }, { path: 'business/insight/category/:cid', @@ -88,7 +88,7 @@ const router = createRouter({ title: 'AI商情-行业洞察', group: 'business' }, - component: () => import("@/views/business/list.vue"), + component: () => import("@/views/business/insight/list.vue"), }, { path: 'business/insight/detail/:cid/:id', @@ -97,7 +97,34 @@ const router = createRouter({ title: 'AI商情-行业洞察', group: 'business' }, - component: () => import("@/views/business/detail.vue"), + component: () => import("@/views/business/insight/detail.vue"), + }, + { + path: 'business/legal', + name: 'legal', + meta: { + title: 'AI商情-法律法规', + group: 'business' + }, + component: () => import("@/views/business/legal/index.vue"), + }, + { + path: 'business/legal/policy', + name: 'policy', + meta: { + title: 'AI商情-法律法规-政策解读', + group: 'business' + }, + component: () => import("@/views/business/legal/policy.vue"), + }, + { + path: 'business/legal/policy/detail/:id', + name: 'policyDetail', + meta: { + title: 'AI商情-法律法规-政策解读', + group: 'business' + }, + component: () => import("@/views/business/legal/policyDetail.vue"), }, ] } diff --git a/src/views/business/components/CategoryCardList.vue b/src/views/business/components/CategoryCardList.vue index 2433bd7..6dff1de 100644 --- a/src/views/business/components/CategoryCardList.vue +++ b/src/views/business/components/CategoryCardList.vue @@ -1,16 +1,21 @@