v4.0.19版本提交
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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, '')}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user