@pisell/private-materials 6.8.21 → 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 +15 -18
- package/lib/components/booking/components/footer/index.js +12 -15
- package/package.json +4 -4
|
@@ -699,10 +699,12 @@ var Footer = function Footer(props) {
|
|
|
699
699
|
setPaymentModalData(null);
|
|
700
700
|
setPaymentCallback(null);
|
|
701
701
|
} else {
|
|
702
|
+
var _window7;
|
|
702
703
|
console.log('Payment status:', paymentResult === null || paymentResult === void 0 ? void 0 : paymentResult.status);
|
|
703
704
|
// 其他状态也关闭弹窗
|
|
704
705
|
setPaymentModalData(null);
|
|
705
706
|
setPaymentCallback(null);
|
|
707
|
+
(_window7 = window) === null || _window7 === void 0 || (_window7 = _window7.shopApi) === null || _window7 === void 0 || (_window7 = _window7.bookingTicket) === null || _window7 === void 0 || _window7.clearAllCart();
|
|
706
708
|
}
|
|
707
709
|
};
|
|
708
710
|
});
|
|
@@ -855,7 +857,7 @@ var Footer = function Footer(props) {
|
|
|
855
857
|
var handleSave = /*#__PURE__*/function () {
|
|
856
858
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_ref6) {
|
|
857
859
|
var _state$bookingConfig6, _state$service$value2, _state$client3;
|
|
858
|
-
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isToastMode, isHasDayProducts, hasUnspecifiedHolderProduct, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState,
|
|
860
|
+
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isToastMode, isHasDayProducts, hasUnspecifiedHolderProduct, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window8, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
|
|
859
861
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
860
862
|
while (1) switch (_context6.prev = _context6.next) {
|
|
861
863
|
case 0:
|
|
@@ -984,7 +986,7 @@ var Footer = function Footer(props) {
|
|
|
984
986
|
value: store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.globalConfig) === null || _store$getState === void 0 ? void 0 : _store$getState.id
|
|
985
987
|
}, {
|
|
986
988
|
key: 'shopApi',
|
|
987
|
-
value: JSON.stringify((
|
|
989
|
+
value: JSON.stringify((_window8 = window) === null || _window8 === void 0 ? void 0 : _window8.shopApi, function (key, value) {
|
|
988
990
|
if (typeof value === 'function') {
|
|
989
991
|
return 'function';
|
|
990
992
|
}
|
|
@@ -1783,15 +1785,8 @@ var Footer = function Footer(props) {
|
|
|
1783
1785
|
clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
|
|
1784
1786
|
// 清空所有内容并重置购物车
|
|
1785
1787
|
var handleClearAllAndReset = function handleClearAllAndReset() {
|
|
1786
|
-
var _shopDiscount$clear;
|
|
1788
|
+
var _shopDiscount$clear, _window9;
|
|
1787
1789
|
clearAllScanListenersTaskQueue();
|
|
1788
|
-
// 清空服务项目
|
|
1789
|
-
dispatch({
|
|
1790
|
-
type: 'setService',
|
|
1791
|
-
payload: {
|
|
1792
|
-
value: []
|
|
1793
|
-
}
|
|
1794
|
-
});
|
|
1795
1790
|
|
|
1796
1791
|
// 清空附加服务
|
|
1797
1792
|
dispatch({
|
|
@@ -1842,10 +1837,14 @@ var Footer = function Footer(props) {
|
|
|
1842
1837
|
// 清空商品券
|
|
1843
1838
|
shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
|
|
1844
1839
|
setEditOrderId(0);
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
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
|
+
});
|
|
1849
1848
|
};
|
|
1850
1849
|
|
|
1851
1850
|
// 购物车进入编辑状态
|
|
@@ -1989,7 +1988,7 @@ var Footer = function Footer(props) {
|
|
|
1989
1988
|
onChangeOrderNote: handleNoteConfirm,
|
|
1990
1989
|
onDeleteOrderNote: handleNoteDelete,
|
|
1991
1990
|
onClose: function onClose(reset) {
|
|
1992
|
-
|
|
1991
|
+
console.log('🔄 Footer: Closing PaymentModal', reset);
|
|
1993
1992
|
setIsPaymentModalOpen(false);
|
|
1994
1993
|
setPaymentModalData(null);
|
|
1995
1994
|
setPaymentCallback(null);
|
|
@@ -2005,9 +2004,7 @@ var Footer = function Footer(props) {
|
|
|
2005
2004
|
// handleClearAllAndReset();
|
|
2006
2005
|
// }
|
|
2007
2006
|
if (reset) {
|
|
2008
|
-
|
|
2009
|
-
handleClearAllAndReset();
|
|
2010
|
-
}, 0);
|
|
2007
|
+
handleClearAllAndReset();
|
|
2011
2008
|
}
|
|
2012
2009
|
// setPaymentModalData(null);
|
|
2013
2010
|
// setPaymentCallback(null);
|
|
@@ -500,7 +500,7 @@ var Footer = (props) => {
|
|
|
500
500
|
setIsPaymentModalOpen(true);
|
|
501
501
|
setCheckoutLoading(false);
|
|
502
502
|
setPaymentCallback(() => (paymentResult) => {
|
|
503
|
-
var _a3, _b3, _c3, _d2;
|
|
503
|
+
var _a3, _b3, _c3, _d2, _e2, _f2;
|
|
504
504
|
console.log("Payment result:", paymentResult);
|
|
505
505
|
setIsPaymentModalOpen(false);
|
|
506
506
|
if ((paymentResult == null ? void 0 : paymentResult.status) === "success") {
|
|
@@ -519,6 +519,7 @@ var Footer = (props) => {
|
|
|
519
519
|
console.log("Payment status:", paymentResult == null ? void 0 : paymentResult.status);
|
|
520
520
|
setPaymentModalData(null);
|
|
521
521
|
setPaymentCallback(null);
|
|
522
|
+
(_f2 = (_e2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _e2.bookingTicket) == null ? void 0 : _f2.clearAllCart();
|
|
522
523
|
}
|
|
523
524
|
});
|
|
524
525
|
} else {
|
|
@@ -1286,14 +1287,8 @@ var Footer = (props) => {
|
|
|
1286
1287
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
1287
1288
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
1288
1289
|
const handleClearAllAndReset = () => {
|
|
1289
|
-
var _a2;
|
|
1290
|
+
var _a2, _b2, _c2;
|
|
1290
1291
|
clearAllScanListenersTaskQueue();
|
|
1291
|
-
dispatch({
|
|
1292
|
-
type: "setService",
|
|
1293
|
-
payload: {
|
|
1294
|
-
value: []
|
|
1295
|
-
}
|
|
1296
|
-
});
|
|
1297
1292
|
dispatch({
|
|
1298
1293
|
type: "setAddons",
|
|
1299
1294
|
payload: {
|
|
@@ -1326,10 +1321,13 @@ var Footer = (props) => {
|
|
|
1326
1321
|
});
|
|
1327
1322
|
(_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
|
|
1328
1323
|
setEditOrderId(0);
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
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
|
+
});
|
|
1333
1331
|
};
|
|
1334
1332
|
const setEditCartMode = (order_id2, payData, closeModal = false) => {
|
|
1335
1333
|
setEditOrderId(order_id2);
|
|
@@ -1460,6 +1458,7 @@ var Footer = (props) => {
|
|
|
1460
1458
|
onChangeOrderNote: handleNoteConfirm,
|
|
1461
1459
|
onDeleteOrderNote: handleNoteDelete,
|
|
1462
1460
|
onClose: (reset) => {
|
|
1461
|
+
console.log("🔄 Footer: Closing PaymentModal", reset);
|
|
1463
1462
|
setIsPaymentModalOpen(false);
|
|
1464
1463
|
setPaymentModalData(null);
|
|
1465
1464
|
setPaymentCallback(null);
|
|
@@ -1471,9 +1470,7 @@ var Footer = (props) => {
|
|
|
1471
1470
|
}
|
|
1472
1471
|
});
|
|
1473
1472
|
if (reset) {
|
|
1474
|
-
|
|
1475
|
-
handleClearAllAndReset();
|
|
1476
|
-
}, 0);
|
|
1473
|
+
handleClearAllAndReset();
|
|
1477
1474
|
}
|
|
1478
1475
|
}
|
|
1479
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,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",
|
|
80
|
-
"@pisell/materials": "6.8.6",
|
|
81
79
|
"@pisell/icon": "0.0.11",
|
|
82
|
-
"@pisell/utils": "3.0.2"
|
|
80
|
+
"@pisell/utils": "3.0.2",
|
|
81
|
+
"@pisell/date-picker": "3.0.7",
|
|
82
|
+
"@pisell/materials": "6.8.6"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|