@pisell/private-materials 3.2.1 → 3.2.2
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.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +3 -3
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/wallet/Detail/index.js +57 -28
- package/es/components/wallet/Detail/locales.d.ts +6 -0
- package/es/components/wallet/Detail/locales.js +6 -0
- package/es/components/wallet/Detail/serve.js +3 -1
- package/es/components/wallet/components/FooterButtons/index.js +1 -1
- package/es/components/wallet/index.js +2 -1
- package/es/components/wallet/locales.js +1 -1
- package/es/components/walletList/index.less +0 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/wallet/Detail/index.js +34 -21
- package/lib/components/wallet/Detail/locales.d.ts +6 -0
- package/lib/components/wallet/Detail/locales.js +6 -0
- package/lib/components/wallet/Detail/serve.js +1 -1
- package/lib/components/wallet/components/FooterButtons/index.js +2 -1
- package/lib/components/wallet/index.js +2 -1
- package/lib/components/wallet/locales.js +1 -1
- package/lib/components/walletList/index.less +0 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/package.json +2 -2
|
@@ -153,10 +153,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
153
153
|
export declare const getDuration: (duration: number | {
|
|
154
154
|
type: string;
|
|
155
155
|
value: number;
|
|
156
|
-
}) => number |
|
|
156
|
+
}) => number | {
|
|
157
157
|
type: string;
|
|
158
158
|
value: number;
|
|
159
|
-
};
|
|
159
|
+
} | "flexible";
|
|
160
160
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
161
161
|
export declare const getIsEdit: (state: any) => boolean;
|
|
162
162
|
export {};
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
11
11
|
api: PayProps['api'];
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
onChange?: ((status: "
|
|
13
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
14
14
|
[keys: string]: unknown;
|
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
|
16
16
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"tyro" | "stripe" | "payo" | "windcave">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "success" | "loading" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "tyro" | "stripe" | "payo" | "windcave" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -16,7 +16,7 @@ import timezone from 'dayjs/plugin/timezone';
|
|
|
16
16
|
|
|
17
17
|
import { isMobile, isIos, locales } from '@pisell/utils';
|
|
18
18
|
import utc from 'dayjs/plugin/utc';
|
|
19
|
-
import { ButtonGroupPreview, PisellEmpty, Timeline, PisellAnchor, PisellModal, Typography, PisellStatisticList, Button, PisellToast } from '@pisell/materials';
|
|
19
|
+
import { ButtonGroupPreview, PisellEmpty, Timeline, PisellAnchor, PisellModal, Typography, PisellStatisticList, Button, PisellToast, Skeleton } from '@pisell/materials';
|
|
20
20
|
import useEngineContext from "./../../../hooks/useEngineContext";
|
|
21
21
|
import localeTexts from "./locales";
|
|
22
22
|
import { getAssetList, getDetailApi } from "./serve";
|
|
@@ -98,30 +98,34 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
98
98
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
99
99
|
copyUrl = _useState12[0],
|
|
100
100
|
setCopyUrl = _useState12[1];
|
|
101
|
-
var _useState13 = useState(
|
|
101
|
+
var _useState13 = useState(false),
|
|
102
102
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
isLoading = _useState14[0],
|
|
104
|
+
setIsLoading = _useState14[1];
|
|
105
105
|
var _useState15 = useState(''),
|
|
106
106
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
apple_wallet_url = _useState16[0],
|
|
108
|
+
setAppleWalletUrl = _useState16[1];
|
|
109
|
+
var _useState17 = useState(''),
|
|
110
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
111
|
+
google_wallet_url = _useState18[0],
|
|
112
|
+
setGoogleWalletUrl = _useState18[1];
|
|
109
113
|
var stateTimeUnix = 1723255863; //2024.8.10 时间戳
|
|
110
114
|
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
listData =
|
|
114
|
-
setListData =
|
|
115
|
+
var _useState19 = useState([]),
|
|
116
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
117
|
+
listData = _useState20[0],
|
|
118
|
+
setListData = _useState20[1];
|
|
115
119
|
var modalContentRef = useRef(null);
|
|
116
120
|
var tabsRef = useRef();
|
|
117
|
-
var
|
|
118
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
119
|
-
activeTab = _useState20[0],
|
|
120
|
-
setActiveTab = _useState20[1];
|
|
121
|
-
var _useState21 = useState(false),
|
|
121
|
+
var _useState21 = useState('detail'),
|
|
122
122
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
activeTab = _useState22[0],
|
|
124
|
+
setActiveTab = _useState22[1];
|
|
125
|
+
var _useState23 = useState(false),
|
|
126
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
127
|
+
isScrolling = _useState24[0],
|
|
128
|
+
setIsScrolling = _useState24[1];
|
|
125
129
|
var isUserClickRef = useRef(false);
|
|
126
130
|
var scrollTimeoutRef = useRef(null);
|
|
127
131
|
var anchorOptions = useMemo(function () {
|
|
@@ -171,6 +175,11 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
171
175
|
label: locales.getText('page.wallet.discount'),
|
|
172
176
|
value: balance ? "".concat(Number(balance), "%") : ''
|
|
173
177
|
});
|
|
178
|
+
} else if (tag === 'point_card') {
|
|
179
|
+
data.splice(2, 0, {
|
|
180
|
+
label: locales.getText('page.wallet.points'),
|
|
181
|
+
value: balance ? "".concat(balance) : ''
|
|
182
|
+
});
|
|
174
183
|
} else {
|
|
175
184
|
data.splice(2, 0, {
|
|
176
185
|
label: locales.getText('page.wallet.balance'),
|
|
@@ -290,7 +299,9 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
290
299
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
291
300
|
while (1) switch (_context2.prev = _context2.next) {
|
|
292
301
|
case 0:
|
|
293
|
-
|
|
302
|
+
setIsLoading(true);
|
|
303
|
+
_context2.prev = 1;
|
|
304
|
+
_context2.next = 4;
|
|
294
305
|
return getAssetList({
|
|
295
306
|
num: '99',
|
|
296
307
|
skip: '1',
|
|
@@ -299,7 +310,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
299
310
|
tag: tag,
|
|
300
311
|
business_object: 'customer'
|
|
301
312
|
});
|
|
302
|
-
case
|
|
313
|
+
case 4:
|
|
303
314
|
_yield$getAssetList = _context2.sent;
|
|
304
315
|
_yield$getAssetList$l = _yield$getAssetList.list;
|
|
305
316
|
list = _yield$getAssetList$l === void 0 ? [] : _yield$getAssetList$l;
|
|
@@ -318,11 +329,21 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
318
329
|
}
|
|
319
330
|
}
|
|
320
331
|
setTimeLineData(formatTimeLineDta(filterList));
|
|
321
|
-
|
|
332
|
+
_context2.next = 15;
|
|
333
|
+
break;
|
|
334
|
+
case 12:
|
|
335
|
+
_context2.prev = 12;
|
|
336
|
+
_context2.t0 = _context2["catch"](1);
|
|
337
|
+
console.error('Failed to fetch asset list:', _context2.t0);
|
|
338
|
+
case 15:
|
|
339
|
+
_context2.prev = 15;
|
|
340
|
+
setIsLoading(false);
|
|
341
|
+
return _context2.finish(15);
|
|
342
|
+
case 18:
|
|
322
343
|
case "end":
|
|
323
344
|
return _context2.stop();
|
|
324
345
|
}
|
|
325
|
-
}, _callee2);
|
|
346
|
+
}, _callee2, null, [[1, 12, 15, 18]]);
|
|
326
347
|
}));
|
|
327
348
|
return function getTimeTreeList() {
|
|
328
349
|
return _ref3.apply(this, arguments);
|
|
@@ -599,10 +620,10 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
599
620
|
|
|
600
621
|
// 添加ref用于获取容器元素
|
|
601
622
|
var detailWrapperRef = useRef(null);
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
contentHeight =
|
|
605
|
-
setContentHeight =
|
|
623
|
+
var _useState25 = useState(undefined),
|
|
624
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
625
|
+
contentHeight = _useState26[0],
|
|
626
|
+
setContentHeight = _useState26[1];
|
|
606
627
|
|
|
607
628
|
// 添加锚点导航ref
|
|
608
629
|
var anchorWrapperRef = useRef(null);
|
|
@@ -681,8 +702,8 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
681
702
|
var assetActionEnum = {
|
|
682
703
|
recharge: tag === 'point_card' ? locales.getText('page.wallet.pointsEarned') : locales.getText('page.wallet.recharge'),
|
|
683
704
|
order_expend: tag === 'point_card' ? locales.getText('page.wallet.pointsRedeemed') : locales.getText('page.wallet.spending'),
|
|
684
|
-
order_refund: '
|
|
685
|
-
expire: '
|
|
705
|
+
order_refund: locales.getText('page.wallet.refund'),
|
|
706
|
+
expire: locales.getText('page.wallet.expire')
|
|
686
707
|
};
|
|
687
708
|
|
|
688
709
|
// 处理充值事件 - 与PC端充值按钮功能一致
|
|
@@ -755,7 +776,15 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
755
776
|
"data-section": "activityLog"
|
|
756
777
|
}, tag !== 'product_discount_card' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
757
778
|
className: "wallet-detail-card-content-section-subtitle"
|
|
758
|
-
}, locales.getText('page.wallet.activelog')),
|
|
779
|
+
}, locales.getText('page.wallet.activelog')), isLoading ? /*#__PURE__*/React.createElement("div", {
|
|
780
|
+
className: "wallet-detail-timeline-loading"
|
|
781
|
+
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
782
|
+
active: true,
|
|
783
|
+
paragraph: {
|
|
784
|
+
rows: 6
|
|
785
|
+
},
|
|
786
|
+
round: true
|
|
787
|
+
})) : TimeLineData.length > 0 ? /*#__PURE__*/React.createElement(Timeline, {
|
|
759
788
|
items: TimeLineData,
|
|
760
789
|
className: "wallet-detail-timeline-list"
|
|
761
790
|
}) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -13,6 +13,8 @@ declare const _default: {
|
|
|
13
13
|
'page.wallet.recharge': string;
|
|
14
14
|
'page.wallet.pointsEarned': string;
|
|
15
15
|
'page.wallet.pointsRedeemed': string;
|
|
16
|
+
'page.wallet.refund': string;
|
|
17
|
+
'page.wallet.expire': string;
|
|
16
18
|
'page.wallet.viewOrder': string;
|
|
17
19
|
'page.wallet.done': string;
|
|
18
20
|
'page.wallet.addIos': string;
|
|
@@ -34,6 +36,8 @@ declare const _default: {
|
|
|
34
36
|
'page.wallet.recharge': string;
|
|
35
37
|
'page.wallet.pointsEarned': string;
|
|
36
38
|
'page.wallet.pointsRedeemed': string;
|
|
39
|
+
'page.wallet.refund': string;
|
|
40
|
+
'page.wallet.expire': string;
|
|
37
41
|
'page.wallet.viewOrder': string;
|
|
38
42
|
'page.wallet.done': string;
|
|
39
43
|
'page.wallet.addIos': string;
|
|
@@ -55,6 +59,8 @@ declare const _default: {
|
|
|
55
59
|
'page.wallet.recharge': string;
|
|
56
60
|
'page.wallet.pointsEarned': string;
|
|
57
61
|
'page.wallet.pointsRedeemed': string;
|
|
62
|
+
'page.wallet.refund': string;
|
|
63
|
+
'page.wallet.expire': string;
|
|
58
64
|
'page.wallet.viewOrder': string;
|
|
59
65
|
'page.wallet.done': string;
|
|
60
66
|
'page.wallet.addIos': string;
|
|
@@ -16,6 +16,8 @@ export default {
|
|
|
16
16
|
'page.wallet.recharge': 'Recharge',
|
|
17
17
|
'page.wallet.pointsEarned': 'Points Earned',
|
|
18
18
|
'page.wallet.pointsRedeemed': 'Points Redeemed',
|
|
19
|
+
'page.wallet.refund': 'Refund',
|
|
20
|
+
'page.wallet.expire': 'Expire',
|
|
19
21
|
'page.wallet.viewOrder': 'View order',
|
|
20
22
|
'page.wallet.done': 'Done',
|
|
21
23
|
'page.wallet.addIos': 'Add to Apple Wallet',
|
|
@@ -40,6 +42,8 @@ export default {
|
|
|
40
42
|
'page.wallet.recharge': '充值',
|
|
41
43
|
'page.wallet.pointsEarned': '获得积分',
|
|
42
44
|
'page.wallet.pointsRedeemed': '使用积分',
|
|
45
|
+
'page.wallet.refund': '退款',
|
|
46
|
+
'page.wallet.expire': '过期',
|
|
43
47
|
'page.wallet.viewOrder': '浏览订单',
|
|
44
48
|
'page.wallet.done': '完成',
|
|
45
49
|
'page.wallet.addIos': '添加到苹果钱包',
|
|
@@ -64,6 +68,8 @@ export default {
|
|
|
64
68
|
'page.wallet.recharge': '充值',
|
|
65
69
|
'page.wallet.pointsEarned': '獲得積分',
|
|
66
70
|
'page.wallet.pointsRedeemed': '使用積分',
|
|
71
|
+
'page.wallet.refund': '退款',
|
|
72
|
+
'page.wallet.expire': '過期',
|
|
67
73
|
'page.wallet.viewOrder': '瀏覽訂單',
|
|
68
74
|
'page.wallet.done': '完成',
|
|
69
75
|
'page.wallet.addIos': '添加到蘋果錢包',
|
|
@@ -15,7 +15,9 @@ export var getAssetList = /*#__PURE__*/function () {
|
|
|
15
15
|
while (1) switch (_context.prev = _context.next) {
|
|
16
16
|
case 0:
|
|
17
17
|
_context.next = 2;
|
|
18
|
-
return request.getRequest().get("/h5/pay/asset/lowcode/list", params
|
|
18
|
+
return request.getRequest().get("/h5/pay/asset/lowcode/list", params, {
|
|
19
|
+
abort: true
|
|
20
|
+
});
|
|
19
21
|
case 2:
|
|
20
22
|
_yield$request$getReq = _context.sent;
|
|
21
23
|
data = _yield$request$getReq.data;
|
|
@@ -34,7 +34,7 @@ var FooterButtons = function FooterButtons(_ref) {
|
|
|
34
34
|
disabled: disabled,
|
|
35
35
|
size: "large",
|
|
36
36
|
className: "wallet-footer-buttons-item wallet-footer-buttons-item-primary"
|
|
37
|
-
}));
|
|
37
|
+
}, locales.getText('page.wallet.button.add')));
|
|
38
38
|
case 'detail':
|
|
39
39
|
// 创建按钮数组
|
|
40
40
|
var buttons = [];
|
|
@@ -654,6 +654,7 @@ var Wallet = Provider(function () {
|
|
|
654
654
|
});
|
|
655
655
|
};
|
|
656
656
|
return /*#__PURE__*/React.createElement(PisellWalletPassCard, {
|
|
657
|
+
balanceTitle: global_wallet.currentTag === 'point_card' ? locales.getText('page.wallet.points') : undefined,
|
|
657
658
|
showDetail: false,
|
|
658
659
|
showRedeem: false,
|
|
659
660
|
showQrCode: false,
|
|
@@ -664,7 +665,7 @@ var Wallet = Provider(function () {
|
|
|
664
665
|
propStyle: {
|
|
665
666
|
marginBottom: 10
|
|
666
667
|
},
|
|
667
|
-
showBalanceSymbol:
|
|
668
|
+
showBalanceSymbol: global_wallet.currentTag !== 'point_card',
|
|
668
669
|
showBalance: global_wallet.currentTag !== 'product_discount_card',
|
|
669
670
|
active: isActive,
|
|
670
671
|
name: product_name,
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
// English translations
|
|
4
4
|
'page.wallet.rechargeableCard': 'Rechargeable card',
|
|
5
5
|
'page.wallet.voucher': 'Voucher',
|
|
6
|
-
'page.wallet.pointCard': 'Points
|
|
6
|
+
'page.wallet.pointCard': 'Points',
|
|
7
7
|
'page.wallet.discountCard': 'Discount card',
|
|
8
8
|
'page.wallet.unavailable': 'Unavailable',
|
|
9
9
|
'page.wallet.available': 'Available',
|
|
@@ -153,10 +153,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
153
153
|
export declare const getDuration: (duration: number | {
|
|
154
154
|
type: string;
|
|
155
155
|
value: number;
|
|
156
|
-
}) => number |
|
|
156
|
+
}) => number | {
|
|
157
157
|
type: string;
|
|
158
158
|
value: number;
|
|
159
|
-
};
|
|
159
|
+
} | "flexible";
|
|
160
160
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
161
161
|
export declare const getIsEdit: (state: any) => boolean;
|
|
162
162
|
export {};
|