@pisell/private-materials 3.4.83 → 3.4.84
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 +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/info/header/index.js +7 -7
- package/es/components/booking/info/header/index.less +5 -5
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +4 -3
- package/es/plus/walletPassGallery/index.js +5 -4
- package/es/pro/Login2.0/Login2.js +8 -8
- package/es/pro/Login2.0/locales.d.ts +5 -0
- package/es/pro/Login2.0/locales.js +5 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/info/header/index.js +7 -7
- package/lib/components/booking/info/header/index.less +5 -5
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +3 -2
- package/lib/plus/walletPassGallery/index.js +4 -3
- package/lib/pro/Login2.0/Login2.js +8 -8
- package/lib/pro/Login2.0/locales.d.ts +5 -0
- package/lib/pro/Login2.0/locales.js +5 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +4 -4
|
@@ -52,19 +52,19 @@ var header = function header(_ref) {
|
|
|
52
52
|
var statusList = [{
|
|
53
53
|
label: locales.getText('pisell2.text.status.new'),
|
|
54
54
|
key: 'new',
|
|
55
|
-
color: '#
|
|
55
|
+
color: '#91caff'
|
|
56
56
|
}, {
|
|
57
57
|
label: locales.getText('pisell2.text.status.confirmed'),
|
|
58
58
|
key: 'confirmed',
|
|
59
|
-
color: '#
|
|
59
|
+
color: '#b7eb8f'
|
|
60
60
|
}, {
|
|
61
61
|
label: locales.getText('pisell2.text.status.arrived'),
|
|
62
62
|
key: 'arrived',
|
|
63
|
-
color: '#
|
|
63
|
+
color: '#d3adf7'
|
|
64
64
|
}, {
|
|
65
65
|
label: locales.getText('pisell2.text.status.started'),
|
|
66
66
|
key: 'started',
|
|
67
|
-
color: '#
|
|
67
|
+
color: '#fffb8f'
|
|
68
68
|
}, {
|
|
69
69
|
label: /*#__PURE__*/React.createElement("span", {
|
|
70
70
|
style: {
|
|
@@ -72,7 +72,7 @@ var header = function header(_ref) {
|
|
|
72
72
|
}
|
|
73
73
|
}, locales.getText('pisell2.text.status.cancelled')),
|
|
74
74
|
key: 'cancelled',
|
|
75
|
-
color: '#
|
|
75
|
+
color: '#bfbfbf'
|
|
76
76
|
}, {
|
|
77
77
|
label: /*#__PURE__*/React.createElement("span", {
|
|
78
78
|
style: {
|
|
@@ -80,11 +80,11 @@ var header = function header(_ref) {
|
|
|
80
80
|
}
|
|
81
81
|
}, locales.getText('pisell2.text.status.no_show')),
|
|
82
82
|
key: 'no_show',
|
|
83
|
-
color: '#
|
|
83
|
+
color: '#ffa39e'
|
|
84
84
|
}, {
|
|
85
85
|
label: locales.getText('pisell2.text.status.completed'),
|
|
86
86
|
key: 'completed',
|
|
87
|
-
color: '#
|
|
87
|
+
color: '#ffd591'
|
|
88
88
|
}];
|
|
89
89
|
|
|
90
90
|
// 销售渠道
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
.booking-order-sales-channel {
|
|
23
23
|
width: 100%;
|
|
24
|
-
color: var(--
|
|
24
|
+
color: var(--Gray-900, #101828);
|
|
25
25
|
font-size: 14px;
|
|
26
26
|
font-style: normal;
|
|
27
27
|
font-weight: 400;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.booking-header-left {
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--Gray-900, #101828);
|
|
41
41
|
font-size: 18px;
|
|
42
42
|
font-style: normal;
|
|
43
43
|
font-weight: 400;
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
gap: 10px;
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--Gray-900, #101828) !important;
|
|
52
52
|
font-size: 18px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 400;
|
|
55
55
|
cursor: pointer;
|
|
56
|
-
border: 1px solid #
|
|
56
|
+
border: 1px solid var(--Gray-900, #101828);
|
|
57
57
|
padding: 4px 12px;
|
|
58
58
|
border-radius: 24px;
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
|
-
color: var(--
|
|
61
|
+
color: var(--Gray-900, #101828) !important;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.booking-header-right-status-icon {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
4
|
action: RouteType;
|
|
5
5
|
device_number: string | number;
|
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages", "holder", "metadata"];
|
|
1
|
+
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_available_status", "unified_messages", "holder", "metadata"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -68,6 +68,7 @@ var PassList = function PassList(props) {
|
|
|
68
68
|
product_cover = _item$product_cover === void 0 ? '' : _item$product_cover,
|
|
69
69
|
_item$par_value = item.par_value,
|
|
70
70
|
par_value = _item$par_value === void 0 ? '' : _item$par_value,
|
|
71
|
+
unified_available_status = item.unified_available_status,
|
|
71
72
|
_item$unified_message = item.unified_messages,
|
|
72
73
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
73
74
|
holder = item.holder,
|
|
@@ -101,8 +102,8 @@ var PassList = function PassList(props) {
|
|
|
101
102
|
showQrCode: true,
|
|
102
103
|
showBalance: !isDiscountCard,
|
|
103
104
|
cover: product_cover,
|
|
104
|
-
disabled:
|
|
105
|
-
showDisabledReason:
|
|
105
|
+
disabled: unified_available_status === 0,
|
|
106
|
+
showDisabledReason: unified_available_status === 0,
|
|
106
107
|
disabledReason: disabledReason,
|
|
107
108
|
style: {
|
|
108
109
|
marginBottom: 16,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_messages", "par_value", "tag"];
|
|
2
|
+
var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_available_status", "unified_messages", "par_value", "tag"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -692,6 +692,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
692
692
|
limit_status = item.limit_status,
|
|
693
693
|
_item$product_cover = item.product_cover,
|
|
694
694
|
product_cover = _item$product_cover === void 0 ? '' : _item$product_cover,
|
|
695
|
+
unified_available_status = item.unified_available_status,
|
|
695
696
|
_item$unified_message = item.unified_messages,
|
|
696
697
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
697
698
|
_item$par_value = item.par_value,
|
|
@@ -704,7 +705,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
704
705
|
var _shop$name = shop.name,
|
|
705
706
|
name = _shop$name === void 0 ? '' : _shop$name;
|
|
706
707
|
var isActive = id === (currentUnbindItem === null || currentUnbindItem === void 0 ? void 0 : currentUnbindItem.id) && platform === 'pc';
|
|
707
|
-
var
|
|
708
|
+
var isDisabled = unified_available_status === 0;
|
|
708
709
|
var isDiscountCard = tag === 'product_discount_card';
|
|
709
710
|
var getBalanceTitle = function getBalanceTitle() {
|
|
710
711
|
if (tag === 'point_card') {
|
|
@@ -723,8 +724,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
723
724
|
showRedeem: false,
|
|
724
725
|
showQrCode: false,
|
|
725
726
|
cover: product_cover,
|
|
726
|
-
disabled:
|
|
727
|
-
showDisabledReason:
|
|
727
|
+
disabled: isDisabled,
|
|
728
|
+
showDisabledReason: isDisabled,
|
|
728
729
|
disabledReason: title,
|
|
729
730
|
propStyle: {
|
|
730
731
|
marginBottom: 10
|
|
@@ -1039,7 +1039,7 @@ var Login2 = function Login2(_ref) {
|
|
|
1039
1039
|
_context9.next = 10;
|
|
1040
1040
|
break;
|
|
1041
1041
|
}
|
|
1042
|
-
throw new Error((res === null || res === void 0 ? void 0 : res.message) || '
|
|
1042
|
+
throw new Error((res === null || res === void 0 ? void 0 : res.message) || locales.getText('pisell-forgot-password-failed'));
|
|
1043
1043
|
case 10:
|
|
1044
1044
|
// 重置成功后关闭忘记密码流程
|
|
1045
1045
|
handleCloseForgotPassword();
|
|
@@ -1085,7 +1085,7 @@ var Login2 = function Login2(_ref) {
|
|
|
1085
1085
|
case 16:
|
|
1086
1086
|
_context9.prev = 16;
|
|
1087
1087
|
_context9.t0 = _context9["catch"](0);
|
|
1088
|
-
message.error((_context9.t0 === null || _context9.t0 === void 0 ? void 0 : _context9.t0.message) || '
|
|
1088
|
+
message.error((_context9.t0 === null || _context9.t0 === void 0 ? void 0 : _context9.t0.message) || locales.getText('pisell-forgot-password-failed'));
|
|
1089
1089
|
// throw error;
|
|
1090
1090
|
case 19:
|
|
1091
1091
|
_context9.prev = 19;
|
|
@@ -1126,18 +1126,18 @@ var Login2 = function Login2(_ref) {
|
|
|
1126
1126
|
_context10.next = 8;
|
|
1127
1127
|
break;
|
|
1128
1128
|
}
|
|
1129
|
-
throw new Error((res === null || res === void 0 ? void 0 : res.message) || '
|
|
1129
|
+
throw new Error((res === null || res === void 0 ? void 0 : res.message) || locales.getText('pisell-forgot-password-failed'));
|
|
1130
1130
|
case 8:
|
|
1131
1131
|
// 重置成功后关闭忘记密码流程并重置邮件链接验证状态
|
|
1132
1132
|
handleCloseForgotPassword();
|
|
1133
1133
|
setEmailLinkVerifyStatus(null);
|
|
1134
|
-
message.success('
|
|
1134
|
+
message.success(locales.getText('pisell-forgot-password-success'));
|
|
1135
1135
|
_context10.next = 17;
|
|
1136
1136
|
break;
|
|
1137
1137
|
case 13:
|
|
1138
1138
|
_context10.prev = 13;
|
|
1139
1139
|
_context10.t0 = _context10["catch"](0);
|
|
1140
|
-
message.error((_context10.t0 === null || _context10.t0 === void 0 ? void 0 : _context10.t0.message) || '
|
|
1140
|
+
message.error((_context10.t0 === null || _context10.t0 === void 0 ? void 0 : _context10.t0.message) || locales.getText('pisell-forgot-password-failed'));
|
|
1141
1141
|
throw _context10.t0;
|
|
1142
1142
|
case 17:
|
|
1143
1143
|
_context10.prev = 17;
|
|
@@ -2085,7 +2085,7 @@ var Login2 = function Login2(_ref) {
|
|
|
2085
2085
|
case 4:
|
|
2086
2086
|
result = _context14.sent;
|
|
2087
2087
|
if (result.status) {
|
|
2088
|
-
message.success('
|
|
2088
|
+
message.success(locales.getText('pisell-forgot-password-success'));
|
|
2089
2089
|
// 重置状态
|
|
2090
2090
|
setEmailLinkVerifyStatus(null);
|
|
2091
2091
|
setEmailLinkError('');
|
|
@@ -2111,7 +2111,7 @@ var Login2 = function Login2(_ref) {
|
|
|
2111
2111
|
setLoginStep('account');
|
|
2112
2112
|
}
|
|
2113
2113
|
} else {
|
|
2114
|
-
message.error(result.message || '
|
|
2114
|
+
message.error(result.message || locales.getText('pisell-forgot-password-failed'));
|
|
2115
2115
|
}
|
|
2116
2116
|
_context14.next = 9;
|
|
2117
2117
|
break;
|
|
@@ -2123,7 +2123,7 @@ var Login2 = function Login2(_ref) {
|
|
|
2123
2123
|
case 11:
|
|
2124
2124
|
_context14.prev = 11;
|
|
2125
2125
|
_context14.t0 = _context14["catch"](0);
|
|
2126
|
-
message.error((_context14.t0 === null || _context14.t0 === void 0 ? void 0 : _context14.t0.message) || '
|
|
2126
|
+
message.error((_context14.t0 === null || _context14.t0 === void 0 ? void 0 : _context14.t0.message) || locales.getText('pisell-forgot-password-failed'));
|
|
2127
2127
|
case 14:
|
|
2128
2128
|
case "end":
|
|
2129
2129
|
return _context14.stop();
|
|
@@ -75,6 +75,7 @@ declare const _default: {
|
|
|
75
75
|
'pisell-forgot-password-send-link': string;
|
|
76
76
|
'pisell-forgot-password-link-sent': string;
|
|
77
77
|
'pisell-forgot-password-success': string;
|
|
78
|
+
'pisell-forgot-password-failed': string;
|
|
78
79
|
'pisell-forgot-password-verify': string;
|
|
79
80
|
'pisell-common-resend': string;
|
|
80
81
|
'pisell-common-verify': string;
|
|
@@ -255,6 +256,7 @@ declare const _default: {
|
|
|
255
256
|
'pisell-forgot-password-send-link': string;
|
|
256
257
|
'pisell-forgot-password-link-sent': string;
|
|
257
258
|
'pisell-forgot-password-success': string;
|
|
259
|
+
'pisell-forgot-password-failed': string;
|
|
258
260
|
'pisell-forgot-password-verify': string;
|
|
259
261
|
'pisell-common-resend': string;
|
|
260
262
|
'pisell-common-verify': string;
|
|
@@ -447,6 +449,7 @@ declare const _default: {
|
|
|
447
449
|
'pisell-forgot-password-send-link': string;
|
|
448
450
|
'pisell-forgot-password-link-sent': string;
|
|
449
451
|
'pisell-forgot-password-success': string;
|
|
452
|
+
'pisell-forgot-password-failed': string;
|
|
450
453
|
'pisell-forgot-password-verify': string;
|
|
451
454
|
'pisell-common-resend': string;
|
|
452
455
|
'pisell-common-verify': string;
|
|
@@ -615,6 +618,7 @@ declare const _default: {
|
|
|
615
618
|
'pisell-forgot-password-send-link': string;
|
|
616
619
|
'pisell-forgot-password-link-sent': string;
|
|
617
620
|
'pisell-forgot-password-success': string;
|
|
621
|
+
'pisell-forgot-password-failed': string;
|
|
618
622
|
'pisell-forgot-password-verify': string;
|
|
619
623
|
'pisell-common-resend': string;
|
|
620
624
|
'pisell-common-verify': string;
|
|
@@ -795,6 +799,7 @@ declare const _default: {
|
|
|
795
799
|
'pisell-forgot-password-send-link': string;
|
|
796
800
|
'pisell-forgot-password-link-sent': string;
|
|
797
801
|
'pisell-forgot-password-success': string;
|
|
802
|
+
'pisell-forgot-password-failed': string;
|
|
798
803
|
'pisell-forgot-password-verify': string;
|
|
799
804
|
'pisell-common-resend': string;
|
|
800
805
|
'pisell-common-verify': string;
|
|
@@ -85,6 +85,7 @@ export default {
|
|
|
85
85
|
'pisell-forgot-password-send-link': 'Send reset password link',
|
|
86
86
|
'pisell-forgot-password-link-sent': 'Reset password link sent',
|
|
87
87
|
'pisell-forgot-password-success': 'Password reset successfully',
|
|
88
|
+
'pisell-forgot-password-failed': 'Password reset failed',
|
|
88
89
|
'pisell-forgot-password-verify': 'Verify',
|
|
89
90
|
// Common buttons and actions
|
|
90
91
|
'pisell-common-resend': 'Resend',
|
|
@@ -291,6 +292,7 @@ export default {
|
|
|
291
292
|
'pisell-forgot-password-send-link': '发送重置密码链接',
|
|
292
293
|
'pisell-forgot-password-link-sent': '重置密码链接已发送',
|
|
293
294
|
'pisell-forgot-password-success': '密码重置成功',
|
|
295
|
+
'pisell-forgot-password-failed': '密码重置失败',
|
|
294
296
|
'pisell-forgot-password-verify': '验证',
|
|
295
297
|
// Common buttons and actions
|
|
296
298
|
'pisell-common-resend': '重新发送',
|
|
@@ -513,6 +515,7 @@ export default {
|
|
|
513
515
|
'pisell-forgot-password-send-link': '發送重置密碼連結',
|
|
514
516
|
'pisell-forgot-password-link-sent': '重置密碼連結已發送',
|
|
515
517
|
'pisell-forgot-password-success': '密碼重設成功',
|
|
518
|
+
'pisell-forgot-password-failed': '密碼重設失敗',
|
|
516
519
|
'pisell-forgot-password-verify': '驗證',
|
|
517
520
|
// Common buttons and actions
|
|
518
521
|
'pisell-common-resend': '重新發送',
|
|
@@ -695,6 +698,7 @@ export default {
|
|
|
695
698
|
'pisell-forgot-password-send-link': 'パスワードリセットリンクを送信',
|
|
696
699
|
'pisell-forgot-password-link-sent': 'パスワードリセットリンクが送信されました',
|
|
697
700
|
'pisell-forgot-password-success': 'パスワードリセット成功',
|
|
701
|
+
'pisell-forgot-password-failed': 'パスワードリセット失敗',
|
|
698
702
|
'pisell-forgot-password-verify': '確認',
|
|
699
703
|
'pisell-common-resend': '再送信',
|
|
700
704
|
'pisell-common-verify': '確認',
|
|
@@ -875,6 +879,7 @@ export default {
|
|
|
875
879
|
'pisell-forgot-password-send-link': 'Enviar link de redefinição de senha',
|
|
876
880
|
'pisell-forgot-password-link-sent': 'Link de redefinição de senha enviado',
|
|
877
881
|
'pisell-forgot-password-success': 'Redefinição de senha bem-sucedida',
|
|
882
|
+
'pisell-forgot-password-failed': 'Falha na redefinição de senha',
|
|
878
883
|
'pisell-forgot-password-verify': 'Verificar',
|
|
879
884
|
'pisell-common-resend': 'Reenviar',
|
|
880
885
|
'pisell-common-verify': 'Verificar',
|
|
@@ -59,37 +59,37 @@ var header = ({ state, dispatch }) => {
|
|
|
59
59
|
{
|
|
60
60
|
label: import_utils.locales.getText("pisell2.text.status.new"),
|
|
61
61
|
key: "new",
|
|
62
|
-
color: "#
|
|
62
|
+
color: "#91caff"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
label: import_utils.locales.getText("pisell2.text.status.confirmed"),
|
|
66
66
|
key: "confirmed",
|
|
67
|
-
color: "#
|
|
67
|
+
color: "#b7eb8f"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
label: import_utils.locales.getText("pisell2.text.status.arrived"),
|
|
71
71
|
key: "arrived",
|
|
72
|
-
color: "#
|
|
72
|
+
color: "#d3adf7"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
label: import_utils.locales.getText("pisell2.text.status.started"),
|
|
76
76
|
key: "started",
|
|
77
|
-
color: "#
|
|
77
|
+
color: "#fffb8f"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
label: /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#D92D20" } }, import_utils.locales.getText("pisell2.text.status.cancelled")),
|
|
81
81
|
key: "cancelled",
|
|
82
|
-
color: "#
|
|
82
|
+
color: "#bfbfbf"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
label: /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#D92D20" } }, import_utils.locales.getText("pisell2.text.status.no_show")),
|
|
86
86
|
key: "no_show",
|
|
87
|
-
color: "#
|
|
87
|
+
color: "#ffa39e"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
label: import_utils.locales.getText("pisell2.text.status.completed"),
|
|
91
91
|
key: "completed",
|
|
92
|
-
color: "#
|
|
92
|
+
color: "#ffd591"
|
|
93
93
|
}
|
|
94
94
|
];
|
|
95
95
|
const orderSalesChannel = {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
.booking-order-sales-channel {
|
|
23
23
|
width: 100%;
|
|
24
|
-
color: var(--
|
|
24
|
+
color: var(--Gray-900, #101828);
|
|
25
25
|
font-size: 14px;
|
|
26
26
|
font-style: normal;
|
|
27
27
|
font-weight: 400;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.booking-header-left {
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--Gray-900, #101828);
|
|
41
41
|
font-size: 18px;
|
|
42
42
|
font-style: normal;
|
|
43
43
|
font-weight: 400;
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
gap: 10px;
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--Gray-900, #101828) !important;
|
|
52
52
|
font-size: 18px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 400;
|
|
55
55
|
cursor: pointer;
|
|
56
|
-
border: 1px solid #
|
|
56
|
+
border: 1px solid var(--Gray-900, #101828);
|
|
57
57
|
padding: 4px 12px;
|
|
58
58
|
border-radius: 24px;
|
|
59
59
|
|
|
60
60
|
span {
|
|
61
|
-
color: var(--
|
|
61
|
+
color: var(--Gray-900, #101828) !important;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.booking-header-right-status-icon {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
4
|
action: RouteType;
|
|
5
5
|
device_number: string | number;
|
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
|
@@ -95,6 +95,7 @@ var PassList = (props) => {
|
|
|
95
95
|
limit_status,
|
|
96
96
|
product_cover = "",
|
|
97
97
|
par_value = "",
|
|
98
|
+
unified_available_status,
|
|
98
99
|
unified_messages = {},
|
|
99
100
|
holder,
|
|
100
101
|
metadata,
|
|
@@ -121,8 +122,8 @@ var PassList = (props) => {
|
|
|
121
122
|
showQrCode: true,
|
|
122
123
|
showBalance: !isDiscountCard,
|
|
123
124
|
cover: product_cover,
|
|
124
|
-
disabled:
|
|
125
|
-
showDisabledReason:
|
|
125
|
+
disabled: unified_available_status === 0,
|
|
126
|
+
showDisabledReason: unified_available_status === 0,
|
|
126
127
|
disabledReason,
|
|
127
128
|
style: { marginBottom: 16, width: "100%" },
|
|
128
129
|
showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
|
|
@@ -542,6 +542,7 @@ var WalletPassGallery = (props) => {
|
|
|
542
542
|
shop,
|
|
543
543
|
limit_status,
|
|
544
544
|
product_cover = "",
|
|
545
|
+
unified_available_status,
|
|
545
546
|
unified_messages = {},
|
|
546
547
|
par_value = "",
|
|
547
548
|
tag = "",
|
|
@@ -550,7 +551,7 @@ var WalletPassGallery = (props) => {
|
|
|
550
551
|
const { title = "" } = unified_messages;
|
|
551
552
|
const { name = "" } = shop;
|
|
552
553
|
const isActive = id === (currentUnbindItem == null ? void 0 : currentUnbindItem.id) && platform === "pc";
|
|
553
|
-
const
|
|
554
|
+
const isDisabled = unified_available_status === 0;
|
|
554
555
|
const isDiscountCard = tag === "product_discount_card";
|
|
555
556
|
const getBalanceTitle = () => {
|
|
556
557
|
if (tag === "point_card") {
|
|
@@ -572,8 +573,8 @@ var WalletPassGallery = (props) => {
|
|
|
572
573
|
showRedeem: false,
|
|
573
574
|
showQrCode: false,
|
|
574
575
|
cover: product_cover,
|
|
575
|
-
disabled:
|
|
576
|
-
showDisabledReason:
|
|
576
|
+
disabled: isDisabled,
|
|
577
|
+
showDisabledReason: isDisabled,
|
|
577
578
|
disabledReason: title,
|
|
578
579
|
propStyle: { marginBottom: 10 },
|
|
579
580
|
showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
|
|
@@ -603,7 +603,7 @@ var Login2 = ({
|
|
|
603
603
|
}
|
|
604
604
|
const res = await registerAndLogin.resetPassword(resetPasswordParams);
|
|
605
605
|
if ((res == null ? void 0 : res.code) !== 200) {
|
|
606
|
-
throw new Error((res == null ? void 0 : res.message) || "
|
|
606
|
+
throw new Error((res == null ? void 0 : res.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
handleCloseForgotPassword();
|
|
@@ -627,7 +627,7 @@ var Login2 = ({
|
|
|
627
627
|
}
|
|
628
628
|
setLoginStep("account");
|
|
629
629
|
} catch (error) {
|
|
630
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
630
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
631
631
|
} finally {
|
|
632
632
|
setLoading(false);
|
|
633
633
|
}
|
|
@@ -641,14 +641,14 @@ var Login2 = ({
|
|
|
641
641
|
password
|
|
642
642
|
});
|
|
643
643
|
if ((res == null ? void 0 : res.code) !== 200) {
|
|
644
|
-
throw new Error((res == null ? void 0 : res.message) || "
|
|
644
|
+
throw new Error((res == null ? void 0 : res.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
handleCloseForgotPassword();
|
|
648
648
|
setEmailLinkVerifyStatus(null);
|
|
649
|
-
import_antd.message.success("
|
|
649
|
+
import_antd.message.success(import_utils.locales.getText("pisell-forgot-password-success"));
|
|
650
650
|
} catch (error) {
|
|
651
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
651
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
652
652
|
throw error;
|
|
653
653
|
} finally {
|
|
654
654
|
setLoading(false);
|
|
@@ -1413,7 +1413,7 @@ var Login2 = ({
|
|
|
1413
1413
|
password
|
|
1414
1414
|
});
|
|
1415
1415
|
if (result.status) {
|
|
1416
|
-
import_antd.message.success("
|
|
1416
|
+
import_antd.message.success(import_utils.locales.getText("pisell-forgot-password-success"));
|
|
1417
1417
|
setEmailLinkVerifyStatus(null);
|
|
1418
1418
|
setEmailLinkError("");
|
|
1419
1419
|
if (resetPasswordUserEmail) {
|
|
@@ -1427,13 +1427,13 @@ var Login2 = ({
|
|
|
1427
1427
|
setLoginStep("account");
|
|
1428
1428
|
}
|
|
1429
1429
|
} else {
|
|
1430
|
-
import_antd.message.error(result.message || "
|
|
1430
|
+
import_antd.message.error(result.message || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
1431
1431
|
}
|
|
1432
1432
|
} else {
|
|
1433
1433
|
import_antd.message.error("系统错误,请稍后重试");
|
|
1434
1434
|
}
|
|
1435
1435
|
} catch (error) {
|
|
1436
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
1436
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
1439
|
onBack: () => {
|