feat: harden appointment flow and refresh handoff docs
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/yuminail-icon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>YumiNail Frontend</title>
|
||||
<title>Fingertip Designer 指尖设计师</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="YumiNail icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="Fingertip Designer icon">
|
||||
<defs>
|
||||
<linearGradient id="shell" x1="42" y1="22" x2="214" y2="232" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#ffe6d3" />
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -24,6 +24,7 @@ export interface CreateOrderRequest {
|
||||
couponId?: IdType
|
||||
couponSourceType?: string
|
||||
remark?: string
|
||||
clientRequestId?: string
|
||||
items: OrderItem[]
|
||||
}
|
||||
|
||||
|
||||
@@ -1155,6 +1155,13 @@ const openCheckoutRecovery = (error: unknown) => {
|
||||
})
|
||||
}
|
||||
|
||||
const buildClientRequestId = () => {
|
||||
if (typeof globalThis.crypto?.randomUUID === 'function') {
|
||||
return `web-order-${Date.now()}-${globalThis.crypto.randomUUID()}`
|
||||
}
|
||||
return `web-order-${Date.now()}-${Math.random().toString(36).slice(2, 12)}`
|
||||
}
|
||||
|
||||
/** checkout is an async page action. Trigger it from the template or lifecycle hook, then await the result. */
|
||||
const checkout = async () => {
|
||||
if (submittingOrder.value) {
|
||||
@@ -1178,6 +1185,7 @@ const checkout = async () => {
|
||||
couponId: selectedCoupon.value?.id,
|
||||
couponSourceType: selectedCoupon.value?.sourceType || (couponSelectionTouched.value && !selectedCoupon.value ? NO_COUPON_KEY : undefined),
|
||||
remark: quoteRemark.value.trim() || undefined,
|
||||
clientRequestId: buildClientRequestId(),
|
||||
items: items.map(item => ({
|
||||
productId: item.productId,
|
||||
quantity: item.quantity,
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item label="标题">
|
||||
<a-input v-model:value="form.title" placeholder="例如:YumiNail 用户协议" />
|
||||
<a-input v-model:value="form.title" placeholder="例如:Fingertip Designer 用户协议" />
|
||||
</a-form-item>
|
||||
<a-form-item label="版本">
|
||||
<a-input v-model:value="form.version" placeholder="例如:2026-05-18" />
|
||||
|
||||
@@ -230,7 +230,7 @@ const defaultPasswordForm = reactive<SystemParameterConfigVO>({
|
||||
configGroup: 'USER',
|
||||
configKey: 'DEFAULT_PASSWORD',
|
||||
configName: '后台新增用户默认密码',
|
||||
configValue: 'YumiNail@123',
|
||||
configValue: 'Fingertip@123',
|
||||
enabled: 1,
|
||||
remark: '后台新增用户不填写密码时使用;需满足 8-32 位且至少包含数字、小写字母、大写字母、特殊符号中的 3 类'
|
||||
})
|
||||
|
||||
@@ -412,7 +412,7 @@
|
||||
</a-form-item>
|
||||
<div class="theme-preview" :style="themePreviewStyle">
|
||||
<div>
|
||||
<span class="theme-preview__eyebrow" :style="{ color: themePreview.primaryColor }">Yumi Nail</span>
|
||||
<span class="theme-preview__eyebrow" :style="{ color: themePreview.primaryColor }">Fingertip Designer</span>
|
||||
<strong>店铺前台预览</strong>
|
||||
<p>按钮、标签和柔和渐变都会围绕主色延展。</p>
|
||||
</div>
|
||||
|
||||
@@ -586,7 +586,7 @@ import AdminResponsiveModal from '@/components/admin/AdminResponsiveModal.vue'
|
||||
|
||||
const { hasPermission, hasAnyPermission, loadUserPermissions } = usePermission()
|
||||
const { isMobile } = useAdminViewport()
|
||||
const FALLBACK_ADMIN_DEFAULT_PASSWORD = 'YumiNail@123'
|
||||
const FALLBACK_ADMIN_DEFAULT_PASSWORD = 'Fingertip@123'
|
||||
|
||||
/** currentUserInfo is a local helper used by this page script. */
|
||||
const currentUserInfo = (() => {
|
||||
|
||||
Reference in New Issue
Block a user