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

View File

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