diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue index 1dd6261..e8ccaf1 100644 --- a/src/pages/order/detail.vue +++ b/src/pages/order/detail.vue @@ -36,9 +36,7 @@ 商品明细 - 商品名称 - 规格 - 长x宽 + 商品信息 总面积(m²) 数量 单价 @@ -49,9 +47,7 @@ :key="index" class="item-row" > - {{ item.productName }} - {{ item.productSpec || '-' }} - {{ item.length || '-' }}x{{ item.width || '-' }} + {{ item.productName }}\n{{ item.productSpec || '-' }}\n{{ item.length || '-' }}x{{ item.width || '-' }} {{ calcArea(item) }} {{ item.quantity }} ¥{{ item.price }} @@ -369,24 +365,16 @@ export default { padding: 16rpx 0; } -.item-name { - flex: 2; - min-width: 120rpx; -} - -.item-specs { - flex: 1; - text-align: center; - color: #999; -} - -.item-dims { - flex: 1; - text-align: center; +.item-info { + flex: 3; + white-space: pre-line; + font-size: 24rpx; + color: #333; + line-height: 1.6; } .item-area { - flex: 1; + flex: 1.2; text-align: center; color: #667eea; font-weight: 500;