chore: 抢单图标与IM心跳修复,排行榜奖励开发前备份

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-01 17:30:24 +08:00
parent f4565b0ebd
commit 1d7d7109c4
2 changed files with 20 additions and 25 deletions

View File

@@ -33,7 +33,7 @@ page {
/* ====== 1. 商品类型区域 ====== */
.leixing-quyu {
padding: 30rpx 0 20rpx;
padding: 24rpx 0 16rpx;
background: rgba(18, 22, 38, 0.9);
backdrop-filter: blur(20rpx);
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
@@ -46,26 +46,26 @@ page {
.leixing-scroll {
width: 100%;
white-space: nowrap;
height: 180rpx;
height: 158rpx;
}
.leixing-container {
display: inline-flex;
padding: 0 30rpx;
gap: 20rpx;
gap: 16rpx;
}
.leixing-item {
display: inline-flex;
flex-direction: column;
align-items: center;
width: 160rpx;
width: 132rpx;
position: relative;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.leixing-active {
transform: translateY(-8rpx);
transform: translateY(-6rpx);
}
.guangyun-effect {
@@ -86,9 +86,9 @@ page {
}
.leixing-tupian {
width: 120rpx;
height: 120rpx;
border-radius: 32rpx;
width: 100rpx;
height: 100rpx;
border-radius: 28rpx;
z-index: 1;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.6);
transition: all 0.3s ease;
@@ -101,8 +101,8 @@ page {
}
.leixing-jieshao {
margin-top: 16rpx;
font-size: 24rpx;
margin-top: 12rpx;
font-size: 22rpx;
color: #b0c0e0;
max-width: 100%;
overflow: hidden;

View File

@@ -515,21 +515,16 @@ function startHeartbeat(app) {
let convTick = 0;
goEasyConnection.heartbeatInterval = setInterval(() => {
if (goEasyConnection.status === 'connected' && wx.goEasy?.im) {
wx.goEasy.im.ping({
onSuccess: () => {
convTick += 1;
if (convTick % 3 === 0) {
loadConversations(app);
}
},
onFailed: (error) => {
console.error('心跳失败:', error);
if (isSdkConnected()) return;
goEasyConnection.status = 'reconnecting';
app.emitEvent('connectionChanged', { status: 'reconnecting' });
attemptReconnect(app);
},
});
if (isSdkConnected()) {
convTick += 1;
if (convTick % 3 === 0) {
loadConversations(app);
}
} else {
goEasyConnection.status = 'reconnecting';
app.emitEvent('connectionChanged', { status: 'reconnecting' });
attemptReconnect(app);
}
} else if (goEasyConnection.autoReconnect && !isSdkConnected()) {
ensureConnection(app);
}