杂务:整理文档并收口 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
@@ -3,6 +3,7 @@ const couponApi = require('../../api/coupon')
const orderApi = require('../../api/order')
const auth = require('../../utils/auth')
const navigation = require('../../utils/navigation')
const theme = require('../../utils/theme')
const { resolveLegacyImage } = require('../../utils/file')
const { NO_COUPON_KEY } = require('../../utils/config')
const { runWithLoading } = require('../../utils/loading')
@@ -113,7 +114,7 @@ function buildCheckoutIssues(items) {
* 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), {
isLoggedIn: false,
loading: false,
minDate: getMinDateText(),
@@ -128,7 +129,7 @@ Page({
totalAmountText: '¥0.00',
checkoutIssues: [],
submittingOrder: false
},
}),
/**
* `onShow` page method. Use this from WXML event bindings or lifecycle hooks.
+4 -4
View File
@@ -1,6 +1,6 @@
<navigation-bar title="购物车" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="#fff7f8"></navigation-bar>
<navigation-bar title="购物车" showBack="{{false}}" isTabPage="{{true}}" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
<view class="page-shell cart-page">
<view class="page-shell cart-page" style="{{themeVars}}">
<view class="page-content cart-content">
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
<text class="empty-title">登录后查看购物车</text>
@@ -97,14 +97,14 @@
<radio-group bindchange="handleCouponChange">
<label class="coupon-option">
<radio value="NONE" checked="{{selectedCouponKey === 'NONE'}}" color="#c6597d"></radio>
<radio value="NONE" checked="{{selectedCouponKey === 'NONE'}}" color="{{navThemeColor || '#C6597D'}}"></radio>
<view class="coupon-texts">
<view class="coupon-name">不使用优惠</view>
</view>
</label>
<label wx:for="{{availableCoupons}}" wx:key="key" wx:for-item="coupon" class="coupon-option {{selectedCouponKey === coupon.key ? 'active' : ''}}">
<radio value="{{coupon.key}}" checked="{{selectedCouponKey === coupon.key}}" color="#c6597d"></radio>
<radio value="{{coupon.key}}" checked="{{selectedCouponKey === coupon.key}}" color="{{navThemeColor || '#C6597D'}}"></radio>
<view class="coupon-texts">
<view class="coupon-name">{{coupon.displayText}}</view>
<view class="coupon-desc">{{coupon.sourceType === 'SYSTEM_VIP' ? 'VIP 自动折扣' : '用户优惠券'}}</view>
+20 -21
View File
@@ -1,5 +1,6 @@
.cart-page {
padding-bottom: calc(env(safe-area-inset-bottom) + 150rpx);
background: var(--theme-page-bg);
}
.cart-content {
@@ -7,9 +8,7 @@
}
.cart-hero {
background:
radial-gradient(circle at top right, rgba(255, 192, 210, 0.42), transparent 34%),
linear-gradient(145deg, #fffdfd 0%, #fff2f6 56%, #ffe7ef 100%);
background: var(--theme-gradient-soft);
}
.issue-card {
@@ -17,8 +16,8 @@
margin-bottom: 20rpx;
padding: 22rpx 24rpx;
border-radius: 24rpx;
background: #fff7e8;
color: #9b6900;
background: var(--theme-primary-soft);
color: var(--theme-accent);
}
.issue-title {
@@ -57,15 +56,15 @@
}
.select-dot.active {
border-color: #c6597d;
background: #c6597d;
border-color: var(--theme-primary);
background: var(--theme-primary);
}
.cart-thumb {
width: 140rpx;
height: 140rpx;
border-radius: 22rpx;
background: #f6edf1;
background: var(--theme-primary-soft);
}
.cart-main {
@@ -91,7 +90,7 @@
.cart-price {
font-size: 30rpx;
font-weight: 700;
color: #d5536f;
color: var(--theme-accent);
}
.cart-meta-row {
@@ -109,8 +108,8 @@
height: 42rpx;
padding: 0 16rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #c6597d;
background: var(--theme-primary-soft);
color: var(--theme-primary);
font-size: 20rpx;
font-weight: 700;
}
@@ -131,7 +130,7 @@
min-height: 76rpx;
padding: 0 22rpx;
border-radius: 20rpx;
background: #fbf5f7;
background: var(--theme-primary-soft);
}
.selector-row.compact {
@@ -139,7 +138,7 @@
}
.selector-row.issue {
background: #fff7e8;
background: var(--theme-primary-soft);
}
.selector-label {
@@ -189,8 +188,8 @@
width: 56rpx;
height: 56rpx;
border-radius: 50%;
background: #fbf5f7;
color: #7a5262;
background: var(--theme-primary-soft);
color: var(--theme-accent);
font-size: 34rpx;
}
@@ -204,7 +203,7 @@
.remove-btn {
font-size: 24rpx;
color: #d5536f;
color: var(--theme-accent);
font-weight: 700;
}
@@ -228,7 +227,7 @@
}
.coupon-option.active {
color: #c6597d;
color: var(--theme-primary);
}
.coupon-texts {
@@ -255,8 +254,8 @@
height: 44rpx;
padding: 0 14rpx;
border-radius: 999rpx;
background: #fff1f5;
color: #c6597d;
background: var(--theme-primary-soft);
color: var(--theme-primary);
font-size: 20rpx;
font-weight: 700;
}
@@ -302,7 +301,7 @@
.checkout-total {
font-size: 36rpx;
font-weight: 800;
color: #d5536f;
color: var(--theme-accent);
}
.checkout-meta {
@@ -319,7 +318,7 @@
height: 84rpx;
padding: 0 26rpx;
border-radius: 999rpx;
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
background: var(--theme-gradient);
color: #ffffff;
font-size: 28rpx;
font-weight: 700;