diff --git a/app/home/common.php b/app/home/common.php index 81886e3..87cf5d9 100644 --- a/app/home/common.php +++ b/app/home/common.php @@ -15,12 +15,12 @@ const MODEL = 'msg'; const BUCKET = 'gzevus'; const COUNTRY = 'EVUS登记'; const SOURCE = 'acvisa.cn'; -const PAY_MARK = 'evuscn'; +const PAY_MARK = 'gzevus'; const OSS_URL = 'https://files.jzvisa.com/' . BUCKET . '/'; /*esta 配置*/ const ESTA_COUNTRY = 'ESTA登记'; -const PAY_ESTA_MARK = 'estacn'; +const PAY_ESTA_MARK = 'gzesta'; const ESTA_MODEL = 'esta'; const ESTA_INCOICETYPE = '6'; const BASE_PATH = '/evus'; // 可后端模板注入 diff --git a/app/home/view/detail/index.html b/app/home/view/detail/index.html index 1dfdf74..1d620dc 100644 --- a/app/home/view/detail/index.html +++ b/app/home/view/detail/index.html @@ -330,7 +330,7 @@ class="layui-zhtit-grey">{:lang('evus.pinyin')}*
-
@@ -347,7 +347,7 @@ class="layui-zhtit-grey">{:lang('evus.pinyin')}*
-
@@ -763,7 +763,7 @@
-
@@ -780,7 +780,7 @@
-
@@ -838,7 +838,7 @@
-
@@ -1339,7 +1339,7 @@
+ diff --git a/app/home/view/index/index.html b/app/home/view/index/index.html index 00f6afd..fc725d3 100644 --- a/app/home/view/index/index.html +++ b/app/home/view/index/index.html @@ -1,6 +1,6 @@ {include file="public/head" /} - + 跳到主要内容 {include file="public/site_nav" /}
@@ -23,24 +23,23 @@
- +
01 / EVUS
-

新登记申请

开始填写,提交您的登记信息

+

新登记申请

开始填写,提交您的登记信息

+ 开始 EVUS 登记
02 / STATUS
-

查询已有登记

查看登记状态与办理结果

+

查询已有登记

查看登记状态与办理结果

+ 查询登记状态
03 / ESTA
-

ESTA 申请

前往 ESTA 旅行授权申请服务

-
- -
04 / VISA
-

美国签证申请

了解美签申请相关服务

+

ESTA 申请

前往 ESTA 旅行授权申请服务

+ 开始 ESTA 申请
@@ -68,7 +67,7 @@

QUESTIONS & ANSWERS

有疑问?
先看看这里。

了解服务与办理方式,
再开始您的申请。

更多常见问题
-
这个网站是 EVUS 官方网站吗?

不是。本网站是独立商业服务平台,提供收费的中文代理登记服务,不隶属于美国政府。您可以选择本平台服务,也可以前往 EVUS 官方网站 自行办理。

+
这个网站是 EVUS 官方网站吗?

不是。本网站是独立商业服务平台,提供收费的中文代理登记服务,不隶属于美国政府。

开始填写前,需要准备哪些信息?

请准备护照、美国签证、个人及就业信息、联系方式、紧急联系人和相关旅行信息。具体填写项目以申请表要求为准。

已经提交登记,在哪里查看进度?

点击 查询已有登记,按查询页面提示填写信息。您也可以进入 我的订单 查看订单。

提交前需要注意什么?

请仔细核对证件信息,如实回答表格中的问题,并在支付前确认所选服务及费用。办理进度与结果以实际审核为准,请提前安排出行准备。

