feat: harden appointment flow and refresh handoff docs
This commit is contained in:
@@ -37,6 +37,10 @@ const {
|
||||
parseAppointmentParts
|
||||
} = require('../../utils/format')
|
||||
|
||||
function buildClientRequestId(prefix) {
|
||||
return `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`
|
||||
}
|
||||
|
||||
/**
|
||||
* Purpose: getCouponKey supports index.js by holding or executing the get coupon key page or API role.
|
||||
* Usage: import, call, read, or update this function from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
@@ -774,6 +778,7 @@ Page({
|
||||
await runWithLoading(() => orderApi.createOrder({
|
||||
couponId: selectedCoupon ? selectedCoupon.id : undefined,
|
||||
couponSourceType: selectedCoupon ? selectedCoupon.sourceType : (this.data.selectedCouponKey === NO_COUPON_KEY ? NO_COUPON_KEY : undefined),
|
||||
clientRequestId: buildClientRequestId('mini-order'),
|
||||
items: selectedItems.map(item => ({
|
||||
productId: item.productId,
|
||||
quantity: item.quantity,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view class="page-shell" style="{{themeVars}}">
|
||||
<view class="page-content">
|
||||
<view class="page-hero">
|
||||
<text class="hero-kicker">YumiNail Support</text>
|
||||
<text class="hero-kicker">Fingertip Designer Support</text>
|
||||
<text class="hero-title">帮助与客�?/text>
|
||||
<text class="hero-desc">订单、预约��售后和账号问题都可以从这里继续处理�?/text>
|
||||
</view>
|
||||
|
||||
@@ -59,7 +59,7 @@ Page({
|
||||
isLoggedIn: false,
|
||||
userInfo: null,
|
||||
navTitle: '游客模式',
|
||||
greeting: '欢迎来到 Yumi Nail',
|
||||
greeting: '欢迎来到 Fingertip Designer 指尖设计师',
|
||||
displayName: '先看看门店和作品',
|
||||
searchKeyword: '',
|
||||
bannerImages: [],
|
||||
|
||||
@@ -319,7 +319,7 @@ Page({
|
||||
onShareAppMessage() {
|
||||
const product = this.data.product || {}
|
||||
return {
|
||||
title: product.displayTitle || 'YumiNail 美甲款式',
|
||||
title: product.displayTitle || 'Fingertip Designer 美甲款式',
|
||||
path: `/pages/product-detail/index?id=${product.id || this.data.productId}`,
|
||||
imageUrl: this.data.productImages[0] || DEFAULT_PRODUCT_IMAGE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user