@pisell/private-materials 6.7.2 → 6.7.4

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 (117) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  12. package/es/components/booking/forms/table/index.d.ts +0 -1
  13. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  17. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  18. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  19. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  20. package/es/components/eftposPay/hooks.d.ts +1 -1
  21. package/es/components/eftposPay/store/index.d.ts +2 -2
  22. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  23. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  24. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  25. package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
  26. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  27. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  28. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  29. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  30. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  31. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  32. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  33. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  34. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  35. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  36. package/es/components/schedules/products/index.d.ts +0 -1
  37. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  38. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  39. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  40. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  41. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  42. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  43. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  44. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  45. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  46. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  47. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  48. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  49. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  50. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  51. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  52. package/es/plus/webPosLogin/WebPosLogin.js +11 -15
  53. package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  54. package/es/plus/webPosLogin/WebPosLoginCpt.less +0 -1
  55. package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
  56. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  57. package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
  58. package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  59. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  60. package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
  61. package/es/pro/Login2.0/Login2.js +9 -3
  62. package/es/pro/Login2.0/index.less +0 -12
  63. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  64. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  65. package/lib/components/booking/forms/table/index.d.ts +0 -1
  66. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  67. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  68. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  69. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  70. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
  71. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
  72. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
  73. package/lib/components/eftposPay/hooks.d.ts +1 -1
  74. package/lib/components/eftposPay/store/index.d.ts +2 -2
  75. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  76. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  77. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  78. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
  79. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  80. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  81. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  82. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  83. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  84. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  85. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  86. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  87. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  88. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  89. package/lib/components/schedules/products/index.d.ts +0 -1
  90. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  91. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  92. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  93. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  94. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  95. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  96. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  97. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  98. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
  99. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
  100. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
  101. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
  102. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  103. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  104. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  105. package/lib/plus/webPosLogin/WebPosLogin.js +22 -29
  106. package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  107. package/lib/plus/webPosLogin/WebPosLoginCpt.less +0 -1
  108. package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
  109. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  110. package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
  111. package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  112. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  113. package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
  114. package/lib/pro/Login2.0/Login2.js +19 -9
  115. package/lib/pro/Login2.0/index.less +0 -12
  116. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
  117. 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,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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface IScanResult {
4
3
  status: 'success' | 'failed';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellWalletPassCardProps } from '../../types';
3
2
  export declare const TestModule: () => JSX.Element;
