diff --git a/pages.json b/pages.json
index 037ad5b..037717d 100644
--- a/pages.json
+++ b/pages.json
@@ -1,145 +1,151 @@
-{
- "pages": [
- {
- "path": "pages/home/home",
- "style": {
- "navigationBarTitleText": "图书馆"
- }
- },
- {
- "path": "pages/search/search",
- "style": {
- "navigationBarTitleText": "图书检索"
- }
- },
- {
- "path": "pages/user/user",
- "style": {
- "navigationBarTitleText": "我的"
- }
- },
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTitleText": "登录"
- }
- },
- {
- "path": "pages/lendCar/lendCar",
- "style": {
- "navigationBarTitleText": "借阅清单"
- }
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8",
- "app-plus": {
- "background": "#efeff4"
- }
- },
- "tabBar":{
- "selectedColor": "#409EFF",
- "list": [{
- "pagePath": "pages/home/home",
- "text": "首页",
- "iconPath": "static/tab/shouye.png",
- "selectedIconPath": "static/tab/shouyeActive.png"
- },{
- "pagePath": "pages/search/search",
- "text": "搜索",
- "iconPath": "static/tab/search.png",
- "selectedIconPath": "static/tab/searchActive.png"
- },{
- "pagePath": "pages/lendCar/lendCar",
- "text": "借阅",
- "iconPath": "static/tab/order.png",
- "selectedIconPath": "static/tab/orderActive.png"
- },{
- "pagePath": "pages/user/user",
- "text": "我的",
- "iconPath": "static/tab/my.png",
- "selectedIconPath": "static/tab/myActive.png"
- }]
- },
- "subPackages": [
- {
- "root": "subpkg",
- "pages": [
- {
- "path": "pages/book-detail/book-detail",
- "style": {
- "navigationBarTitleText": "图书详情",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/book-list/book-list",
- "style": {
- "navigationBarTitleText": "图书列表"
- }
- },
- {
- "path": "pages/ranking/ranking",
- "style": {
- "navigationBarTitleText": "借阅排行榜"
- }
- },
- {
- "path": "pages/activity-list/activity-list",
- "style": {
- "navigationBarTitleText": "活动列表"
- }
- },
- {
- "path": "pages/activity-detail/activity-detail",
- "style": {
- "navigationBarTitleText": "活动详情"
- }
- },
- {
- "path": "pages/myLending/myLending",
- "style": {
- "navigationBarTitleText": "我的借阅",
- "enablePullDownRefresh": true, // 必须开启-下拉刷新需要
- "onReachBottomDistance": 100
- }
- },
- {
- "path": "pages/feedback/feedback",
- "style": {
- "navigationBarTitleText": "读者留言"
- }
- },
- {
- "path": "pages/reader-card/reader-card",
- "style": {
- "navigationBarTitleText": "读者证"
- }
- },
- {
- "path": "pages/feedback-list/feedback-list",
- "style": {
- "navigationBarTitleText": "读者留言"
- }
- },
- {
- "path": "pages/collect-list/collect-list",
- "style": {
- "navigationBarTitleText": "我的收藏",
- "enablePullDownRefresh": true, // 必须开启-下拉刷新需要
- "onReachBottomDistance": 100
- }
- },
- {
- "path": "pages/user-info/user-info",
- "style": {
- "navigationBarTitleText": "个人资料"
- }
- }
- ]
- }
- ]
-}
+{
+ "pages": [
+ {
+ "path": "pages/home/home",
+ "style": {
+ "navigationBarTitleText": "图书馆"
+ }
+ },
+ {
+ "path": "pages/search/search",
+ "style": {
+ "navigationBarTitleText": "图书检索"
+ }
+ },
+ {
+ "path": "pages/user/user",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
+ },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "登录"
+ }
+ },
+ {
+ "path": "pages/lendCar/lendCar",
+ "style": {
+ "navigationBarTitleText": "借阅清单"
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "uni-app",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8",
+ "app-plus": {
+ "background": "#efeff4"
+ }
+ },
+ "tabBar":{
+ "selectedColor": "#409EFF",
+ "list": [{
+ "pagePath": "pages/home/home",
+ "text": "首页",
+ "iconPath": "static/tab/shouye.png",
+ "selectedIconPath": "static/tab/shouyeActive.png"
+ },{
+ "pagePath": "pages/search/search",
+ "text": "搜索",
+ "iconPath": "static/tab/search.png",
+ "selectedIconPath": "static/tab/searchActive.png"
+ },{
+ "pagePath": "pages/lendCar/lendCar",
+ "text": "借阅",
+ "iconPath": "static/tab/order.png",
+ "selectedIconPath": "static/tab/orderActive.png"
+ },{
+ "pagePath": "pages/user/user",
+ "text": "我的",
+ "iconPath": "static/tab/my.png",
+ "selectedIconPath": "static/tab/myActive.png"
+ }]
+ },
+ "subPackages": [
+ {
+ "root": "subpkg",
+ "pages": [
+ {
+ "path": "pages/book-detail/book-detail",
+ "style": {
+ "navigationBarTitleText": "图书详情",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/book-list/book-list",
+ "style": {
+ "navigationBarTitleText": "图书列表"
+ }
+ },
+ {
+ "path": "pages/ranking/ranking",
+ "style": {
+ "navigationBarTitleText": "借阅排行榜"
+ }
+ },
+ {
+ "path": "pages/activity-list/activity-list",
+ "style": {
+ "navigationBarTitleText": "活动列表"
+ }
+ },
+ {
+ "path": "pages/activity-detail/activity-detail",
+ "style": {
+ "navigationBarTitleText": "活动详情"
+ }
+ },
+ {
+ "path": "pages/myLending/myLending",
+ "style": {
+ "navigationBarTitleText": "我的借阅",
+ "enablePullDownRefresh": true,
+ "onReachBottomDistance": 100
+ }
+ },
+ {
+ "path": "pages/feedback/feedback",
+ "style": {
+ "navigationBarTitleText": "读者留言"
+ }
+ },
+ {
+ "path": "pages/reader-card/reader-card",
+ "style": {
+ "navigationBarTitleText": "读者证"
+ }
+ },
+ {
+ "path": "pages/feedback-list/feedback-list",
+ "style": {
+ "navigationBarTitleText": "读者留言"
+ }
+ },
+ {
+ "path": "pages/feedback-detail/feedback-detail",
+ "style": {
+ "navigationBarTitleText": "留言详情"
+ }
+ },
+ {
+ "path": "pages/collect-list/collect-list",
+ "style": {
+ "navigationBarTitleText": "我的收藏",
+ "enablePullDownRefresh": true,
+ "onReachBottomDistance": 100
+ }
+ },
+ {
+ "path": "pages/user-info/user-info",
+ "style": {
+ "navigationBarTitleText": "个人资料"
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/pages/home/home.vue b/pages/home/home.vue
index dfcab45..dd06039 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -337,7 +337,7 @@ export default {
goToBookDetail(item) {
// 把整个图书对象 转成字符串 带过去
uni.navigateTo({
- url: "/subpkg/pages/book-detail/book-detail?bookData=" + encodeURIComponent(JSON.stringify(item))
+ url: "/subpkg/pages/book-detail/book-detail?bookData=" + encodeURIComponent(JSON.stringify(item)) + "&fromRecommend=true"
})
},
@@ -397,7 +397,7 @@ export default {
});
},
toFeedback() {
- this.checkBindAndNavigate("/subpkg/pages/feedback-list/feedback-list", "请您绑定读者证");
+ this.checkBindAndNavigate("/subpkg/pages/feedback/feedback", "请您绑定读者证");
},
// 去借阅证列表页
toLibraryCard() {
diff --git a/pages/user/user.vue b/pages/user/user.vue
index 53d56fb..60942c8 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -185,29 +185,7 @@ export default {
}
});
});
- },
-
- toLogOut() {
- uni.showModal({
- title: '确认退出',
- content: '确定要退出当前账号吗?',
- success: (res) => {
- if (res.confirm) {
- uni.removeStorageSync(USER_KEY);
- uni.removeStorageSync(STORAGE_KEYS.READER_CARD_LIST);
- uni.removeStorageSync(STORAGE_KEYS.CURRENT_READER_CARD);
-
- this.userInfo = {};
- this.cardNo = "";
- this.isBindLibraryCard = false;
- this.base64Img = "";
-
- uni.showToast({ title: '退出成功', icon: 'success' });
- uni.switchTab({ url: "/pages/home/home" });
- }
- }
- });
- },
+ }
}
}
diff --git a/subpkg/pages/activity-detail/activity-detail.vue b/subpkg/pages/activity-detail/activity-detail.vue
index 39a84b1..7d59248 100644
--- a/subpkg/pages/activity-detail/activity-detail.vue
+++ b/subpkg/pages/activity-detail/activity-detail.vue
@@ -15,7 +15,10 @@
- 活动介绍/回顾
+ 活动介绍/回顾
+
+
+
@@ -25,12 +28,12 @@
分享
-
-
- `,
- status: 0,
+ `,
+ status: 1,
location: "葛店经开区图书馆",
},
{
imgUrl: "https://mmbiz.qpic.cn/sz_mmbiz_jpg/tuyGibvSXrsqmHJvND8QQFHPDaFEuGGqaNgVvjEO7tqBziaqlcz5bURSyNd4DoKxcD41LWIDComEbUm25pBA86ibeN45zvoPAzDJzaoxayyicMc/640?wx_fmt=jpeg&from=appmsg#imgIndex=22",
title: "别让肥胖偷走健康,馆藏好书为健康支招",
time: "2026-05-11 09:00 ~ 2026-05-11 17:30",
- content: `
-
-
- 5月11日,是专为对抗肥胖问题设立的世界防治肥胖日。当“5·11”谐音成“我要瘦”,这简单的三个字背后,藏着的是全球超20亿超重或肥胖人群的健康焦虑。肥胖早已不是“体态丰满”的小事,而是被世界卫生组织列为十大慢性疾病之一的公共卫生危机。今天,就让我们一起科学认识肥胖,把健康主动权握在自己手中。
-
+ localImg: "images/activity2.png",
+ content: `5月11日,是专为对抗肥胖问题设立的世界防治肥胖日。当“5·11”谐音成“我要瘦”,这简单的三个字背后,藏着的是全球超20亿超重或肥胖人群的健康焦虑。肥胖早已不是“体态丰满”的小事,而是被世界卫生组织列为十大慢性疾病之一的公共卫生危机。今天,就让我们一起科学认识肥胖,把健康主动权握在自己手中。
为什么你拼命运动还是瘦不下来?为什么你严格节食却依旧反弹?为什么别人轻松减肥,你却举步维艰?其实,减肥不是一场靠意志力硬撑的战争,而是一场需要科学指导的持久战。想要打破减肥僵局,不妨从阅读专业的减肥书籍开始。今天,葛店经开区图书馆就为你推荐几本靠谱的减肥好书,帮你重塑身材,拥抱健康生活。
-
https://mmbiz.qpic.cn/sz_mmbiz_jpg/tuyGibvSXrsoXfmjrjPs3sDmOmIkx7LSHA7bMdkNGvbVDdyN7AywSXk8hfL2Z0S0bv9S6NUSxuYngZnyRGXff2gmvuUn89iaxHfPxVQyNLLZg/640?wx_fmt=jpeg&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=16
-
ISBN:
978-7-5337-9035-6
@@ -147,9 +165,7 @@ export default {
内容简介:
本书分为五个篇章, 包括认知篇、饮食营养篇、心理篇、运动篇, 以及特殊人群篇。这五个篇章涵盖了超重和肥胖人群的体重管理, 以及消瘦人群的体重管理, 旨在为读者提供全面、科学的体重管理指导。
-
https://mmbiz.qpic.cn/mmbiz_jpg/tuyGibvSXrso5oZu6lfdRoV4n8qqp55JYqOh44UrIiaicPHbnicIk8C7QVoCGiaNZXZXByXUWo7WqgiaBhGXztdZtYnC0ps8SYHjiaV9PKY8X6iaPqQ/640?wx_fmt=jpeg&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=17
-
ISBN:
978-7-5001-7513-1
@@ -158,10 +174,7 @@ export default {
内容简介:
本书主要内容: 身体重置计划不需要节食、不需要有禁食窗口期, 无关饮食热量限制或其他时髦的花招。它包含六大简单的操作技巧, 是为生活在现实世界中的真实成年人设计, 帮助成年人通过饮食实现健康生活, 甚至逆龄生态。书中内容非常易于操作和可持续, 不需要很多额外的餐饮动作, 是一套详尽、有效、丰富的餐饮为主, 配合适当运动的综合性身体调节计划。
-
-
https://mmbiz.qpic.cn/sz_mmbiz_jpg/tuyGibvSXrspsqSQqHXGWtMUuLeKD7y1hJ0gDBqpBNJlRCMyPoZwjB8HN1chbl13zcQEIiaVBbrsRdnznThGze0EDQtfQyKen282oFUunVzB0/640?wx_fmt=jpeg&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=18
-
ISBN:
978-7-5532-1045-2
@@ -170,60 +183,39 @@ export default {
内容简介:
作者谢佳妤在整理其奶奶李瑞芬遗稿的基础上,用年轻化的语言讲述了饮食与健康的关系,说明了各种常见的营养素的作用和正确进行食物搭配的方法,有助于读者学会科学选择食物、理性对待食物,养成均衡饮食、合理膳食的习惯。
-
-
很多人觉得“胖点没关系,看着富态”,但医学研究早已证实,肥胖是多种疾病的“共同土壤”。它就像一颗埋在身体里的定时炸弹,随时可能引爆健康危机:
-
https://mmbiz.qpic.cn/sz_mmbiz_png/tuyGibvSXrsoGIHpwHdfEr7sM6Ldqd4YjPwaYBBeFc2CRickibceCwIEXIopOCO6HWMIagYQkEwApf42cYxPUbdUqT3d2rFudibJcM53n3wTG0Q/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=20
-
1.代谢系统紊乱:
-
约80%的2型糖尿病患者伴有超重或肥胖,内脏脂肪释放的炎症因子会干扰胰岛素信号,让身体对胰岛素“失灵”,血糖随之失控。此外,肥胖还会诱发痛风、高脂血症,让血液变成浓稠的“油脂汤”。
-
2.心血管不堪重负:
-
肥胖者患高血压的风险比正常人高60%,冠心病风险更是高出2-3倍。腹部堆积的脂肪会压迫血管,加速动脉粥样硬化,心梗、中风等急性心血管事件的发生率也随之飙升。
-
https://mmbiz.qpic.cn/sz_mmbiz_jpg/tuyGibvSXrsqmHJvND8QQFHPDaFEuGGqaNgVvjEO7tqBziaqlcz5bURSyNd4DoKxcD41LWIDComEbUm25pBA86ibeN45zvoPAzDJzaoxayyicMc/640?wx_fmt=jpeg&from=appmsg#imgIndex=22
-
3.癌症风险飙升:
-
国际癌症研究机构确认,肥胖与至少13种癌症相关。其中,子宫内膜癌风险增加6倍,食管腺癌、肝癌、肾癌等发病概率也显著上升。脂肪组织分泌的异常激素,会持续刺激细胞变异,为癌症埋下隐患。
-
4.生活质量直线下降:
-
体重每增加5公斤,膝关节骨关节炎风险上升36%;重度肥胖者中,阻塞性睡眠呼吸暂停综合征患病率超70%,每晚都在“缺氧”中挣扎。更不用提肥胖带来的自卑、抑郁等心理问题,让很多人在社交中抬不起头。
-
-
-
https://mmbiz.qpic.cn/mmbiz_png/tuyGibvSXrsroDeiawZ9ApdibzQc2ZXAp8u1JSsViciaibwfIupY4VTpIets2AoEY87dfbKIS8cuDeR7icLqBGNSUkV8nCA3fmyLDw2hH7dtdWK5FE/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=29
提到减肥,很多人第一反应就是“节食”“吃减肥药”,但这些极端方法往往伤身又反弹。真正的科学减重,是建立健康的生活方式,让身体慢慢回归平衡。
-
-
1.不是“饿肚子”,是“会吃饭”
控制总能量,合理分配:先根据“身高(cm)-105”算出理想体重,再按每天每公斤理想体重15-35kcal计算总能量(轻体力劳动者选20-25kcal)。将一日三餐能量按3:4:3分配,早餐吃好、午餐吃饱、晚餐吃少。
https://mmbiz.qpic.cn/mmbiz_png/tuyGibvSXrsobpIdpicy3GeZ9HxuWwQCKqAr85ibIHfZKGFAsgewVSrh6fwI04vlJGAOBgiaRB5eyp4HHo4NJ3wWiberXHvke4LGs6hnKupzqPqk/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=31
-
拒绝“高热量陷阱”:少吃油炸食品、含糖糕点、肥肉等高能量食物,这些食物往往一口就占了半天的能量配额。多吃全谷物、蔬菜、优质蛋白,比如燕麦、西兰花、鸡胸肉,它们能带来更强的饱腹感,还能保证营养均衡。
https://mmbiz.qpic.cn/sz_mmbiz_png/tuyGibvSXrsq1ypaFcwARIlrCXTqibKZcjwozFc9JlKTap25kzbxY7a8Fk7l5ibLxibKN7bTIak0logVmTGR48N9xHz3NF1nL7gxXZ6MncFvGt8/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=32
养成健康进食习惯:细嚼慢咽,每口饭嚼20次以上;定时定量进餐,不吃夜宵;用小盘子盛饭,避免“眼大肚小”吃撑自己。
2. 动起来,让脂肪“动”起来
-
有氧运动为主,抗阻运动为辅:每周进行150-300分钟中等强度有氧运动,比如快走、慢跑、游泳,每次30分钟以上,能有效燃烧脂肪。每周再安排2-3次抗阻运动,举哑铃、做平板支撑都可以,增加肌肉量能提高基础代谢,让你躺着也能消耗更多能量。
https://mmbiz.qpic.cn/mmbiz_png/tuyGibvSXrsp64a3In2BKHfQQHEIkDIUSjCklsbETfrcRkHyd35fW3OUYZeibpJHRE6zicbicSf94DIics1vP9b27o1GPH7X2rQkk0wh8bNNaicoQ/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=34
打破“久坐魔咒”:每坐1小时就起身活动3-5分钟,伸伸懒腰、倒杯水、走两步,每天的零碎时间加起来,也是一笔不小的“运动财富”。
-
3.小习惯,大改变
-
睡够7小时:睡眠不足会导致瘦素分泌减少、饥饿素分泌增加,让你忍不住想吃高糖高脂食物。尽量在晚上11点前入睡,给身体足够的修复时间。
https://mmbiz.qpic.cn/mmbiz_png/tuyGibvSXrspLUJPiaZuP1eAZXWjyNyGeKLNgnXibwich4xnqgQJjXcyxCIickVWr8ibsmnEmTUx2JuwARYWxDR3yW2ibIJX2O3RzSic3xT3RNlkwaA/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=35
https://mmbiz.qpic.cn/sz_mmbiz_png/tuyGibvSXrsqKnXiak3cs5BPILA59JRapTCkFBycZ0SYdzxBQ1LMnqkXicWZiaNiaYPsTyZ9S1wBOyuv0j24v6pbyjWIO2p8Ue42LWckMYWuaSrs/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=36
@@ -231,17 +223,14 @@ export default {
https://mmbiz.qpic.cn/mmbiz_png/tuyGibvSXrsoGPLDZ7l26cKDDac6BewgQuZiaic4M5Rk052cibY1OYBiaE9G46QAIEeCdSZN58usFVWMIto6dcz2lxg04ksYRaECazibulFu9pjf4/640?wx_fmt=png&from=appmsg&tp=webp&wxfrom=5&wx_lazy=1#imgIndex=37
定期监测体重:每周固定时间称一次体重,比如每周一早上空腹称重,及时调整饮食和运动计划,避免体重“悄悄失控”。
-
-
-
+
每个人
从自己做起
主动学习健康知识
管住嘴
迈开腿
用实际行动对抗肥胖
-
- `,
+ `,
status: 0,
location: "葛店经开区图书馆",
}
@@ -250,19 +239,16 @@ export default {
}, 300);
},
- // 下拉刷新
onRefresh() {
this.getActivityList();
},
- // 跳转详情
toActivityDetail(item) {
if (item.link) {
uni.navigateTo({
url: '/subpkg/pages/webview/webview?url=' + encodeURIComponent(item.link)
});
} else {
- // 无外链 → 跳原详情页
uni.navigateTo({
url: "/subpkg/pages/activity-detail/activity-detail?item=" + encodeURIComponent(JSON.stringify(item))
});
@@ -274,13 +260,48 @@ export default {
\ No newline at end of file
+
diff --git a/subpkg/pages/book-detail/book-detail.vue b/subpkg/pages/book-detail/book-detail.vue
index f735a9c..cfdf59a 100644
--- a/subpkg/pages/book-detail/book-detail.vue
+++ b/subpkg/pages/book-detail/book-detail.vue
@@ -1,5 +1,5 @@
-
+
@@ -12,7 +12,7 @@
-
分享
-
+
{{ isCollected ? '已收藏' : '收藏' }}
@@ -108,8 +108,9 @@ export default {
isCollected: false,
bookrecno: '',
opacUrl: '',
- bookInfo: {}, // 图书基础信息(biblios)
- holdingsData: [], // 馆藏列表(holdings)
+ fromRecommend: false,
+ bookInfo: {},
+ holdingsData: [],
};
},
onLoad(options) {
@@ -118,7 +119,7 @@ export default {
const bookData = JSON.parse(decodeURIComponent(options.bookData));
this.bookInfo = bookData;
this.bookrecno = bookData.bookrecno || "";
- // 没有馆藏数据就置空
+ this.fromRecommend = options.fromRecommend === 'true';
this.holdingsData = [];
this.checkCollectStatus();
return;
@@ -126,6 +127,7 @@ export default {
// 2. 检索页只传 bookrecno,请求接口拿详情
this.bookrecno = options.bookrecno || "";
+ this.fromRecommend = false;
this.getOpacUrl();
},
computed: {
@@ -160,7 +162,7 @@ export default {
// 获取图书详情(适配新接口结构)
async getBookDetail() {
if (!this.bookrecno || !this.opacUrl) return;
-
+
uni.showLoading({ title: '加载中...' });
try {
const params = {
@@ -169,7 +171,7 @@ export default {
};
const res = await FetchFindbookByQuery(params);
console.log('bookrecno详情',res);
-
+
const apiData = res.data || {};
this.bookInfo = apiData.biblios || {};
console.log('bookrecno-bookInfo详情',this.bookInfo);
@@ -366,4 +368,4 @@ export default {
.detail-bottom{
justify-content: space-around;
}
-
\ No newline at end of file
+
diff --git a/subpkg/pages/book-list/book-list.vue b/subpkg/pages/book-list/book-list.vue
index 64dd901..a6e7529 100644
--- a/subpkg/pages/book-list/book-list.vue
+++ b/subpkg/pages/book-list/book-list.vue
@@ -73,7 +73,6 @@ export default {
this.getBookRecommendList();
},
- // 获取列表 + 挨个依次加载图片
async getBookRecommendList() {
this.loading = true;
try {
@@ -110,7 +109,7 @@ export default {
// 加载当前这张
const url = this.baseUrl + '/api/fileRelevant/getImg?imgType=2&imgId=' + item.imgPath;
const base64 = await this.urlToBase64(url);
-
+
if (base64) {
item.base64Cover = base64;
this.$set(this.bookList, i, item); // 强制更新视图
@@ -120,7 +119,7 @@ export default {
goToDetail(item) {
uni.navigateTo({
- url: "/subpkg/pages/book-detail/book-detail?bookData=" + encodeURIComponent(JSON.stringify(item))
+ url: "/subpkg/pages/book-detail/book-detail?bookData=" + encodeURIComponent(JSON.stringify(item)) + "&fromRecommend=true"
})
},
}
@@ -146,4 +145,4 @@ export default {
font-size: 14px;
color: #999;
}
-
\ No newline at end of file
+
diff --git a/subpkg/pages/collect-list/collect-list.vue b/subpkg/pages/collect-list/collect-list.vue
index f5d7edf..89a27f6 100644
--- a/subpkg/pages/collect-list/collect-list.vue
+++ b/subpkg/pages/collect-list/collect-list.vue
@@ -1,73 +1,25 @@
-
- 图书
- 活动
-
-
-
-
-
-
-
- 暂无收藏的图书~
-
-
-
-
- {{ item.title }}
-
-
-
-
- 没有更多数据了
-
+
+
+ 暂无收藏的图书~
-
-
-
-
-
- 暂无收藏的活动~
-
-
-
-
-
-
- {{ item.title }}
-
-
- {{ item.time }}
-
-
-
- {{ item.status === 1 ? '立即参加' : '活动结束' }}
-
-
-
-
-
-
- 没有更多数据了
+
+
+
+ {{ item.title }}
+
+
+ 没有更多数据了
+
@@ -76,41 +28,20 @@
export default {
data() {
return {
- activeTab: 1,
isLoading: false,
noMore: false,
pageNum: 1,
pageSize: 5,
bookCollectList: [
- // { isbn: '9787544741110', title: '人工智能基础——数学知识', cover: 'https://qiniu.aiyxlib.com/1606124577077' },
- // { isbn: '9787539938032', title: 'Vim 8文本处理实战', cover: 'https://qiniu.aiyxlib.com/1606178450151' },
- // { isbn: '9787536692930', title: 'Oracle从入门到精通', cover: 'https://qiniu.aiyxlib.com/1606123986028' }
+ { isbn: '9787544741110', title: '人工智能基础——数学知识', cover: 'https://qiniu.aiyxlib.com/1606124577077' },
+ { isbn: '9787539938032', title: 'Vim 8文本处理实战', cover: 'https://qiniu.aiyxlib.com/1606178450151' },
+ { isbn: '9787536692930', title: 'Oracle从入门到精通', cover: 'https://qiniu.aiyxlib.com/1606123986028' }
],
-
- allActivityList: [
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '读书分享会', time: "2025-11-03 ~2025-11-09", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '作者见面会', time: "2025-11-03 ~2025-11-09", status: 0 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '新书签售会', time: "2025-11-05 ~2025-11-10", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '文学讲座', time: "2025-11-06 ~2025-11-12", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '亲子阅读日', time: "2025-11-07 ~2025-11-13", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '书法展览', time: "2025-11-08 ~2025-11-14", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '诗词大会', time: "2025-11-09 ~2025-11-15", status: 0 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '绘本故事', time: "2025-11-10 ~2025-11-16", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '读书打卡', time: "2025-11-11 ~2025-11-17", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '作家访谈', time: "2025-11-12 ~2025-11-18", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '文化沙龙', time: "2025-11-13 ~2025-11-19", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '手工创作', time: "2025-11-14 ~2025-11-20", status: 0 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '经典诵读', time: "2025-11-15 ~2025-11-21", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '图书交换', time: "2025-11-16 ~2025-11-22", status: 1 },
- // { imgUrl: "https://qiniu.aiyxlib.com/1605060269830", title: '阅读竞赛', time: "2025-11-17 ~2025-11-23", status: 1 },
- ],
- activityCollectList: [],
}
},
onLoad() {
- this.initActivityList() // 只初始化一次活动列表
},
onPullDownRefresh() {
@@ -119,52 +50,28 @@ export default {
onReachBottom() {
if (this.noMore || this.isLoading) return
- this.loadMore() // 这里只调用“追加”,不刷新
+ this.loadMore()
},
methods: {
- switchTab(tab) {
- this.activeTab = tab
- // 切Tab不重置活动列表,避免闪屏
- },
-
- // 初始化第一页(进入页面/下拉刷新用)
- initActivityList() {
- this.pageNum = 1
- this.noMore = false
- this.activityCollectList = this.allActivityList.slice(0, this.pageSize)
- this.noMore = this.allActivityList.length <= this.pageSize
- },
-
refreshData() {
this.isLoading = true
setTimeout(() => {
- // 图书重置
this.bookCollectList = [
{ isbn: '9787544741110', title: '人工智能基础——数学知识', cover: 'https://qiniu.aiyxlib.com/1606124577077' },
{ isbn: '9787539938032', title: 'Vim 8文本处理实战', cover: 'https://qiniu.aiyxlib.com/1606178450151' },
{ isbn: '9787536692930', title: 'Oracle从入门到精通', cover: 'https://qiniu.aiyxlib.com/1606123986028' }
]
- // 活动回到第一页
- this.initActivityList()
this.isLoading = false
uni.stopPullDownRefresh()
}, 500)
},
- // 上拉加载
loadMore() {
this.isLoading = true
this.pageNum++
setTimeout(() => {
- const start = (this.pageNum - 1) * this.pageSize
- const end = this.pageNum * this.pageSize
- const newArr = this.allActivityList.slice(start, end)
-
- if (newArr.length) {
- this.activityCollectList = [...this.activityCollectList, ...newArr]
- }
- this.noMore = this.allActivityList.length <= end
+ this.noMore = true
this.isLoading = false
}, 500)
},
@@ -172,57 +79,20 @@ export default {
goToBookDetail(item) {
uni.navigateTo({ url: "/subpkg/pages/book-detail/book-detail?isbn=" + item.isbn })
},
- toActivityDetail(item) {
- uni.navigateTo({ url: "/subpkg/pages/activity-detail/activity-detail?title=" + item.title })
- },
},
}
\ No newline at end of file
+
diff --git a/subpkg/pages/feedback-detail/feedback-detail.vue b/subpkg/pages/feedback-detail/feedback-detail.vue
new file mode 100644
index 0000000..46a93f9
--- /dev/null
+++ b/subpkg/pages/feedback-detail/feedback-detail.vue
@@ -0,0 +1,87 @@
+
+
+
+ {{ detail.subject }}
+ {{ detail.content }}
+ {{ detail.createTime }}
+
+
+
+ 馆方回复
+ {{ detail.reply }}
+ 未回复
+
+
+
+
+
+
+
diff --git a/subpkg/pages/feedback-list/feedback-list.vue b/subpkg/pages/feedback-list/feedback-list.vue
index f12c210..928ef1c 100644
--- a/subpkg/pages/feedback-list/feedback-list.vue
+++ b/subpkg/pages/feedback-list/feedback-list.vue
@@ -1,53 +1,24 @@
-
-
-
暂无留言
-
-
-
-
-
-
- {{ item.nickname }}
-
-
-
-
-
- {{ item.likeNum }}
-
-
-
-
- {{ item.content }}
+ {{ item.subject }}
{{ item.createTime }}
-
-
-
- 写留言
+
+ 去留言
@@ -56,20 +27,41 @@
export default {
data() {
return {
- feedbackList: [] // 测试空数据
+ feedbackList: [
+ {
+ id: 1,
+ subject: '建议增加更多儿童绘本',
+ content: '图书馆的儿童区绘本种类不够丰富,希望能增加更多适合3-6岁儿童的绘本读物。',
+ createTime: '2026-05-10 14:30',
+ reply: '感谢您的建议!我们已将增加儿童绘本纳入采购计划,预计下季度会新增500余册绘本。'
+ },
+ {
+ id: 2,
+ subject: '自习室空调温度过低',
+ content: '最近自习室空调开得太冷了,希望能适当调高温度,或者提供毯子。',
+ createTime: '2026-05-08 09:15',
+ reply: ''
+ },
+ {
+ id: 3,
+ subject: '希望延长周末开放时间',
+ content: '周末很多人想来看书,但是下午5点就关门了,希望能够延长到晚上8点。',
+ createTime: '2026-05-05 16:45',
+ reply: '您的建议已收悉,我们正在研究调整开放时间的可行性,感谢支持。'
+ }
+ ]
};
},
methods: {
- likeComment(index) {
- const item = this.feedbackList[index];
- item.isLike ? item.likeNum-- : item.likeNum++;
- item.isLike = !item.isLike;
- },
-
goWriteComment() {
uni.navigateTo({
url: '/subpkg/pages/feedback/feedback'
});
+ },
+ goDetail(item) {
+ uni.navigateTo({
+ url: '/subpkg/pages/feedback-detail/feedback-detail?item=' + encodeURIComponent(JSON.stringify(item))
+ });
}
}
};
@@ -81,14 +73,12 @@ export default {
min-height: 100vh;
}
-/* 留言列表 */
.feedback-list {
height: calc(100vh - 80px);
overflow-y: scroll;
padding: 10px;
}
-/* 空状态 */
.empty-box {
display: flex;
flex-direction: column;
@@ -99,7 +89,6 @@ export default {
font-size: 15px;
}
-/* 单条留言 */
.feedback-item {
background-color: #fff;
border-radius: 8px;
@@ -108,49 +97,14 @@ export default {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
-.feedback-item-top {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10px;
-}
-
-.user-info {
- display: flex;
- align-items: center;
-}
-
-.avatar {
- width: 30px;
- height: 30px;
- border-radius: 50%;
- margin-right: 8px;
-}
-
-.username {
- font-size: 14px;
- color: #333;
- font-weight: 500;
-}
-
-.like-box {
- display: flex;
- align-items: center;
-}
-
-.like-count {
- font-size: 12px;
- color: #999;
- margin-left: 4px;
-}
-
.feedback-content {
line-height: 1.6;
}
-.content-text {
- font-size: 14px;
- color: #555;
+.subject {
+ font-size: 15px;
+ font-weight: bold;
+ color: #333;
display: block;
margin-bottom: 8px;
}
@@ -158,6 +112,8 @@ export default {
.create-time {
font-size: 12px;
color: #999;
+ display: block;
+ text-align: right;
}
.write-btn-box {
@@ -169,10 +125,10 @@ export default {
}
.write-btn {
- background-color: #007aff;
+ background-color: #01a4fe;
color: #fff;
border-radius: 25px;
font-size: 14px;
padding: 4px 0;
}
-
\ No newline at end of file
+
diff --git a/subpkg/pages/feedback/feedback.vue b/subpkg/pages/feedback/feedback.vue
index 1e6b444..3fbb4c5 100644
--- a/subpkg/pages/feedback/feedback.vue
+++ b/subpkg/pages/feedback/feedback.vue
@@ -1,86 +1,245 @@
-
-
diff --git a/subpkg/pages/reader-card/reader-card.vue b/subpkg/pages/reader-card/reader-card.vue
index 0e384b2..6e29232 100644
--- a/subpkg/pages/reader-card/reader-card.vue
+++ b/subpkg/pages/reader-card/reader-card.vue
@@ -225,7 +225,7 @@ export default {
if (this.cardList.length === 0) {
clearReaderCardCache();
- setTimeout(() => uni.navigateBack(), 1500);
+ setTimeout(() => uni.navigateBack(), 1000);
}
}
} catch (err) {