This commit is contained in:
parent
5900668fd9
commit
fd2015b836
|
|
@ -44,6 +44,10 @@
|
|||
<!-- 设备类别标题 -->
|
||||
<div class="equipment-category" @click="toggleCategory(categoryIndex)">
|
||||
<span>{{ category.name }}</span>
|
||||
<span v-if="isTeam" class="quantity-text">
|
||||
<span class="quantity-label">数量:</span>{{ category.usNum }}
|
||||
</span>
|
||||
|
||||
<uni-icons
|
||||
:type="category.expanded ? 'top' : 'bottom'"
|
||||
size="16"
|
||||
|
|
@ -217,6 +221,7 @@ const getList = async () => {
|
|||
name: item.typeName,
|
||||
expanded: false, // 默认收起
|
||||
thirdTypeId: item.thirdTypeId,
|
||||
usNum:item.usNum,
|
||||
specs: item.modelList
|
||||
? item.modelList.map((model) => {
|
||||
return {
|
||||
|
|
@ -356,4 +361,23 @@ const showDetail = (categoryName, spec) => {
|
|||
.scroll-container {
|
||||
height: calc(100vh - 150px);
|
||||
}
|
||||
|
||||
.quantity-text {
|
||||
width: 80px;
|
||||
margin-left: auto; /* 使数量文本靠右对齐 */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
color: #4aa4ea;
|
||||
}
|
||||
|
||||
.quantity-label {
|
||||
color: #000; /* 黑色文字 */
|
||||
margin-right: 5px; /* 使数字和“数量”之间有一点间隔 */
|
||||
}
|
||||
|
||||
.quantity-value {
|
||||
color: #4aa4ea; /* 原来的颜色 */
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue