diff --git a/pages/accept-order/accept-order.wxss b/pages/accept-order/accept-order.wxss index 73ca486..4ea4d48 100644 --- a/pages/accept-order/accept-order.wxss +++ b/pages/accept-order/accept-order.wxss @@ -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; diff --git a/utils/chat-core.js b/utils/chat-core.js index a75548a..8f2b97c 100644 --- a/utils/chat-core.js +++ b/utils/chat-core.js @@ -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); }