4
3
  declare const ConflictModal: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface DiscountWalletProps {
4
3
  isCardMode: boolean;
@@ -15,7 +15,7 @@ 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" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "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>;
@@ -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" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "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
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CallToBookProps = {
4
3
  show: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ToBPayCache: (props: {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayMethod, PayMethodGroup } from '../../types';
3
2
  import './index.less';
4
3
  declare const ToBPayCardGroup: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PageLoading: () => JSX.Element;
4
3
  export default PageLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PaymentRequestForm: () => JSX.Element | null;
4
3
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -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
  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
  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 Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -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
  import './index.less';
3
2
  declare const SkuCardA1: (props: any) => JSX.Element;
4
3
  export default SkuCardA1;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA2: (props: any) => JSX.Element;
4
3
  export default SkuCardA2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA5: (props: any) => JSX.Element;
4
3
  export default SkuCardA5;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA9: (props: any) => JSX.Element;
4
3
  export default SkuCardA9;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardCustom: (props: any) => JSX.Element;
4
3
  export default SkuCardCustom;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const Action: ({ props, className, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const Favorite: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Promotions: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Tags: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const TooltipTags: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WarningLists: (props: any) => JSX.Element | null;
4
3
  export default WarningLists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SkuCard: {
3
2
  (props: any): JSX.Element | null;
4
3
  A1: (props: any) => JSX.Element;
@@ -24,13 +24,16 @@ var useSearchParams = function useSearchParams() {
24
24
  return new URLSearchParams(window.location.search);
25
25
  };
26
26
  var WebPosLogin = function WebPosLogin(props) {
27
- var _context$appHelper, _context$engine;
27
+ var _context$appHelper, _context$appHelper2, _mediaConfig$loginBgM, _context$engine;
28
28
  var context = useEngineContext();
29
29
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
30
30
  _context$appHelper$ut2 = _context$appHelper$ut.getApp,
31
31
  getApp = _context$appHelper$ut2 === void 0 ? function () {
32
32
  return {};
33
- } : _context$appHelper$ut2;
33
+ } : _context$appHelper$ut2,
34
+ reloadAfterLogin = _context$appHelper$ut.reloadAfterLogin;
35
+ var _context$appHelper$co = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants,
36
+ mediaConfig = _context$appHelper$co.mediaConfig;
34
37
  var backgroundImage = props.backgroundImage,
35
38
  _props$step = props.step,
36
39
  propsStep = _props$step === void 0 ? 'login' : _props$step,
@@ -296,7 +299,7 @@ var WebPosLogin = function WebPosLogin(props) {
296
299
  }();
297
300
  var getDeviceListFunction = /*#__PURE__*/function () {
298
301
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
299
- var app, type, res, _app$logger4, _app$history, _app$logger5;
302
+ var app, type, res, _app$logger4, _app$logger5;
300
303
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
301
304
  while (1) switch (_context3.prev = _context3.next) {
302
305
  case 0:
@@ -341,7 +344,8 @@ var WebPosLogin = function WebPosLogin(props) {
341
344
  } else {
342
345
  app.storage.setStorage('isLogin', true);
343
346
  // 如果云端没有设备信息,直接进入打印机列表
344
- app === null || app === void 0 || (_app$history = app.history) === null || _app$history === void 0 || _app$history.reloadTo('/');
347
+ reloadAfterLogin === null || reloadAfterLogin === void 0 || reloadAfterLogin();
348
+ // app?.history?.reloadTo('/');
345
349
  app === null || app === void 0 || (_app$logger5 = app.logger) === null || _app$logger5 === void 0 || _app$logger5.addLog({
346
350
  type: 'info',
347
351
  title: '选择店铺页-获取设备列表成功-没有云端设备',
@@ -487,10 +491,7 @@ var WebPosLogin = function WebPosLogin(props) {
487
491
  case 33:
488
492
  app.storage.setStorage('loginStatus', 'success');
489
493
  app.storage.setStorage('isLogin', true);
490
- setTimeout(function () {
491
- var _app$history2;
492
- app === null || app === void 0 || (_app$history2 = app.history) === null || _app$history2 === void 0 || _app$history2.reloadTo('/');
493
- }, 500);
494
+ reloadAfterLogin === null || reloadAfterLogin === void 0 || reloadAfterLogin();
494
495
 
495
496
  // 保存设备信息
496
497
  app === null || app === void 0 || app.storage.setStorage('boundCloudDevice', JSON.stringify(res || {}));
@@ -524,13 +525,8 @@ var WebPosLogin = function WebPosLogin(props) {
524
525
  };
525
526
  return /*#__PURE__*/React.createElement(WebPosLoginCpt, {
526
527
  loginConfig: config,
527
- backgroundImage: backgroundImage,
528
- brandConfig: {
529
- carouselItems: [{
530
- type: 'image',
531
- url: 'https://static.pisellcdn.com/defaultLogo.png'
532
- }]
533
- },
528
+ backgroundImage: backgroundImage || ((_mediaConfig$loginBgM = mediaConfig.loginBgMediaConfig) === null || _mediaConfig$loginBgM === void 0 || (_mediaConfig$loginBgM = _mediaConfig$loginBgM[0]) === null || _mediaConfig$loginBgM === void 0 ? void 0 : _mediaConfig$loginBgM.url),
529
+ brandConfig: mediaConfig.loginMediaConfig,
534
530
  step: step,
535
531
  showBackButton: isShowGoBack,
536
532
  storeList: storeList,
@@ -15,7 +15,7 @@ import UserFooter from "./components/UserFooter";
15
15
  import "./WebPosLoginCpt.less";
16
16
 
17
17
  /** 默认背景图片 */
18
- var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg.png';
18
+ var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg1.jpg';
19
19
 
20
20
  /**
21
21
  * WebPosLoginCpt 主组件
@@ -142,7 +142,6 @@
142
142
  }
143
143
 
144
144
  &__right-panel {
145
- min-width: 600px;
146
145
  padding: 24px 28px;
147
146
  }
148
147
 
@@ -1,6 +1,6 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { Image } from '@pisell/materials';
1
+ import React, { memo } from 'react';
3
2
  import "./index.less";
3
+ import MediaDisplay from "../MediaDisplay";
4
4
 
5
5
  /**
6
6
  * BrandPanel 品牌区组件
@@ -10,43 +10,13 @@ var BrandPanel = /*#__PURE__*/memo(function (props) {
10
10
  var config = props.config,
11
11
  _props$className = props.className,
12
12
  className = _props$className === void 0 ? '' : _props$className;
13
-
14
- /**
15
- * 获取展示的图片
16
- * 优先使用轮播的第一张图片,否则使用 logo,最后使用默认 Logo
17
- */
18
- var displayImage = useMemo(function () {
19
- var _config$carouselItems;
20
- // 如果有轮播配置,取第一个图片类型的内容
21
- if (config !== null && config !== void 0 && (_config$carouselItems = config.carouselItems) !== null && _config$carouselItems !== void 0 && _config$carouselItems.length) {
22
- var firstImage = config.carouselItems.find(function (item) {
23
- return item.type === 'image';
24
- });
25
- if (firstImage !== null && firstImage !== void 0 && firstImage.url) {
26
- return firstImage.url;
27
- }
28
- }
29
- // 否则使用配置的 logo 或默认 logo
30
- return config === null || config === void 0 ? void 0 : config.logo;
31
- }, [config === null || config === void 0 ? void 0 : config.carouselItems, config === null || config === void 0 ? void 0 : config.logo]);
32
-
33
- /** 品牌标语 */
34
- var slogan = config === null || config === void 0 ? void 0 : config.slogan;
35
- console.log('displayImage', displayImage);
36
13
  return /*#__PURE__*/React.createElement("div", {
37
14
  className: "webpos-login-brand-panel ".concat(className).trim()
38
- }, /*#__PURE__*/React.createElement("div", {
39
- className: "webpos-login-brand-panel__content"
40
- }, /*#__PURE__*/React.createElement("div", {
41
- className: "webpos-login-brand-panel__logo-wrapper"
42
- }, /*#__PURE__*/React.createElement(Image, {
43
- src: displayImage,
44
- preview: false,
45
- alt: "Brand Logo",
46
- className: "webpos-login-brand-panel__logo"
47
- })), slogan && /*#__PURE__*/React.createElement("p", {
48
- className: "webpos-login-brand-panel__slogan"
49
- }, slogan)));
15
+ }, /*#__PURE__*/React.createElement(MediaDisplay, {
16
+ config: {
17
+ carouselItems: config
18
+ }
19
+ }));
50
20
  });
51
21
  BrandPanel.displayName = 'BrandPanel';
52
22
  export default BrandPanel;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { MediaDisplayProps } from "./type";
3
+ import './index.less';
4
+ /**
5
+ * MediaDisplay 媒体组件
6
+ * @description 通用媒体展示组件,支持图片/视频展示
7
+ * - 支持单个媒体或轮播(预留)
8
+ * - 支持全屏模式
9
+ * - 支持视频播放控制和状态回调
10
+ */
11
+ declare const MediaDisplay: React.FC<MediaDisplayProps>;
12
+ export default MediaDisplay;