@pisell/private-materials 6.8.19 → 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.
@@ -1784,9 +1784,6 @@ var Footer = function Footer(props) {
1784
1784
  // 清空所有内容并重置购物车
1785
1785
  var handleClearAllAndReset = function handleClearAllAndReset() {
1786
1786
  var _shopDiscount$clear;
1787
- // setTimeout(() => {
1788
- // (window as any)?.shopApi?.bookingTicket?.clearAllCart();
1789
- // }, 0);
1790
1787
  clearAllScanListenersTaskQueue();
1791
1788
  // 清空服务项目
1792
1789
  dispatch({
@@ -1845,6 +1842,10 @@ var Footer = function Footer(props) {
1845
1842
  // 清空商品券
1846
1843
  shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
1847
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);
1848
1849
  };
1849
1850
 
1850
1851
  // 购物车进入编辑状态
@@ -1326,6 +1326,10 @@ var Footer = (props) => {
1326
1326
  });
1327
1327
  (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1328
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);
1329
1333
  };
1330
1334
  const setEditCartMode = (order_id2, payData, closeModal = false) => {
1331
1335
  setEditOrderId(order_id2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.19",
3
+ "version": "6.8.21",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -77,8 +77,8 @@
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
79
  "@pisell/date-picker": "3.0.7",
80
- "@pisell/icon": "0.0.11",
81
80
  "@pisell/materials": "6.8.6",
81
+ "@pisell/icon": "0.0.11",
82
82
  "@pisell/utils": "3.0.2"
83
83
  },
84
84
  "peerDependencies": {