style(equipment): 添加设备按钮改灰色胶囊,用户按钮蓝底高亮

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-09-11 15:38:14 +08:00
co-authored by Claude Sonnet 4.6
parent dc0a294406
commit 109c9e1b70
4 changed files with 13 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 880 B

After

Width:  |  Height:  |  Size: 542 B

+11 -3
View File
@@ -105,8 +105,8 @@
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
padding: 0 15rpx; padding: 0 15rpx;
border-radius: 8rpx; border-radius: 24rpx;
background-color: #1385FA; background-color: #E5E9EF;
> view:nth-child(1) { > view:nth-child(1) {
width: 32rpx; width: 32rpx;
@@ -117,7 +117,7 @@
} }
> view:nth-child(2) { > view:nth-child(2) {
color: #FFFFFF; color: #77849E;
height: 24rpx; height: 24rpx;
font-size: 24rpx; font-size: 24rpx;
line-height: 24rpx; line-height: 24rpx;
@@ -284,6 +284,14 @@
font-size: 24rpx; font-size: 24rpx;
line-height: 24rpx; line-height: 24rpx;
} }
&.user {
background-color: #1385FA;
> view:nth-of-type(2) {
color: #FFFFFF;
}
}
} }
} }
} }
+2 -2
View File
@@ -27,7 +27,7 @@
<block wx:else> <block wx:else>
<view class="section-right-blue" bind:tap="onTapAdd"> <view class="section-right-blue" bind:tap="onTapAdd">
<view> <view>
<image src="/images/addBtn.png"/> <image src="/images/equipment/add.png"/>
</view> </view>
<view>添加设备</view> <view>添加设备</view>
</view> </view>
@@ -92,7 +92,7 @@
<view>设备连接</view> <view>设备连接</view>
</view> </view>
</block> </block>
<view class="device-action-btn" bind:tap="onTapUser" data-item="{{ item }}"> <view class="device-action-btn user" bind:tap="onTapUser" data-item="{{ item }}">
<view> <view>
<image src="/images/equipment/users.png"/> <image src="/images/equipment/users.png"/>
</view> </view>