@pisell/private-materials 6.8.26 → 6.8.27

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.
@@ -1839,12 +1839,14 @@ var Footer = function Footer(props) {
1839
1839
  setEditOrderId(0);
1840
1840
  (_window9 = window) === null || _window9 === void 0 || (_window9 = _window9.shopApi) === null || _window9 === void 0 || (_window9 = _window9.bookingTicket) === null || _window9 === void 0 || _window9.clearAllCart();
1841
1841
  // 清空服务项目
1842
- dispatch({
1843
- type: 'setService',
1844
- payload: {
1845
- value: []
1846
- }
1847
- });
1842
+ setTimeout(function () {
1843
+ dispatch({
1844
+ type: 'setService',
1845
+ payload: {
1846
+ value: []
1847
+ }
1848
+ });
1849
+ }, 200);
1848
1850
  clearAllScanListenersTaskQueue();
1849
1851
  };
1850
1852
 
@@ -1858,6 +1860,7 @@ var Footer = function Footer(props) {
1858
1860
  }
1859
1861
  // 给当前购物车中的商品添加一个编辑标识
1860
1862
  // 标记当前商品为编辑模式
1863
+ debugger;
1861
1864
  dispatch({
1862
1865
  type: 'setService',
1863
1866
  payload: {
@@ -0,0 +1,5 @@
1
+ export declare const walkInData: {
2
+ id: number;
3
+ nickname: string;
4
+ };
5
+ export declare const Provider: any, Context: any;
@@ -27,6 +27,7 @@ var _miniRedux = miniRedux({
27
27
  });
28
28
  },
29
29
  setService: function setService(state, payload) {
30
+ debugger;
30
31
  var obj = {};
31
32
  // 拦截, 如果服务列表里 有两个相近时间的服务, 删除最后一个
32
33
  if (payload.value) {
@@ -1322,12 +1322,14 @@ var Footer = (props) => {
1322
1322
  (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1323
1323
  setEditOrderId(0);
1324
1324
  (_c2 = (_b2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _b2.bookingTicket) == null ? void 0 : _c2.clearAllCart();
1325
- dispatch({
1326
- type: "setService",
1327
- payload: {
1328
- value: []
1329
- }
1330
- });
1325
+ setTimeout(() => {
1326
+ dispatch({
1327
+ type: "setService",
1328
+ payload: {
1329
+ value: []
1330
+ }
1331
+ });
1332
+ }, 200);
1331
1333
  clearAllScanListenersTaskQueue();
1332
1334
  };
1333
1335
  const setEditCartMode = (order_id2, payData, closeModal = false) => {
@@ -1335,6 +1337,7 @@ var Footer = (props) => {
1335
1337
  if (closeModal) {
1336
1338
  setIsPaymentModalOpen(false);
1337
1339
  }
1340
+ debugger;
1338
1341
  dispatch({
1339
1342
  type: "setService",
1340
1343
  payload: {
@@ -0,0 +1,5 @@
1
+ export declare const walkInData: {
2
+ id: number;
3
+ nickname: string;
4
+ };
5
+ export declare const Provider: any, Context: any;
@@ -44,6 +44,7 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
44
44
  });
45
45
  },
46
46
  setService(state, payload) {
47
+ debugger;
47
48
  let obj = {};
48
49
  if (payload.value) {
49
50
  obj.value = (0, import_utils2.formatServiceListByTime)(payload.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.26",
3
+ "version": "6.8.27",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
- "@pisell/icon": "0.0.11",
80
- "@pisell/date-picker": "3.0.7",
81
79
  "@pisell/materials": "6.8.6",
82
- "@pisell/utils": "3.0.2"
80
+ "@pisell/utils": "3.0.2",
81
+ "@pisell/date-picker": "3.0.7",
82
+ "@pisell/icon": "0.0.11"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",
@@ -1 +0,0 @@
1
- export declare const Provider: any, Context: any;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ActionButtonsProps {
4
- /** booking 状态对象,包含 service、addons 等数据 */
5
- state: {
6
- service?: {
7
- value?: any[];
8
- };
9
- addons?: {
10
- value?: any[];
11
- };
12
- disabledEdit?: boolean;
13
- channelDisabledEdit?: boolean;
14
- shop_discount?: string;
15
- bookingDetail?: {
16
- [key: string]: any;
17
- };
18
- [key: string]: any;
19
- };
20
- /** dispatch 函数,用于触发状态更新 */
21
- dispatch: (action: {
22
- type: string;
23
- payload?: any;
24
- }) => void;
25
- /** 是否禁用所有按钮 */
26
- disabled?: boolean;
27
- /** 数据源,传递给 VoucherCard */
28
- source?: any;
29
- }
30
- declare const ActionButtons: React.FC<ActionButtonsProps>;
31
- export default ActionButtons;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const VoucherCard: (props: any) => JSX.Element | null;
4
- export default VoucherCard;
@@ -1 +0,0 @@
1
- export declare const Provider: any, Context: any;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ActionButtonsProps {
4
- /** booking 状态对象,包含 service、addons 等数据 */
5
- state: {
6
- service?: {
7
- value?: any[];
8
- };
9
- addons?: {
10
- value?: any[];
11
- };
12
- disabledEdit?: boolean;
13
- channelDisabledEdit?: boolean;
14
- shop_discount?: string;
15
- bookingDetail?: {
16
- [key: string]: any;
17
- };
18
- [key: string]: any;
19
- };
20
- /** dispatch 函数,用于触发状态更新 */
21
- dispatch: (action: {
22
- type: string;
23
- payload?: any;
24
- }) => void;
25
- /** 是否禁用所有按钮 */
26
- disabled?: boolean;
27
- /** 数据源,传递给 VoucherCard */
28
- source?: any;
29
- }
30
- declare const ActionButtons: React.FC<ActionButtonsProps>;
31
- export default ActionButtons;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const VoucherCard: (props: any) => JSX.Element | null;
4
- export default VoucherCard;