fix: 商品名称规格长宽显示在同一行
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-02 11:58:16 +00:00
parent b789a4af92
commit 7b24ea86f5
2 changed files with 12 additions and 4 deletions

View File

@@ -47,7 +47,7 @@
:key="index"
class="item-row"
>
<text class="item-info"><text class="item-name-text">{{ item.productName }}</text><text class="item-spec-text">{{ item.productSpec ? ' ' + item.productSpec : '' }}</text>\n{{ item.length || '-' }}x{{ item.width || '-' }}</text>
<text class="item-info"><text class="item-name-text">{{ item.productName }}</text><text class="item-spec-text">{{ item.productSpec ? ' ' + item.productSpec : '' }}</text><text class="item-dims-text">{{ item.length || '-' }}x{{ item.width || '-' }}</text></text>
<text class="item-area">{{ calcArea(item) }}</text>
<text class="item-qty">{{ item.quantity }}</text>
<text class="item-price">¥{{ item.price }}</text>
@@ -366,7 +366,6 @@ export default {
.item-info {
flex: 3;
white-space: pre-line;
font-size: 24rpx;
color: #333;
line-height: 1.6;
@@ -381,6 +380,11 @@ export default {
color: #999;
}
.item-dims-text {
color: #666;
margin-left: 8rpx;
}
.item-area {
flex: 1.2;
text-align: center;

View File

@@ -61,7 +61,7 @@
:key="index"
class="item-row"
>
<text class="item-info"><text class="item-name-text">{{ item.productName }}</text><text class="item-spec-text">{{ item.productSpec ? ' ' + item.productSpec : '' }}</text>\n{{ item.length || '-' }}x{{ item.width || '-' }}</text>
<text class="item-info"><text class="item-name-text">{{ item.productName }}</text><text class="item-spec-text">{{ item.productSpec ? ' ' + item.productSpec : '' }}</text><text class="item-dims-text">{{ item.length || '-' }}x{{ item.width || '-' }}</text></text>
<text class="item-area">{{ calcArea(item) }}</text>
<text class="item-qty">{{ item.quantity }}</text>
<text class="item-price">¥{{ item.price }}</text>
@@ -306,7 +306,6 @@ export default {
.item-info {
flex: 3;
white-space: pre-line;
font-size: 24rpx;
color: #333;
line-height: 1.6;
@@ -321,6 +320,11 @@ export default {
color: #999;
}
.item-dims-text {
color: #666;
margin-left: 8rpx;
}
.item-area {
flex: 1.2;
text-align: center;