diff --git a/TUICallKit-Vue3/pages.json b/TUICallKit-Vue3/pages.json
index 100b8395..fd67dba7 100644
--- a/TUICallKit-Vue3/pages.json
+++ b/TUICallKit-Vue3/pages.json
@@ -143,10 +143,10 @@
{
"path": "pages/index",
"style": {
- "navigationBarTitleText": "日常记录",
- "navigationBarBackgroundColor": "#0ea5a4",
+ "navigationBarTitleText": "血糖记录",
+ "navigationBarBackgroundColor": "#204e2b",
"navigationBarTextStyle": "white",
- "backgroundColor": "#f1f5f9",
+ "backgroundColor": "#faf9f5",
"enablePullDownRefresh": true,
"mp-weixin": {
"usingPlugins": {
@@ -157,6 +157,16 @@
}
}
}
+ },
+ {
+ "path": "pages/more",
+ "style": {
+ "navigationBarTitleText": "日常护理",
+ "navigationBarBackgroundColor": "#204e2b",
+ "navigationBarTextStyle": "white",
+ "backgroundColor": "#faf9f5",
+ "enablePullDownRefresh": true
+ }
}
]
}
diff --git a/TUICallKit-Vue3/pages/Card/edit_card.vue b/TUICallKit-Vue3/pages/Card/edit_card.vue
index daaddd2e..93c9a970 100644
--- a/TUICallKit-Vue3/pages/Card/edit_card.vue
+++ b/TUICallKit-Vue3/pages/Card/edit_card.vue
@@ -778,6 +778,7 @@ const showDatePicker = ref(false)
const diagnosisId = ref(null)
const patientId = ref(null)
const isAddMode = ref(false) // 新建模式
+const returnUrl = ref('') // 保存成功后跳回(如日常记录页)
// 表单数据
const formData = ref({
@@ -1023,6 +1024,13 @@ const loadCardDetail = async () => {
const options = currentPage.options || {}
diagnosisId.value = options.id
isAddMode.value = options.add === '1' || options.add === 1
+ if (options.returnUrl) {
+ try {
+ returnUrl.value = decodeURIComponent(String(options.returnUrl))
+ } catch (e) {
+ returnUrl.value = String(options.returnUrl)
+ }
+ }
const userData = uni.getStorageSync('userData')
patientId.value = userData?.diagnosis?.patient_id
@@ -1302,7 +1310,12 @@ const submitForm = async () => {
}
uni.showToast({ title: isAddMode.value ? '创建成功' : '保存成功', icon: 'success' })
setTimeout(() => {
- uni.navigateBack()
+ const back = returnUrl.value
+ if (back && back.startsWith('/')) {
+ uni.redirectTo({ url: back })
+ } else {
+ uni.navigateBack()
+ }
}, 1500)
} else {
uni.showToast({ title: res.msg || '保存失败', icon: 'none' })
diff --git a/TUICallKit-Vue3/tongji/components/CelebrateBurst.vue b/TUICallKit-Vue3/tongji/components/CelebrateBurst.vue
index c7aa159e..75499b8e 100644
--- a/TUICallKit-Vue3/tongji/components/CelebrateBurst.vue
+++ b/TUICallKit-Vue3/tongji/components/CelebrateBurst.vue
@@ -8,7 +8,7 @@
/>
-
+
{{ title }}
{{ subtitle }}
@@ -28,7 +28,7 @@ const props = defineProps({
const particles = ref([])
const cardPop = ref(false)
-const COLORS = ['#0891B2', '#22D3EE', '#059669', '#FBBF24', '#F472B6', '#A78BFA']
+const COLORS = ['#204E2B', '#386641', '#AFE2B3', '#FBBF24', '#727970', '#DC2626']
function buildParticles() {
const list = []
@@ -129,7 +129,7 @@ watch(
margin-top: 16rpx;
font-size: 36rpx;
font-weight: 800;
- color: #164e63;
+ color: #1b1c1a;
}
.celebrate-card-sub {
position: relative;
diff --git a/TUICallKit-Vue3/tongji/components/SugarTreeGraphic.vue b/TUICallKit-Vue3/tongji/components/SugarTreeGraphic.vue
index 59b12b27..c1401c42 100644
--- a/TUICallKit-Vue3/tongji/components/SugarTreeGraphic.vue
+++ b/TUICallKit-Vue3/tongji/components/SugarTreeGraphic.vue
@@ -47,12 +47,12 @@ const treeEmoji = computed(() => (TREE_LEVELS[clampedLevel.value] || TREE_LEVELS
function buildTreeSvg(level) {
const pot = `
-
+
`
- const soil = ``
+ const soil = ``
if (level <= 0) {
return `