@pisell/private-materials 6.4.70 → 6.4.72

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 (111) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/components/footer/amount.js +25 -8
  13. package/es/components/booking/components/footer/utils.d.ts +7 -0
  14. package/es/components/booking/components/footer/utils.js +46 -22
  15. package/es/components/booking/forms/model.d.ts +1 -10
  16. package/es/components/booking/hooks/useQuotation.js +69 -21
  17. package/es/components/booking/info/model.d.ts +1 -10
  18. package/es/components/booking/info/service/Lists.js +1 -1
  19. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  20. package/es/components/booking/info/service/serve.d.ts +14 -0
  21. package/es/components/booking/info/service/serve.js +22 -1
  22. package/es/components/booking/info/service2/Group/utils.js +2 -0
  23. package/es/components/booking/info/service2/utils.d.ts +1 -33
  24. package/es/components/booking/info/service2/utils.js +75 -29
  25. package/es/components/booking/info/utils.js +5 -0
  26. package/es/components/booking/info2/service/addService/index.js +146 -89
  27. package/es/components/booking/info2/service/addService/utils.d.ts +9 -1
  28. package/es/components/booking/info2/service/addService/utils.js +78 -9
  29. package/es/components/booking/info2/service/editService/index.js +235 -55
  30. package/es/components/booking/info2/utilsByBooking.js +14 -5
  31. package/es/components/booking/model.d.ts +1 -9
  32. package/es/components/booking/notes/model.d.ts +1 -10
  33. package/es/components/booking/payments/model.d.ts +1 -10
  34. package/es/components/booking/utils.d.ts +9 -1
  35. package/es/components/booking/utils.js +23 -0
  36. package/es/components/eftposPay/hooks.d.ts +1 -1
  37. package/es/components/eftposPay/store/index.d.ts +2 -2
  38. package/es/components/pay/toC/model.d.ts +1 -9
  39. package/es/components/schedules/model.d.ts +1 -9
  40. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  41. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
  42. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  43. package/es/components/ticketBooking/components/addServiceVariant/addService.js +283 -138
  44. package/es/components/ticketBooking/components/ticketBooking/index.js +14 -11
  45. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +106 -32
  46. package/es/components/ticketBooking/utils/index.d.ts +6 -1
  47. package/es/components/ticketBooking/utils/index.js +21 -3
  48. package/es/components/wallet/Detail/model.d.ts +1 -13
  49. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  50. package/es/components/wallet/PointCard/model.d.ts +1 -13
  51. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  52. package/es/components/wallet/Voucher/model.d.ts +1 -13
  53. package/es/components/wallet/model.d.ts +1 -9
  54. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  55. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +355 -0
  56. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  57. package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
  58. package/es/pro/multiDayTimeSelect/index.js +1 -0
  59. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  60. package/es/pro/multiDayTimeSelect/types.js +1 -0
  61. package/lib/components/booking/addons/model.d.ts +1 -10
  62. package/lib/components/booking/components/footer/amount.js +23 -6
  63. package/lib/components/booking/components/footer/utils.d.ts +7 -0
  64. package/lib/components/booking/components/footer/utils.js +23 -11
  65. package/lib/components/booking/forms/model.d.ts +1 -10
  66. package/lib/components/booking/hooks/useQuotation.js +45 -13
  67. package/lib/components/booking/info/model.d.ts +1 -10
  68. package/lib/components/booking/info/service/Lists.js +1 -1
  69. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  70. package/lib/components/booking/info/service/serve.d.ts +14 -0
  71. package/lib/components/booking/info/service/serve.js +5 -0
  72. package/lib/components/booking/info/service2/Group/utils.js +2 -0
  73. package/lib/components/booking/info/service2/utils.d.ts +1 -33
  74. package/lib/components/booking/info/service2/utils.js +24 -10
  75. package/lib/components/booking/info/utils.js +4 -0
  76. package/lib/components/booking/info2/service/addService/index.js +22 -3
  77. package/lib/components/booking/info2/service/addService/utils.d.ts +9 -1
  78. package/lib/components/booking/info2/service/addService/utils.js +47 -9
  79. package/lib/components/booking/info2/service/editService/index.js +191 -31
  80. package/lib/components/booking/info2/utilsByBooking.js +19 -8
  81. package/lib/components/booking/model.d.ts +1 -9
  82. package/lib/components/booking/notes/model.d.ts +1 -10
  83. package/lib/components/booking/payments/model.d.ts +1 -10
  84. package/lib/components/booking/utils.d.ts +9 -1
  85. package/lib/components/booking/utils.js +15 -0
  86. package/lib/components/eftposPay/hooks.d.ts +1 -1
  87. package/lib/components/eftposPay/store/index.d.ts +2 -2
  88. package/lib/components/pay/toC/model.d.ts +1 -9
  89. package/lib/components/schedules/model.d.ts +1 -9
  90. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  91. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
  92. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  93. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -119
  94. package/lib/components/ticketBooking/components/ticketBooking/index.js +0 -16
  95. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +54 -9
  96. package/lib/components/ticketBooking/utils/index.d.ts +6 -1
  97. package/lib/components/ticketBooking/utils/index.js +11 -1
  98. package/lib/components/wallet/Detail/model.d.ts +1 -13
  99. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  100. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  101. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  102. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  103. package/lib/components/wallet/model.d.ts +1 -9
  104. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  105. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
  106. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  107. package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
  108. package/lib/pro/multiDayTimeSelect/index.js +35 -0
  109. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  110. package/lib/pro/multiDayTimeSelect/types.js +17 -0
  111. package/package.json +4 -4
