diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php
index 301cbe2..192bcd9 100644
--- a/resources/views/admin/platform_orders/index.blade.php
+++ b/resources/views/admin/platform_orders/index.blade.php
@@ -1045,7 +1045,10 @@
}
@endphp
@if($rowLeadId > 0)
-
+
@endif
diff --git a/tests/Feature/AdminPlatformOrderIndexLeadPrefixUsesMutedXsSpanTest.php b/tests/Feature/AdminPlatformOrderIndexLeadPrefixUsesMutedXsSpanTest.php
new file mode 100644
index 0000000..f129a73
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderIndexLeadPrefixUsesMutedXsSpanTest.php
@@ -0,0 +1,65 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_lead_prefix_is_wrapped_by_muted_xs_span(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $merchant = Merchant::query()->firstOrFail();
+
+ $plan = Plan::query()->create([
+ 'code' => 'po_index_lead_prefix_muted_xs_plan',
+ 'name' => '平台订单列表线索前缀样式测试套餐',
+ 'billing_cycle' => 'monthly',
+ 'price' => 10,
+ 'list_price' => 10,
+ 'status' => 'active',
+ 'sort' => 10,
+ 'published_at' => now(),
+ ]);
+
+ PlatformOrder::query()->create([
+ 'merchant_id' => $merchant->id,
+ 'plan_id' => $plan->id,
+ 'order_no' => 'PO_INDEX_LEAD_PREFIX_0001',
+ 'order_type' => 'new_purchase',
+ 'status' => 'pending',
+ 'payment_status' => 'unpaid',
+ 'plan_name' => $plan->name,
+ 'billing_cycle' => $plan->billing_cycle,
+ 'period_months' => 1,
+ 'quantity' => 1,
+ 'payable_amount' => 10,
+ 'paid_amount' => 0,
+ 'placed_at' => now(),
+ 'meta' => [
+ 'platform_lead_id' => 88,
+ ],
+ ]);
+
+ $this->get('/admin/platform-orders?keyword=PO_INDEX_LEAD_PREFIX_0001')
+ ->assertOk()
+ ->assertSee('线索:', false);
+ }
+}
|