diff --git a/images/立即入驻7.jpg b/images/立即入驻7.jpg new file mode 100644 index 0000000..543d0f2 Binary files /dev/null and b/images/立即入驻7.jpg differ diff --git a/pages/chat/index.js b/pages/chat/index.js index 0e652e9..2a6245d 100644 --- a/pages/chat/index.js +++ b/pages/chat/index.js @@ -89,7 +89,7 @@ Page({ // 保存当前时间戳,用于强制刷新 const forcedLoadTime = Date.now(); this.setData({ - lastLoadTime: forcedLoadTime - 3000, // 设置为3秒前,确保能绕过2秒的节流限制 + lastLoadTime: forcedLoadTime - 2000, // 设置为2秒前,确保能绕过2秒的节流限制 }, () => { // 重新加载聊天列表,实现从聊天详情页返回时立即更新 this.loadChatList(); diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 6caf8eb..03b230e 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -176,10 +176,10 @@ 预售 现货 - - {{item.name}} + + {{item.name}} {{item.displaySpecification}} | {{item.displayYolk}} - + {{item.sourceType || ''}} {{item.negotiateStatus}} 库存:{{item.totalStock && item.totalStock !== '充足' ? item.totalStock + '件' : (item.totalStock || '充足')}} diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 57a50f1..f1f43ea 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -871,6 +871,86 @@ wx-button:not([size=mini]) { border: 1rpx solid rgba(82, 196, 26, 0.5); } +/* product-status-row 容器样式 */ +.product-status-row { + display: flex; + flex-wrap: nowrap; + align-items: center; + justify-content: flex-start; + gap: 6rpx; + width: 100%; + height: 36rpx; + overflow: visible; + position: relative; + z-index: 9999; + margin: 4rpx 0; + background: transparent; +} + +/* 货源类型标签 - 完全根据字数动态调整宽度 */ +.product-status-row .source-tag { + width: auto; + min-width: 50rpx; + max-width: 120rpx; + white-space: nowrap; + flex-shrink: 0; + font-size: 16rpx; + padding: 6rpx 8rpx; + height: 28rpx; + line-height: 16rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 6rpx; + border: 1rpx solid rgba(0, 0, 0, 0.1); + background: rgba(24, 144, 255, 0.1); + color: #096dd9; + box-sizing: border-box; +} + +/* 议价状态标签 - 完全根据字数动态调整宽度 */ +.product-status-row .negotiate-tag { + width: auto; + min-width: 50rpx; + max-width: 80rpx; + white-space: nowrap; + text-align: center; + flex-shrink: 0; + font-size: 16rpx; + padding: 6rpx 8rpx; + height: 28rpx; + line-height: 16rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 6rpx; + border: 1rpx solid rgba(0, 0, 0, 0.1); + background: rgba(255, 255, 255, 0.8); + color: #333; + box-sizing: border-box; +} + +/* 库存标签 - 根据字数动态调整宽度 */ +.product-status-row .stock-tag { + width: auto; + min-width: 70rpx; + max-width: 160rpx; + white-space: nowrap; + text-align: center; + font-size: 16rpx; + padding: 6rpx 8rpx; + height: 28rpx; + line-height: 16rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 6rpx; + border: 1rpx solid rgba(0, 0, 0, 0.1); + background: rgba(82, 196, 26, 0.1); + color: #389e0d; + box-sizing: border-box; +} + .goods-footer { display: flex; justify-content: space-between;