@@ -13,7 +13,15 @@ import { useBookingTicket } from "./bookingTicket";
13
13
  import { useState, useRef } from 'react';
14
14
  import { useOsKey } from "../../context/OsKeyContext";
15
15
  import { getProductCache, setProductCache } from "../../utils/productCache";
16
+ import { useEngineContext } from "../../../../hooks";
17
+ // 等待函数
18
+ var sleep = function sleep(ms) {
19
+ return new Promise(function (resolve) {
20
+ return setTimeout(resolve, ms);
21
+ });
22
+ };
16
23
  export var useProducts = function useProducts(notAvailableRef) {
24
+ var _context$appHelper;
17
25
  var bookingTicket = useBookingTicket();
18
26
  var osKey = useOsKey();
19
27
  var _useState = useState([]),
@@ -26,17 +34,21 @@ export var useProducts = function useProducts(notAvailableRef) {
26
34
  setLoading = _useState4[1];
27
35
  var isFirstLoadRef = useRef(true);
28
36
  var isFirstLoadDataRef = useRef(true);
37
+ var context = useEngineContext();
38
+ var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
39
+ getApp = _ref.getApp;
40
+ var app = getApp();
29
41
  var getProducts = useMemoizedFn( /*#__PURE__*/function () {
30
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
31
- var cachedProducts, freshProducts, _notAvailableRef$curr;
42
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
43
+ var cachedProducts, maxRetries, lastError, freshProducts, attempt, _app$logger, _app$logger$addLog, _app$logger2, _app$logger3, _app$logger3$addLog, _lastError, _notAvailableRef$curr;
32
44
  return _regeneratorRuntime().wrap(function _callee$(_context) {
33
45
  while (1) switch (_context.prev = _context.next) {
34
46
  case 0:
35
47
  // 1. 如果是首次加载,尝试从缓存中获取数据
36
48
  if (isFirstLoadRef.current && osKey) {
37
49
  cachedProducts = getProductCache(osKey);
38
- if (cachedProducts) {
39
- // 先展示缓存数据
50
+ if (cachedProducts && cachedProducts.length > 0) {
51
+ // 先展示缓存数据(只有非空时才展示)
40
52
  setProducts(cachedProducts);
41
53
  setLoading(false);
42
54
  }
@@ -45,45 +57,107 @@ export var useProducts = function useProducts(notAvailableRef) {
45
57
  setLoading(true);
46
58
  }
47
59
 
48
- // 2. 无论是否有缓存,都调用接口获取最新数据
49
- _context.prev = 1;
50
- _context.next = 4;
60
+ // 2. 重试逻辑:最多尝试3次,每次等待1秒
61
+ maxRetries = 3;
62
+ lastError = null;
63
+ freshProducts = [];
64
+ attempt = 1;
65
+ case 5:
66
+ if (!(attempt <= maxRetries)) {
67
+ _context.next = 33;
68
+ break;
69
+ }
70
+ _context.prev = 6;
71
+ console.log("[ProductCache] \u5C1D\u8BD5\u52A0\u8F7D\u6570\u636E\uFF0C\u7B2C ".concat(attempt, "/").concat(maxRetries, " \u6B21"));
72
+ _context.next = 10;
51
73
  return bookingTicket.loadProducts(params);
52
- case 4:
74
+ case 10:
53
75
  freshProducts = _context.sent;
54
- isFirstLoadDataRef.current = false;
55
- // 3. 更新展示数据
56
- setProducts(freshProducts);
76
+ if (!(freshProducts && freshProducts.length > 0)) {
77
+ _context.next = 14;
78
+ break;
79
+ }
80
+ console.log("[ProductCache] \u7B2C ".concat(attempt, " \u6B21\u5C1D\u8BD5\u6210\u529F\uFF0C\u83B7\u53D6\u5230 ").concat(freshProducts.length, " \u6761\u6570\u636E"));
81
+ return _context.abrupt("break", 33);
82
+ case 14:
83
+ // 数据为空,记录并准备重试
84
+ console.log("[ProductCache] \u7B2C ".concat(attempt, " \u6B21\u5C1D\u8BD5\u8FD4\u56DE\u7A7A\u6570\u636E"));
85
+ if (!(attempt < maxRetries)) {
86
+ _context.next = 19;
87
+ break;
88
+ }
89
+ console.log("[ProductCache] \u7B49\u5F85 1 \u79D2\u540E\u91CD\u8BD5...");
90
+ _context.next = 19;
91
+ return sleep(1000);
92
+ case 19:
93
+ _context.next = 30;
94
+ break;
95
+ case 21:
96
+ _context.prev = 21;
97
+ _context.t0 = _context["catch"](6);
98
+ lastError = _context.t0;
99
+ console.log("[ProductCache] \u7B2C ".concat(attempt, " \u6B21\u5C1D\u8BD5\u5931\u8D25:"), _context.t0);
100
+ app === null || app === void 0 || (_app$logger = app.logger) === null || _app$logger === void 0 || (_app$logger$addLog = (_app$logger2 = _app$logger).addLog) === null || _app$logger$addLog === void 0 || _app$logger$addLog.call(_app$logger2, {
101
+ type: 'info',
102
+ title: "[getProduct] bookingTicket.loadProducts error (attempt ".concat(attempt, "/").concat(maxRetries, ")"),
103
+ metadata: {
104
+ error: _context.t0,
105
+ attempt: attempt
106
+ }
107
+ });
57
108
 
58
- // 4. 将新数据缓存到 storage
59
- if (osKey) {
60
- setProductCache(osKey, freshProducts);
61
- console.log('[ProductCache] 已更新缓存');
109
+ // 如果还有重试机会,等待后继续
110
+ if (!(attempt < maxRetries)) {
111
+ _context.next = 30;
112
+ break;
62
113
  }
63
- _context.next = 16;
114
+ console.log("[ProductCache] \u7B49\u5F85 1 \u79D2\u540E\u91CD\u8BD5...");
115
+ _context.next = 30;
116
+ return sleep(1000);
117
+ case 30:
118
+ attempt++;
119
+ _context.next = 5;
64
120
  break;
65
- case 10:
66
- _context.prev = 10;
67
- _context.t0 = _context["catch"](1);
68
- // 只有在第一次加载或之前有数据时才显示 notAvailable
69
- if ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code) === 607100 && (isFirstLoadDataRef.current || products.length > 0)) {
70
- (_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
121
+ case 33:
122
+ // 3. 处理最终结果
123
+ if (freshProducts && freshProducts.length > 0) {
124
+ // 成功获取到数据
125
+ isFirstLoadDataRef.current = false;
126
+ setProducts(freshProducts);
127
+
128
+ // 将新数据缓存到 storage
129
+ if (osKey) {
130
+ setProductCache(osKey, freshProducts);
131
+ console.log('[ProductCache] 已更新缓存');
132
+ }
133
+ setLoading(false);
134
+ } else {
135
+ // 3次尝试后仍然没有数据
136
+ console.log('[ProductCache] 3次尝试后仍未获取到数据');
137
+ app === null || app === void 0 || (_app$logger3 = app.logger) === null || _app$logger3 === void 0 || (_app$logger3$addLog = _app$logger3.addLog) === null || _app$logger3$addLog === void 0 || _app$logger3$addLog.call(_app$logger3, {
138
+ type: 'error',
139
+ title: '[getProduct] 3次尝试后仍未获取到数据',
140
+ metadata: {
141
+ error: lastError
142
+ }
143
+ });
144
+
145
+ // 只有在第一次加载或之前有数据时才显示 notAvailable
146
+ if (((_lastError = lastError) === null || _lastError === void 0 ? void 0 : _lastError.code) === 607100 && (isFirstLoadDataRef.current || products.length > 0)) {
147
+ (_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
148
+ }
149
+ setLoading(false);
150
+ setProducts([]);
151
+ isFirstLoadDataRef.current = false;
71
152
  }
72
- setLoading(false);
73
- setProducts([]);
74
- isFirstLoadDataRef.current = false;
75
- case 16:
76
- _context.prev = 16;
77
- setLoading(false);
78
- return _context.finish(16);
79
- case 19:
153
+ case 34:
80
154
  case "end":
81
155
  return _context.stop();
82
156
  }
83
- }, _callee, null, [[1, 10, 16, 19]]);
157
+ }, _callee, null, [[6, 21]]);
84
158
  }));
85
159
  return function (_x) {
86
- return _ref.apply(this, arguments);
160
+ return _ref2.apply(this, arguments);
87
161
  };
88
162
  }());
89
163
  return {
@@ -15,9 +15,14 @@ export declare const restoreProductOtherData: (data: any) => {
15
15
  quantity: number;
16
16
  } | undefined;
17
17
  export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any) => {
18
+ export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
+ list: any[];
20
+ count: number;
21
+ quantity?: undefined;
22
+ } | {
19
23
  list: any[];
20
24
  quantity: any;
25
+ count?: undefined;
21
26
  };
22
27
  export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
23
28
  export declare const getCartProductOverlay: (state: any) => any;
@@ -2,10 +2,14 @@ var _excluded = ["detail"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
5
- 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); }
6
- 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; }
7
5
  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; } }
