diff --git a/pages.json b/pages.json
index ee39a7f..6406af3 100644
--- a/pages.json
+++ b/pages.json
@@ -12,18 +12,16 @@
"path": "pages/assistant/assistant",
"style": {
"navigationBarTitleText": "AI助手",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#64B5F6",
+ "navigationBarTextStyle": "white"
}
},
{
"path": "pages/assistant/knowledge",
"style": {
"navigationBarTitleText": "宠物知识库",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#81C784",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -54,9 +52,8 @@
"path": "pages/pets/add-pet",
"style": {
"navigationBarTitleText": "添加宠物",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -64,26 +61,23 @@
"style": {
"navigationBarTitleText": "添加记录",
"navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarTextStyle": "black"
}
},
{
"path": "pages/pets/pet-chat",
"style": {
"navigationBarTitleText": "AI聊天",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#64B5F6",
+ "navigationBarTextStyle": "white"
}
},
{
"path": "pages/pets/pet-chat-simple",
"style": {
"navigationBarTitleText": "AI聊天",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#64B5F6",
+ "navigationBarTextStyle": "white"
}
},
{
@@ -91,35 +85,47 @@
"style": {
"navigationBarTitleText": "添加记录",
"navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarTextStyle": "black"
}
},
{
"path": "pages/pets/add-record-simple",
"style": {
"navigationBarTitleText": "添加记录",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/pets/select-record-type",
+ "style": {
+ "navigationBarTitleText": "选择记录类型",
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "pages/pets/add-record-form",
+ "style": {
+ "navigationBarTitleText": "添加记录",
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
"path": "pages/pets/pet-records",
"style": {
"navigationBarTitleText": "宠物记录",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#FF8A80",
+ "navigationBarTextStyle": "white"
}
},
{
"path": "pages/pets/pet-timeline",
"style": {
"navigationBarTitleText": "成长时光",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
+ "navigationBarBackgroundColor": "#FFB74D",
+ "navigationBarTextStyle": "white"
}
},
{
diff --git a/pages/pets/add-record-form.vue b/pages/pets/add-record-form.vue
new file mode 100644
index 0000000..be51d64
--- /dev/null
+++ b/pages/pets/add-record-form.vue
@@ -0,0 +1,672 @@
+
+
+
+
+
+
+
+
+ 记录宠物
+
+ {{ petInfo.name || '选择宠物' }}
+
+
+
+
+
+
+
+
+ 记录时间
+
+ {{ recordForm.recordTime || '选择时间' }}
+
+
+
+
+
+
+
+
+
+ 记录类型
+
+ {{ getTypeName(recordType) || '选择记录类型' }}
+
+
+
+
+
+
+
+
+ 体重
+
+
+ kg
+
+
+
+
+
+
+
+ 食物类型
+
+
+
+
+
+
+ 食量
+
+
+ g
+
+
+
+
+
+
+
+ 饮水量
+
+
+ ml
+
+
+
+
+
+
+
+ 药物名称
+
+
+
+
+
+
+ 剂量
+
+
+
+
+
+
+
+
+
+ 描述
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 公开
+
+
+
+
+
+ 家人可见
+
+
+
+
+
+ 仅自己可见
+
+ {{ getShareLevelDesc() }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/pets/add-record-simple.vue b/pages/pets/add-record-simple.vue
index 0fb37c4..c841386 100644
--- a/pages/pets/add-record-simple.vue
+++ b/pages/pets/add-record-simple.vue
@@ -1,88 +1,90 @@
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
.add-record-container {
- background-color: #f8f9fa;
+ background: linear-gradient(135deg, #FF8A80 0%, #FFB6C1 25%, #FECFEF 50%, #F8BBD9 100%);
min-height: 100vh;
}
+.content-area {
+ padding-top: 20rpx;
+ padding-bottom: 40rpx;
+}
+
.category-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: 15px;
- margin-top: 10px;
+ gap: 20rpx;
}
.category-item {
display: flex;
flex-direction: column;
align-items: center;
- gap: 8px;
+ gap: 12rpx;
cursor: pointer;
+ transition: transform 0.2s ease;
+
+ &:active {
+ transform: scale(0.95);
+ }
}
.category-icon {
- width: 50px;
- height: 50px;
- border-radius: 25px;
- background-color: #f5f5f5;
+ width: 80rpx;
+ height: 80rpx;
+ border-radius: 40rpx;
+ background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
-
+
&.active {
- background-color: #ff6b6b;
+ background: #FF8A80;
}
}
@@ -280,31 +291,32 @@ export default {
.photo-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
- gap: 10px;
+ gap: 15rpx;
}
-
+
.photo-item {
position: relative;
-
+
.photo-delete {
position: absolute;
- top: -5px;
- right: -5px;
+ top: -8rpx;
+ right: -8rpx;
background-color: #ffffff;
border-radius: 50%;
+ box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
}
-
+
.photo-add {
- width: 80px;
- height: 80px;
- border: 2px dashed #cccccc;
- border-radius: 8px;
+ width: 140rpx;
+ height: 140rpx;
+ border: 2rpx dashed #cccccc;
+ border-radius: 12rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- gap: 5px;
+ gap: 8rpx;
}
}
@@ -312,14 +324,14 @@ export default {
.share-option {
display: flex;
align-items: center;
- gap: 15px;
- padding: 15px 0;
- border-bottom: 1px solid #f0f0f0;
-
+ gap: 20rpx;
+ padding: 20rpx 0;
+ border-bottom: 1rpx solid #f0f0f0;
+
&:last-child {
border-bottom: none;
}
-
+
.share-info {
flex: 1;
}
diff --git a/pages/pets/pet-chat.vue b/pages/pets/pet-chat.vue
index 34216e3..ee27eeb 100644
--- a/pages/pets/pet-chat.vue
+++ b/pages/pets/pet-chat.vue
@@ -1,20 +1,25 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/pages/pets/pet-detail.vue b/pages/pets/pet-detail.vue
index 5b46229..545190b 100644
--- a/pages/pets/pet-detail.vue
+++ b/pages/pets/pet-detail.vue
@@ -181,7 +181,7 @@ export default {
addRecord() {
uni.navigateTo({
- url: `/pages/pets/add-record-simple?petId=${this.petId}`
+ url: `/pages/pets/select-record-type?petId=${this.petId}`
})
},
diff --git a/pages/pets/pet-records.vue b/pages/pets/pet-records.vue
index 7d9311f..b889389 100644
--- a/pages/pets/pet-records.vue
+++ b/pages/pets/pet-records.vue
@@ -394,7 +394,7 @@ export default {
// 添加记录
const addRecord = () => {
uni.navigateTo({
- url: `/pages/pets/add-record-enhanced?petId=${state.petId}`
+ url: `/pages/pets/select-record-type?petId=${state.petId}`
})
}
diff --git a/pages/pets/pets.vue b/pages/pets/pets.vue
index 2aa0d2f..c89de6e 100644
--- a/pages/pets/pets.vue
+++ b/pages/pets/pets.vue
@@ -1,91 +1,122 @@
-
-
-
-
- 🐾 我的宠物
- {{ petsList.length }}只小可爱陪伴着你
+
+
+
-
-
-
- {{ totalRecords }}
- 记录
-
-
- {{ totalDays }}
- 陪伴天数
-
-
- {{ upcomingReminders }}
- 待办提醒
-
-
-
-
-
-
-
-