@pisell/private-materials 6.5.4 → 6.5.6
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +160 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +37 -42
- package/es/components/booking/components/actionButtons/index.less +0 -28
- package/es/components/booking/components/footer/amount.d.ts +3 -3
- package/es/components/booking/components/footer/amount.js +51 -31
- package/es/components/booking/components/footer/index.js +177 -68
- package/es/components/booking/components/footer/utils.js +62 -33
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/index.js +2 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/index.js +42 -2
- package/es/components/booking/info2/service/addService/index.js +2 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +12 -4
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.js +10 -5
- package/es/components/checkout/PaymentModal.d.ts +2 -0
- package/es/components/checkout/PaymentModal.js +462 -263
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +176 -65
- package/es/components/checkout/components/AmountSummary/index.less +13 -0
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +110 -132
- package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +214 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
- package/es/components/checkout/components/PaymentOptionsModule/index.less +23 -0
- package/es/components/checkout/components/PaymentResultToast/index.js +38 -8
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
- package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/components/WalletPassModule/index.js +4 -3
- package/es/components/checkout/components/WalletPassModule/utils.js +10 -4
- package/es/components/checkout/hooks/useWalletPass.js +11 -4
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +36 -0
- package/es/components/checkout/locales.js +43 -4
- package/es/components/checkout/types.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/Product.js +143 -71
- package/es/components/shoppingCart/components/Cart/index.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.less +31 -0
- package/es/components/shoppingCart/locales.d.ts +3 -0
- package/es/components/shoppingCart/locales.js +12 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +9 -12
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.js +3 -1
- package/es/components/ticketBooking/components/menuBar/index.less +7 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +5 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +331 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +12 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +465 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +12 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/priceKeyboard/index.js +3 -0
- package/es/pro/priceKeyboard/index.less +215 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/priceKeyboard/utils.js +51 -0
- package/es/pro/skuDetailModal/index.js +19 -16
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +31 -28
- package/lib/components/booking/components/actionButtons/index.less +0 -28
- package/lib/components/booking/components/footer/amount.d.ts +3 -3
- package/lib/components/booking/components/footer/amount.js +49 -34
- package/lib/components/booking/components/footer/index.js +114 -40
- package/lib/components/booking/components/footer/utils.js +35 -7
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +2 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.js +18 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +12 -4
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.js +10 -5
- package/lib/components/checkout/PaymentModal.d.ts +2 -0
- package/lib/components/checkout/PaymentModal.js +208 -91
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +120 -50
- package/lib/components/checkout/components/AmountSummary/index.less +13 -0
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +101 -134
- package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +163 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +23 -0
- package/lib/components/checkout/components/PaymentResultToast/index.js +26 -1
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +2 -0
- package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/components/WalletPassModule/index.js +4 -3
- package/lib/components/checkout/components/WalletPassModule/utils.js +8 -4
- package/lib/components/checkout/hooks/useWalletPass.js +11 -6
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +36 -0
- package/lib/components/checkout/locales.js +43 -4
- package/lib/components/checkout/types.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
- package/lib/components/shoppingCart/components/Cart/index.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.less +31 -0
- package/lib/components/shoppingCart/locales.d.ts +3 -0
- package/lib/components/shoppingCart/locales.js +6 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -4
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
- package/lib/components/ticketBooking/components/menuBar/index.less +7 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +5 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +360 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +12 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +504 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +12 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/priceKeyboard/index.js +45 -0
- package/lib/pro/priceKeyboard/index.less +215 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/priceKeyboard/utils.js +75 -0
- package/lib/pro/skuDetailModal/index.js +18 -22
- package/package.json +12 -12
@@ -1,6 +1,12 @@
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
-
|
3
|
-
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
8
|
+
import React, { useMemo, useState } from 'react';
|
9
|
+
import { ProductCard, Iconfont } from '@pisell/materials';
|
4
10
|
// import ProductCard from '../../../../../../materials/src/components/productCard';
|
5
11
|
import useClearCart from "../../hooks/useClearCart";
|
6
12
|
import { useContext } from "../../hooks/useContext";
|
@@ -8,6 +14,9 @@ import useAddService from "../../hooks/useAddService";
|
|
8
14
|
import { useMemoizedFn } from 'ahooks';
|
9
15
|
import { isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
|
10
16
|
import PisellNumberSelector from "../../../../pro/pisellNumberSelector";
|
17
|
+
import { formatAmount } from "@pisell/utils";
|
18
|
+
import { locales } from '@pisell/utils';
|
19
|
+
import Decimal from 'decimal.js';
|
11
20
|
var Product = function Product(props) {
|
12
21
|
var id = props.id,
|
13
22
|
lists = props.lists,
|
@@ -32,6 +41,12 @@ var Product = function Product(props) {
|
|
32
41
|
productCardStyleConfig = _state$productCardSty === void 0 ? {} : _state$productCardSty;
|
33
42
|
var clearCart = useClearCart(id);
|
34
43
|
|
44
|
+
// 控制编辑区域展开收起状态
|
45
|
+
var _useState = useState(true),
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
47
|
+
isEditExpanded = _useState2[0],
|
48
|
+
setIsEditExpanded = _useState2[1];
|
49
|
+
|
35
50
|
/**
|
36
51
|
* @title: 更新商品数据
|
37
52
|
* @description:
|
@@ -44,6 +59,12 @@ var Product = function Product(props) {
|
|
44
59
|
if (disabledEdit && !(other !== null && other !== void 0 && other.disabled)) return;
|
45
60
|
onChange(item, type, other);
|
46
61
|
});
|
62
|
+
|
63
|
+
// 切换编辑区域展开收起状态
|
64
|
+
var toggleEditExpanded = useMemoizedFn(function (e) {
|
65
|
+
e === null || e === void 0 || e.preventDefault();
|
66
|
+
setIsEditExpanded(!isEditExpanded);
|
67
|
+
});
|
47
68
|
var productParams = useMemo(function () {
|
48
69
|
return {
|
49
70
|
isShowNote: isShowNote,
|
@@ -66,78 +87,129 @@ var Product = function Product(props) {
|
|
66
87
|
disabledEdit: true
|
67
88
|
};
|
68
89
|
});
|
90
|
+
|
91
|
+
// 预先根据是否处于编辑态切分列表,避免多次 filter 计算
|
92
|
+
var editItems = useMemo(function () {
|
93
|
+
return (lists || []).filter(function (item) {
|
94
|
+
var _item$_origin;
|
95
|
+
return item === null || item === void 0 || (_item$_origin = item._origin) === null || _item$_origin === void 0 ? void 0 : _item$_origin.edit;
|
96
|
+
});
|
97
|
+
}, [lists]);
|
98
|
+
var normalItems = useMemo(function () {
|
99
|
+
return (lists || []).filter(function (item) {
|
100
|
+
var _item$_origin2;
|
101
|
+
return !(item !== null && item !== void 0 && (_item$_origin2 = item._origin) !== null && _item$_origin2 !== void 0 && _item$_origin2.edit);
|
102
|
+
});
|
103
|
+
}, [lists]);
|
104
|
+
var editTotal = useMemo(function () {
|
105
|
+
var total = editItems.reduce(function (total, item) {
|
106
|
+
var itemTotal = new Decimal((item === null || item === void 0 ? void 0 : item.total) || 0).mul(item.num);
|
107
|
+
return total.add(itemTotal);
|
108
|
+
}, new Decimal(0));
|
109
|
+
return formatAmount(total.toNumber(), 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$');
|
110
|
+
}, [editItems]);
|
111
|
+
|
112
|
+
// 统一渲染单个商品卡片,去重映射逻辑
|
113
|
+
var renderProductItem = useMemoizedFn(function (item) {
|
114
|
+
var Comp = ProductCard;
|
115
|
+
var isRetail;
|
116
|
+
if (state.scenario === 'booking2') {
|
117
|
+
isRetail = isNormalProductByDurationSchedule(item === null || item === void 0 ? void 0 : item._origin);
|
118
|
+
Comp = ProductCard.V2;
|
119
|
+
}
|
120
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({
|
121
|
+
type: isRetail ? 'a2' : 'a5',
|
122
|
+
rightActions: [{
|
123
|
+
key: 'update_number',
|
124
|
+
text: /*#__PURE__*/React.createElement(PisellNumberSelector, {
|
125
|
+
enablePriceAdjust: true,
|
126
|
+
min: 1,
|
127
|
+
className: "pisell-sku-card__pisell-number-setter",
|
128
|
+
value: item === null || item === void 0 ? void 0 : item.num,
|
129
|
+
onChange: function onChange(value) {
|
130
|
+
if (value < 1) {
|
131
|
+
handleChange(item, 'num', {
|
132
|
+
num: 1
|
133
|
+
});
|
134
|
+
} else {
|
135
|
+
handleChange(item, 'num', {
|
136
|
+
num: value
|
137
|
+
});
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}),
|
141
|
+
color: '#667085'
|
142
|
+
}],
|
143
|
+
escapeDom: ".pisell-number-selector-popover",
|
144
|
+
key: item._id,
|
145
|
+
dataSource: item,
|
146
|
+
onAction: function onAction(e) {
|
147
|
+
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
148
|
+
},
|
149
|
+
onDelete: function onDelete(e) {
|
150
|
+
return handleChange(e, 'delete', item);
|
151
|
+
},
|
152
|
+
onNote: function onNote(e) {
|
153
|
+
return handleChange(e, 'note', {
|
154
|
+
note: e.note
|
155
|
+
});
|
156
|
+
},
|
157
|
+
onLike: function onLike(e) {
|
158
|
+
return handleChange(e, 'like', {
|
159
|
+
like_status: e.like_status
|
160
|
+
});
|
161
|
+
},
|
162
|
+
onEditProduct: function onEditProduct(e) {
|
163
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
164
|
+
},
|
165
|
+
onCard: function onCard(e) {
|
166
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
167
|
+
},
|
168
|
+
onChangeResource: function onChangeResource(e) {
|
169
|
+
return handleChange(item, 'change_resource', e);
|
170
|
+
},
|
171
|
+
onChangeHolder: function onChangeHolder(e) {
|
172
|
+
return handleChange(item, 'change_holder', e);
|
173
|
+
},
|
174
|
+
onAddHolder: function onAddHolder(e) {
|
175
|
+
return handleChange(item, 'add_holder', e);
|
176
|
+
}
|
177
|
+
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
178
|
+
scenario: state.scenario
|
179
|
+
}));
|
180
|
+
});
|
69
181
|
return useMemo(function () {
|
70
|
-
console.log('render cart');
|
182
|
+
console.log('render cart', lists);
|
71
183
|
return /*#__PURE__*/React.createElement("div", {
|
72
184
|
className: "pisell-lowcode__shopping-cart-content"
|
73
|
-
}, clearCart,
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
185
|
+
}, clearCart, editItems.length > 0 && /*#__PURE__*/React.createElement("div", {
|
186
|
+
className: "pisell-lowcode__shopping-cart-edit"
|
187
|
+
}, /*#__PURE__*/React.createElement("div", {
|
188
|
+
className: "pisell-lowcode__shopping-cart-edit-header",
|
189
|
+
onClick: toggleEditExpanded,
|
190
|
+
style: {
|
191
|
+
cursor: 'pointer'
|
79
192
|
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
color: '#667085'
|
102
|
-
}],
|
103
|
-
escapeDom: ".pisell-number-selector-popover",
|
104
|
-
key: item._id,
|
105
|
-
dataSource: item,
|
106
|
-
onAction: function onAction(e) {
|
107
|
-
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
108
|
-
},
|
109
|
-
onDelete: function onDelete(e) {
|
110
|
-
return handleChange(e, 'delete', item);
|
111
|
-
},
|
112
|
-
onNote: function onNote(e) {
|
113
|
-
return handleChange(e, 'note', {
|
114
|
-
note: e.note
|
115
|
-
});
|
116
|
-
},
|
117
|
-
onLike: function onLike(e) {
|
118
|
-
return handleChange(e, 'like', {
|
119
|
-
like_status: e.like_status
|
120
|
-
});
|
121
|
-
},
|
122
|
-
onEditProduct: function onEditProduct(e) {
|
123
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
124
|
-
},
|
125
|
-
onCard: function onCard(e) {
|
126
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
127
|
-
},
|
128
|
-
onChangeResource: function onChangeResource(e) {
|
129
|
-
return handleChange(item, 'change_resource', e);
|
130
|
-
},
|
131
|
-
onChangeHolder: function onChangeHolder(e) {
|
132
|
-
return handleChange(item, 'change_holder', e);
|
133
|
-
},
|
134
|
-
onAddHolder: function onAddHolder(e) {
|
135
|
-
return handleChange(item, 'add_holder', e);
|
136
|
-
}
|
137
|
-
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
138
|
-
scenario: state.scenario
|
139
|
-
}));
|
140
|
-
}), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
141
|
-
}, [clearCart, lists, productParams, hideAddBtn, isAdd, platform]);
|
193
|
+
}, /*#__PURE__*/React.createElement("div", {
|
194
|
+
className: "pisell-lowcode__shopping-cart-edit-header-title"
|
195
|
+
}, locales.getText('pisell2.text.shopping-cart.save.items')(editItems.length)), /*#__PURE__*/React.createElement("div", {
|
196
|
+
className: "pisell-lowcode__shopping-cart-edit-header-summary"
|
197
|
+
}, editTotal), /*#__PURE__*/React.createElement("div", {
|
198
|
+
className: "pisell-lowcode__shopping-cart-edit-header-switch"
|
199
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
200
|
+
type: "pisell2-chevron-down",
|
201
|
+
style: {
|
202
|
+
transform: isEditExpanded ? 'rotate(180deg)' : 'rotate(0deg)',
|
203
|
+
transition: 'transform 0.3s ease'
|
204
|
+
}
|
205
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
206
|
+
className: "pisell-lowcode__shopping-cart-edit-content",
|
207
|
+
style: {
|
208
|
+
maxHeight: isEditExpanded ? 'unset' : '0',
|
209
|
+
overflow: 'hidden',
|
210
|
+
transition: 'max-height 0.3s ease'
|
211
|
+
}
|
212
|
+
}, editItems.map(renderProductItem))), normalItems.map(renderProductItem), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
213
|
+
}, [clearCart, editItems, normalItems, productParams, hideAddBtn, isAdd, platform, isEditExpanded]);
|
142
214
|
};
|
143
215
|
export default Product;
|
@@ -52,7 +52,7 @@ var Cart = function Cart() {
|
|
52
52
|
});
|
53
53
|
}, [carts, platform]);
|
54
54
|
return useMemo(function () {
|
55
|
-
console.log('render cart 22222');
|
55
|
+
console.log('render cart 22222', state.prodcuts);
|
56
56
|
return /*#__PURE__*/React.createElement("div", {
|
57
57
|
className: classNames('pisell-lowcode__shopping-cart')
|
58
58
|
}, isProductList ? /*#__PURE__*/React.createElement(Product, {
|
@@ -24,6 +24,37 @@
|
|
24
24
|
margin-bottom: 0;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
|
28
|
+
.pisell-lowcode__shopping-cart-edit {
|
29
|
+
display: flex;
|
30
|
+
padding: 6px;
|
31
|
+
background: #EAECF0;
|
32
|
+
flex-direction: column;
|
33
|
+
color: black;
|
34
|
+
border-radius: 8px;
|
35
|
+
.pisell-lowcode__shopping-cart-edit-header {
|
36
|
+
display: flex;
|
37
|
+
font-size: 14px;
|
38
|
+
font-weight: 600;
|
39
|
+
.pisell-lowcode__shopping-cart-edit-header-title {
|
40
|
+
flex: 1;
|
41
|
+
}
|
42
|
+
.pisell-lowcode__shopping-cart-edit-header-summary {
|
43
|
+
margin-right: 4px;
|
44
|
+
}
|
45
|
+
// .pisell-lowcode__shopping-cart-edit-header-switch {
|
46
|
+
// font-size: 14px;
|
47
|
+
// font-weight: 400;
|
48
|
+
// line-height: 20px;
|
49
|
+
// }
|
50
|
+
}
|
51
|
+
.pisell-lowcode__shopping-cart-edit-content {
|
52
|
+
margin-top: 6px;
|
53
|
+
gap: 8px;
|
54
|
+
display: flex;
|
55
|
+
flex-direction: column;
|
56
|
+
}
|
57
|
+
}
|
27
58
|
|
28
59
|
.pisell-lowcode__shopping-cart-label {
|
29
60
|
color: var(--Base-Black, #000);
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
8
8
|
'pisell2.text.shopping-cart.confirm': string;
|
9
9
|
'pisell2.text.shopping-cart.cancel': string;
|
10
10
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
11
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
11
12
|
};
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
18
19
|
'pisell2.text.shopping-cart.confirm': string;
|
19
20
|
'pisell2.text.shopping-cart.cancel': string;
|
20
21
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
22
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
21
23
|
};
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -28,6 +30,7 @@ declare const _default: {
|
|
28
30
|
'pisell2.text.shopping-cart.confirm': string;
|
29
31
|
'pisell2.text.shopping-cart.cancel': string;
|
30
32
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
33
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
31
34
|
};
|
32
35
|
};
|
33
36
|
export default _default;
|
@@ -9,7 +9,10 @@ export default {
|
|
9
9
|
'pisell2.text.shopping-cart.no.selected': 'No items selected',
|
10
10
|
'pisell2.text.shopping-cart.confirm': 'Confirm',
|
11
11
|
'pisell2.text.shopping-cart.cancel': 'Cancel',
|
12
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment'
|
12
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment',
|
13
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
14
|
+
return "".concat(num, " save ").concat(num > 1 ? 'items' : 'item');
|
15
|
+
}
|
13
16
|
},
|
14
17
|
'zh-CN': {
|
15
18
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -21,7 +24,10 @@ export default {
|
|
21
24
|
'pisell2.text.shopping-cart.no.selected': '未选择任何项目',
|
22
25
|
'pisell2.text.shopping-cart.confirm': '确定',
|
23
26
|
'pisell2.text.shopping-cart.cancel': '取消',
|
24
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
27
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
28
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
29
|
+
return "".concat(num, " \u4E2A\u4FDD\u5B58\u5546\u54C1");
|
30
|
+
}
|
25
31
|
},
|
26
32
|
'zh-HK': {
|
27
33
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -33,6 +39,9 @@ export default {
|
|
33
39
|
'pisell2.text.shopping-cart.no.selected': '未選擇任何項目',
|
34
40
|
'pisell2.text.shopping-cart.confirm': '確定',
|
35
41
|
'pisell2.text.shopping-cart.cancel': '取消',
|
36
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
42
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
43
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
44
|
+
return "".concat(num, " \u500B\u4FDD\u5B58\u5546\u54C1");
|
45
|
+
}
|
37
46
|
}
|
38
47
|
};
|
@@ -322,12 +322,9 @@ var AddSerivce = function AddSerivce(props) {
|
|
322
322
|
case 0:
|
323
323
|
setCurrentProduct(null);
|
324
324
|
// 防止选择商品弹窗多次触发callback
|
325
|
-
if (
|
326
|
-
|
327
|
-
|
328
|
-
}
|
329
|
-
return _context.abrupt("return");
|
330
|
-
case 3:
|
325
|
+
// if (lock) {
|
326
|
+
// return;
|
327
|
+
// }
|
331
328
|
lock = true;
|
332
329
|
|
333
330
|
// 2秒后解除
|
@@ -335,23 +332,23 @@ var AddSerivce = function AddSerivce(props) {
|
|
335
332
|
lock = false;
|
336
333
|
}, 2000);
|
337
334
|
if (isBooking4) {
|
338
|
-
_context.next =
|
335
|
+
_context.next = 9;
|
339
336
|
break;
|
340
337
|
}
|
341
|
-
_context.next =
|
338
|
+
_context.next = 6;
|
342
339
|
return createBookingData({
|
343
340
|
product: _objectSpread(_objectSpread({}, detail || item), {}, {
|
344
341
|
_params: e
|
345
342
|
})
|
346
343
|
});
|
347
|
-
case
|
344
|
+
case 6:
|
348
345
|
data = _context.sent;
|
349
346
|
// 创建预约
|
350
347
|
createBooking({
|
351
348
|
booking: data
|
352
349
|
});
|
353
350
|
return _context.abrupt("return");
|
354
|
-
case
|
351
|
+
case 9:
|
355
352
|
// info2 addService 逻辑
|
356
353
|
_detail = detail || item;
|
357
354
|
other = JSON.parse(JSON.stringify(e));
|
@@ -394,7 +391,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
394
391
|
if (cacheItem.autoClose) {
|
395
392
|
cacheItem.autoClose = false;
|
396
393
|
cacheItem._serviceKey = genServiceKey(cacheItem);
|
397
|
-
_addService2 = addService(_toConsumableArray(
|
394
|
+
_addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, state), _list = _addService2.list, quantity = _addService2.quantity;
|
398
395
|
if (!notShowToast) {
|
399
396
|
handleAddToast(cacheItem.title, quantity || 1);
|
400
397
|
}
|
@@ -459,7 +456,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
459
456
|
});
|
460
457
|
onEdit === null || onEdit === void 0 || onEdit(cacheItem);
|
461
458
|
}
|
462
|
-
case
|
459
|
+
case 22:
|
463
460
|
case "end":
|
464
461
|
return _context.stop();
|
465
462
|
}
|
@@ -72,7 +72,9 @@ var index = function index() {
|
|
72
72
|
"stroke-width": "1.5",
|
73
73
|
"stroke-linecap": "round",
|
74
74
|
"stroke-linejoin": "round"
|
75
|
-
}))))), /*#__PURE__*/React.createElement("div",
|
75
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
76
|
+
className: "menu-wrapper"
|
77
|
+
}, /*#__PURE__*/React.createElement(ConfigProvider, {
|
76
78
|
theme: {
|
77
79
|
components: {
|
78
80
|
Menu: {
|
@@ -62,7 +62,7 @@ export var useCustomer = function useCustomer(props) {
|
|
62
62
|
if (!pisellos) {
|
63
63
|
return;
|
64
64
|
}
|
65
|
-
pisellos.effects.on('customer:onUpdate', function (state) {
|
65
|
+
var unlisten1 = pisellos.effects.on('customer:onUpdate', function (state) {
|
66
66
|
setCustomers(state.customerList);
|
67
67
|
setHasMore(state.hasMore);
|
68
68
|
setPagination(function (prev) {
|
@@ -73,20 +73,20 @@ export var useCustomer = function useCustomer(props) {
|
|
73
73
|
});
|
74
74
|
});
|
75
75
|
});
|
76
|
-
pisellos.effects.on('customer:onSelected', function (customer) {
|
76
|
+
var unlisten2 = pisellos.effects.on('customer:onSelected', function (customer) {
|
77
77
|
var _props$changeCustomer;
|
78
78
|
setSelectedCustomer(customer);
|
79
79
|
(_props$changeCustomer = props.changeCustomerToGlobalState) === null || _props$changeCustomer === void 0 || _props$changeCustomer.call(props, customer);
|
80
80
|
});
|
81
|
-
pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
|
81
|
+
var unlisten3 = pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
|
82
82
|
setPagination(paginationInfo);
|
83
83
|
});
|
84
84
|
return function () {
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
unlisten1();
|
86
|
+
unlisten2();
|
87
|
+
unlisten3();
|
88
88
|
};
|
89
|
-
}, [
|
89
|
+
}, []);
|
90
90
|
|
91
91
|
// 加载客户列表
|
92
92
|
var loadCustomers = useMemoizedFn( /*#__PURE__*/function () {
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
@@ -150,7 +150,8 @@ export var addService = function addService(list, addItem, state) {
|
|
150
150
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
151
151
|
return item.type === 'good_pass';
|
152
152
|
});
|
153
|
-
|
153
|
+
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
154
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
154
155
|
var _item$_extend, _addItem$_extend, _item$_extend2;
|
155
156
|
isNotSame = false;
|
156
157
|
var quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
addWalletCard: any;
|
4
|
-
}
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
-
walletDetailState: RechargeState;
|
7
|
-
} & {
|
8
|
-
dispatch: (params: {
|
9
|
-
type: string;
|
10
|
-
payload: any;
|
11
|
-
}) => void;
|
12
|
-
}>;
|
13
|
-
export {};
|
1
|
+
export declare const Provider: any, Context: any;
|
@@ -1,14 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
total: number;
|
4
|
-
setup?: 'menu' | 'list' | 'detail' | string;
|
5
|
-
}
|
6
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
7
|
-
state: RechargeState;
|
8
|
-
} & {
|
9
|
-
dispatch: (params: {
|
10
|
-
type: string;
|
11
|
-
payload: any;
|
12
|
-
}) => void;
|
13
|
-
}>;
|
14
|
-
export {};
|
1
|
+
export declare const Provider: any, Context: any;
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
total: number;
|
4
|
-
}
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
-
state: RechargeState;
|
7
|
-
} & {
|
8
|
-
dispatch: (params: {
|
9
|
-
type: string;
|
10
|
-
payload: any;
|
11
|
-
}) => void;
|
12
|
-
}>;
|
13
|
-
export {};
|
1
|
+
export declare const Provider: any, Context: any;
|
@@ -1,29 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
selectedGiftOptionId: string | null;
|
4
|
-
cardList: Array<{
|
5
|
-
id: string;
|
6
|
-
name: string;
|
7
|
-
price: number;
|
8
|
-
}>;
|
9
|
-
selectedItem: {
|
10
|
-
id?: string;
|
11
|
-
gift_price?: number;
|
12
|
-
price?: number;
|
13
|
-
name?: string;
|
14
|
-
variant_id?: string;
|
15
|
-
};
|
16
|
-
productId?: string;
|
17
|
-
detailId?: string;
|
18
|
-
total: string | number;
|
19
|
-
rechargeModalOpen: boolean;
|
20
|
-
}
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
22
|
-
state: RechargeState;
|
23
|
-
} & {
|
24
|
-
dispatch: (params: {
|
25
|
-
type: string;
|
26
|
-
payload: any;
|
27
|
-
}) => void;
|
28
|
-
}>;
|
29
|
-
export {};
|
1
|
+
export declare const Provider: any, Context: any;
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
total: 0;
|
4
|
-
}
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
-
state: RechargeState;
|
7
|
-
} & {
|
8
|
-
dispatch: (params: {
|
9
|
-
type: string;
|
10
|
-
payload: any;
|
11
|
-
}) => void;
|
12
|
-
}>;
|
13
|
-
export {};
|
1
|
+
export declare const Provider: any, Context: any;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { IWalletListItemProps } from './serve';
|
3
2
|
export interface WalletCardItemProps {
|
4
3
|
id: string;
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
27
26
|
currentSearchListItemCode?: string;
|
28
27
|
[key: string]: any;
|
29
28
|
}
|
30
|
-
export declare const Provider:
|
31
|
-
global_wallet: WalletListProps;
|
32
|
-
} & {
|
33
|
-
dispatch: (params: {
|
34
|
-
type: string;
|
35
|
-
payload: any;
|
36
|
-
}) => void;
|
37
|
-
}>;
|
29
|
+
export declare const Provider: any, Context: any;
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
7
|
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
8
8
|
import { Popover } from 'antd';
|
9
|
-
import
|
9
|
+
import PisellPriceKeyboard from '@pisell/materials/src/components/pisellAdjustPrice/index';
|
10
10
|
import { locales } from '@pisell/utils';
|
11
11
|
import "./PisellPriceKeyboardPopover.less";
|
12
12
|
var PisellPriceKeyboardPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
|