杂务:整理文档并收口 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
+6 -3
View File
@@ -15,6 +15,7 @@ const {
const productApi = require('../../api/product')
const shopApi = require('../../api/shop')
const userApi = require('../../api/user')
const theme = require('../../utils/theme')
/**
* home page logic.
@@ -23,7 +24,7 @@ const userApi = require('../../api/user')
Page({
data: Object.assign(createKeyboardSafeData({
cursorSpacing: 96
}), {
}), theme.pageThemeData(getApp().globalData.shopTheme), {
initialized: false,
loading: false,
loadingMore: false,
@@ -146,7 +147,8 @@ Page({
greeting: isLoggedIn ? '欢迎回来' : '游客模式',
displayName: isLoggedIn
? ((userInfo && userInfo.nickname) || 'Yumi 用户')
: '先逛逛喜欢的款式和门店'
: '先逛逛喜欢的款式和门店',
bannerImages: isLoggedIn ? [] : this.data.bannerImages
})
},
@@ -187,10 +189,11 @@ Page({
this.syncUserState()
try {
const loggedIn = auth.isLoggedIn()
await Promise.all([
this.loadUserProfile(),
this.loadAnnouncements(),
this.loadBannerImages(requestId),
loggedIn ? Promise.resolve() : this.loadBannerImages(requestId),
this.loadFeaturedProducts(requestId),
this.loadPopularProducts(true, requestId)
])
+4 -4
View File
@@ -1,5 +1,5 @@
<view class="home-page-root">
<navigation-bar title="{{navTitle}}" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="#fff7f8"></navigation-bar>
<view class="home-page-root" style="{{themeVars}}">
<navigation-bar title="{{navTitle}}" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
<view class="home-scroll">
<view class="page-shell home-page {{keyboardVisible ? 'keyboard-active' : ''}}">
@@ -39,7 +39,7 @@
</swiper>
<view class="summary-strip">
<view class="summary-metric">
<view wx:if="{{!isLoggedIn}}" class="summary-metric">
<text class="summary-label">门店橱窗</text>
<text class="summary-value">{{bannerImages.length ? bannerImages.length : 0}} 家</text>
<text class="summary-note">看环境</text>
@@ -61,7 +61,7 @@
</view>
</view>
<view class="section-block">
<view wx:if="{{!isLoggedIn}}" class="section-block">
<view class="section-head">
<view class="section-copy">
<text class="section-kicker">门店氛围</text>
+8 -12
View File
@@ -8,9 +8,7 @@
.home-page {
min-height: 100%;
background:
radial-gradient(circle at top right, rgba(255, 196, 214, 0.4), transparent 36%),
linear-gradient(180deg, #fff7f8 0%, #fffdfb 100%);
background: var(--theme-page-bg);
}
.home-page.keyboard-active {
@@ -18,9 +16,7 @@
}
.home-hero {
background:
radial-gradient(circle at top right, rgba(255, 186, 207, 0.5), transparent 36%),
linear-gradient(145deg, #fffdfd 0%, #fff2f6 52%, #ffe8ef 100%);
background: var(--theme-gradient-soft);
}
.search-box {
@@ -48,7 +44,7 @@
min-width: 150rpx;
height: 72rpx;
border-radius: 999rpx;
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
background: var(--theme-gradient);
color: #ffffff;
font-size: 26rpx;
font-weight: 700;
@@ -98,8 +94,8 @@
height: 58rpx;
margin-top: 18rpx;
border-radius: 16rpx;
background: #fff7ed;
border: 1rpx solid #fed7aa;
background: var(--theme-primary-soft);
border: 1rpx solid var(--theme-border);
overflow: hidden;
}
@@ -108,7 +104,7 @@
line-height: 58rpx;
padding: 0 22rpx;
font-size: 24rpx;
color: #7c2d12;
color: var(--theme-accent);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@@ -120,8 +116,8 @@
justify-content: center;
padding: 8rpx 18rpx;
border-radius: 999rpx;
background: #fce8ef;
color: #c6597d;
background: var(--theme-primary-soft);
color: var(--theme-primary);
font-size: 22rpx;
font-weight: 700;
}