From 2b2af1bab424f7c7c05969bf088dc20799882b45 Mon Sep 17 00:00:00 2001
From: zzc <1761997216@qq.com>
Date: Thu, 22 Jan 2026 22:11:02 +0800
Subject: [PATCH] fix: card content font size
---
pages/detail/index.vue | 4 +-
pages/make/index.vue | 128 ++++++++++++++++++++++++++---------------
utils/common.js | 7 ++-
3 files changed, 89 insertions(+), 50 deletions(-)
diff --git a/pages/detail/index.vue b/pages/detail/index.vue
index f6e78f1..74f14b6 100644
--- a/pages/detail/index.vue
+++ b/pages/detail/index.vue
@@ -112,7 +112,7 @@
import { ref, onMounted } from "vue";
import { getBavBarHeight } from "@/utils/system";
import { onLoad } from "@dcloudio/uni-app";
-import { getCardDetail } from "@/api/card.js";
+import { getPageDetail } from "@/api/system.js";
const navBarHeight = ref(44);
const statusBarHeight = ref(20);
@@ -122,7 +122,7 @@ const cardDetail = ref({});
onLoad(async (options) => {
if (options.shareToken) {
- const card = await getCardDetail(options.shareToken);
+ const card = await getPageDetail(options.shareToken);
cardId.value = card.id;
cardDetail.value = card;
}
diff --git a/pages/make/index.vue b/pages/make/index.vue
index f6cc54c..bdef8a5 100644
--- a/pages/make/index.vue
+++ b/pages/make/index.vue
@@ -25,7 +25,7 @@
fontSize: fontSize + 'rpx',
lineHeight: fontSize * 1.5 + 'rpx',
}"
- >{{ targetName + "\n " + blessingText }}{{ targetName + "\n " + blessingText.content }}
@@ -138,11 +138,15 @@
v-for="(text, index) in displayedGreetings"
:key="index"
class="greeting-card"
- :class="{ active: blessingText === text }"
+ :class="{ active: blessingText === text.content }"
@tap="selectGreeting(text)"
>
- {{ text }}
- ✔
+ {{ text.content }}
+ ✔
@@ -270,25 +274,34 @@
class="hidden-canvas"
style="width: 540px; height: 960px"
/>
+
+