+
{{ cardLang === 'en' ? 'doTERRA · Gifts of the Earth' : 'doTERRA · 来自大地的礼物' }}
-
- {{ getCardRecipeName() }}
-
+
{{ getCardRecipeName() }}
- -
- {{ getCardOilName(ing.oil) }}
- {{ ing.drops }} {{ cardLang === 'en' ? 'drops' : '滴' }}
- {{ oilsStore.fmtPrice(oilsStore.pricePerDrop(ing.oil) * ing.drops) }}
- {{ oilsStore.fmtPrice(retailPerDrop(ing.oil) * ing.drops) }}
+
-
+ {{ getCardOilName(ing.oil) }}
+ {{ ing.drops }} {{ cardLang === 'en' ? 'drops' : '滴' }}
+ {{ oilsStore.fmtPrice(oilsStore.pricePerDrop(ing.oil) * ing.drops) }}
+ {{ oilsStore.fmtPrice(retailPerDrop(ing.oil) * ing.drops) }}
@@ -81,13 +77,16 @@
📝 {{ displayRecipe.note }}
-
+
{{ cardLang === 'en' ? 'Total Cost' : '配方总成本' }}
{{ priceInfo.cost }}{{ priceInfo.retail }}
-
- {{ cardLang === 'en' ? 'Date: ' : '制作日期:' }}{{ todayStr }}
+
+
+
![]()
+
+
{{ cardLang === 'en' ? 'Date: ' : '制作日期:' }}{{ todayStr }}
@@ -1088,10 +1087,105 @@ async function saveRecipe() {
border-radius: 50%;
}
-.card-content {
- position: relative;
- z-index: 2;
- padding-right: 80px; /* leave room for QR (54px) + gap */
+/* ===== Export Card Content (responsive) ===== */
+.ec-subtitle {
+ font-size: 11px;
+ letter-spacing: 3px;
+ color: var(--sage);
+ margin-bottom: 8px;
+ white-space: nowrap;
+}
+.ec-title {
+ font-size: 26px;
+ font-weight: 700;
+ color: var(--text-dark);
+ margin-bottom: 6px;
+ line-height: 1.3;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: calc(100% - 80px); /* leave room for QR */
+}
+.ec-ing {
+ display: flex;
+ align-items: center;
+ padding: 9px 0;
+ border-bottom: 1px solid rgba(180,150,100,0.15);
+ font-size: 14px;
+}
+.ec-oil-name {
+ flex: 1;
+ color: var(--text-dark);
+ font-weight: 500;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ min-width: 0;
+}
+.ec-drops {
+ width: 50px;
+ text-align: right;
+ color: var(--sage-dark);
+ font-size: 13px;
+ white-space: nowrap;
+ flex-shrink: 0;
+}
+.ec-cost {
+ width: 60px;
+ text-align: right;
+ color: var(--text-light);
+ font-size: 12px;
+ white-space: nowrap;
+ flex-shrink: 0;
+}
+.ec-retail {
+ width: 55px;
+ text-align: right;
+ color: var(--text-light);
+ font-size: 10px;
+ text-decoration: line-through;
+ white-space: nowrap;
+ flex-shrink: 0;
+}
+.ec-total-bar {
+ background: linear-gradient(135deg, var(--sage), #5a7d5e);
+ border-radius: 12px;
+ padding: 14px 20px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.ec-bottom {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ margin-top: 16px;
+}
+.ec-logo {
+ height: 36px;
+ object-fit: contain;
+ opacity: 0.5;
+}
+.ec-date {
+ font-size: 11px;
+ color: var(--text-light);
+ letter-spacing: 1px;
+}
+
+/* Mobile: smaller card text */
+@media (max-width: 420px) {
+ .export-card { padding: 24px; }
+ .ec-subtitle { font-size: 9px; letter-spacing: 2px; }
+ .ec-title { font-size: 20px; max-width: calc(100% - 65px); }
+ .ec-ing { font-size: 12px; padding: 7px 0; }
+ .ec-drops { width: 42px; font-size: 11px; }
+ .ec-cost { width: 50px; font-size: 10px; }
+ .ec-retail { width: 45px; font-size: 9px; }
+ .ec-total-bar { padding: 10px 14px; }
+ .ec-total-bar span:first-child { font-size: 11px; }
+ .ec-total-bar span:last-child { font-size: 16px; }
+ .ec-date { font-size: 9px; }
+ .ec-logo { height: 28px; }
}
/* Brand overlays */
diff --git a/frontend/src/views/MyDiary.vue b/frontend/src/views/MyDiary.vue
index 6b9040b..98495dd 100644
--- a/frontend/src/views/MyDiary.vue
+++ b/frontend/src/views/MyDiary.vue
@@ -171,8 +171,7 @@
-
-
![]()
+
![]()
@@ -189,9 +188,11 @@
配方总成本
¥12.50
-
-
- 制作日期:{{ new Date().toLocaleDateString('zh-CN') }}
+
+
+
![]()
+
+
制作日期:{{ new Date().toLocaleDateString('zh-CN') }}