fix(device): 设备列表卡片间距优化,连接缓存简化 userInfo 存储

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-05-27 13:35:53 +08:00
co-authored by Claude Sonnet 4.6
parent d373da11c7
commit d4ab21ca6f
3 changed files with 3 additions and 10 deletions
@@ -32,6 +32,7 @@
border-radius: 16rpx;
padding: 30rpx;
box-sizing: border-box;
margin-bottom: 24rpx;
// margin: 0 30rpx 24rpx;
&:last-child {
+1 -10
View File
@@ -168,16 +168,7 @@ Page({
wx.setStorageSync('connectDeviceInfo', matched.raw)
// 连接成功后缓存当前设备关联的用户信息
if (userInfo) {
wx.setStorageSync('userInfo', {
userId: userInfo.userId,
realname: userInfo.realname,
sex: userInfo.sex,
height: userInfo.height,
birthday: userInfo.birthday,
avatar: userInfo.avatar,
relationType: userInfo.relationType,
sex_dictText: userInfo.sex_dictText,
})
wx.setStorageSync('userInfo', userInfo)
}
})
lefuService.onDeviceInfo((info) => {
@@ -43,6 +43,7 @@
flex: 1;
overflow: hidden;
display: flex;
padding-top: 24rpx;
flex-direction: column;
margin-bottom: 24rpx;