设计完成30%
This commit is contained in:
@@ -32,10 +32,8 @@
|
||||
|
||||
<view class="entry-actions">
|
||||
<view class="entry-button entry-button--primary" hover-class="entry-button--pressed" @click="openLogin">
|
||||
<image class="button-corner-asset button-corner-asset--top-left" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--top-right" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--bottom-left" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--bottom-right" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<!-- 完整不透明按钮皮肤承载底色、边框与角纹,内容组只保留可访问的图标和文案。 -->
|
||||
<image class="entry-button__skin" src="/static/assets/foundation/opaque/a01-primary-button.png" mode="scaleToFill" />
|
||||
<view class="entry-button__content">
|
||||
<image class="entry-button__icon" src="/static/assets/foundation/transparent/auth-login-outline.png" mode="aspectFit" />
|
||||
<text>登录</text>
|
||||
@@ -43,10 +41,7 @@
|
||||
</view>
|
||||
|
||||
<view class="entry-button entry-button--secondary" hover-class="entry-button--pressed" @click="prepareWechatLogin">
|
||||
<image class="button-corner-asset button-corner-asset--top-left" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--top-right" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--bottom-left" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="button-corner-asset button-corner-asset--bottom-right" src="/static/assets/foundation/transparent/auth-button-corner.png" mode="aspectFit" />
|
||||
<image class="entry-button__skin" src="/static/assets/foundation/opaque/a01-secondary-button.png" mode="scaleToFill" />
|
||||
<view class="entry-button__content">
|
||||
<image class="entry-button__icon entry-button__icon--wechat" src="/static/assets/foundation/transparent/auth-wechat.png" mode="aspectFit" />
|
||||
<text>微信登录</text>
|
||||
@@ -226,47 +221,26 @@ const prepareAgreement = () => {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 118rpx;
|
||||
border: 2rpx solid #d8ad63;
|
||||
border-radius: 6rpx;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 38rpx;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.entry-button::after {
|
||||
.entry-button__skin {
|
||||
position: absolute;
|
||||
inset: 6rpx;
|
||||
border: 1rpx solid rgba(225, 180, 105, 0.92);
|
||||
border-radius: 2rpx;
|
||||
content: '';
|
||||
pointer-events: none;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.button-corner-asset {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
width: 54rpx;
|
||||
height: 54rpx;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.button-corner-asset--top-left { top: 4rpx; left: 4rpx; }
|
||||
.button-corner-asset--top-right { top: 4rpx; right: 4rpx; transform: scaleX(-1); }
|
||||
.button-corner-asset--bottom-left { bottom: 4rpx; left: 4rpx; transform: scaleY(-1); }
|
||||
.button-corner-asset--bottom-right { right: 4rpx; bottom: 4rpx; transform: scale(-1); }
|
||||
|
||||
.entry-button--primary {
|
||||
border-color: #9e170e;
|
||||
background: #b7170d;
|
||||
color: #fffaf0;
|
||||
}
|
||||
|
||||
.entry-button--primary::after { border-color: #edc67c; }
|
||||
|
||||
.entry-button--secondary {
|
||||
margin-top: 51rpx;
|
||||
background: rgba(255, 252, 245, 0.82);
|
||||
color: #60442f;
|
||||
}
|
||||
|
||||
|
||||
+123
-78
@@ -12,49 +12,58 @@
|
||||
</view>
|
||||
|
||||
<view class="login-panel">
|
||||
<view class="page-heading">
|
||||
<view class="back-button" hover-class="back-hover" @click="goBack">‹</view>
|
||||
<view>
|
||||
<text class="page-title">登录家谱</text>
|
||||
<text class="page-subtitle">欢迎回到家族记忆</text>
|
||||
<image class="login-panel__skin" src="/static/assets/modules/auth/opaque/a02-login-panel.png" mode="scaleToFill" />
|
||||
<view class="login-panel__content">
|
||||
<view class="page-heading">
|
||||
<image class="login-title-cloud" src="/static/assets/foundation/transparent/auth-title-cloud.png" mode="aspectFit" />
|
||||
<view class="back-button" hover-class="back-hover" @click="goBack">
|
||||
<image class="back-button__icon" src="/static/assets/foundation/transparent/chevron-right.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="page-heading__copy">
|
||||
<text class="page-title">登录家谱</text>
|
||||
<text class="page-subtitle">欢迎回到家族记忆</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="login-tabs">
|
||||
<view class="login-tab" :class="{ active: activeTab === 'password' }" @click="activeTab = 'password'">
|
||||
<text>账号密码登录</text>
|
||||
<view class="login-tabs">
|
||||
<view class="login-tab" :class="{ active: activeTab === 'password' }" @click="activeTab = 'password'">
|
||||
<text>账号密码登录</text>
|
||||
</view>
|
||||
<view class="login-tab" :class="{ active: activeTab === 'sms' }" @click="activeTab = 'sms'">
|
||||
<text>手机验证码登录</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="login-tab" :class="{ active: activeTab === 'sms' }" @click="activeTab = 'sms'">
|
||||
<text>手机验证码登录</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="activeTab === 'password'" class="form-content">
|
||||
<view class="input-row">
|
||||
<text class="input-label">账号</text>
|
||||
<input v-model.trim="account" class="auth-input" placeholder="请输入账号或手机号" placeholder-class="placeholder" />
|
||||
<view v-if="activeTab === 'password'" class="form-content">
|
||||
<view class="input-row">
|
||||
<text class="input-label">账号</text>
|
||||
<input v-model.trim="account" class="auth-input" placeholder="请输入账号或手机号" placeholder-class="placeholder" />
|
||||
</view>
|
||||
<view class="input-row">
|
||||
<text class="input-label">密码</text>
|
||||
<input v-model="password" class="auth-input" password placeholder="请输入密码" placeholder-class="placeholder" />
|
||||
</view>
|
||||
<view class="secondary-action" hover-class="text-hover" @click="prepareForgotPassword">忘记密码</view>
|
||||
</view>
|
||||
<view class="input-row">
|
||||
<text class="input-label">密码</text>
|
||||
<input v-model="password" class="auth-input" password placeholder="请输入密码" placeholder-class="placeholder" />
|
||||
</view>
|
||||
<view class="secondary-action" hover-class="text-hover" @click="prepareForgotPassword">忘记密码</view>
|
||||
</view>
|
||||
|
||||
<view v-else class="form-content">
|
||||
<view class="input-row">
|
||||
<text class="input-label">手机</text>
|
||||
<input v-model.trim="smsPhone" class="auth-input" type="number" maxlength="11" placeholder="请输入手机号" placeholder-class="placeholder" />
|
||||
<view v-else class="form-content">
|
||||
<view class="input-row">
|
||||
<text class="input-label">手机</text>
|
||||
<input v-model.trim="smsPhone" class="auth-input" type="number" maxlength="11" placeholder="请输入手机号" placeholder-class="placeholder" />
|
||||
</view>
|
||||
<view class="input-row code-row">
|
||||
<text class="input-label">验证码</text>
|
||||
<input v-model.trim="verificationCode" class="auth-input" type="number" maxlength="6" placeholder="请输入验证码" placeholder-class="placeholder" />
|
||||
<view class="get-code" hover-class="text-hover" @click="prepareGetCode">获取验证码</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="input-row code-row">
|
||||
<text class="input-label">验证码</text>
|
||||
<input v-model.trim="verificationCode" class="auth-input" type="number" maxlength="6" placeholder="请输入验证码" placeholder-class="placeholder" />
|
||||
<view class="get-code" hover-class="text-hover" @click="prepareGetCode">获取验证码</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="login-submit" hover-class="button-hover" @click="submitLogin">登录</view>
|
||||
<text class="agreement-reminder">请先在登录引导页阅读并确认协议</text>
|
||||
<view class="login-submit" hover-class="button-hover" @click="submitLogin">
|
||||
<image class="login-submit__skin" src="/static/assets/foundation/opaque/a01-primary-button.png" mode="scaleToFill" />
|
||||
<text class="login-submit__content">登录</text>
|
||||
</view>
|
||||
<text class="agreement-reminder">请先在登录引导页阅读并确认协议</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -79,9 +88,7 @@ const goBack = () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
const prepareForgotPassword = () => {
|
||||
uni.showToast({ title: '忘记密码页面准备中', icon: 'none' })
|
||||
}
|
||||
const prepareForgotPassword = () => uni.navigateTo({ url: '/pages/auth/a05-reset-password' })
|
||||
|
||||
const prepareGetCode = () => {
|
||||
uni.showToast({ title: '获取验证码功能待接入', icon: 'none' })
|
||||
@@ -148,7 +155,7 @@ const submitLogin = () => {
|
||||
|
||||
.auth-header {
|
||||
position: relative;
|
||||
height: 196rpx;
|
||||
height: 253rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -159,44 +166,72 @@ const submitLogin = () => {
|
||||
|
||||
.header-seal {
|
||||
position: absolute;
|
||||
top: 34rpx;
|
||||
top: 70rpx;
|
||||
left: 50%;
|
||||
width: 124rpx;
|
||||
height: 124rpx;
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.login-panel {
|
||||
margin: 68rpx 56rpx 0;
|
||||
padding: 46rpx 38rpx 54rpx;
|
||||
border: 2rpx solid #d6ad6c;
|
||||
border-radius: 10rpx;
|
||||
background: rgba(255, 252, 246, 0.78);
|
||||
box-shadow: inset 0 0 0 5rpx rgba(255, 255, 255, 0.55);
|
||||
position: relative;
|
||||
min-height: 1184rpx;
|
||||
margin: 32rpx 42rpx 0;
|
||||
}
|
||||
|
||||
.login-panel__skin {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-panel__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
box-sizing: border-box;
|
||||
min-height: 1184rpx;
|
||||
padding: 66rpx 50rpx 76rpx;
|
||||
}
|
||||
|
||||
.page-heading {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login-title-cloud {
|
||||
position: absolute;
|
||||
top: -26rpx;
|
||||
right: 2rpx;
|
||||
width: 154rpx;
|
||||
height: 92rpx;
|
||||
opacity: 0.62;
|
||||
}
|
||||
|
||||
.page-heading__copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
margin-right: 20rpx;
|
||||
border: 1rpx solid #d7ae70;
|
||||
border-radius: 50%;
|
||||
color: #9d5b28;
|
||||
font-size: 52rpx;
|
||||
font-weight: 300;
|
||||
line-height: 40rpx;
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
margin-right: 18rpx;
|
||||
}
|
||||
|
||||
.back-hover { opacity: 0.62; }
|
||||
|
||||
.back-button__icon {
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.page-title,
|
||||
.page-subtitle {
|
||||
display: block;
|
||||
@@ -205,31 +240,31 @@ const submitLogin = () => {
|
||||
.page-title {
|
||||
color: #3f2c1d;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 46rpx;
|
||||
font-size: 50rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
margin-top: 8rpx;
|
||||
margin-top: 10rpx;
|
||||
color: #8c7864;
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.login-tabs {
|
||||
display: flex;
|
||||
margin-top: 54rpx;
|
||||
margin-top: 62rpx;
|
||||
border-bottom: 1rpx solid #dcc29a;
|
||||
}
|
||||
|
||||
.login-tab {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
padding: 0 0 24rpx;
|
||||
padding: 0 0 28rpx;
|
||||
color: #89715a;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 29rpx;
|
||||
font-size: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -249,27 +284,27 @@ const submitLogin = () => {
|
||||
content: '';
|
||||
}
|
||||
|
||||
.form-content { margin-top: 26rpx; }
|
||||
.form-content { margin-top: 36rpx; }
|
||||
|
||||
.input-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 96rpx;
|
||||
min-height: 112rpx;
|
||||
border-bottom: 1rpx solid #e5d4b7;
|
||||
}
|
||||
|
||||
.input-label {
|
||||
width: 92rpx;
|
||||
width: 100rpx;
|
||||
color: #674b35;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 30rpx;
|
||||
font-size: 31rpx;
|
||||
}
|
||||
|
||||
.auth-input {
|
||||
flex: 1;
|
||||
height: 88rpx;
|
||||
height: 104rpx;
|
||||
color: #3f2c1d;
|
||||
font-size: 28rpx;
|
||||
font-size: 29rpx;
|
||||
}
|
||||
|
||||
.placeholder { color: #b3a895; }
|
||||
@@ -285,7 +320,7 @@ const submitLogin = () => {
|
||||
}
|
||||
|
||||
.secondary-action {
|
||||
margin-top: 28rpx;
|
||||
margin-top: 34rpx;
|
||||
color: #a7160c;
|
||||
font-size: 25rpx;
|
||||
text-align: right;
|
||||
@@ -294,15 +329,25 @@ const submitLogin = () => {
|
||||
.text-hover { opacity: 0.64; }
|
||||
|
||||
.login-submit {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100rpx;
|
||||
margin-top: 60rpx;
|
||||
border: 2rpx solid #9e170e;
|
||||
border-radius: 8rpx;
|
||||
background: #b7170d;
|
||||
box-shadow: inset 0 0 0 4rpx #d69b5f;
|
||||
height: 128rpx;
|
||||
margin-top: 76rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.login-submit__skin {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.login-submit__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
color: #fffaf0;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 36rpx;
|
||||
@@ -313,9 +358,9 @@ const submitLogin = () => {
|
||||
|
||||
.agreement-reminder {
|
||||
display: block;
|
||||
margin-top: 26rpx;
|
||||
margin-top: 34rpx;
|
||||
color: #9a8773;
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:A-03;用途:手机验证码登录与授权回跳状态。 -->
|
||||
<template><ModulePage page-id="a03" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:A-04;用途:注册账号与服务协议确认。 -->
|
||||
<template><ModulePage page-id="a04" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:A-05;用途:忘记密码与重设密码。 -->
|
||||
<template><ModulePage page-id="a05" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<!-- 页面编号:A-06;用途:账号受限、登录失败与授权取消状态。 -->
|
||||
<template><ModulePage page-id="a06" /></template>
|
||||
<script setup>import ModulePage from '@/components/ModulePage.vue'</script>
|
||||
Reference in New Issue
Block a user