提交开发分支未提交代码并修正配置
This commit is contained in:
@@ -10,40 +10,19 @@
|
||||
|
||||
<main class="auth-page">
|
||||
<section class="brand-stage" aria-label="指尖设计师">
|
||||
<div class="brand-mark" aria-hidden="true">
|
||||
<span>指</span>
|
||||
</div>
|
||||
<p class="brand-name">指尖设计师</p>
|
||||
<h1 class="brand-title">
|
||||
{{ activeTab === 'login' ? '艺术触手可及' : '开启你的预约账号' }}
|
||||
</h1>
|
||||
<p class="brand-copy">
|
||||
{{ activeTab === 'login' ? '选择门店,继续你的美甲灵感旅程。' : '注册后即可收藏款式、预约服务并同步门店权益。' }}
|
||||
</p>
|
||||
<p class="brand-copy">{{ activeTab === 'login' ? '登录后继续预约与收藏' : '填写信息完成账号注册' }}</p>
|
||||
</section>
|
||||
|
||||
<section class="auth-container" aria-label="账号登录注册">
|
||||
<div class="auth-card-header">
|
||||
<span class="auth-card-kicker">{{ activeTab === 'login' ? 'Welcome back' : 'Create account' }}</span>
|
||||
<h2>{{ activeTab === 'login' ? '登录账号' : '注册账号' }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="tab-container">
|
||||
<div
|
||||
class="tab-item"
|
||||
:class="{ active: activeTab === 'login' }"
|
||||
<button
|
||||
v-if="activeTab === 'register'"
|
||||
class="auth-mode-link auth-mode-link--top"
|
||||
type="button"
|
||||
@click="activeTab = 'login'"
|
||||
>
|
||||
账号登录
|
||||
</div>
|
||||
<div
|
||||
class="tab-item"
|
||||
:class="{ active: activeTab === 'register' }"
|
||||
@click="activeTab = 'register'"
|
||||
>
|
||||
注册账号
|
||||
</div>
|
||||
</div>
|
||||
返回登录
|
||||
</button>
|
||||
|
||||
<div v-if="activeTab === 'login'" class="login-type-toggle">
|
||||
<a-radio-group v-model:value="loginType" button-style="solid">
|
||||
@@ -345,6 +324,13 @@
|
||||
<div class="admin-login">
|
||||
<span class="admin-login-link" @click="handleAdminLogin">管理后台登录</span>
|
||||
</div>
|
||||
|
||||
<div v-if="activeTab === 'login'" class="auth-mode-footer">
|
||||
<span>还没有账号?</span>
|
||||
<button class="auth-mode-link" type="button" @click="activeTab = 'register'">
|
||||
注册账号
|
||||
</button>
|
||||
</div>
|
||||
</a-form>
|
||||
</section>
|
||||
</main>
|
||||
@@ -1334,8 +1320,9 @@ onBeforeUnmount(() => {
|
||||
var(--theme-page-bg) 100%
|
||||
),
|
||||
var(--theme-background-image),
|
||||
var(--theme-gradient),
|
||||
var(--theme-gradient-soft);
|
||||
background-size: cover, cover, auto;
|
||||
background-size: cover, cover, auto, auto;
|
||||
background-position: center top;
|
||||
color: var(--text-primary);
|
||||
overflow-x: hidden;
|
||||
@@ -1389,113 +1376,41 @@ onBeforeUnmount(() => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 22px;
|
||||
gap: 14px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.brand-stage {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 12px 10px 0;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 76px;
|
||||
height: 76px;
|
||||
margin: 0 auto 14px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background:
|
||||
linear-gradient(
|
||||
145deg,
|
||||
color-mix(in srgb, var(--theme-card-bg) 88%, transparent),
|
||||
color-mix(in srgb, var(--theme-primary-soft) 84%, var(--theme-card-bg))
|
||||
);
|
||||
border: 1px solid color-mix(in srgb, var(--theme-card-bg) 70%, var(--theme-border));
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
}
|
||||
|
||||
.brand-mark span {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background: var(--theme-gradient);
|
||||
color: var(--theme-card-bg);
|
||||
font-family: "Playfair Display", serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
padding: 6px 10px 0;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
margin: 0;
|
||||
color: var(--theme-primary-action);
|
||||
font-family: "Playfair Display", serif;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
line-height: 1.05;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
margin: 8px 0 0;
|
||||
color: var(--text-primary);
|
||||
font-family: "Playfair Display", serif;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
max-width: 310px;
|
||||
margin: 10px auto 0;
|
||||
margin: 8px auto 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
width: 100%;
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 86%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--theme-card-bg) 70%, var(--theme-border));
|
||||
border-radius: 28px;
|
||||
padding: 22px 18px 20px;
|
||||
box-shadow: 0 22px 46px color-mix(in srgb, var(--theme-primary) 14%, transparent);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.auth-card-header {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.auth-card-kicker {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--theme-primary-soft) 82%, var(--theme-card-bg));
|
||||
color: var(--theme-primary-action);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.auth-card-header h2 {
|
||||
margin: 10px 0 0;
|
||||
color: var(--text-primary);
|
||||
font-family: "Playfair Display", serif;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
letter-spacing: 0;
|
||||
background: var(--theme-card-bg);
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 18px;
|
||||
padding: 20px 18px 18px;
|
||||
box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-neutral) 8%, transparent);
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
@@ -1515,41 +1430,6 @@ onBeforeUnmount(() => {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.tab-container {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 18px;
|
||||
padding: 5px;
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--theme-primary-soft) 52%, var(--theme-card-bg));
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
min-height: 42px;
|
||||
padding: 11px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
color: var(--theme-card-bg);
|
||||
background: var(--theme-gradient);
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
}
|
||||
|
||||
.tab-item.active::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-type-toggle {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
@@ -1666,16 +1546,11 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.shop-select-item {
|
||||
margin: 4px 0 18px;
|
||||
padding: 14px;
|
||||
border-radius: 22px;
|
||||
margin: 0 0 14px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--theme-border);
|
||||
background:
|
||||
linear-gradient(
|
||||
145deg,
|
||||
color-mix(in srgb, var(--theme-card-bg) 88%, var(--theme-primary-soft)),
|
||||
color-mix(in srgb, var(--theme-secondary-soft) 32%, var(--theme-card-bg))
|
||||
);
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 92%, var(--theme-primary-soft));
|
||||
}
|
||||
|
||||
.shop-select-item :deep(.ant-form-item-label > label) {
|
||||
@@ -1826,6 +1701,38 @@ onBeforeUnmount(() => {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.auth-mode-footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 14px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.auth-mode-link {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--theme-primary-action);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.auth-mode-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.auth-mode-link--top {
|
||||
display: inline-flex;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.phone-login-tip {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
@@ -1838,19 +1745,19 @@ onBeforeUnmount(() => {
|
||||
min-height: 52px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: var(--theme-gradient);
|
||||
background: var(--theme-primary-action);
|
||||
color: var(--theme-card-bg);
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
box-shadow: 0 10px 22px color-mix(in srgb, var(--theme-primary) 16%, transparent);
|
||||
}
|
||||
|
||||
.primary-action:not(:disabled):hover,
|
||||
.primary-action:not(:disabled):focus {
|
||||
background: var(--theme-gradient);
|
||||
background: var(--theme-primary-action);
|
||||
color: var(--theme-card-bg);
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
box-shadow: 0 10px 22px color-mix(in srgb, var(--theme-primary) 16%, transparent);
|
||||
}
|
||||
|
||||
.primary-action:disabled {
|
||||
@@ -1953,27 +1860,11 @@ onBeforeUnmount(() => {
|
||||
|
||||
.auth-page {
|
||||
min-height: calc(100svh - 92px);
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.brand-mark span {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 22px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: 21px;
|
||||
font-size: 23px;
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
@@ -1981,12 +1872,8 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
border-radius: 24px;
|
||||
border-radius: 18px;
|
||||
padding: 20px 16px 18px;
|
||||
}
|
||||
|
||||
.auth-card-header h2 {
|
||||
font-size: 21px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user