@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.
Files changed (109) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +9 -9
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +3 -3
  9. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  10. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  11. package/es/components/booking/forms/table/index.d.ts +0 -1
  12. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  13. package/es/components/booking/info/service/like/index.d.ts +0 -1
  14. package/es/components/booking/utils.d.ts +2 -2
  15. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  16. package/es/components/eftpos/form/index.d.ts +0 -1
  17. package/es/components/eftpos/group/index.d.ts +0 -1
  18. package/es/components/eftpos/hooks.d.ts +0 -1
  19. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  20. package/es/components/eftpos/icon/device.d.ts +0 -1
  21. package/es/components/eftpos/receipt/index.d.ts +0 -1
  22. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  23. package/es/components/eftposPay/amount.d.ts +1 -1
  24. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  25. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  26. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  27. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  28. package/es/components/eftposPay/device.d.ts +1 -1
  29. package/es/components/eftposPay/hooks.d.ts +2 -2
  30. package/es/components/eftposPay/store/index.d.ts +4 -4
  31. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  32. package/es/components/login/index.d.ts +0 -1
  33. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  34. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  35. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  36. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  37. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  38. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  39. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  40. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  41. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  42. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  43. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  44. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  45. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  46. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  47. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  48. package/es/components/schedules/products/index.d.ts +0 -1
  49. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  50. package/es/components/wallet/Detail/index.js +57 -28
  51. package/es/components/wallet/Detail/locales.d.ts +6 -0
  52. package/es/components/wallet/Detail/locales.js +6 -0
  53. package/es/components/wallet/Detail/serve.js +3 -1
  54. package/es/components/wallet/components/FooterButtons/index.js +1 -1
  55. package/es/components/wallet/index.js +2 -1
  56. package/es/components/wallet/locales.js +1 -1
  57. package/es/components/walletList/index.less +0 -1
  58. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  59. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  60. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  61. package/lib/components/booking/forms/table/index.d.ts +0 -1
  62. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  63. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  64. package/lib/components/booking/utils.d.ts +2 -2
  65. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  66. package/lib/components/eftpos/form/index.d.ts +0 -1
  67. package/lib/components/eftpos/group/index.d.ts +0 -1
  68. package/lib/components/eftpos/hooks.d.ts +0 -1
  69. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  70. package/lib/components/eftpos/icon/device.d.ts +0 -1
  71. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  72. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  73. package/lib/components/eftposPay/amount.d.ts +1 -1
  74. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  75. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  76. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  77. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  78. package/lib/components/eftposPay/device.d.ts +1 -1
  79. package/lib/components/eftposPay/hooks.d.ts +2 -2
  80. package/lib/components/eftposPay/store/index.d.ts +4 -4
  81. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  82. package/lib/components/login/index.d.ts +0 -1
  83. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  84. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  85. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  86. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  87. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  88. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  89. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  90. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  91. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  92. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  93. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  94. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  95. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  96. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  97. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  98. package/lib/components/schedules/products/index.d.ts +0 -1
  99. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  100. package/lib/components/wallet/Detail/index.js +34 -21
  101. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  102. package/lib/components/wallet/Detail/locales.js +6 -0
  103. package/lib/components/wallet/Detail/serve.js +1 -1
  104. package/lib/components/wallet/components/FooterButtons/index.js +2 -1
  105. package/lib/components/wallet/index.js +2 -1
  106. package/lib/components/wallet/locales.js +1 -1
  107. package/lib/components/walletList/index.less +0 -1
  108. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  109. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -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 | "flexible" | {
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 {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -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: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
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;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string | undefined;
@@ -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: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
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<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"payo" | "tyro" | "windcave" | "stripe">;
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: "loading" | "success" | "warn" | "fail" | "question";
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?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
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?: "step" | "unset" | undefined;
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?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -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
- apple_wallet_url = _useState14[0],
104
- setAppleWalletUrl = _useState14[1];
103
+ isLoading = _useState14[0],
104
+ setIsLoading = _useState14[1];
105
105
  var _useState15 = useState(''),
106
106
  _useState16 = _slicedToArray(_useState15, 2),
107
- google_wallet_url = _useState16[0],
108
- setGoogleWalletUrl = _useState16[1];
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 _useState17 = useState([]),
112
- _useState18 = _slicedToArray(_useState17, 2),
113
- listData = _useState18[0],
114
- setListData = _useState18[1];
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 _useState19 = useState('detail'),
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
- isScrolling = _useState22[0],
124
- setIsScrolling = _useState22[1];
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
- _context2.next = 2;
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 2:
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
- case 8:
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 _useState23 = useState(undefined),
603
- _useState24 = _slicedToArray(_useState23, 2),
604
- contentHeight = _useState24[0],
605
- setContentHeight = _useState24[1];
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')), TimeLineData.length > 0 ? /*#__PURE__*/React.createElement(Timeline, {
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: true,
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 card',
6
+ 'page.wallet.pointCard': 'Points',
7
7
  'page.wallet.discountCard': 'Discount card',
8
8
  'page.wallet.unavailable': 'Unavailable',
9
9
  'page.wallet.available': 'Available',
@@ -281,7 +281,6 @@
281
281
  border-radius: 50%;
282
282
  background-color: #F2F4F7;
283
283
  margin: 0 8px;
284
- cursor: pointer;
285
284
  transition: all 0.3s ease;
286
285
 
287
286
  &.active {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -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 | "flexible" | {
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 {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;