fix(order): recycle amount for order detail hero
This commit is contained in:
@@ -27,7 +27,20 @@
|
||||
<h1 class="no selectable" v-text="order.orderNo" />
|
||||
<div class="meta">
|
||||
<time-label class="time" :timestamp="order.purchasedAt" underline />
|
||||
<div class="amount red text-bold">
|
||||
<div v-if="order.orderType === 'RECYCLE'" class="amount red text-bold">
|
||||
<t-tag
|
||||
class="recycle"
|
||||
size="small"
|
||||
theme="primary"
|
||||
variant="light-outline"
|
||||
:content="order.recycleItemName || '未命名回收物'"
|
||||
/>
|
||||
<strong class="value">
|
||||
<span class="word-space" v-text="order.recycleRequiredQuantity ?? '-'" />
|
||||
<span v-text="order.recycleUnit || ''" />
|
||||
</strong>
|
||||
</div>
|
||||
<div v-else class="amount red text-bold">
|
||||
<span>¥</span>
|
||||
<strong class="value" v-text="formatPackageAmount(order.saleAmount)" />
|
||||
</div>
|
||||
@@ -120,7 +133,6 @@
|
||||
class="red"
|
||||
v-text="`¥${formatPackageAmount(item.lineAmount)}`"
|
||||
/>
|
||||
<t-tag v-else size="small" content="套餐权益" />
|
||||
<product-sku-tags
|
||||
:product-name="item.productNameSnapshot"
|
||||
:snapshot="item.skuSpecSnapshot"
|
||||
@@ -667,10 +679,17 @@ watch(() => [props.orderId, route.params.id], loadData);
|
||||
}
|
||||
|
||||
.amount {
|
||||
gap: .25rem;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
|
||||
.value {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.recycle {
|
||||
transform: translateY(-.25rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user