@pisell/pisellos 0.0.253 → 0.0.254
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/Payment/walletpass.js +7 -8
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/modules/Payment/walletpass.js +2 -2
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -116,23 +116,22 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
116
116
|
while (1) switch (_context.prev = _context.next) {
|
|
117
117
|
case 0:
|
|
118
118
|
startTime = Date.now();
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
walletParams = this.generateWalletParams(businessData);
|
|
120
|
+
if (!(Number((businessData === null || businessData === void 0 || (_businessData$amountI = businessData.amountInfo) === null || _businessData$amountI === void 0 ? void 0 : _businessData$amountI.totalAmount) || 0) < 0 || Number((businessData === null || businessData === void 0 || (_businessData$amountI2 = businessData.amountInfo) === null || _businessData$amountI2 === void 0 ? void 0 : _businessData$amountI2.subTotal) || 0) < 0)) {
|
|
121
|
+
_context.next = 4;
|
|
121
122
|
break;
|
|
122
123
|
}
|
|
123
124
|
return _context.abrupt("return", {
|
|
124
125
|
walletRecommendList: [],
|
|
125
126
|
userIdentificationCodes: []
|
|
126
127
|
});
|
|
127
|
-
case
|
|
128
|
+
case 4:
|
|
128
129
|
// 发送初始化开始事件
|
|
129
130
|
this.emitEvent(WalletPassHooks.OnWalletInitializationStarted, {
|
|
130
131
|
businessData: businessData,
|
|
131
132
|
startTime: startTime
|
|
132
133
|
});
|
|
133
|
-
_context.prev =
|
|
134
|
-
// 生成钱包API参数
|
|
135
|
-
walletParams = this.generateWalletParams(businessData); // 调用标准的初始化流程
|
|
134
|
+
_context.prev = 5;
|
|
136
135
|
_context.next = 8;
|
|
137
136
|
return this.initializeWalletDataAsync(walletParams);
|
|
138
137
|
case 8:
|
|
@@ -150,7 +149,7 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
150
149
|
return _context.abrupt("return", result);
|
|
151
150
|
case 16:
|
|
152
151
|
_context.prev = 16;
|
|
153
|
-
_context.t0 = _context["catch"](
|
|
152
|
+
_context.t0 = _context["catch"](5);
|
|
154
153
|
_endTime = Date.now();
|
|
155
154
|
_duration = _endTime - startTime; // 发送初始化失败事件
|
|
156
155
|
this.emitEvent(WalletPassHooks.OnWalletInitializationFailed, {
|
|
@@ -166,7 +165,7 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
166
165
|
case "end":
|
|
167
166
|
return _context.stop();
|
|
168
167
|
}
|
|
169
|
-
}, _callee, this, [[
|
|
168
|
+
}, _callee, this, [[5, 16]]);
|
|
170
169
|
}));
|
|
171
170
|
function initializeWalletDataFromBusinessAsync(_x) {
|
|
172
171
|
return _initializeWalletDataFromBusinessAsync.apply(this, arguments);
|
|
@@ -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
|
}
|
|
@@ -314,7 +314,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
314
314
|
}[];
|
|
315
315
|
setOtherData(key: string, value: any): void;
|
|
316
316
|
getOtherData(key: string): any;
|
|
317
|
-
getProductTypeById(id: number): Promise<"
|
|
317
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
318
318
|
/**
|
|
319
319
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
320
320
|
*
|
|
@@ -111,7 +111,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
|
|
|
111
111
|
* 获取当前的客户搜索条件
|
|
112
112
|
* @returns 当前搜索条件
|
|
113
113
|
*/
|
|
114
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
114
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
115
115
|
/**
|
|
116
116
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
117
117
|
* @returns 客户状态
|
|
@@ -90,7 +90,8 @@ var WalletPassPaymentImpl = class {
|
|
|
90
90
|
async initializeWalletDataFromBusinessAsync(businessData) {
|
|
91
91
|
var _a, _b;
|
|
92
92
|
const startTime = Date.now();
|
|
93
|
-
|
|
93
|
+
const walletParams = this.generateWalletParams(businessData);
|
|
94
|
+
if (Number(((_a = businessData == null ? void 0 : businessData.amountInfo) == null ? void 0 : _a.totalAmount) || 0) < 0 || Number(((_b = businessData == null ? void 0 : businessData.amountInfo) == null ? void 0 : _b.subTotal) || 0) < 0) {
|
|
94
95
|
return {
|
|
95
96
|
walletRecommendList: [],
|
|
96
97
|
userIdentificationCodes: []
|
|
@@ -101,7 +102,6 @@ var WalletPassPaymentImpl = class {
|
|
|
101
102
|
startTime
|
|
102
103
|
});
|
|
103
104
|
try {
|
|
104
|
-
const walletParams = this.generateWalletParams(businessData);
|
|
105
105
|
const result = await this.initializeWalletDataAsync(walletParams);
|
|
106
106
|
const endTime = Date.now();
|
|
107
107
|
const duration = endTime - startTime;
|
|
@@ -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
|
}
|
|
@@ -314,7 +314,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
314
314
|
}[];
|
|
315
315
|
setOtherData(key: string, value: any): void;
|
|
316
316
|
getOtherData(key: string): any;
|
|
317
|
-
getProductTypeById(id: number): Promise<"
|
|
317
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
318
318
|
/**
|
|
319
319
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
320
320
|
*
|
|
@@ -111,7 +111,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
|
|
|
111
111
|
* 获取当前的客户搜索条件
|
|
112
112
|
* @returns 当前搜索条件
|
|
113
113
|
*/
|
|
114
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
114
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
115
115
|
/**
|
|
116
116
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
117
117
|
* @returns 客户状态
|