hookehuyr

fix(message): 优化消息详情页计划书信息布局和状态显示

- 修复计划书信息列表布局,长文本自动换行不再挤压标签
- 添加 pending(橙色) 和 processing(蓝色) 状态样式
- 状态标记颜色与计划书列表页保持一致

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
46 <view 46 <view
47 :class="[ 47 :class="[
48 'status-badge', 48 'status-badge',
49 + proposalStatus === 'pending' ? 'status-pending' : '',
50 + proposalStatus === 'processing' ? 'status-processing' : '',
49 proposalStatus === 'generated' ? 'status-generated' : '', 51 proposalStatus === 'generated' ? 'status-generated' : '',
50 proposalStatus === 'viewed' ? 'status-viewed' : '' 52 proposalStatus === 'viewed' ? 'status-viewed' : ''
51 ]" 53 ]"
...@@ -56,17 +58,17 @@ ...@@ -56,17 +58,17 @@
56 58
57 <!-- 计划书信息 --> 59 <!-- 计划书信息 -->
58 <view class="bg-gray-50 rounded-lg p-4 mb-4"> 60 <view class="bg-gray-50 rounded-lg p-4 mb-4">
59 - <view class="flex justify-between text-sm mb-2"> 61 + <view class="proposal-info-item mb-3">
60 - <text class="text-gray-500">申请人</text> 62 + <text class="label text-sm">申请人</text>
61 - <text class="text-gray-900 font-medium">{{ detail.proposal.customer_name || '-' }}</text> 63 + <text class="value text-sm">{{ detail.proposal.customer_name || '-' }}</text>
62 </view> 64 </view>
63 - <view class="flex justify-between text-sm mb-2"> 65 + <view class="proposal-info-item mb-3">
64 - <text class="text-gray-500">产品</text> 66 + <text class="label text-sm">产品</text>
65 - <text class="text-gray-900 font-medium">{{ detail.proposal.product_name || '-' }}</text> 67 + <text class="value text-sm">{{ detail.proposal.product_name || '-' }}</text>
66 </view> 68 </view>
67 - <view class="flex justify-between text-sm"> 69 + <view class="proposal-info-item">
68 - <text class="text-gray-500">创建时间</text> 70 + <text class="label text-sm">创建时间</text>
69 - <text class="text-gray-900 font-medium">{{ detail.proposal.created_time || '-' }}</text> 71 + <text class="value text-sm">{{ detail.proposal.created_time || '-' }}</text>
70 </view> 72 </view>
71 </view> 73 </view>
72 74
...@@ -268,11 +270,47 @@ useLoad((options) => { ...@@ -268,11 +270,47 @@ useLoad((options) => {
268 white-space: nowrap; 270 white-space: nowrap;
269 } 271 }
270 272
273 +/* 计划书信息列表项样式 */
274 +.proposal-info-item {
275 + display: flex;
276 + justify-content: space-between;
277 + align-items: flex-start;
278 +
279 + .label {
280 + flex-shrink: 0;
281 + color: #6B7280;
282 + }
283 +
284 + .value {
285 + flex: 1;
286 + margin-left: 24rpx;
287 + text-align: right;
288 + color: #111827;
289 + font-weight: 500;
290 + word-break: break-all;
291 + word-wrap: break-word;
292 + }
293 +}
294 +
295 +/* 待处理 - 橙色 */
296 +.status-pending {
297 + background-color: #FEF3C7;
298 + color: #D97706;
299 +}
300 +
301 +/* 处理中 - 蓝色 */
302 +.status-processing {
303 + background-color: #DBEAFE;
304 + color: #2563EB;
305 +}
306 +
307 +/* 已生成 - 绿色 */
271 .status-generated { 308 .status-generated {
272 background-color: #D1FAE5; 309 background-color: #D1FAE5;
273 color: #059669; 310 color: #059669;
274 } 311 }
275 312
313 +/* 已查看 - 灰色 */
276 .status-viewed { 314 .status-viewed {
277 background-color: #E5E7EB; 315 background-color: #E5E7EB;
278 color: #6B7280; 316 color: #6B7280;
......