完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
+6 -2
View File
@@ -1,8 +1,12 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$page = Get-Content -LiteralPath (Join-Path $root 'pages/profile/m01-profile-home.vue') -Raw -Encoding UTF8
foreach ($route in @('/pages/profile/m08-promotion','/pages/profile/m09-vip-orders')) {
if (-not $page.Contains($route)) { throw "M01 service entry missing: $route" }
foreach ($routeKey in @('routeKey: "M08"', 'routeKey: "M09"')) {
if (-not $page.Contains($routeKey)) { throw "M01 service entry missing: $routeKey" }
}
if (-not $page.Contains('openPage(item.routeKey, {}, "M01")')) { throw 'M01 service entries must use the registered gateway with M01 as source' }
foreach ($forbidden in @('/pages/profile/', 'uni.navigateTo', 'uni.navigateBack', 'uni.redirectTo', 'uni.reLaunch')) {
if ($page.Contains($forbidden)) { throw "M01 service entry bypasses the navigation gateway: $forbidden" }
}
if ($page -match '(?s)\.profile-hero\s*\{[^}]*overflow:\s*hidden') { throw 'M01 profile hero must not clip expanded identity copy' }
Write-Output 'M01-SERVICE-ENTRY-CONTRACT PASS'