杂务:整理文档并收口 YumiNail 修复

This commit is contained in:
xiaowang
2026-05-21 18:43:59 +08:00
parent 3797938616
commit 9227ec6175
362 changed files with 8358 additions and 19928 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ const userApi = require('../../api/user')
const authStore = require('../../utils/auth')
const actionGuard = require('../../utils/action-guard')
const navigation = require('../../utils/navigation')
const theme = require('../../utils/theme')
const { runWithLoading } = require('../../utils/loading')
const {
createKeyboardSafeData,
@@ -23,7 +24,7 @@ const phoneRegex = /^1[3-9]\d{9}$/
Page({
data: Object.assign(createKeyboardSafeData({
cursorSpacing: 108
}), {
}), theme.pageThemeData(getApp().globalData.shopTheme), {
redirect: '',
activeTab: 'login',
loginType: 'password',
+6 -6
View File
@@ -1,7 +1,7 @@
<view class="auth-page-root">
<navigation-bar title="账号中心" showBack="{{true}}" fallbackPath="/pages/home/index" color="#2d2430" background="#fff7f8"></navigation-bar>
<view class="auth-page-root" style="{{themeVars}}">
<navigation-bar title="账号中心" showBack="{{true}}" fallbackPath="/pages/home/index" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
<view class="auth-scroll">
<scroll-view class="auth-scroll" scroll-y="true" enhanced="true" show-scrollbar="false">
<view class="page-shell auth-page-shell auth-page">
<view class="page-content auth-content {{keyboardVisible ? 'keyboard-active' : ''}}">
<view class="page-card auth-panel">
@@ -11,7 +11,7 @@
</view>
<block wx:if="{{activeTab === 'login'}}">
<view class="wechat-login-panel">
<view wx:if="{{!traditionalLoginExpanded}}" class="wechat-login-panel">
<view class="wechat-login-copy">
<text class="wechat-login-title">微信手机号一键登录</text>
<text class="wechat-login-desc">更快登录</text>
@@ -213,7 +213,7 @@
</picker>
</view>
<view wx:if="{{activeTab === 'login' && traditionalLoginExpanded && !allowLoginShopless && loginShops.length}}" class="field-block">
<view wx:if="{{activeTab === 'login' && traditionalLoginExpanded && loginShops.length}}" class="field-block">
<text class="field-label">选择登录门店</text>
<picker mode="selector" range="{{loginShops}}" range-key="shopName" value="{{loginShopIndex}}" bindchange="handleLoginShopChange">
<view class="field-picker">{{loginShopDisplayName || '请选择登录门店'}}</view>
@@ -306,7 +306,7 @@
<view wx:if="{{keyboardVisible}}" class="keyboard-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
</view>
</view>
</scroll-view>
<view wx:if="{{showMiniShopSelector}}" class="mini-shop-mask" catchtouchmove="noop">
<view class="page-card mini-shop-modal">
+26 -26
View File
@@ -1,9 +1,11 @@
.auth-page-root {
min-height: 100vh;
overflow: visible;
}
.auth-scroll {
min-height: 100%;
height: 100vh;
box-sizing: border-box;
}
.auth-page-shell {
@@ -11,18 +13,16 @@
}
.auth-page {
background:
radial-gradient(circle at top right, rgba(255, 204, 219, 0.32), transparent 30%),
linear-gradient(180deg, #fff8fa 0%, #fffdfc 100%);
background: var(--theme-page-bg);
}
.auth-content {
min-height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
justify-content: flex-start;
align-items: center;
padding: 24rpx 24rpx 40rpx;
padding: 24rpx 24rpx calc(80rpx + env(safe-area-inset-bottom));
}
.auth-content.keyboard-active {
@@ -38,7 +38,7 @@
}
.auth-panel {
margin-top: 0;
margin-top: 24rpx;
}
.reset-card {
@@ -62,7 +62,7 @@
margin-bottom: 14rpx;
padding: 10rpx;
border-radius: 999rpx;
background: #faf4f6;
background: var(--theme-primary-soft);
}
.tab-item,
@@ -80,16 +80,16 @@
.tab-item.active,
.toggle-item.active {
background: #fde8ef;
color: #c6597d;
background: var(--theme-primary-soft);
color: var(--theme-primary);
}
.wechat-login-panel {
padding: 24rpx 22rpx;
border-radius: 28rpx;
background: linear-gradient(145deg, #f3fff8 0%, #e4fff0 52%, #d5fae6 100%);
border: 1rpx solid rgba(121, 214, 152, 0.46);
box-shadow: 0 18rpx 38rpx rgba(45, 175, 93, 0.12);
background: var(--theme-gradient-soft);
border: 1rpx solid var(--theme-border);
box-shadow: 0 18rpx 38rpx rgba(122, 67, 88, 0.1);
}
.wechat-login-copy {
@@ -117,13 +117,13 @@
}
.wechat-login-btn.primary-btn {
background: linear-gradient(135deg, #32d16d 0%, #13a847 100%);
box-shadow: 0 16rpx 36rpx rgba(19, 168, 71, 0.24);
background: var(--theme-gradient);
box-shadow: 0 16rpx 36rpx rgba(122, 67, 88, 0.16);
}
.wechat-login-btn-disabled {
color: #5d8f69;
border-color: rgba(121, 214, 152, 0.42);
color: var(--theme-accent);
border-color: var(--theme-border);
background: rgba(255, 255, 255, 0.82);
}
@@ -132,7 +132,7 @@
margin-top: 14rpx;
font-size: 22rpx;
line-height: 1.6;
color: #58806a;
color: var(--theme-accent);
}
.mini-login-resume {
@@ -207,8 +207,8 @@
height: 92rpx;
padding: 0 18rpx;
border-radius: 24rpx;
background: #fde8ef;
color: #c6597d;
background: var(--theme-primary-soft);
color: var(--theme-primary);
font-size: 24rpx;
font-weight: 700;
}
@@ -226,7 +226,7 @@
.aux-link {
font-size: 24rpx;
color: #c6597d;
color: var(--theme-primary);
font-weight: 600;
}
@@ -268,8 +268,8 @@
}
.agreement-check.checked {
border-color: #c6597d;
background: #c6597d;
border-color: var(--theme-primary);
background: var(--theme-primary);
}
.agreement-copy {
@@ -278,7 +278,7 @@
}
.agreement-link {
color: #c6597d;
color: var(--theme-primary);
font-weight: 700;
}
@@ -331,7 +331,7 @@
margin-top: 22rpx;
padding: 20rpx;
border-radius: 22rpx;
background: #fff7f8;
background: var(--theme-primary-soft);
color: #5a4a52;
font-size: 24rpx;
line-height: 1.85;
@@ -366,7 +366,7 @@
font-size: 22rpx;
font-weight: 700;
letter-spacing: 2rpx;
color: #c6597d;
color: var(--theme-primary);
}
.mini-shop-title {