From 9d2038cc931e57c1f05c9bb4d4d39d54bee4d652 Mon Sep 17 00:00:00 2001 From: que01 Date: Thu, 8 Oct 2026 16:41:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BA=E5=8C=96=E5=87=BA=E6=91=8A?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=89=E9=92=AE=E8=B7=A8=E7=AB=AF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=A5=91=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/taro/test/browser/preview.spec.ts | 6 ++++++ packages/template-acheng-campus-food/taro/index.tsx | 4 +++- packages/template-acheng-campus-food/taro/style.css | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/taro/test/browser/preview.spec.ts b/apps/taro/test/browser/preview.spec.ts index 0ab41f1..a2fed53 100644 --- a/apps/taro/test/browser/preview.spec.ts +++ b/apps/taro/test/browser/preview.spec.ts @@ -26,6 +26,12 @@ test("真实 API 驱动首页、出摊和主理人视觉槽位", async ({ page } expect(Math.abs(widths.image - widths.parent)).toBeLessThan(2); await page.getByText("出摊服务", { exact: true }).click(); await expect(page.locator(".schedule")).toHaveCount(2); + await expect(page.locator(".process-action")).toHaveCount(1); + const processAction = await page.locator(".process-action").boundingBox(); + const processFoot = await page.locator(".process-foot").boundingBox(); + expect(processAction!.x + processAction!.width).toBeLessThanOrEqual( + processFoot!.x + processFoot!.width + 1, + ); await expect(page.locator(".delivery-item")).toHaveCount(2); await expect(page.locator(".step")).toHaveCount(4); await page.screenshot({ diff --git a/packages/template-acheng-campus-food/taro/index.tsx b/packages/template-acheng-campus-food/taro/index.tsx index 3751b52..c364ac3 100644 --- a/packages/template-acheng-campus-food/taro/index.tsx +++ b/packages/template-acheng-campus-food/taro/index.tsx @@ -200,7 +200,9 @@ function Service({ workspace }: { workspace: RuntimeWorkspace }) { )} {text(process.config.refundNote)} - + )} diff --git a/packages/template-acheng-campus-food/taro/style.css b/packages/template-acheng-campus-food/taro/style.css index 1fc0cce..540afe9 100644 --- a/packages/template-acheng-campus-food/taro/style.css +++ b/packages/template-acheng-campus-food/taro/style.css @@ -440,7 +440,8 @@ margin: 0 8px; color: #d0cbc4; } -.food-service .process-foot button { +.food-service .process-foot button, +.food-service .process-foot .process-action { flex: 0 0 auto; max-width: 42%; min-width: 0;