@pisell/private-materials 6.8.25 → 6.8.26
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 +8 -9
- package/es/components/checkout/PaymentModal.js +11 -11
- package/lib/components/booking/components/footer/index.js +5 -4
- package/lib/components/checkout/PaymentModal.js +12 -11
- package/package.json +3 -3
|
@@ -1787,8 +1787,7 @@ var Footer = function Footer(props) {
|
|
|
1787
1787
|
// 清空所有内容并重置购物车
|
|
1788
1788
|
var handleClearAllAndReset = function handleClearAllAndReset() {
|
|
1789
1789
|
var _shopDiscount$clear, _window9;
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
debugger;
|
|
1792
1791
|
// 清空附加服务
|
|
1793
1792
|
dispatch({
|
|
1794
1793
|
type: 'setAddons',
|
|
@@ -1846,6 +1845,7 @@ var Footer = function Footer(props) {
|
|
|
1846
1845
|
value: []
|
|
1847
1846
|
}
|
|
1848
1847
|
});
|
|
1848
|
+
clearAllScanListenersTaskQueue();
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
1851
|
// 购物车进入编辑状态
|
|
@@ -1993,7 +1993,12 @@ var Footer = function Footer(props) {
|
|
|
1993
1993
|
setIsPaymentModalOpen(false);
|
|
1994
1994
|
setPaymentModalData(null);
|
|
1995
1995
|
setPaymentCallback(null);
|
|
1996
|
-
//
|
|
1996
|
+
// if (reset) {
|
|
1997
|
+
// handleClearAllAndReset();
|
|
1998
|
+
// }
|
|
1999
|
+
if (reset) {
|
|
2000
|
+
handleClearAllAndReset();
|
|
2001
|
+
} // 清除编辑模式
|
|
1997
2002
|
setEditOrderId(0);
|
|
1998
2003
|
dispatch({
|
|
1999
2004
|
type: 'setPaymentPaid',
|
|
@@ -2001,12 +2006,6 @@ var Footer = function Footer(props) {
|
|
|
2001
2006
|
value: {}
|
|
2002
2007
|
}
|
|
2003
2008
|
});
|
|
2004
|
-
// if (reset) {
|
|
2005
|
-
// handleClearAllAndReset();
|
|
2006
|
-
// }
|
|
2007
|
-
if (reset) {
|
|
2008
|
-
handleClearAllAndReset();
|
|
2009
|
-
}
|
|
2010
2009
|
// setPaymentModalData(null);
|
|
2011
2010
|
// setPaymentCallback(null);
|
|
2012
2011
|
// if (reset) {
|
|
@@ -2219,6 +2219,17 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2219
2219
|
autoCloseConfig.maskClosable = false;
|
|
2220
2220
|
}
|
|
2221
2221
|
|
|
2222
|
+
// 根据支付状态展示不同的 toast
|
|
2223
|
+
displayPaymentResultToast({
|
|
2224
|
+
paymentStatus: paymentStatus,
|
|
2225
|
+
orderTotalAmount: _orderInfo3.isDeposit ? _orderInfo3.depositAmount : orderTotalAmount,
|
|
2226
|
+
gapAmount: paymentStatus === 'partially_paid' ? gapAmount : currentChangeGivenAmount,
|
|
2227
|
+
failureReason: failureReason,
|
|
2228
|
+
autoCloseConfig: autoCloseConfig,
|
|
2229
|
+
actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
|
|
2230
|
+
}, paymentResultToastConfig);
|
|
2231
|
+
console.log('paymentStatus>>>>', paymentStatus);
|
|
2232
|
+
|
|
2222
2233
|
// 当支付状态为 paid 时,关闭 paymentModal
|
|
2223
2234
|
if (paymentStatus === 'paid') {
|
|
2224
2235
|
handleModalClose();
|
|
@@ -2234,17 +2245,6 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2234
2245
|
}
|
|
2235
2246
|
});
|
|
2236
2247
|
handlePaymentComplete(paymentResult);
|
|
2237
|
-
// 根据支付状态展示不同的 toast
|
|
2238
|
-
_context22.next = 35;
|
|
2239
|
-
return displayPaymentResultToast({
|
|
2240
|
-
paymentStatus: paymentStatus,
|
|
2241
|
-
orderTotalAmount: _orderInfo3.isDeposit ? _orderInfo3.depositAmount : orderTotalAmount,
|
|
2242
|
-
gapAmount: paymentStatus === 'partially_paid' ? gapAmount : currentChangeGivenAmount,
|
|
2243
|
-
failureReason: failureReason,
|
|
2244
|
-
autoCloseConfig: autoCloseConfig,
|
|
2245
|
-
actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
|
|
2246
|
-
}, paymentResultToastConfig);
|
|
2247
|
-
case 35:
|
|
2248
2248
|
_context22.next = 38;
|
|
2249
2249
|
break;
|
|
2250
2250
|
case 37:
|
|
@@ -1288,7 +1288,7 @@ var Footer = (props) => {
|
|
|
1288
1288
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
1289
1289
|
const handleClearAllAndReset = () => {
|
|
1290
1290
|
var _a2, _b2, _c2;
|
|
1291
|
-
|
|
1291
|
+
debugger;
|
|
1292
1292
|
dispatch({
|
|
1293
1293
|
type: "setAddons",
|
|
1294
1294
|
payload: {
|
|
@@ -1328,6 +1328,7 @@ var Footer = (props) => {
|
|
|
1328
1328
|
value: []
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
|
+
clearAllScanListenersTaskQueue();
|
|
1331
1332
|
};
|
|
1332
1333
|
const setEditCartMode = (order_id2, payData, closeModal = false) => {
|
|
1333
1334
|
setEditOrderId(order_id2);
|
|
@@ -1462,6 +1463,9 @@ var Footer = (props) => {
|
|
|
1462
1463
|
setIsPaymentModalOpen(false);
|
|
1463
1464
|
setPaymentModalData(null);
|
|
1464
1465
|
setPaymentCallback(null);
|
|
1466
|
+
if (reset) {
|
|
1467
|
+
handleClearAllAndReset();
|
|
1468
|
+
}
|
|
1465
1469
|
setEditOrderId(0);
|
|
1466
1470
|
dispatch({
|
|
1467
1471
|
type: "setPaymentPaid",
|
|
@@ -1469,9 +1473,6 @@ var Footer = (props) => {
|
|
|
1469
1473
|
value: {}
|
|
1470
1474
|
}
|
|
1471
1475
|
});
|
|
1472
|
-
if (reset) {
|
|
1473
|
-
handleClearAllAndReset();
|
|
1474
|
-
}
|
|
1475
1476
|
}
|
|
1476
1477
|
}
|
|
1477
1478
|
), /* @__PURE__ */ import_react.default.createElement(import_confirmHolderModal.ConfirmHolderModal, null));
|
|
@@ -1566,6 +1566,18 @@ var PaymentModal = ({
|
|
|
1566
1566
|
autoCloseConfig.autoCloseDelay = 0;
|
|
1567
1567
|
autoCloseConfig.maskClosable = false;
|
|
1568
1568
|
}
|
|
1569
|
+
(0, import_PaymentResultToastUtils.displayPaymentResultToast)(
|
|
1570
|
+
{
|
|
1571
|
+
paymentStatus,
|
|
1572
|
+
orderTotalAmount: orderInfo3.isDeposit ? orderInfo3.depositAmount : orderTotalAmount,
|
|
1573
|
+
gapAmount: paymentStatus === "partially_paid" ? gapAmount : currentChangeGivenAmount,
|
|
1574
|
+
failureReason,
|
|
1575
|
+
autoCloseConfig,
|
|
1576
|
+
actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
|
|
1577
|
+
},
|
|
1578
|
+
paymentResultToastConfig
|
|
1579
|
+
);
|
|
1580
|
+
console.log("paymentStatus>>>>", paymentStatus);
|
|
1569
1581
|
if (paymentStatus === "paid") {
|
|
1570
1582
|
handleModalClose();
|
|
1571
1583
|
}
|
|
@@ -1579,17 +1591,6 @@ var PaymentModal = ({
|
|
|
1579
1591
|
}
|
|
1580
1592
|
};
|
|
1581
1593
|
handlePaymentComplete(paymentResult);
|
|
1582
|
-
await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
|
|
1583
|
-
{
|
|
1584
|
-
paymentStatus,
|
|
1585
|
-
orderTotalAmount: orderInfo3.isDeposit ? orderInfo3.depositAmount : orderTotalAmount,
|
|
1586
|
-
gapAmount: paymentStatus === "partially_paid" ? gapAmount : currentChangeGivenAmount,
|
|
1587
|
-
failureReason,
|
|
1588
|
-
autoCloseConfig,
|
|
1589
|
-
actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
|
|
1590
|
-
},
|
|
1591
|
-
paymentResultToastConfig
|
|
1592
|
-
);
|
|
1593
1594
|
} else {
|
|
1594
1595
|
handlePaymentComplete(data2);
|
|
1595
1596
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.26",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
79
|
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/utils": "3.0.2",
|
|
81
80
|
"@pisell/date-picker": "3.0.7",
|
|
82
|
-
"@pisell/materials": "6.8.6"
|
|
81
|
+
"@pisell/materials": "6.8.6",
|
|
82
|
+
"@pisell/utils": "3.0.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|