diff --git a/manifest.json b/manifest.json
index e57fb9f..9eed575 100644
--- a/manifest.json
+++ b/manifest.json
@@ -52,7 +52,7 @@
"h5" : {
"devServer" : {
"port" : 8002,
- "disableHostCheck": true
+ "disableHostCheck" : true
}
},
/* 小程序特有相关 */
diff --git a/pages.json b/pages.json
index 215cbc5..01f690e 100644
--- a/pages.json
+++ b/pages.json
@@ -7,17 +7,17 @@
"navigationBarTitleText": "主页"
}
},
+ // #ifdef H5
{
"path": "pages/index/desk",
"style": {
- // #ifdef H5
"navigationStyle": "custom",
- // #endif
-
+
"navigationBarTitleText": "书桌",
"enablePullDownRefresh": true
}
},
+ // #endif
{
"path": "pages/index/member",
"style": {
@@ -213,26 +213,26 @@
{
"pagePath": "pages/index/home",
"text": "主页",
- "iconPath": "/static/主页图标.png",
- "selectedIconPath": "/static/主页图标-点击.png"
+ "iconPath": "/static/home-icon.png",
+ "selectedIconPath": "/static/home-icon-active.png"
},
{
"pagePath": "pages/index/desk",
"text": "书桌",
- "iconPath": "/static/书桌图标.png",
- "selectedIconPath": "/static/书桌图标-点击.png"
+ "iconPath": "/static/desk-icon.png",
+ "selectedIconPath": "/static/desk-icon-active.png"
},
{
"pagePath": "pages/index/member",
"text": "会员",
- "iconPath": "/static/会员图标.png",
- "selectedIconPath": "/static/会员图标-点击.png"
+ "iconPath": "/static/member-icon.png",
+ "selectedIconPath": "/static/member-icon-active.png"
},
{
"pagePath": "pages/index/user",
"text": "我的",
- "iconPath": "/static/我的图标.png",
- "selectedIconPath": "/static/我的图标-点击.png"
+ "iconPath": "/static/profile-icon.png",
+ "selectedIconPath": "/static/profile-icon-active.png"
}
]
}
diff --git a/pages/index/desk.vue b/pages/index/desk.vue
index 387b78b..a74494e 100644
--- a/pages/index/desk.vue
+++ b/pages/index/desk.vue
@@ -43,7 +43,7 @@
{{ book.book.booksName }}
{{ book.book.categoryName }}/
-
+
{{ book.book.duration }}
diff --git a/pages/index/home.vue b/pages/index/home.vue
index 68e8fa5..8d5a1c7 100644
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -85,13 +85,13 @@
@click="goBook(item)"
>
-
+
{{ item.booksName }}
{{ item.booksAuthor }}
-
+
{{ item.duration }}
@@ -114,10 +114,10 @@
@click="goBook(book)"
>
-
+
-
-
+
+
{{ book.duration }}
{{ book.booksName }}
@@ -136,16 +136,16 @@
@click="goBook(book)"
>
-
+
-
+
@@ -523,17 +523,30 @@ export default {
.book-item {
flex-shrink: 0;
width: 270rpx;
- // border-radius: 16rpx;
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
+
+ &:active {
+ transform: scale(0.98);
+ }
+
.book-cover {
width: 100%;
height: 360rpx;
border-radius: 16rpx;
overflow: hidden;
position: relative;
+ box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.15);
+ transition: box-shadow 0.3s ease, transform 0.3s ease;
+
+ &:active {
+ box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.25);
+ transform: translateY(-2rpx);
+ }
image {
width: 100%;
height: 100%;
+ transition: transform 0.3s ease;
}
@@ -544,46 +557,63 @@ export default {
right: 0;
width: 100%;
height: 140rpx;
- padding-top: 4rpx;
- padding-right: 16rpx;
- padding-bottom: 8rpx;
- padding-left: 16rpx;
- backdrop-filter: blur(5px);
+ padding: 20rpx 16rpx 12rpx;
box-sizing: border-box;
- background: #00000066;
- padding: 20rpx 16rpx 8rpx;
- // gap: 26rpx;
+
+ /* 优化的渐变遮罩效果 */
+ background: linear-gradient(
+ 180deg,
+ rgba(0, 0, 0, 0) 0%,
+ rgba(0, 0, 0, 0.3) 30%,
+ rgba(0, 0, 0, 0.7) 70%,
+ rgba(0, 0, 0, 0.85) 100%
+ );
+
+ /* 增强的毛玻璃效果 */
+ backdrop-filter: blur(8px) saturate(1.2);
+ -webkit-backdrop-filter: blur(8px) saturate(1.2);
+
+ /* 添加微妙的边框 */
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
+
+ /* 平滑过渡效果 */
+ transition: all 0.3s ease;
.book-duration{
display: flex;
- gap: 8rpx;
+ align-items: center;
+ gap: 6rpx;
+ margin-bottom: 8rpx;
&-icon{
- width: 24rpx;
- height: 24rpx;
+ width: 22rpx;
+ height: 22rpx;
+ opacity: 0.9;
}
&-text{
font-size: 20rpx;
- color: #DCDCDC;
+ font-weight: 500;
+ color: rgba(255, 255, 255, 0.9);
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
}
.book-title {
- margin-top: 10rpx;
max-width: 220rpx;
font-size: 24rpx;
- line-height: 1.4;
- color: #fff;
-
- // max-height: 68rpx; /* = line-height * 2(34rpx * 2)作为保险 */
+ font-weight: 600;
+ line-height: 1.3;
+ color: #ffffff;
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
+
+ /* 文本截断优化 */
display: -webkit-box;
-webkit-box-orient: vertical;
- -webkit-line-clamp: 2; /* 关键:显示两行,超过两行才省略 */
+ -webkit-line-clamp: 2;
overflow: hidden;
- word-break: break-word; /* 长单词也能断行 */
- white-space: normal; /* 允许换行 */
+ word-break: break-word;
+ white-space: normal;
}
-
}
}
diff --git a/pages/index/maintain.vue b/pages/index/maintain.vue
index 39951c6..0124816 100644
--- a/pages/index/maintain.vue
+++ b/pages/index/maintain.vue
@@ -80,7 +80,7 @@
-
+
@@ -170,7 +171,7 @@
{{ book.booksName }}
{{ book.categoryName }}/
-
+
{{ book.duration }}
@@ -190,7 +191,7 @@ export default{
memberBenefits: [],
userInfo: {
name: '战斗世界',
- avatar: '/static/默认头像.png'
+ avatar: '/static/default-avatar.png'
},
// 学习计划书籍数据
@@ -292,7 +293,7 @@ export default{
this.isLogin = false
this.userInfo = {
name: '登录后查看会员情况',
- avatar: '/static/默认头像.png'
+ avatar: '/static/default-avatar.png'
}
}
}
diff --git a/pages/index/test.vue b/pages/index/test.vue
index 8af9d05..c050fb5 100644
--- a/pages/index/test.vue
+++ b/pages/index/test.vue
@@ -62,7 +62,7 @@ export default {
},
{
name: 'img',
- attrs: { src: '/static/默认图片.png' }
+ attrs: { src: '/static/default-image.png' }
}
],
],
diff --git a/pages/index/user.vue b/pages/index/user.vue
index 0df21b4..565db28 100644
--- a/pages/index/user.vue
+++ b/pages/index/user.vue
@@ -24,7 +24,7 @@