diff --git a/src/mobile/views/cashier/CashierEnvPage.vue b/src/mobile/views/cashier/CashierEnvPage.vue index 8f2ea67..58bdd69 100644 --- a/src/mobile/views/cashier/CashierEnvPage.vue +++ b/src/mobile/views/cashier/CashierEnvPage.vue @@ -401,11 +401,11 @@ onUnmounted(() => {
{{ t('cashier.orderTitle') }} - {{ order.title || t('cashier.demoOrderTitle') }} + {{ order.title || t('cashier.demoOrderTitle') }}
{{ t('cashier.orderNo') }} - {{ order.orderNo }} + {{ order.orderNo }}
{{ t('cashier.payableAmount') }} @@ -436,11 +436,12 @@ onUnmounted(() => {
{{ t('cashier.orderTitle') }} - {{ order.title || t('cashier.demoOrderTitle') }} + + {{ order.title || t('cashier.demoOrderTitle') }}
{{ t('cashier.orderNo') }} - {{ order.orderNo }} + {{ order.orderNo }}
@@ -598,6 +599,7 @@ onUnmounted(() => { display: flex; justify-content: space-between; align-items: center; + gap: 12px; font-size: 13px; margin-bottom: 10px; @@ -606,14 +608,18 @@ onUnmounted(() => { } span:first-child { + flex-shrink: 0; color: @text-sub; } span:last-child { + flex: 1; + min-width: 0; color: @text-main; - max-width: 60%; text-align: right; - word-break: break-all; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } } @@ -708,16 +714,27 @@ onUnmounted(() => { &__detail-row { display: flex; + align-items: center; justify-content: space-between; + gap: 12px; font-size: 13px; margin-bottom: 6px; + // 左侧标签不收缩 span:first-child { + flex-shrink: 0; color: @text-sub; } + // 右侧值单行省略,避免长订单号折行撑高头部 span:last-child { + flex: 1; + min-width: 0; color: @text-main; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } } diff --git a/src/pc/views/cashier/Index.vue b/src/pc/views/cashier/Index.vue index ddd196a..459aebe 100644 --- a/src/pc/views/cashier/Index.vue +++ b/src/pc/views/cashier/Index.vue @@ -306,11 +306,11 @@ onUnmounted(() => {
{{ t('cashier.orderTitle') }} - {{ order.title || t('cashier.demoOrderTitle') }} + {{ order.title || t('cashier.demoOrderTitle') }}
{{ t('cashier.orderNo') }} - {{ order.orderNo }} + {{ order.orderNo }}
{{ t('cashier.payableAmount') }} @@ -333,7 +333,10 @@ onUnmounted(() => {
{{ t('cashier.expired') }}
-
+
{{ order.title || t('cashier.demoOrderTitle') }}
@@ -342,7 +345,7 @@ onUnmounted(() => { {{ amountYuan }}

-
+
{{ t('cashier.orderNoLabel') }}{{ order.orderNo }}
@@ -503,6 +506,10 @@ onUnmounted(() => { color: #1e293b; padding-right: 180px; line-height: 1.4; + /* 长标题单行省略,避免折行 */ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .pc-cashier__price { @@ -532,6 +539,10 @@ onUnmounted(() => { .pc-cashier__order-no { font-size: 13px; color: #94a3b8; + /* 长订单号单行省略 */ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .pc-cashier__content { @@ -624,6 +635,7 @@ onUnmounted(() => { display: flex; justify-content: space-between; align-items: center; + gap: 12px; font-size: 14px; margin-bottom: 12px; } @@ -633,14 +645,18 @@ onUnmounted(() => { } .pc-cashier__result-row span:first-child { + flex-shrink: 0; color: #94a3b8; } .pc-cashier__result-row span:last-child { + flex: 1; + min-width: 0; color: #1e293b; - max-width: 60%; text-align: right; - word-break: break-all; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .pc-cashier__result-amount {