@pisell/pisellos 2.2.311 → 2.2.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 | 2 |
|
|
329
|
+
weekNum: 0 | 1 | 2 | 5 | 3 | 4 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -345,7 +345,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
345
345
|
count: number;
|
|
346
346
|
left: number;
|
|
347
347
|
summaryCount: number;
|
|
348
|
-
status: "
|
|
348
|
+
status: "sold_out" | "lots_of_space" | "filling_up_fast";
|
|
349
349
|
}[];
|
|
350
350
|
/**
|
|
351
351
|
* 找到多个资源的公共可用时间段
|
|
@@ -54,8 +54,12 @@ function _processScannedProductItem() {
|
|
|
54
54
|
}
|
|
55
55
|
return _context.abrupt("return", runRequiresDetailFlow(host, item, ctx, bridge));
|
|
56
56
|
case 5:
|
|
57
|
-
values = genScanProductValues(item, code);
|
|
58
|
-
|
|
57
|
+
values = genScanProductValues(item, code); // 条码已唯一命中某个规格时,商品目录的 price 可能是“最低规格价”。
|
|
58
|
+
// 仅在扫码预选规格的这条路径改用命中规格价,避免影响商品卡片和手工选规格。
|
|
59
|
+
itemWithSelection = values.price === undefined ? _objectSpread(_objectSpread({}, item), {}, {
|
|
60
|
+
cartDetailValue: values
|
|
61
|
+
}) : _objectSpread(_objectSpread({}, item), {}, {
|
|
62
|
+
price: values.price,
|
|
59
63
|
cartDetailValue: values
|
|
60
64
|
});
|
|
61
65
|
decision = host.decideAddProduct(itemWithSelection, ctx);
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 | 2 |
|
|
329
|
+
weekNum: 0 | 1 | 2 | 5 | 3 | 4 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -345,7 +345,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
345
345
|
count: number;
|
|
346
346
|
left: number;
|
|
347
347
|
summaryCount: number;
|
|
348
|
-
status: "
|
|
348
|
+
status: "sold_out" | "lots_of_space" | "filling_up_fast";
|
|
349
349
|
}[];
|
|
350
350
|
/**
|
|
351
351
|
* 找到多个资源的公共可用时间段
|
|
@@ -32,9 +32,15 @@ async function processScannedProductItem(host, item, code, bridge) {
|
|
|
32
32
|
return runRequiresDetailFlow(host, item, ctx, bridge);
|
|
33
33
|
}
|
|
34
34
|
const values = (0, _scanProductValues.genScanProductValues)(item, code);
|
|
35
|
-
|
|
35
|
+
// 条码已唯一命中某个规格时,商品目录的 price 可能是“最低规格价”。
|
|
36
|
+
// 仅在扫码预选规格的这条路径改用命中规格价,避免影响商品卡片和手工选规格。
|
|
37
|
+
const itemWithSelection = values.price === undefined ? {
|
|
36
38
|
...item,
|
|
37
39
|
cartDetailValue: values
|
|
40
|
+
} : {
|
|
41
|
+
...item,
|
|
42
|
+
price: values.price,
|
|
43
|
+
cartDetailValue: values
|
|
38
44
|
};
|
|
39
45
|
const decision = host.decideAddProduct(itemWithSelection, ctx);
|
|
40
46
|
return runAddProductDecision(host, item, decision, ctx, bridge);
|