@pisell/pisellos 0.0.49 → 0.0.50
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.
|
@@ -243,15 +243,14 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
243
243
|
return n.date === date;
|
|
244
244
|
}).flatMap(function (n) {
|
|
245
245
|
return n.schedule_id;
|
|
246
|
-
});
|
|
247
|
-
|
|
248
|
-
_context3.next = 5;
|
|
246
|
+
});
|
|
247
|
+
_context3.next = 4;
|
|
249
248
|
return this.loadProducts({
|
|
250
249
|
schedule_ids: scheduleIds
|
|
251
250
|
});
|
|
252
|
-
case
|
|
251
|
+
case 4:
|
|
253
252
|
return _context3.abrupt("return", _context3.sent);
|
|
254
|
-
case
|
|
253
|
+
case 5:
|
|
255
254
|
case "end":
|
|
256
255
|
return _context3.stop();
|
|
257
256
|
}
|
|
@@ -183,7 +183,6 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
183
183
|
async loadProductByScheduleDate(date) {
|
|
184
184
|
const scheduleList = this.store.schedule.getAvailabilityScheduleDateList();
|
|
185
185
|
const scheduleIds = scheduleList.filter((n) => n.date === date).flatMap((n) => n.schedule_id);
|
|
186
|
-
this.store.cart.clear();
|
|
187
186
|
return await this.loadProducts({ schedule_ids: scheduleIds });
|
|
188
187
|
}
|
|
189
188
|
// 加载当前店铺下所有 schedule
|