私域操盘手 - 设备关联微信的微信数据内容由原先的模拟数据填充业务逻辑,调整部分页面的数据展示
This commit is contained in:
@@ -891,7 +891,7 @@ export default function DeviceDetailPage() {
|
||||
<span className="text-sm">好友总数</span>
|
||||
</div>
|
||||
<div className="text-2xl font-bold text-blue-600 mt-2">
|
||||
{device.totalFriend || 0}
|
||||
{(device.totalFriend || 0).toLocaleString()}
|
||||
</div>
|
||||
</Card>
|
||||
<Card className="p-4">
|
||||
@@ -900,7 +900,7 @@ export default function DeviceDetailPage() {
|
||||
<span className="text-sm">消息数量</span>
|
||||
</div>
|
||||
<div className="text-2xl font-bold text-blue-600 mt-2">
|
||||
{device.thirtyDayMsgCount || 0}
|
||||
{(device.thirtyDayMsgCount || 0).toLocaleString()}
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
@@ -719,7 +719,7 @@ export default function DevicesPage() {
|
||||
<span className="mr-1">IMEI:</span>
|
||||
<ImeiDisplay imei={device.imei} containerWidth={180} />
|
||||
</div>
|
||||
<div className="text-sm text-gray-500">微信号: {device.wechatId || "未绑定"}</div>
|
||||
<div className="text-sm text-gray-500">微信号: {device.wechatId || "未绑定或微信离线"}</div>
|
||||
<div className="flex items-center justify-between mt-1 text-sm">
|
||||
<span className="text-gray-500">好友数: {device.totalFriend}</span>
|
||||
</div>
|
||||
|
||||
@@ -437,11 +437,11 @@ export default function TrafficPoolPage() {
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<Card className="p-4">
|
||||
<div className="text-sm text-gray-500">流量池总数</div>
|
||||
<div className="text-2xl font-bold text-blue-600">{stats.totalCount}</div>
|
||||
<div className="text-2xl font-bold text-blue-600">{stats.totalCount.toLocaleString()}</div>
|
||||
</Card>
|
||||
<Card className="p-4">
|
||||
<div className="text-sm text-gray-500">今日新增</div>
|
||||
<div className="text-2xl font-bold text-green-600">{stats.todayAddCount}</div>
|
||||
<div className="text-2xl font-bold text-green-600">{stats.todayAddCount.toLocaleString()}</div>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -763,7 +763,7 @@ export default function WechatAccountDetailPage() {
|
||||
</div>
|
||||
{accountSummary && (
|
||||
<>
|
||||
<div className="text-2xl font-bold text-blue-600">{accountSummary.activityLevel.dayTimes}次/天</div>
|
||||
<div className="text-2xl font-bold text-blue-600">{accountSummary.activityLevel.dayTimes.toLocaleString()}次/天</div>
|
||||
<div className="text-sm text-gray-500 mt-1">总聊天数:{accountSummary.activityLevel.allTimes.toLocaleString()}</div>
|
||||
</>
|
||||
)}
|
||||
@@ -1010,7 +1010,7 @@ export default function WechatAccountDetailPage() {
|
||||
</DialogHeader>
|
||||
<ScrollArea className="max-h-[400px]">
|
||||
<div className="space-y-4">
|
||||
{accountSummary?.restrictions?.length > 0 ? (
|
||||
{(accountSummary?.restrictions && accountSummary.restrictions.length > 0) ? (
|
||||
accountSummary.restrictions.map((record) => (
|
||||
<div key={record.id} className="border-b pb-4 last:border-0">
|
||||
<div className="flex justify-between items-start">
|
||||
|
||||
Reference in New Issue
Block a user