杂务:整理文档并收口 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
+3 -2
View File
@@ -2,6 +2,7 @@ const orderApi = require('../../api/order')
const auth = require('../../utils/auth')
const navigation = require('../../utils/navigation')
const actionGuard = require('../../utils/action-guard')
const theme = require('../../utils/theme')
const { resolveLegacyImage } = require('../../utils/file')
const { formatDateTime, formatPrice, getOrderStatusClass, getOrderStatusText } = require('../../utils/format')
const { runWithLoading } = require('../../utils/loading')
@@ -11,11 +12,11 @@ const { runWithLoading } = require('../../utils/loading')
* Call guide: page data drives the WXML template, and each method is called by user events or lifecycle callbacks.
*/
Page({
data: {
data: Object.assign(theme.pageThemeData(getApp().globalData.shopTheme), {
loading: false,
isLoggedIn: false,
orders: []
},
}),
/**
* `onShow` page method. Use this from WXML event bindings or lifecycle hooks.
+2 -2
View File
@@ -1,6 +1,6 @@
<navigation-bar title="我的订单" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
<navigation-bar title="我的订单" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
<view class="page-shell orders-page">
<view class="page-shell orders-page" style="{{themeVars}}">
<view class="page-content">
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
<text class="empty-title">登录后查看订单</text>
+11 -11
View File
@@ -20,12 +20,12 @@
.order-head {
padding-bottom: 18rpx;
border-bottom: 2rpx solid #f3e7eb;
border-bottom: 2rpx solid var(--theme-border);
}
.order-shop {
margin: 14rpx 0 0;
color: #8f6e7a;
color: #8d7a84;
font-size: 24rpx;
line-height: 1.5;
}
@@ -62,18 +62,18 @@
}
.order-status.pending {
background: #fff6e8;
color: #cb7b00;
background: var(--theme-primary-soft);
color: var(--theme-accent);
}
.order-status.completed {
background: #ecfbf3;
color: #2ea36f;
background: var(--theme-primary-soft);
color: var(--theme-primary);
}
.order-status.cancelled {
background: #fff1f5;
color: #d5536f;
background: var(--theme-primary-soft);
color: var(--theme-accent);
}
.order-item {
@@ -86,7 +86,7 @@
width: 132rpx;
height: 132rpx;
border-radius: 20rpx;
background: #f6edf1;
background: var(--theme-primary-soft);
}
.order-main {
@@ -126,8 +126,8 @@
height: 60rpx;
padding: 0 18rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #d5536f;
background: var(--theme-primary-soft);
color: var(--theme-accent);
font-size: 24rpx;
font-weight: 700;
}