@pisell/pisellos 2.2.64 → 2.2.66
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.
- package/dist/modules/Customer/index.js +1 -1
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/server/modules/products/index.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/Checkout/index.js +7 -1
- package/lib/modules/Customer/index.js +1 -1
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/server/modules/products/index.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/Checkout/index.js +6 -0
- package/package.json +1 -1
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
344
344
|
};
|
|
345
345
|
setOtherData(key: string, value: any): void;
|
|
346
346
|
getOtherData(key: string): any;
|
|
347
|
-
getProductTypeById(id: number): Promise<"
|
|
347
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
348
348
|
/**
|
|
349
349
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
350
350
|
*
|
|
@@ -4756,12 +4756,18 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4756
4756
|
while (1) switch (_context42.prev = _context42.next) {
|
|
4757
4757
|
case 0:
|
|
4758
4758
|
_ref5 = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {}, _ref5$cover = _ref5.cover, cover = _ref5$cover === void 0 ? false : _ref5$cover;
|
|
4759
|
+
this.logInfo('setOtherParams called', {
|
|
4760
|
+
metadata: {
|
|
4761
|
+
params: params,
|
|
4762
|
+
cover: cover
|
|
4763
|
+
}
|
|
4764
|
+
});
|
|
4759
4765
|
if (cover) {
|
|
4760
4766
|
this.otherParams = params;
|
|
4761
4767
|
} else {
|
|
4762
4768
|
this.otherParams = _objectSpread(_objectSpread({}, this.otherParams), params);
|
|
4763
4769
|
}
|
|
4764
|
-
case
|
|
4770
|
+
case 3:
|
|
4765
4771
|
case "end":
|
|
4766
4772
|
return _context42.stop();
|
|
4767
4773
|
}
|
|
@@ -111,7 +111,7 @@ var CustomerModule = class extends import_BaseModule.BaseModule {
|
|
|
111
111
|
const res = await this.request.get(url, queryParams, {
|
|
112
112
|
cache: {
|
|
113
113
|
mode: import_plugins.RequestModeENUM.REMOTE_LOCAL,
|
|
114
|
-
type: "
|
|
114
|
+
type: "memory"
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
if ((res == null ? void 0 : res.code) !== 200) {
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
344
344
|
};
|
|
345
345
|
setOtherData(key: string, value: any): void;
|
|
346
346
|
getOtherData(key: string): any;
|
|
347
|
-
getProductTypeById(id: number): Promise<"
|
|
347
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
348
348
|
/**
|
|
349
349
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
350
350
|
*
|
|
@@ -3008,6 +3008,12 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
3010
|
async setOtherParams(params, { cover = false } = {}) {
|
|
3011
|
+
this.logInfo("setOtherParams called", {
|
|
3012
|
+
metadata: {
|
|
3013
|
+
params,
|
|
3014
|
+
cover
|
|
3015
|
+
}
|
|
3016
|
+
});
|
|
3011
3017
|
if (cover) {
|
|
3012
3018
|
this.otherParams = params;
|
|
3013
3019
|
} else {
|