diff --git a/app/home/view/public/home_menu.html b/app/home/view/public/home_menu.html index 303c0f6..053d1cb 100644 --- a/app/home/view/public/home_menu.html +++ b/app/home/view/public/home_menu.html @@ -1,3 +1,2 @@ -{assign name="ac_legacy_links" value="1" /} - + {include file="public/site_nav" /} diff --git a/app/home/view/public/site_nav.html b/app/home/view/public/site_nav.html index afe7e36..0e120c5 100644 --- a/app/home/view/public/site_nav.html +++ b/app/home/view/public/site_nav.html @@ -1,20 +1,17 @@ - + {php}$ac_section = explode('/', strtolower($menu_url ?? ''))[0];{/php}
EVUS 中文登记服务 独立商业服务平台 · 非美国政府网站
-
+
diff --git a/public/static/home/css/home-acvisa.css b/public/static/home/css/home-acvisa.css index 71bd04a..d5fdd5c 100644 --- a/public/static/home/css/home-acvisa.css +++ b/public/static/home/css/home-acvisa.css @@ -29,24 +29,20 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros .ac-hero-features { display: flex; gap: 21px; margin-top: 24px; color: #fff; font-size: 11px; } .ac-hero-features span::before { content: "✓"; color: #f1dfc2; margin-right: 6px; } .ac-home .ac-hero a:focus-visible { outline-color: #ffe0a3; } -.ac-disclosure { display: flex; align-items: flex-start; gap: 12px; padding: 23px 0; border-bottom: 1px solid #e7ecf0; font-size: 12px; line-height: 1.9; color: #687582; } +.ac-disclosure { display: flex; align-items: flex-start; gap: 12px; padding: 23px 0; border-bottom: 1px solid #e7ecf0; font-size: 15px; line-height: 1.9; color: #687582; } .ac-info { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #8c9aa6; border-radius: 50%; margin-top: 3px; font: 12px Georgia, serif; } .ac-disclosure strong { color: #31475c; font-weight: 600; margin-right: 8px; } .ac-home .ac-disclosure a, .ac-home .ac-faq a { color: #225a83; text-decoration: underline !important; text-underline-offset: 3px; } -.ac-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 30px 0; border-bottom: 1px solid #e7ecf0; } -.ac-service { display: block; min-width: 0; padding: 24px; border: 1px solid #e5e9ed; border-top: 2px solid #d8bd91; border-radius: 8px; background: linear-gradient(145deg, #fff, #f4f7f9); box-shadow: 0 5px 18px rgba(23, 45, 69, .04); transition: transform .18s, box-shadow .18s, border-color .18s; } +.ac-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 30px 0; border-bottom: 1px solid #e7ecf0; } +.ac-service { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #e5e9ed; border-top: 2px solid #d8bd91; border-radius: 8px; background: linear-gradient(145deg, #fff, #f4f7f9); box-shadow: 0 5px 18px rgba(23, 45, 69, .04); transition: transform .18s, box-shadow .18s, border-color .18s; } .ac-service-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; } .ac-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #e7d9c4; border-radius: 10px; background: #f7f0e6; color: #876637; } .ac-service-number { font-size: 10px; letter-spacing: 1.3px; color: #6a7886; } -.ac-home .ac-service h2 { display: flex; justify-content: space-between; gap: 12px; margin: 11px 0 5px; font-size: 18px; font-weight: 600; } -.ac-service h2 span { color: #688197; font-weight: 400; } -.ac-service:hover h2 { color: #347397; } -.ac-service p { font-size: 12px; color: #74808b; } -.ac-home .ac-service-featured { color: #fff; border-color: #244d6c; border-top-color: #dec399; background: linear-gradient(135deg, #173c5b, #244f70); box-shadow: 0 8px 22px rgba(23, 60, 91, .15); } -.ac-service-featured .ac-service-icon { color: #f1dfc2; border-color: #668093; background: rgba(255,255,255,.07); } -.ac-service-featured .ac-service-number, .ac-service-featured h2 span { color: #f1dfc2; } -.ac-service-featured p { color: #dfE8ef; } -.ac-service-featured:hover h2 { color: #f1dfc2; } +.ac-home .ac-service h2 { margin: 11px 0 5px; font-size: 18px; font-weight: 600; } +.ac-home .ac-service p { margin-bottom: 22px; font-size: 12px; color: #74808b; } +.ac-service-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; min-height: 44px; padding: 10px 16px; border-radius: 5px; background: #173c5b; color: #fff; font-size: 14px; font-weight: 600; } +.ac-service:is(:hover, :focus-visible) { border-color: #285b7c; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(23, 60, 91, .12); } +.ac-service:is(:hover, :focus-visible) .ac-service-action { background: #245577; } .ac-section { padding: 64px 0; } .ac-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 32px; } .ac-home h2 { font-size: 30px; line-height: 1.45; font-weight: 600; } @@ -109,6 +105,7 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros .ac-home .ac-hero h1 { font-size: 39px; } .ac-hero-features { flex-wrap: wrap; gap: 12px; } .ac-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } + .ac-services > .ac-service:last-child { grid-column: 1 / -1; } .ac-section { padding: 44px 0; } .ac-steps { gap: 22px; } .ac-steps li { display: block; } @@ -132,11 +129,11 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros .ac-home .ac-hero-description { font-size: 13px; } .ac-actions { flex-wrap: nowrap; gap: 9px; margin-top: 24px; } .ac-home .ac-actions .ac-button { flex: 1; font-size: 12px; padding: 12px 10px; gap: 8px; min-height: 48px; } - .ac-disclosure { padding: 20px 0; font-size: 11px; gap: 9px; } - .ac-service p { font-size: 11px; } + .ac-disclosure { padding: 20px 0; font-size: 14px; gap: 9px; } + .ac-home .ac-service p { font-size: 11px; } .ac-services { gap: 12px; } .ac-home .ac-service h2 { font-size: 14px; } - .ac-service h2 span { display: none; } + .ac-service-action { padding: 10px 8px; gap: 6px; font-size: 12px; } .ac-service-number { font-size: 9px; letter-spacing: .5px; } .ac-service { padding: 18px 13px; } .ac-service-head { gap: 5px; margin-bottom: 17px; } @@ -164,11 +161,10 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros .ac-footer-links .ac-brand img { width: 240px; } } @media (hover: hover) { - .ac-service:hover { transform: translateY(-3px); border-color: #c6a575; box-shadow: 0 12px 26px rgba(23, 45, 69, .1); } .ac-home .ac-button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(9, 30, 49, .16); } } @media (prefers-reduced-motion: reduce) { .ac-home .ac-button, .ac-service { transition: none; } - .ac-home .ac-button:hover, .ac-service:hover { transform: none; } + .ac-home .ac-button:hover, .ac-service:is(:hover, :focus-visible) { transform: none; } } diff --git a/public/static/home/css/inner-acvisa.css b/public/static/home/css/inner-acvisa.css index 4eaa2e5..1045397 100644 --- a/public/static/home/css/inner-acvisa.css +++ b/public/static/home/css/inner-acvisa.css @@ -38,6 +38,7 @@ body:has(.ac-header) .m-form-application-title { body:has(.ac-header) .m-form-application-title h2 { color: #173f62; font-weight: 600; } body:has(.ac-header) .layui-upload-drag .layui-icon { color: var(--primary-color); } body:has(.ac-header) .login-logo { color: #173f62; background: #f1dfc2; border-radius: 5px; } +body:has(.ac-header) .login-logo img { filter: brightness(0) saturate(100%) invert(19%) sepia(26%) saturate(1725%) hue-rotate(167deg) brightness(95%) contrast(94%); } .login-page:has(.ac-header) .login-box { border-radius: 8px !important; box-shadow: 0 8px 24px rgba(23, 45, 69, .05) !important; } body:not(.ac-home):has(.ac-header) .footer { margin-top: auto; } @@ -89,3 +90,63 @@ body:is(.detail-page, .esta-page, .lookup-page):has(.ac-header) .layui-form-labe /* The lookup grid already owns its column layout; avoid doubling its outer padding. */ body.lookup-page:has(.ac-header) .lookup-shell { width: 100%; max-width: none; padding: 0; } body.lookup-page:has(.ac-header) #Form1 .lookup-form-grid { padding: 4px 10px 0; } + +/* Style the existing EVUS steps as cards without changing their visibility or field structure. */ +body.detail-page:has(.ac-header) .detail-shell > .layui-container > .container:has(> .layui-form) { + padding: 0; + border: 0; + background: transparent; + box-shadow: none; +} +body.detail-page:has(.ac-header) .detail-shell form.layui-form { + margin-bottom: 24px; + padding: 28px 24px 18px; + border: 1px solid #e1e8ee; + border-top: 3px solid #d8bd91; + border-radius: 12px; + background: #fff; + box-shadow: 0 6px 22px rgba(23, 45, 69, .04); +} +body.detail-page:has(.ac-header) .detail-shell .m-form-application-title h2 { font-size: 22px; } +body.detail-page:has(.ac-header) .detail-shell .layui-form-label { padding-top: 6px; padding-bottom: 8px; line-height: 1.6; } +body.detail-page:has(.ac-header) .detail-shell .layui-input { border-color: #d9e2e9; border-radius: 6px; } +body.detail-page:has(.ac-header) .detail-shell .layui-input:focus { border-color: #285b7c !important; box-shadow: 0 0 0 3px rgba(40, 91, 124, .1); } +/* Keep address fields in paired rows even when labels have different heights. */ +body.detail-page:has(.ac-header) #Form3 > .layui-row:has(> .layui-col-md6) { display: flex; flex-wrap: wrap; } +body.detail-page:has(.ac-header) #Form3 > .layui-row > .layui-field-title { flex-basis: 100%; } +body.detail-page:has(.ac-header) .detail-shell .layui-col-md12 > .layui-form-item:has(input[type="radio"]) { + min-height: 0; + margin-bottom: 12px; + padding-bottom: 12px; + border-bottom: 1px solid #edf1f4; +} +body.detail-page:has(.ac-header) .detail-shell .layui-form-radio { margin-top: 0; padding: 6px 8px; line-height: 1.7; white-space: normal; } +body.detail-page:has(.ac-header) #Form9 .layui-form-item:has(input[name="total_price"]) { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 12px; + border: 0; +} +body.detail-page:has(.ac-header) #Form9 .layui-input-block:has(input[name="total_price"]) { margin: 0; min-width: 0; } +body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radio { + display: flex; + align-items: flex-start; + gap: 10px; + height: 100%; + box-sizing: border-box; + margin: 0; + padding: 16px; + border: 1px solid #d9e2e9; + border-radius: 8px; + background: #f8fafc; +} +body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radio > i { flex-shrink: 0; margin-right: 0; } +body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radioed { border-color: #173f62; background: #edf3f7; box-shadow: inset 0 0 0 1px #173f62; } +body.detail-page:has(.ac-header) #Form9 .payment-choice-option:has(input:checked) { border-color: #173f62; box-shadow: 0 0 0 1px #173f62; } +body.detail-page:has(.ac-header) #submit { min-width: 220px; min-height: 48px; margin-top: 8px; border-radius: 6px; font-size: 18px; box-shadow: none; } +@media (max-width: 800px) { + body.detail-page:has(.ac-header) .detail-shell form.layui-form { margin-bottom: 16px; padding: 20px 10px 12px; } + body.detail-page:has(.ac-header) .detail-shell .m-form-application-title h2 { font-size: 20px; } + body.detail-page:has(.ac-header) #Form9 .layui-form-item:has(input[name="total_price"]) { grid-template-columns: 1fr; } + body.detail-page:has(.ac-header) #submit { width: 100%; min-width: 0; } +} diff --git a/public/static/home/css/site-shell.css b/public/static/home/css/site-shell.css index 0568323..bf61f50 100644 --- a/public/static/home/css/site-shell.css +++ b/public/static/home/css/site-shell.css @@ -7,11 +7,11 @@ .ac-topline { color: #e0e9f2; background: #122e4b; font-size: 11px; letter-spacing: 1px; } .ac-topline .ac-wrap { display: flex; justify-content: space-between; padding: 8px 0; } .ac-header { background: #fff; border-bottom: 1px solid #e4d6c1; } -.ac-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px; } +.ac-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 56px; } .ac-brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; } .ac-brand img { display: block; width: 260px; height: auto; filter: brightness(0) saturate(100%) invert(19%) sepia(26%) saturate(1725%) hue-rotate(167deg) brightness(95%) contrast(94%); } .ac-nav { display: flex; gap: 25px; align-items: center; } -.ac-nav a { padding: 20px 0 18px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; } +.ac-nav a { padding: 14px 0 12px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; } .ac-nav a:hover, .ac-nav a[aria-current] { color: #153e63; border-bottom-color: #b8894d; } .ac-account { font-size: 13px; white-space: nowrap; } .ac-account span { margin-left: 10px; } @@ -60,11 +60,12 @@ body:has(.ac-header) .evus-foot { display: none; } body:has(.ac-header) .evus-foot a { display: flex; justify-content: center; align-items: center; flex: 1; width: auto; height: 42px; margin: 0; padding: 0 8px; color: #23445e; background: #fff; font-size: 13px; line-height: 1.5; border: 0; } body:has(.ac-header) .evus-foot a[aria-current="page"] { color: #fff; background: #173f62; border-radius: 4px; } } -.ac-header-services .ac-brand img { width: 180px; } -.ac-header-services .ac-header-inner { gap: 20px; } -.ac-header-services .ac-nav { gap: 16px; } +.ac-header-services .ac-brand img { width: 220px; } +.ac-header-services .ac-header-inner { gap: 32px; } +.ac-header-services .ac-nav { gap: 32px; } +.ac-header-services .ac-nav a { font-size: 15px; } @media (min-width: 801px) and (max-width: 1150px) { - .ac-header-services .ac-header-inner { flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-top: 14px; } + .ac-header-services .ac-header-inner { flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-top: 10px; } .ac-header-services .ac-nav { order: 3; width: 100%; justify-content: center; } } @media (max-width: 800px) { diff --git a/tests/homepage.php b/tests/homepage.php index 41479eb..cdf52f8 100644 --- a/tests/homepage.php +++ b/tests/homepage.php @@ -16,12 +16,24 @@ $template = new think\Template([ $vars = [ 'seo' => ['title' => 'EVUS 中文登记服务', 'description' => '首页本地预览', 'keywords' => 'EVUS'], 'logo_icon' => '', 'asset_version' => 'preview', 'menu_url' => 'index/index', - 'footer' => '', 'phone' => '', + 'footer' => '', 'phone' => '', 'base_path' => '/evus', ]; foreach ([[], [['id' => 7, 'title' => '', 'create_time' => '2026-10-29']]] as $news) { ob_start(); $template->fetch('index/index', $vars + ['data' => $news]); $html = ob_get_clean(); + preg_match('~~s', $html, $header); + $homepageNavigation = str_replace('aria-current="page"', '', $header[0]); + preg_match_all('~]*>(.*?)~s', $header[0], $menus); + preg_match_all('~href="([^"]+)"~', $menus[1][0], $desktopLinks); + preg_match_all('~href="([^"]+)"~', $menus[1][1], $mobileLinks); + $desktopLinks[1][] = (string) url('home/user/order'); + if (count($mobileLinks[1]) !== 8 || $desktopLinks[1] !== $mobileLinks[1]) { + throw new RuntimeException('Homepage desktop and mobile menus must share all eight entries in order'); + } + if (str_contains($html, 'https://visa.evus.cn')) { + throw new RuntimeException('Unfinished US visa website must not be linked from the homepage'); + } if (substr_count($html, 'src="/static/home/images/logo_113.png"') !== 2 || !str_contains($html, 'href="/static/home/images/evus-icon.png"')) { throw new RuntimeException('Original EVUS logo and default site icon must render'); } @@ -70,11 +82,15 @@ foreach (['detail/index' => 'detail/index', 'lookup/index' => 'lookup/index', 'n ob_start(); $template->fetch('public/home_menu', array_replace($vars, ['menu_url' => $current])); $navigation = ob_get_clean(); + preg_match('~~s', $navigation, $innerHeader); + if (str_replace('aria-current="page"', '', $innerHeader[0]) !== $homepageNavigation) { + throw new RuntimeException('Homepage and inner navigation must match apart from the active page'); + } $activeLink = 'href="' . url('home/' . $active) . '" aria-current="page"'; if (substr_count($navigation, $activeLink) !== 2) { throw new RuntimeException('Desktop and mobile navigation must highlight: ' . $current); } - foreach (['https://visa.evus.cn', (string) url('home/esta/index'), 'class="ac-mobile-menu"', 'id="ac-mobile-menu-dismiss"'] as $required) { + foreach ([(string) url('home/esta/index'), 'class="ac-mobile-menu"', 'id="ac-mobile-menu-dismiss"'] as $required) { if (!str_contains($navigation, $required)) { throw new RuntimeException('Shared navigation must retain: ' . $required); }