fix(device): 设备列表卡片间距优化,连接缓存简化 userInfo 存储
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d373da11c7
commit
d4ab21ca6f
@@ -32,6 +32,7 @@
|
|||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
// margin: 0 30rpx 24rpx;
|
// margin: 0 30rpx 24rpx;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
|||||||
@@ -168,16 +168,7 @@ Page({
|
|||||||
wx.setStorageSync('connectDeviceInfo', matched.raw)
|
wx.setStorageSync('connectDeviceInfo', matched.raw)
|
||||||
// 连接成功后缓存当前设备关联的用户信息
|
// 连接成功后缓存当前设备关联的用户信息
|
||||||
if (userInfo) {
|
if (userInfo) {
|
||||||
wx.setStorageSync('userInfo', {
|
wx.setStorageSync('userInfo', 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,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
lefuService.onDeviceInfo((info) => {
|
lefuService.onDeviceInfo((info) => {
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding-top: 24rpx;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: 24rpx;
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user