fix: ui
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 1m6s

This commit is contained in:
sexygoat
2026-04-25 14:34:32 +08:00
parent 809a3cf0f8
commit cb9f21e264

View File

@@ -609,6 +609,23 @@ onMounted(async () => {
<!-- 筛选和类型切换 -->
<view class="flex items-center gap-2 mt-3 flex-wrap">
<view class="flex bg-[#f1f5f9] rounded-full p-0.5 flex-shrink-0">
<view
class="px-3 py-1.5 rounded-full text-12px font-medium transition-all"
:class="activeTab === 'card' ? 'bg-white shadow-sm text-[#1e293b]' : 'text-[#64748b]'"
@click="changeTab('card')"
>
IoT卡
</view>
<view
class="px-3 py-1.5 rounded-full text-12px font-medium transition-all"
:class="activeTab === 'device' ? 'bg-white shadow-sm text-[#1e293b]' : 'text-[#64748b]'"
@click="changeTab('device')"
>
设备
</view>
</view>
<view
class="flex items-center gap-1 px-3 py-1.5 bg-[#f8fafc] rounded-full flex-shrink-0"
@click="showSearchTypePicker = true"
@@ -650,28 +667,6 @@ onMounted(async () => {
</view>
</view>
<!-- 卡片/设备标签 -->
<view class="bg-white px-4 pb-3">
<view class="border-t border-[#f1f5f9] pt-3">
<view class="bg-[#f1f5f9] rounded-full p-1 flex">
<view
class="flex-1 py-2 rounded-full text-center transition-all"
:class="activeTab === 'card' ? 'bg-white shadow-sm text-[#1e293b] font-medium' : 'text-[#64748b]'"
@click="changeTab('card')"
>
<text class="text-sm">IoT卡</text>
</view>
<view
class="flex-1 py-2 rounded-full text-center transition-all"
:class="activeTab === 'device' ? 'bg-white shadow-sm text-[#1e293b] font-medium' : 'text-[#64748b]'"
@click="changeTab('device')"
>
<text class="text-sm">设备</text>
</view>
</view>
</view>
</view>
<!-- 加载状态 -->
<Skeleton v-if="loading && assetList.length === 0" type="list" />