杂务:整理文档并收口 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
@@ -2,6 +2,7 @@ const authApi = require('../../api/auth')
const userApi = require('../../api/user')
const auth = require('../../utils/auth')
const navigation = require('../../utils/navigation')
const theme = require('../../utils/theme')
const { DEFAULT_AVATAR } = require('../../utils/config')
const { getDraftValue, clearDraft, scheduleDraftSave, clearDraftTimer } = require('../../utils/form-draft')
const { runWithLoading } = require('../../utils/loading')
@@ -23,7 +24,7 @@ const SETTINGS_DRAFT_KEY = 'user-settings'
* Call guide: page data drives the WXML template, and each method is called by user events or lifecycle callbacks.
*/
Page({
data: Object.assign(createKeyboardSafeData({
data: Object.assign(theme.pageThemeData(getApp().globalData.shopTheme), createKeyboardSafeData({
cursorSpacing: 108
}), {
isLoggedIn: false,
+2 -2
View File
@@ -1,5 +1,5 @@
<view class="settings-page-root">
<navigation-bar title="设置中心" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
<view class="settings-page-root" style="{{themeVars}}">
<navigation-bar title="设置中心" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
<view class="settings-scroll">
<view class="page-shell settings-page-shell {{keyboardVisible ? 'keyboard-active' : ''}}">
+15 -12
View File
@@ -1,5 +1,6 @@
.settings-page-root {
min-height: 100vh;
background: var(--theme-page-bg);
}
.settings-scroll {
@@ -8,6 +9,7 @@
.settings-page-shell {
min-height: 100%;
background: var(--theme-page-bg);
}
.settings-page-shell.keyboard-active {
@@ -37,7 +39,7 @@
width: 110rpx;
height: 110rpx;
border-radius: 50%;
background: #f7edf1;
background: var(--theme-primary-soft);
}
.profile-preview-copy {
@@ -75,7 +77,7 @@
.text-action {
font-size: 24rpx;
font-weight: 600;
color: #c6597d;
color: var(--theme-primary);
}
.field-block {
@@ -100,7 +102,7 @@
justify-content: space-between;
gap: 18rpx;
padding: 24rpx 0;
border-bottom: 1rpx solid rgba(239, 216, 224, 0.92);
border-bottom: 1rpx solid var(--theme-border);
}
.setting-row:first-of-type {
@@ -134,14 +136,14 @@
flex-shrink: 0;
font-size: 24rpx;
font-weight: 700;
color: #c6597d;
color: var(--theme-primary);
}
.security-panel {
margin-top: 6rpx;
padding: 26rpx 24rpx;
border-radius: 28rpx;
background: #fff7f8;
background: var(--theme-primary-soft);
}
.field-static {
@@ -150,7 +152,8 @@
min-height: 92rpx;
padding: 0 28rpx;
border-radius: 24rpx;
background: #f5edf0;
background: var(--theme-card-bg);
border: 1rpx solid var(--theme-border);
color: #5d4b55;
font-size: 28rpx;
}
@@ -173,14 +176,14 @@
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;
}
.code-btn.disabled {
background: #f3e7eb;
background: var(--theme-card-bg);
color: #a998a0;
}
@@ -199,7 +202,7 @@
}
.danger-text {
color: #d5536f;
color: var(--theme-accent);
}
.logout-btn {
@@ -209,8 +212,8 @@
height: 92rpx;
margin-top: 24rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #d5536f;
background: var(--theme-primary-soft);
color: var(--theme-accent);
font-size: 28rpx;
font-weight: 700;
}