From da67ef62140f98e4a3609cc8eb5e6f9122af29f9 Mon Sep 17 00:00:00 2001
From: yvan <8574526@qq.com>
Date: Wed, 13 Aug 2025 15:40:19 +0800
Subject: [PATCH] 1
---
pages.json | 24 ++--
pages/adoption/adoption.vue | 180 +++++++++++++++++++++++----
pages/assistant/knowledge.vue | 95 +++++++++++---
pages/pets/add-pet.vue | 22 ++--
pages/pets/health-charts.vue | 2 +-
pages/pets/pet-detail.vue | 68 +++++++---
pages/pets/pet-records.vue | 69 +++++++---
pages/pets/pet-timeline.vue | 51 +++++++-
pages/profile/profile.vue | 75 ++++++-----
prompts/宠物小程序开发助手_优化版.md | 1 -
10 files changed, 458 insertions(+), 129 deletions(-)
diff --git a/pages.json b/pages.json
index 2781a06..a377273 100644
--- a/pages.json
+++ b/pages.json
@@ -20,7 +20,7 @@
"path": "pages/assistant/knowledge",
"style": {
"navigationBarTitleText": "宠物知识库",
- "navigationBarBackgroundColor": "#81C784",
+ "navigationBarBackgroundColor": "#FF8A80",
"navigationBarTextStyle": "white"
}
},
@@ -28,16 +28,16 @@
"path": "pages/adoption/adoption",
"style": {
"navigationBarTitleText": "领养专区",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
"path": "pages/profile/profile",
"style": {
"navigationBarTitleText": "我的",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -60,8 +60,8 @@
"path": "pages/pets/add-record",
"style": {
"navigationBarTitleText": "添加记录",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
@@ -77,8 +77,8 @@
"path": "pages/pets/add-record-enhanced",
"style": {
"navigationBarTitleText": "添加记录",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -117,7 +117,7 @@
"path": "pages/pets/pet-timeline",
"style": {
"navigationBarTitleText": "成长时光",
- "navigationBarBackgroundColor": "#FFB74D",
+ "navigationBarBackgroundColor": "#FF8A80",
"navigationBarTextStyle": "white"
}
},
@@ -125,7 +125,7 @@
"path": "pages/pets/health-charts",
"style": {
"navigationBarTitleText": "健康档案",
- "navigationBarBackgroundColor": "#81C784",
+ "navigationBarBackgroundColor": "#FF8A80",
"navigationBarTextStyle": "white"
}
},
@@ -133,7 +133,7 @@
"path": "pages/pets/pet-personality",
"style": {
"navigationBarTitleText": "性格预设",
- "navigationBarBackgroundColor": "#64B5F6",
+ "navigationBarBackgroundColor": "#FF8A80",
"navigationBarTextStyle": "white"
}
},
diff --git a/pages/adoption/adoption.vue b/pages/adoption/adoption.vue
index bf18915..55a85e0 100644
--- a/pages/adoption/adoption.vue
+++ b/pages/adoption/adoption.vue
@@ -1,12 +1,11 @@
-
-
-
-
-
-
-
+
+
+
+ 发布
+
+
-
+
-
+
+
+
-
-
-
+ {{ pet.name }}
+ {{ pet.breed }} · {{ pet.age }}岁 · {{ pet.gender }}
+ {{ pet.location }}
-
+
+ {{ pet.status }}
+
-
-
+
+ 联系
-
+
@@ -136,45 +139,172 @@ export default {
diff --git a/pages/assistant/knowledge.vue b/pages/assistant/knowledge.vue
index e6fa32c..83b1747 100644
--- a/pages/assistant/knowledge.vue
+++ b/pages/assistant/knowledge.vue
@@ -1,24 +1,26 @@
-
-
-
+
+
+
-
+
-
-
+ {{ item.title }}
+ {{ item.summary }}
-
-
+
+ {{ item.category }}
+
+ {{ item.readCount }}次阅读
-
+
@@ -86,10 +88,6 @@ export default {
}
},
methods: {
- goBack() {
- uni.navigateBack()
- },
-
switchCategory(item) {
this.currentCategory = item.index
},
@@ -109,25 +107,90 @@ export default {
diff --git a/pages/pets/add-pet.vue b/pages/pets/add-pet.vue
index f152b59..5bd604a 100644
--- a/pages/pets/add-pet.vue
+++ b/pages/pets/add-pet.vue
@@ -1,7 +1,5 @@
-
-
@@ -104,10 +102,6 @@ export default {
}
},
methods: {
- goBack() {
- uni.navigateBack()
- },
-
chooseAvatar() {
uni.chooseImage({
count: 1,
@@ -188,7 +182,7 @@ export default {
diff --git a/pages/pets/health-charts.vue b/pages/pets/health-charts.vue
index 64d3577..dccbe25 100644
--- a/pages/pets/health-charts.vue
+++ b/pages/pets/health-charts.vue
@@ -372,7 +372,7 @@ export default {