This commit is contained in:
hayu 2025-10-14 17:37:34 +08:00
parent 5900668fd9
commit fd2015b836
1 changed files with 24 additions and 0 deletions

View File

@ -44,6 +44,10 @@
<!-- 设备类别标题 --> <!-- 设备类别标题 -->
<div class="equipment-category" @click="toggleCategory(categoryIndex)"> <div class="equipment-category" @click="toggleCategory(categoryIndex)">
<span>{{ category.name }}</span> <span>{{ category.name }}</span>
<span v-if="isTeam" class="quantity-text">
<span class="quantity-label">数量</span>{{ category.usNum }}
</span>
<uni-icons <uni-icons
:type="category.expanded ? 'top' : 'bottom'" :type="category.expanded ? 'top' : 'bottom'"
size="16" size="16"
@ -217,6 +221,7 @@ const getList = async () => {
name: item.typeName, name: item.typeName,
expanded: false, // expanded: false, //
thirdTypeId: item.thirdTypeId, thirdTypeId: item.thirdTypeId,
usNum:item.usNum,
specs: item.modelList specs: item.modelList
? item.modelList.map((model) => { ? item.modelList.map((model) => {
return { return {
@ -356,4 +361,23 @@ const showDetail = (categoryName, spec) => {
.scroll-container { .scroll-container {
height: calc(100vh - 150px); 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> </style>