8
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ 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); }
10
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
+ 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; }
9
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -16,6 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
20
  import dayjs from 'dayjs';
17
21
  import { isNormalProductByDurationSchedule } from "../../booking/info/service2/utils";
18
22
  import { isArr, getUniqueId } from '@pisell/utils';
23
+ import { isMultiDayProduct } from "../../booking/info2/service/addService/utils";
19
24
 
20
25
  /** dayjs对象格式化为字符串时间 */
21
26
  export var formatDateToStr = function formatDateToStr(date) {
@@ -133,9 +138,18 @@ export var isSameProduct = function isSameProduct(a, b) {
133
138
  }
134
139
  return ((_a$_extend2 = a._extend) === null || _a$_extend2 === void 0 || (_a$_extend2 = _a$_extend2.other) === null || _a$_extend2 === void 0 ? void 0 : _a$_extend2.rowKey) === ((_b$_extend2 = b._extend) === null || _b$_extend2 === void 0 || (_b$_extend2 = _b$_extend2.other) === null || _b$_extend2 === void 0 ? void 0 : _b$_extend2.rowKey) && a._serviceKey === b._serviceKey;
135
140
  };
136
- export var addService = function addService(list, addItem, state) {
141
+ export var addService = function addService(list, addItem, state, isMultiDay) {
137
142
  var value = list;
138
143
  var count;
144
+
145
+ // 跨日预约 不需要叠加
146
+ if (isMultiDay && isArr(addItem)) {
147
+ return {
148
+ list: [].concat(_toConsumableArray(addItem), _toConsumableArray(value)),
149
+ count: 1
150
+ };
151
+ }
152
+
139
153
  // 预约商品 并且配置商品卡片不叠加 直接添加
140
154
  if (!isNormalProductByDurationSchedule(addItem) && !getIsOverlayProduct(addItem, state)) {
141
155
  value.unshift(addItem);
@@ -232,6 +246,10 @@ export var getIsOverlayProduct = function getIsOverlayProduct(item, state) {
232
246
  // 获取购物车商品是否显示数量
233
247
  export var getIsShowNumber = function getIsShowNumber(item, state) {
234
248
  var isBookingTicket2 = state.isBookingTicket2;
249
+ // 跨日商品不允许选多个
250
+ if (isMultiDayProduct(item)) {
251
+ return false;
252
+ }
235
253
  return isNormalProductByDurationSchedule(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
236
254
  };
237
255
 
@@ -1,13 +1 @@
1
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- /// <reference types="react" />
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
- /// <reference types="react" />
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: (ComponentUi: any) => any, Context: import("react").Context<{
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;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { MultiDayTimeSelectProps, MultiDayTimeSelectValue } from './types';
3
+ import './MultiDayTimeSelect.less';
4
+ export interface MultiDayTimeSelectRef {
5
+ validate: () => Promise<void>;
6
+ getValue: () => MultiDayTimeSelectValue | null;
7
+ }
8
+ declare const MultiDayTimeSelect: React.ForwardRefExoticComponent<MultiDayTimeSelectProps & React.RefAttributes<MultiDayTimeSelectRef>>;
9
+ export default MultiDayTimeSelect;