diff --git a/package-lock.json b/package-lock.json
index 2515c52..6040a4e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "sample-website",
"version": "0.0.0",
"dependencies": {
+ "aos": "^2.3.4",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
@@ -1064,6 +1065,17 @@
"node": ">= 8"
}
},
+ "node_modules/aos": {
+ "version": "2.3.4",
+ "resolved": "https://registry.npmmirror.com/aos/-/aos-2.3.4.tgz",
+ "integrity": "sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==",
+ "license": "MIT",
+ "dependencies": {
+ "classlist-polyfill": "^1.0.3",
+ "lodash.debounce": "^4.0.6",
+ "lodash.throttle": "^4.0.1"
+ }
+ },
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz",
@@ -1254,6 +1266,12 @@
"node": ">= 6"
}
},
+ "node_modules/classlist-polyfill": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz",
+ "integrity": "sha512-GzIjNdcEtH4ieA2S8NmrSxv7DfEV5fmixQeyTmqmRmRJPGpRBaSnA2a0VrCjyT8iW8JjEdMbKzDotAJf+ajgaQ==",
+ "license": "Unlicense"
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
@@ -1751,6 +1769,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/lodash.debounce": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmmirror.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
+ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.throttle": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
+ "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==",
+ "license": "MIT"
+ },
"node_modules/lru-cache": {
"version": "10.4.3",
"resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz",
diff --git a/package.json b/package.json
index 1b2c68f..568d573 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
+ "aos": "^2.3.4",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
},
diff --git a/src/main.js b/src/main.js
index 9ee89b4..89b780f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,6 +2,7 @@ import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
+import 'aos/dist/aos.css'
function setRootFontSize() {
const baseWidth = 1920; // 假设设计稿宽度为 1920px(可以根据实际设计稿调整)
diff --git a/src/router/index.js b/src/router/index.js
index 6b889f9..6a5108e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,27 +1,31 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import { createRouter, createWebHistory } from "vue-router";
// 导入页面组件
-import Home from '../views/Home.vue'
-import About from '../views/About.vue'
+import Home from "../views/Home.vue";
+import About from "../views/About.vue";
// 配置路由
const routes = [
{
- path: '/',
- name: 'Home',
+ path: "/",
+ name: "Home",
component: Home,
},
{
- path: '/about',
- name: 'About',
+ path: "/about",
+ name: "About",
component: About,
},
-]
+];
// 创建并导出路由实例
const router = createRouter({
history: createWebHistory(), // 使用 HTML5 history 模式
routes, // 路由配置
-})
+ scrollBehavior(to, from, savedPosition) {
+ // 刷新时返回顶部
+ return { x: 0, y: 0 };
+ },
+});
-export default router
+export default router;
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 0e50a6b..48b888d 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -6,13 +6,13 @@
-
+
三优云试剂管家
-
+
三优生物样品管理平台
专业面向生物药企的样品管理平台
@@ -23,8 +23,8 @@
-
-
+
+
替代Excel 为您的实验室
搭建样本中央数据库
@@ -44,7 +44,7 @@
-
+
精于库位管理,不止于库位管理
系统提供出色的库位管理方案,帮助库管人员直观精确地对样本进行定位。另外,空间剩余情况统计、碎片化统计、空间不足提醒、盘库工具等业务,可有效提升库区管理效率。如果您还在为库内情况不明而烦恼,三优云试剂管家不失为您的效率之选。
@@ -105,7 +105,7 @@
-
灵活自定义可完美适配
+ 灵活自定义可完美适配
您独特的样品管理场景
@@ -219,68 +219,68 @@
-
+
合作客户
-
-
-

+
+
+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
-

+
@@ -389,9 +389,11 @@