@pisell/private-materials 6.8.20 → 6.8.21

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.
@@ -1783,8 +1783,7 @@ var Footer = function Footer(props) {
1783
1783
  clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
1784
1784
  // 清空所有内容并重置购物车
1785
1785
  var handleClearAllAndReset = function handleClearAllAndReset() {
1786
- var _window8, _shopDiscount$clear;
1787
- (_window8 = window) === null || _window8 === void 0 || (_window8 = _window8.shopApi) === null || _window8 === void 0 || (_window8 = _window8.bookingTicket) === null || _window8 === void 0 || _window8.clearAllCart();
1786
+ var _shopDiscount$clear;
1788
1787
  clearAllScanListenersTaskQueue();
1789
1788
  // 清空服务项目
1790
1789
  dispatch({
@@ -1843,6 +1842,10 @@ var Footer = function Footer(props) {
1843
1842
  // 清空商品券
1844
1843
  shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
1845
1844
  setEditOrderId(0);
1845
+ setTimeout(function () {
1846
+ var _window8;
1847
+ (_window8 = window) === null || _window8 === void 0 || (_window8 = _window8.shopApi) === null || _window8 === void 0 || (_window8 = _window8.bookingTicket) === null || _window8 === void 0 || _window8.clearAllCart();
1848
+ }, 0);
1846
1849
  };
1847
1850
 
1848
1851
  // 购物车进入编辑状态
@@ -1286,8 +1286,7 @@ var Footer = (props) => {
1286
1286
  const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
1287
1287
  const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
1288
1288
  const handleClearAllAndReset = () => {
1289
- var _a2, _b2, _c2;
1290
- (_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
1289
+ var _a2;
1291
1290
  clearAllScanListenersTaskQueue();
1292
1291
  dispatch({
1293
1292
  type: "setService",
@@ -1325,8 +1324,12 @@ var Footer = (props) => {
1325
1324
  orderNote: ""
1326
1325
  }
1327
1326
  });
1328
- (_c2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _c2.call(shopDiscount);
1327
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1329
1328
  setEditOrderId(0);
1329
+ setTimeout(() => {
1330
+ var _a3, _b2;
1331
+ (_b2 = (_a3 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a3.bookingTicket) == null ? void 0 : _b2.clearAllCart();
1332
+ }, 0);
1330
1333
  };
1331
1334
  const setEditCartMode = (order_id2, payData, closeModal = false) => {
1332
1335
  setEditOrderId(order_id2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.20",
3
+ "version": "6.8.21",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
+ "@pisell/date-picker": "3.0.7",
79
80
  "@pisell/materials": "6.8.6",
80
81
  "@pisell/icon": "0.0.11",
81
- "@pisell/utils": "3.0.2",
82
- "@pisell/date-picker": "3.0.7"
82
+ "@pisell/utils": "3.0.2"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",