@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
- this.store.cart.clear();
248
- _context3.next = 5;
246
+ });
247
+ _context3.next = 4;
249
248
  return this.loadProducts({
250
249
  schedule_ids: scheduleIds
251
250
  });
252
- case 5:
251
+ case 4:
253
252
  return _context3.abrupt("return", _context3.sent);
254
- case 6:
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",