杂务:更新 YumiNail 工作区
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
<template>
|
||||
<div class="mobile-container">
|
||||
<div class="auth-container">
|
||||
<div class="logo-section">
|
||||
<div class="logo">Yumi</div>
|
||||
<div class="subtitle">美甲服务平台</div>
|
||||
</div>
|
||||
<main class="auth-page">
|
||||
<section class="brand-stage" aria-label="YumiNail">
|
||||
<div class="brand-mark" aria-hidden="true">
|
||||
<span>Y</span>
|
||||
</div>
|
||||
<p class="brand-name">YumiNail</p>
|
||||
<h1 class="brand-title">
|
||||
{{ activeTab === 'login' ? '艺术触手可及' : '开启你的预约账号' }}
|
||||
</h1>
|
||||
<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
|
||||
@@ -12,14 +26,14 @@
|
||||
:class="{ active: activeTab === 'login' }"
|
||||
@click="activeTab = 'login'"
|
||||
>
|
||||
登录
|
||||
账号登录
|
||||
</div>
|
||||
<div
|
||||
class="tab-item"
|
||||
:class="{ active: activeTab === 'register' }"
|
||||
@click="activeTab = 'register'"
|
||||
>
|
||||
注册
|
||||
注册账号
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,7 +58,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -58,7 +72,7 @@
|
||||
@blur="handleRegisterAccountBlur"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
<div
|
||||
@@ -78,7 +92,7 @@
|
||||
@blur="handleRegisterPhoneBlur"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
<div
|
||||
@@ -97,7 +111,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
<template #suffix>
|
||||
<a-button
|
||||
@@ -123,7 +137,7 @@
|
||||
@input="handleAccountInput"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
<div
|
||||
@@ -146,11 +160,11 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
<div class="phone-login-tip">
|
||||
<InfoCircleOutlined style="color: #1890ff; margin-right: 4px;" />
|
||||
<InfoCircleOutlined style="color: var(--theme-primary); margin-right: 4px;" />
|
||||
<span>新用户将自动注册</span>
|
||||
</div>
|
||||
</a-form-item>
|
||||
@@ -166,7 +180,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
<template #suffix>
|
||||
<a-button
|
||||
@@ -184,6 +198,7 @@
|
||||
v-if="activeTab === 'login'"
|
||||
name="shopId"
|
||||
label="选择登录店铺"
|
||||
class="shop-select-item"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="formData.shopId"
|
||||
@@ -228,7 +243,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input-password>
|
||||
</a-form-item>
|
||||
@@ -240,7 +255,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input-password>
|
||||
</a-form-item>
|
||||
@@ -253,7 +268,7 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item v-if="activeTab === 'register'" name="shopId" label="选择店铺">
|
||||
<a-form-item v-if="activeTab === 'register'" name="shopId" label="选择店铺" class="shop-select-item">
|
||||
<a-select
|
||||
v-model:value="formData.shopId"
|
||||
placeholder="请选择店铺"
|
||||
@@ -299,6 +314,7 @@
|
||||
html-type="submit"
|
||||
size="large"
|
||||
block
|
||||
class="primary-action"
|
||||
:loading="loading"
|
||||
:disabled="!agreementAccepted"
|
||||
>
|
||||
@@ -313,13 +329,17 @@
|
||||
<div class="social-hint">
|
||||
微信手机号授权登录请在小程序中使用;网页端可使用账号密码或验证码登录。
|
||||
</div>
|
||||
<button type="button" class="guest-entry" @click="router.push('/home')">
|
||||
游客浏览
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="admin-login">
|
||||
<span class="admin-login-link" @click="handleAdminLogin">管理后台登录</span>
|
||||
</div>
|
||||
</a-form>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<a-modal
|
||||
v-model:open="forgotPasswordVisible"
|
||||
@@ -341,7 +361,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<UserOutlined style="color: #999" />
|
||||
<UserOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -353,7 +373,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
<template #suffix>
|
||||
<a-button
|
||||
@@ -374,7 +394,7 @@
|
||||
size="large"
|
||||
>
|
||||
<template #prefix>
|
||||
<LockOutlined style="color: #999" />
|
||||
<LockOutlined style="color: var(--text-secondary)" />
|
||||
</template>
|
||||
</a-input-password>
|
||||
</a-form-item>
|
||||
@@ -407,7 +427,7 @@
|
||||
>
|
||||
<div class="agreement-content">
|
||||
<div class="agreement-version">版本:{{ selectedAgreement?.version || '--' }}</div>
|
||||
<pre>{{ selectedAgreement?.content || '暂无协议内容' }}</pre>
|
||||
<div class="agreement-rich-content" v-html="agreementContentHtml"></div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
@@ -432,6 +452,7 @@ import { shopApi } from '@/api/shop'
|
||||
import { ACCOUNT_REGEX, ACCOUNT_RULE_MESSAGE, sanitizeAccountInput } from '@/utils/account'
|
||||
import { runWithGlobalLoading } from '@/utils/action-loading'
|
||||
import { notifyShopThemeChanged } from '@/utils/shop-theme'
|
||||
import { renderRichContent } from '@/utils/rich-content'
|
||||
import {
|
||||
userApi,
|
||||
type AvailabilityCheckResponse,
|
||||
@@ -518,6 +539,7 @@ const agreementModalOpen = ref(false)
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const selectedAgreement = ref<LegalAgreement | null>(null)
|
||||
const agreementContentHtml = computed(() => renderRichContent(selectedAgreement.value?.content || '暂无协议内容'))
|
||||
|
||||
/**
|
||||
* Purpose: forgotPasswordForm supports AuthView.vue by holding or executing the forgot password form page or API role.
|
||||
@@ -1287,20 +1309,137 @@ onBeforeUnmount(() => {
|
||||
<style scoped>
|
||||
.mobile-container {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
min-height: 100svh;
|
||||
background:
|
||||
linear-gradient(
|
||||
180deg,
|
||||
color-mix(in srgb, var(--theme-page-bg) 86%, transparent) 0%,
|
||||
color-mix(in srgb, var(--theme-primary-soft) 72%, var(--theme-page-bg)) 48%,
|
||||
var(--theme-page-bg) 100%
|
||||
),
|
||||
var(--theme-background-image),
|
||||
var(--theme-gradient-soft);
|
||||
background-size: cover, cover, auto;
|
||||
background-position: center top;
|
||||
color: var(--text-primary);
|
||||
overflow-x: hidden;
|
||||
padding: 24px 20px 28px;
|
||||
}
|
||||
|
||||
.auth-page {
|
||||
width: 100%;
|
||||
max-width: 430px;
|
||||
min-height: calc(100svh - 52px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
gap: 22px;
|
||||
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: 30px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
margin: 0;
|
||||
color: var(--theme-primary-action);
|
||||
font-family: "Playfair Display", serif;
|
||||
font-size: 42px;
|
||||
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: 28px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
max-width: 310px;
|
||||
margin: 10px auto 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
background: white;
|
||||
border-radius: 20px;
|
||||
padding: 30px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
||||
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: 26px;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
@@ -1311,88 +1450,227 @@ onBeforeUnmount(() => {
|
||||
.logo {
|
||||
font-size: 48px;
|
||||
font-weight: bold;
|
||||
color: #667eea;
|
||||
color: var(--theme-primary);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.tab-container {
|
||||
display: flex;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 2px solid #f0f0f0;
|
||||
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;
|
||||
padding: 15px;
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
min-height: 42px;
|
||||
padding: 11px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
color: #667eea;
|
||||
font-weight: bold;
|
||||
color: var(--theme-card-bg);
|
||||
background: var(--theme-gradient);
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
}
|
||||
|
||||
.tab-item.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: #667eea;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-type-toggle {
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.login-type-toggle :deep(.ant-radio-group) {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.login-type-toggle :deep(.ant-radio-button-wrapper) {
|
||||
height: 40px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 82%, transparent);
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.login-type-toggle :deep(.ant-radio-button-wrapper::before) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-type-toggle :deep(.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)) {
|
||||
color: var(--theme-card-bg);
|
||||
background: var(--theme-primary-action);
|
||||
border-color: var(--theme-primary-action);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.auth-form {
|
||||
margin-top: 20px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-form-item) {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-form-item-label) {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-form-item-label > label) {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input),
|
||||
.auth-form :deep(.ant-input-affix-wrapper),
|
||||
.auth-form :deep(.ant-select-selector) {
|
||||
min-height: 52px;
|
||||
border-radius: 18px;
|
||||
border-color: var(--theme-border);
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 88%, var(--theme-primary-soft));
|
||||
color: var(--text-primary);
|
||||
box-shadow: none;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input),
|
||||
.auth-form :deep(.ant-input-affix-wrapper) {
|
||||
padding-inline: 15px;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input-affix-wrapper > input.ant-input) {
|
||||
min-height: auto;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input::placeholder),
|
||||
.auth-form :deep(.ant-select-selection-placeholder) {
|
||||
color: color-mix(in srgb, var(--text-secondary) 70%, transparent);
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input-affix-wrapper-focused),
|
||||
.auth-form :deep(.ant-input:focus),
|
||||
.auth-form :deep(.ant-select-focused .ant-select-selector) {
|
||||
border-color: var(--theme-primary);
|
||||
box-shadow: var(--theme-focus-shadow);
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 94%, var(--theme-primary-soft));
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-select-selector) {
|
||||
align-items: center;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-select-selection-item) {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input-prefix) {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-input-suffix .ant-btn-link) {
|
||||
height: 32px;
|
||||
padding: 0 2px;
|
||||
color: var(--theme-primary-action);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.shop-select-item {
|
||||
margin: 4px 0 18px;
|
||||
padding: 14px;
|
||||
border-radius: 22px;
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
.shop-select-item :deep(.ant-form-item-label > label) {
|
||||
color: var(--theme-primary-action);
|
||||
}
|
||||
|
||||
.shop-select-item :deep(.ant-form-item-control-input) {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.form-actions :deep(.ant-checkbox-wrapper) {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.field-status {
|
||||
margin-top: 8px;
|
||||
margin-top: 9px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.field-status.success {
|
||||
color: #52c41a;
|
||||
color: var(--theme-secondary);
|
||||
}
|
||||
|
||||
.field-status.error {
|
||||
color: #ff4d4f;
|
||||
color: var(--theme-primary-action);
|
||||
}
|
||||
|
||||
.forgot-password {
|
||||
color: #667eea;
|
||||
color: var(--theme-primary-action);
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
margin-top: 30px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.divider::before {
|
||||
@@ -1402,14 +1680,17 @@ onBeforeUnmount(() => {
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #f0f0f0;
|
||||
background: color-mix(in srgb, var(--theme-border) 78%, transparent);
|
||||
}
|
||||
|
||||
.divider span {
|
||||
background: white;
|
||||
padding: 0 15px;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 94%, var(--theme-primary-soft));
|
||||
padding: 0 12px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1420,13 +1701,31 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.social-hint {
|
||||
margin-bottom: 14px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
color: #8c8c8c;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.guest-entry {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--theme-card-bg) 76%, transparent);
|
||||
color: var(--theme-primary-action);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.guest-entry:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.social-circle-btn {
|
||||
opacity: 0.72;
|
||||
border-style: dashed;
|
||||
@@ -1438,45 +1737,98 @@ onBeforeUnmount(() => {
|
||||
justify-content: center;
|
||||
gap: 18px;
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.social-buttons .ant-btn {
|
||||
border-color: #f0f0f0;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
.social-buttons .ant-btn:hover {
|
||||
border-color: #667eea;
|
||||
color: #667eea;
|
||||
border-color: var(--theme-primary);
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.admin-login {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
margin-top: 18px;
|
||||
padding-top: 17px;
|
||||
border-top: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent);
|
||||
}
|
||||
|
||||
.admin-login-link {
|
||||
color: #667eea;
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.admin-login-link:hover {
|
||||
color: #764ba2;
|
||||
color: var(--theme-primary-action);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.phone-login-tip {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: #1890ff;
|
||||
color: var(--theme-primary-action);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.primary-action {
|
||||
min-height: 52px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: var(--theme-gradient);
|
||||
color: var(--theme-card-bg);
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
}
|
||||
|
||||
.primary-action:not(:disabled):hover,
|
||||
.primary-action:not(:disabled):focus {
|
||||
background: var(--theme-gradient);
|
||||
color: var(--theme-card-bg);
|
||||
box-shadow: var(--theme-button-shadow);
|
||||
}
|
||||
|
||||
.primary-action:disabled {
|
||||
color: color-mix(in srgb, var(--text-secondary) 56%, transparent);
|
||||
background: color-mix(in srgb, var(--theme-border) 62%, var(--theme-card-bg));
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-checkbox-wrapper),
|
||||
.auth-form :deep(a) {
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-checkbox-wrapper) {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.auth-form :deep(a) {
|
||||
color: var(--theme-primary-action);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-checkbox-checked .ant-checkbox-inner) {
|
||||
background-color: var(--theme-primary-action);
|
||||
border-color: var(--theme-primary-action);
|
||||
}
|
||||
|
||||
.auth-form :deep(.ant-checkbox-wrapper:hover .ant-checkbox-inner),
|
||||
.auth-form :deep(.ant-checkbox:hover .ant-checkbox-inner) {
|
||||
border-color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.agreement-content {
|
||||
max-height: 60vh;
|
||||
overflow: auto;
|
||||
@@ -1484,16 +1836,101 @@ onBeforeUnmount(() => {
|
||||
|
||||
.agreement-version {
|
||||
margin-bottom: 12px;
|
||||
color: #8c8c8c;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.agreement-content pre {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
margin: 0;
|
||||
font-family: inherit;
|
||||
line-height: 1.7;
|
||||
color: #333;
|
||||
.agreement-rich-content {
|
||||
color: var(--text-primary);
|
||||
line-height: 1.8;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(*) {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(p),
|
||||
.agreement-rich-content :deep(ul),
|
||||
.agreement-rich-content :deep(ol),
|
||||
.agreement-rich-content :deep(blockquote),
|
||||
.agreement-rich-content :deep(pre),
|
||||
.agreement-rich-content :deep(table) {
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(p:last-child),
|
||||
.agreement-rich-content :deep(ul:last-child),
|
||||
.agreement-rich-content :deep(ol:last-child),
|
||||
.agreement-rich-content :deep(blockquote:last-child),
|
||||
.agreement-rich-content :deep(pre:last-child),
|
||||
.agreement-rich-content :deep(table:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(ul),
|
||||
.agreement-rich-content :deep(ol) {
|
||||
padding-left: 1.25em;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(a) {
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(img) {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.agreement-rich-content :deep(pre) {
|
||||
overflow-x: auto;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--theme-primary-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.mobile-container {
|
||||
padding: 18px 14px 24px;
|
||||
}
|
||||
|
||||
.auth-page {
|
||||
min-height: calc(100svh - 42px);
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.brand-mark span {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 38px;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.auth-container {
|
||||
border-radius: 24px;
|
||||
padding: 20px 16px 18px;
|
||||
}
|
||||
|
||||
.auth-card-header h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user