This commit is contained in:
gaofeng
2026-05-13 10:20:40 +08:00
parent 18cbcf6069
commit e32040676a
3 changed files with 84 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ const SOURCE = 'evisa.hkpgsow.cn';
const OSS_URL = 'https://files.jzvisa.com/' . BUCKET . '/'; const OSS_URL = 'https://files.jzvisa.com/' . BUCKET . '/';
const PAY_TYPE = ['1' => 'wechatpay', '2' => 'alipay']; const PAY_TYPE = ['1' => 'wechatpay', '2' => 'alipay'];
const INCOICETYPE = '17';
const CONFIG_JSON_NATION_EN = './json/nation_en.json'; const CONFIG_JSON_NATION_EN = './json/nation_en.json';
const CONFIG_JSON_PHONE_PREFIX_EN = './json/phone_prefix_en.json'; const CONFIG_JSON_PHONE_PREFIX_EN = './json/phone_prefix_en.json';
const CONFIG_JSON_TRAVEL_COUNTRY_EN = './json/travel_country_en.json'; const CONFIG_JSON_TRAVEL_COUNTRY_EN = './json/travel_country_en.json';

View File

@@ -33,10 +33,20 @@
</ul> </ul>
<ul class="navbar-nav topbar-user-nav align-items-xl-center gap-xl-2 mt-2 mt-xl-0"> <ul class="navbar-nav topbar-user-nav align-items-xl-center gap-xl-2 mt-2 mt-xl-0">
{if session('user.id')} {if session('user.id')}
<li class="nav-item"><a class="nav-link" href="{:url('user/index')}">个人中心</a></li> <li class="nav-item">
<li class="nav-item"><a class="nav-link" href="{:url('login/logout')}">退出</a></li> <a class="nav-link topbar-user-btn" href="{:url('user/index')}">
<i class="bi bi-person-circle"></i>
<span>个人中心</span>
</a>
</li>
<li class="nav-item"><a class="nav-link topbar-logout-link" href="{:url('login/logout')}">退出</a></li>
{else/} {else/}
<li class="nav-item"><a class="nav-link" href="{:url('user/index')}">登录</a></li> <li class="nav-item">
<a class="nav-link topbar-user-btn" href="{:url('user/index')}">
<i class="bi bi-person-circle"></i>
<span>登录</span>
</a>
</li>
{/if} {/if}
</ul> </ul>
</div> </div>

View File

@@ -602,6 +602,20 @@ footer a:hover{ color:#fff; text-decoration:underline; }
.topbar .topbar-user-nav .nav-link{ .topbar .topbar-user-nav .nav-link{
white-space: nowrap; white-space: nowrap;
} }
.topbar .topbar-user-btn{
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid rgba(255,255,255,.36);
border-radius: 14px;
background: rgba(255,255,255,.08);
font-weight: 800;
}
.topbar .topbar-user-btn i{
font-size: 22px;
line-height: 1;
}
/* PC#nav 在同一行靠右 */ /* PC#nav 在同一行靠右 */
@media (min-width: 1200px){ @media (min-width: 1200px){
.topbar .topbar-inner{ .topbar .topbar-inner{
@@ -710,6 +724,62 @@ footer a:hover{ color:#fff; text-decoration:underline; }
.why2-item h6{ margin: 0 0 4px; font-weight: 900; } .why2-item h6{ margin: 0 0 4px; font-weight: 900; }
.why2-item p{ margin:0; color: rgba(15,23,42,.70); font-size: 13px; line-height:1.75; } .why2-item p{ margin:0; color: rgba(15,23,42,.70); font-size: 13px; line-height:1.75; }
/* Public nav layout */
@media (min-width: 1200px){
.topbar .navbar{
min-height: 140px;
}
.topbar .topbar-inner{
max-width: none;
padding-left: 36px;
padding-right: 138px;
}
.topbar .topbar-head{
display: none;
}
.topbar .topbar-nav{
display: flex !important;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.topbar .topbar-main-nav{
flex: 1 1 auto;
justify-content: flex-start;
gap: 40px !important;
}
.topbar .topbar-main-nav .nav-link{
padding: 0;
font-size: 28px;
font-weight: 500;
line-height: 1.2;
}
.topbar .topbar-user-nav{
flex: 0 0 auto;
justify-content: flex-end;
margin-left: auto;
}
.topbar .topbar-user-btn{
min-width: 196px;
height: 68px;
padding: 0 22px;
font-size: 28px;
border-radius: 14px;
}
.topbar .topbar-logout-link{
font-size: 18px;
padding-left: 6px;
padding-right: 0;
}
}
@media (max-width: 1199.98px){
.topbar .topbar-user-btn{
width: 100%;
border-radius: 10px;
}
}
/* ---- Passport upload icon button ---- */ /* ---- Passport upload icon button ---- */
.passport-wrap{ position:relative; } .passport-wrap{ position:relative; }
.passport-upload{ .passport-upload{