@pisell/private-materials 6.8.22 → 6.8.23
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/index.js +10 -15
- package/lib/components/booking/components/footer/index.js +9 -14
- package/package.json +3 -3
|
@@ -1785,7 +1785,7 @@ var Footer = function Footer(props) {
|
|
|
1785
1785
|
clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
|
|
1786
1786
|
// 清空所有内容并重置购物车
|
|
1787
1787
|
var handleClearAllAndReset = function handleClearAllAndReset() {
|
|
1788
|
-
var _shopDiscount$clear;
|
|
1788
|
+
var _shopDiscount$clear, _window9;
|
|
1789
1789
|
clearAllScanListenersTaskQueue();
|
|
1790
1790
|
|
|
1791
1791
|
// 清空附加服务
|
|
@@ -1837,17 +1837,14 @@ var Footer = function Footer(props) {
|
|
|
1837
1837
|
// 清空商品券
|
|
1838
1838
|
shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
|
|
1839
1839
|
setEditOrderId(0);
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
}
|
|
1849
|
-
});
|
|
1850
|
-
}, 0);
|
|
1840
|
+
(_window9 = window) === null || _window9 === void 0 || (_window9 = _window9.shopApi) === null || _window9 === void 0 || (_window9 = _window9.bookingTicket) === null || _window9 === void 0 || _window9.clearAllCart();
|
|
1841
|
+
// 清空服务项目
|
|
1842
|
+
dispatch({
|
|
1843
|
+
type: 'setService',
|
|
1844
|
+
payload: {
|
|
1845
|
+
value: []
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
1851
1848
|
};
|
|
1852
1849
|
|
|
1853
1850
|
// 购物车进入编辑状态
|
|
@@ -2007,9 +2004,7 @@ var Footer = function Footer(props) {
|
|
|
2007
2004
|
// handleClearAllAndReset();
|
|
2008
2005
|
// }
|
|
2009
2006
|
if (reset) {
|
|
2010
|
-
|
|
2011
|
-
handleClearAllAndReset();
|
|
2012
|
-
}, 0);
|
|
2007
|
+
handleClearAllAndReset();
|
|
2013
2008
|
}
|
|
2014
2009
|
// setPaymentModalData(null);
|
|
2015
2010
|
// setPaymentCallback(null);
|
|
@@ -1287,7 +1287,7 @@ var Footer = (props) => {
|
|
|
1287
1287
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
1288
1288
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
1289
1289
|
const handleClearAllAndReset = () => {
|
|
1290
|
-
var _a2;
|
|
1290
|
+
var _a2, _b2, _c2;
|
|
1291
1291
|
clearAllScanListenersTaskQueue();
|
|
1292
1292
|
dispatch({
|
|
1293
1293
|
type: "setAddons",
|
|
@@ -1321,16 +1321,13 @@ var Footer = (props) => {
|
|
|
1321
1321
|
});
|
|
1322
1322
|
(_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
|
|
1323
1323
|
setEditOrderId(0);
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
});
|
|
1333
|
-
}, 0);
|
|
1324
|
+
(_c2 = (_b2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _b2.bookingTicket) == null ? void 0 : _c2.clearAllCart();
|
|
1325
|
+
dispatch({
|
|
1326
|
+
type: "setService",
|
|
1327
|
+
payload: {
|
|
1328
|
+
value: []
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1334
1331
|
};
|
|
1335
1332
|
const setEditCartMode = (order_id2, payData, closeModal = false) => {
|
|
1336
1333
|
setEditOrderId(order_id2);
|
|
@@ -1473,9 +1470,7 @@ var Footer = (props) => {
|
|
|
1473
1470
|
}
|
|
1474
1471
|
});
|
|
1475
1472
|
if (reset) {
|
|
1476
|
-
|
|
1477
|
-
handleClearAllAndReset();
|
|
1478
|
-
}, 0);
|
|
1473
|
+
handleClearAllAndReset();
|
|
1479
1474
|
}
|
|
1480
1475
|
}
|
|
1481
1476
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.23",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,9 +76,9 @@
|
|
|
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",
|
|
80
|
-
"@pisell/utils": "3.0.2",
|
|
81
79
|
"@pisell/icon": "0.0.11",
|
|
80
|
+
"@pisell/utils": "3.0.2",
|
|
81
|
+
"@pisell/date-picker": "3.0.7",
|
|
82
82
|
"@pisell/materials": "6.8.6"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|