v4.0.19版本提交

This commit is contained in:
2026-09-10 09:56:50 +08:00
parent 5d0beb5733
commit 1867e7ea55
23 changed files with 420 additions and 41 deletions
+13
View File
@@ -52,6 +52,19 @@ export function buildPayUrl(params: {
return `/pages/pay/index?${parts.join('&')}`;
}
export function buildOrderConfirmPickupUrl(ctx: {
productId: string;
skuId?: string;
qty?: string | number;
}): string {
const parts = [`productId=${encodeURIComponent(ctx.productId)}`];
if (ctx.skuId) parts.push(`skuId=${encodeURIComponent(ctx.skuId)}`);
if (ctx.qty != null && String(ctx.qty).trim()) {
parts.push(`qty=${encodeURIComponent(String(ctx.qty))}`);
}
return `/pages/order-confirm-pickup/index?${parts.join('&')}`;
}
export function readCheckoutContext(params: Record<string, string | undefined>): CheckoutContext {
return {
productId: params.productId,
+1 -1
View File
@@ -3,7 +3,7 @@ import { fetchClientConfig } from './pay-wechat';
/** 与 package.json version 同步(Taro defineConstants 注入),供 minClientVersion 比对 */
export const APP_VERSION =
(typeof TARO_APP_VERSION !== 'undefined' && String(TARO_APP_VERSION).trim()) || '4.0.4';
(typeof TARO_APP_VERSION !== 'undefined' && String(TARO_APP_VERSION).trim()) || '4.0.19';
export const APP_VERSION_LABEL = `v${APP_VERSION.replace(/^v/i, '')}`;