diff --git a/frontend/uni-app/src/pages/extension/customer_list/chat.vue b/frontend/uni-app/src/pages/extension/customer_list/chat.vue index abcf3a37d..faecd7061 100644 --- a/frontend/uni-app/src/pages/extension/customer_list/chat.vue +++ b/frontend/uni-app/src/pages/extension/customer_list/chat.vue @@ -40,19 +40,23 @@ @tap="previewImage(item.msn)" > - - + + {{ item.productInfo.store_name }} ¥{{ item.productInfo.price }} - - + + 订单 - + {{ item.orderInfo.title }} ¥{{ item.orderInfo.pay_price }} @@ -525,6 +529,16 @@ function setPageScrollTo(selector) { .exec(); } +// 商品卡片跳转商品详情 +function goGoods(id) { + if (!id) return; + uni.navigateTo({ url: `/pages/goods_details/index?id=${id}` }); +} +// 订单卡片跳转订单详情(订单中台按 order_no 查询) +function goOrder(orderNo) { + if (!orderNo) return; + uni.navigateTo({ url: `/pages/center/order/detail/index?order_no=${orderNo}` }); +} // 发送消息 function sendText() { if (!isSend.value) { @@ -903,7 +917,6 @@ body { image { width: 452rpx; } - .info { padding: 16rpx 26rpx; @@ -923,6 +936,7 @@ body { margin-left: 22rpx; background-color: #fff; border-radius: 14rpx; + overflow: hidden; .title { padding: 15rpx 20rpx; @@ -935,14 +949,19 @@ body { display: flex; padding: 20rpx; - image { + /* 商品图:始终渲染保证布局稳定,无图/加载失败时由底色占位 */ + .order-img { + flex: none; width: 124rpx; height: 124rpx; + background: #f5f6f7; border-radius: 6rpx; } .product-info { flex: 1; + /* 允许 flex 收缩:否则 min-width:auto 使长商品名撑破卡片,line1 省略号失效 */ + min-width: 0; display: flex; flex-direction: column; justify-content: space-between;