From a4b3ee325c7354579d495bc74a777e494e5ec38c Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 06 Feb 2026 18:18:44 +0800
Subject: [PATCH] 商品可以价格面议 选择走访时显示输入走访企业名 分会添加活动时要总会审核 分类添加人数限制,添加活动选择了填写人数限制的分类时活动名额下显示该分类人数限制为15 同一个企业30天内只能走访一次,在30天内走访同一个企业时提示该企业已被走访xx天后才可以从新走访
---
mobile/pages/plus/business/chat/list.vue | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/mobile/pages/plus/business/chat/list.vue b/mobile/pages/plus/business/chat/list.vue
index caa120f..a0afa34 100644
--- a/mobile/pages/plus/business/chat/list.vue
+++ b/mobile/pages/plus/business/chat/list.vue
@@ -31,12 +31,12 @@
<view class="content">
<view class="header">
<text class="name">{{ getConversationName(conversation) }}</text>
- <text class="time">{{ formatTime(conversation.update_time) }}</text>
+ <text class="time">{{ formatTime((conversation.last_message?conversation.last_message.send_time:conversation.update_time)) }}</text>
</view>
<view class="message">
- <text class="text" v-if="conversation.last_message && conversation.last_message.length > 0">
- {{ conversation.last_message[0].sender_id === currentUser.user_id ? '我: ' : '' }}{{ conversation.last_message[0].content }}
+ <text class="text" v-if="conversation.last_message ">
+ {{ conversation.last_message.sender_id === currentUser.user_id ? '我: ' : '' }}{{ conversation.last_message.content }}
</text>
<text class="text" v-else>开始聊天</text>
</view>
@@ -126,7 +126,7 @@
} else {
self.conversations = [...self.conversations, ...newConversations];
}
-
+ console.log(self.conversations);
self.hasMore = self.conversations.length < (conversationData.total || 0);
self.page++;
}
@@ -186,7 +186,7 @@
const targetUser = this.getTargetUser(conversation);
uni.navigateTo({
- url: `/pages/plus/business/chat/chat?user_id=${targetUser.user_id}&business_card_id=${conversation.business_card_id}&nickName=${targetUser.nickName}`
+ url: `/pages/plus/business/chat/chat?user_id=${targetUser.user_id}&business_card_id=${conversation.business_card_id}&nickName=${targetUser.nickName}&conversation_id=${conversation.conversation_id}`
});
},
@@ -234,10 +234,11 @@
// 格式化时间
formatTime(timeStr) {
+ console.log(timeStr);
if (!timeStr) return '';
-
+ const formattedTimeStr = typeof timeStr === 'string' ? timeStr.replace(/\-/g, '/') : timeStr * 1000;
// 处理字符串格式的时间
- const date = new Date(timeStr);
+ const date = new Date(formattedTimeStr);
const now = new Date();
// 今天的消息显示时间
--
Gitblit v1.9.2