@pisell/private-materials 6.2.48 → 6.2.50
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/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
- package/es/components/appointmentBooking/components/Content/index.js +3 -3
- package/es/components/appointmentBooking/components/Services/index.js +36 -18
- package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
- package/es/components/appointmentBooking/hooks.js +10 -2
- package/es/components/appointmentBooking/index.js +10 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.js +12 -1
- package/es/components/booking/editBookingModal/index.js +8 -2
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +21 -9
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/utils.js +1 -1
- package/es/components/pinModal/hooks.d.ts +7 -0
- package/es/components/pinModal/hooks.js +65 -0
- package/es/components/pinModal/index.d.ts +4 -0
- package/es/components/pinModal/index.js +98 -0
- package/es/components/pinModal/index.less +44 -0
- package/es/components/pinModal/locales.d.ts +27 -0
- package/es/components/pinModal/locales.js +26 -0
- package/es/components/pinModal/serve.d.ts +6 -0
- package/es/components/pinModal/serve.js +11 -0
- package/es/components/pinModal/types.d.ts +0 -0
- package/es/components/pinModal/types.js +0 -0
- package/es/components/pinVerifyModal/hooks.d.ts +7 -0
- package/es/components/pinVerifyModal/hooks.js +80 -0
- package/es/components/pinVerifyModal/index.d.ts +5 -0
- package/es/components/pinVerifyModal/index.js +218 -0
- package/es/components/pinVerifyModal/index.less +92 -0
- package/es/components/pinVerifyModal/locales.d.ts +24 -0
- package/es/components/pinVerifyModal/locales.js +23 -0
- package/es/components/pinVerifyModal/types.d.ts +33 -0
- package/es/components/pinVerifyModal/types.js +1 -0
- package/es/components/ruleSetting/locales.js +3 -3
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/ticketBooking/components/ticketBooking/index.js +58 -10
- package/es/components/ticketBooking/components/timeBar/index.js +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/index.js +251 -63
- package/es/components/wallet/Detail/locales.d.ts +51 -0
- package/es/components/wallet/Detail/locales.js +57 -3
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/Detail/serve.js +5 -1
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/es/components/wallet/components/UsageRules/index.js +147 -0
- package/es/components/wallet/components/UsageRules/index.less +157 -0
- package/es/components/wallet/components/WalletCard.js +8 -3
- package/es/components/wallet/components/index.d.ts +1 -0
- package/es/components/wallet/components/index.js +2 -1
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/walletList/index.js +20 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
- package/lib/components/appointmentBooking/components/Content/index.js +2 -2
- package/lib/components/appointmentBooking/components/Services/index.js +13 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/appointmentBooking/hooks.js +10 -2
- package/lib/components/appointmentBooking/index.js +6 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.js +15 -2
- package/lib/components/booking/components/voucher/index.js +1 -3
- package/lib/components/booking/editBookingModal/index.js +6 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +15 -9
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/utils.js +1 -1
- package/lib/components/pinModal/hooks.d.ts +7 -0
- package/lib/components/pinModal/hooks.js +85 -0
- package/lib/components/pinModal/index.d.ts +4 -0
- package/lib/components/pinModal/index.js +88 -0
- package/lib/components/pinModal/index.less +44 -0
- package/lib/components/pinModal/locales.d.ts +27 -0
- package/lib/components/pinModal/locales.js +50 -0
- package/lib/components/pinModal/serve.d.ts +6 -0
- package/lib/components/pinModal/serve.js +37 -0
- package/lib/components/pinModal/types.d.ts +0 -0
- package/lib/components/pinModal/types.js +0 -0
- package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
- package/lib/components/pinVerifyModal/hooks.js +93 -0
- package/lib/components/pinVerifyModal/index.d.ts +5 -0
- package/lib/components/pinVerifyModal/index.js +230 -0
- package/lib/components/pinVerifyModal/index.less +92 -0
- package/lib/components/pinVerifyModal/locales.d.ts +24 -0
- package/lib/components/pinVerifyModal/locales.js +47 -0
- package/lib/components/pinVerifyModal/types.d.ts +33 -0
- package/lib/components/pinVerifyModal/types.js +17 -0
- package/lib/components/ruleSetting/locales.js +3 -3
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.js +50 -6
- package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/index.js +140 -8
- package/lib/components/wallet/Detail/locales.d.ts +51 -0
- package/lib/components/wallet/Detail/locales.js +57 -3
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/Detail/serve.js +6 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/lib/components/wallet/components/UsageRules/index.js +113 -0
- package/lib/components/wallet/components/UsageRules/index.less +157 -0
- package/lib/components/wallet/components/WalletCard.js +3 -1
- package/lib/components/wallet/components/index.d.ts +1 -0
- package/lib/components/wallet/components/index.js +3 -0
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/walletList/index.js +19 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/pin-modal/meta.ts +37 -0
- package/lowcode/pin-verify-modal/meta.ts +80 -0
- package/package.json +3 -3
@@ -21,7 +21,7 @@ import useEngineContext from "./../../../hooks/useEngineContext";
|
|
21
21
|
import localeTexts from "./locales";
|
22
22
|
import { getAssetList, getDetailApi } from "./serve";
|
23
23
|
import { request } from "./../../../utils";
|
24
|
-
import { WalletBar, FooterButtons } from "../components";
|
24
|
+
import { WalletBar, FooterButtons, UsageRules } from "../components";
|
25
25
|
import "./index.less";
|
26
26
|
var Text = Typography.Text;
|
27
27
|
|
@@ -57,72 +57,218 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
57
57
|
product = _detail$product === void 0 ? {} : _detail$product;
|
58
58
|
var _ref = product || {},
|
59
59
|
_ref$description = _ref.description,
|
60
|
-
description = _ref$description === void 0 ? '' : _ref$description
|
60
|
+
description = _ref$description === void 0 ? '' : _ref$description,
|
61
|
+
_ref$extension_data = _ref.extension_data,
|
62
|
+
extension_data = _ref$extension_data === void 0 ? [] : _ref$extension_data,
|
63
|
+
_ref$customer_order_b = _ref.customer_order_behavior_count,
|
64
|
+
customer_order_behavior_count = _ref$customer_order_b === void 0 ? 0 : _ref$customer_order_b;
|
61
65
|
var context = useEngineContext();
|
62
|
-
|
63
|
-
|
66
|
+
|
67
|
+
// 单独存储从详情接口获取的字段
|
64
68
|
var _useState = useState([]),
|
65
69
|
_useState2 = _slicedToArray(_useState, 2),
|
66
|
-
|
67
|
-
|
68
|
-
var _useState3 = useState(
|
70
|
+
extensionData = _useState2[0],
|
71
|
+
setExtensionData = _useState2[1];
|
72
|
+
var _useState3 = useState(0),
|
69
73
|
_useState4 = _slicedToArray(_useState3, 2),
|
70
|
-
|
71
|
-
|
72
|
-
var _useState5 = useState(
|
74
|
+
customerOrderBehaviorCount = _useState4[0],
|
75
|
+
setCustomerOrderBehaviorCount = _useState4[1];
|
76
|
+
var _useState5 = useState(0),
|
73
77
|
_useState6 = _slicedToArray(_useState5, 2),
|
74
|
-
|
75
|
-
|
76
|
-
var _useState7 = useState(
|
78
|
+
totalOrderBehaviorCount = _useState6[0],
|
79
|
+
setTotalOrderBehaviorCount = _useState6[1];
|
80
|
+
var _useState7 = useState(0),
|
77
81
|
_useState8 = _slicedToArray(_useState7, 2),
|
78
|
-
|
79
|
-
|
80
|
-
var _useState9 = useState(
|
82
|
+
todayOrderBehaviorCount = _useState8[0],
|
83
|
+
setTodayOrderBehaviorCount = _useState8[1];
|
84
|
+
var _useState9 = useState(0),
|
81
85
|
_useState10 = _slicedToArray(_useState9, 2),
|
82
|
-
|
83
|
-
|
84
|
-
var _useState11 = useState(
|
86
|
+
weekOrderBehaviorCount = _useState10[0],
|
87
|
+
setWeekOrderBehaviorCount = _useState10[1];
|
88
|
+
var _useState11 = useState(0),
|
85
89
|
_useState12 = _slicedToArray(_useState11, 2),
|
86
|
-
|
87
|
-
|
88
|
-
|
90
|
+
monthOrderBehaviorCount = _useState12[0],
|
91
|
+
setMonthOrderBehaviorCount = _useState12[1];
|
92
|
+
|
93
|
+
// 存储使用规则相关的状态
|
94
|
+
var _useState13 = useState(null),
|
89
95
|
_useState14 = _slicedToArray(_useState13, 2),
|
90
|
-
|
91
|
-
|
92
|
-
var _useState15 = useState(
|
96
|
+
usageCreditsData = _useState14[0],
|
97
|
+
setUsageCreditsData = _useState14[1];
|
98
|
+
var _useState15 = useState(false),
|
93
99
|
_useState16 = _slicedToArray(_useState15, 2),
|
94
|
-
|
95
|
-
|
96
|
-
var _useState17 = useState(''),
|
97
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
98
|
-
google_wallet_url = _useState18[0],
|
99
|
-
setGoogleWalletUrl = _useState18[1];
|
100
|
-
var stateTimeUnix = 1723255863; //2024.8.10 时间戳
|
100
|
+
shouldShowUsageRules = _useState16[0],
|
101
|
+
setShouldShowUsageRules = _useState16[1];
|
101
102
|
|
102
|
-
|
103
|
+
// Generate usage rules from real data
|
104
|
+
var generateUsageRules = function generateUsageRules(creditsData) {
|
105
|
+
if (!creditsData) return [];
|
106
|
+
var rules = [];
|
107
|
+
|
108
|
+
// Add daily limit if exists
|
109
|
+
if (creditsData.max_per_day > 0) {
|
110
|
+
rules.push({
|
111
|
+
type: 'daily',
|
112
|
+
limit: creditsData.max_per_day,
|
113
|
+
description: '',
|
114
|
+
// Will be filled by localized text
|
115
|
+
resetTime: '' // Will be filled by localized text
|
116
|
+
});
|
117
|
+
}
|
118
|
+
|
119
|
+
// Add weekly limit if exists
|
120
|
+
if (creditsData.max_per_week > 0) {
|
121
|
+
rules.push({
|
122
|
+
type: 'weekly',
|
123
|
+
limit: creditsData.max_per_week,
|
124
|
+
description: '',
|
125
|
+
// Will be filled by localized text
|
126
|
+
resetTime: '' // Will be filled by localized text
|
127
|
+
});
|
128
|
+
}
|
129
|
+
|
130
|
+
// Add monthly limit if exists
|
131
|
+
if (creditsData.max_per_month > 0) {
|
132
|
+
rules.push({
|
133
|
+
type: 'monthly',
|
134
|
+
limit: creditsData.max_per_month,
|
135
|
+
description: '',
|
136
|
+
// Will be filled by localized text
|
137
|
+
resetTime: '' // Will be filled by localized text
|
138
|
+
});
|
139
|
+
}
|
140
|
+
return rules;
|
141
|
+
};
|
142
|
+
|
143
|
+
// Generate personal limit data
|
144
|
+
var generatePersonalLimit = function generatePersonalLimit(creditsData) {
|
145
|
+
var usedCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
146
|
+
totalOrderBehaviorCount: 0,
|
147
|
+
customerOrderBehaviorCount: 0
|
148
|
+
};
|
149
|
+
if (!creditsData) return undefined;
|
150
|
+
var totalCredits = creditsData.total_credits || 0;
|
151
|
+
var perUserLimit = creditsData.per_user_limit || 0;
|
152
|
+
|
153
|
+
// 使用 total_credits 和 per_user_limit 中的较小值且非 0 的值作为总数
|
154
|
+
// 如果 totalCredits 是 0,则使用 perUserLimit
|
155
|
+
var total = 0;
|
156
|
+
if (totalCredits > 0 && perUserLimit > 0) {
|
157
|
+
total = Math.min(totalCredits, perUserLimit);
|
158
|
+
} else {
|
159
|
+
total = Math.max(totalCredits, perUserLimit);
|
160
|
+
}
|
161
|
+
// const total = Math.min(totalCredits, perUserLimit);
|
162
|
+
// const remaining = Math.max(0, total - usedCount.totalOrderBehaviorCount); // Ensure remaining is not negative
|
163
|
+
// 单张卡剩余多少
|
164
|
+
var total_remaining = 0;
|
165
|
+
if (totalCredits > 0) {
|
166
|
+
total_remaining = totalCredits - usedCount.totalOrderBehaviorCount;
|
167
|
+
}
|
168
|
+
// 个人剩余多少
|
169
|
+
var perUser_remaining = 0;
|
170
|
+
if (perUserLimit > 0) {
|
171
|
+
perUser_remaining = perUserLimit - usedCount.customerOrderBehaviorCount;
|
172
|
+
}
|
173
|
+
var remaining = 0;
|
174
|
+
if (total_remaining > 0 && perUser_remaining > 0) {
|
175
|
+
remaining = Math.min(total_remaining, perUser_remaining);
|
176
|
+
} else {
|
177
|
+
// 如果有一个是 0,还需要看是否是因为配置是 0 才导致的 0
|
178
|
+
// 先看总次数是不是剩余 0,是因为什么剩余 0
|
179
|
+
if (total_remaining === 0) {
|
180
|
+
if (totalCredits === 0) {
|
181
|
+
// 代表不限制总使用次数
|
182
|
+
remaining = perUser_remaining;
|
183
|
+
} else {
|
184
|
+
// 代表限制总使用次数,但是总使用次数为 0,则 remaining 为 0
|
185
|
+
remaining = 0;
|
186
|
+
}
|
187
|
+
} else {
|
188
|
+
// 如果剩余总使用次数大于 0,个人使用次数为 0,则 remaining 为 0
|
189
|
+
if (perUser_remaining === 0) {
|
190
|
+
remaining = 0;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
return {
|
195
|
+
total: total,
|
196
|
+
remaining: remaining,
|
197
|
+
note: '' // Will be filled by localized text
|
198
|
+
};
|
199
|
+
};
|
200
|
+
|
201
|
+
// 简化:直接计算
|
202
|
+
var usageRules = generateUsageRules(usageCreditsData);
|
203
|
+
// 取出所有最大的非 0 的数
|
204
|
+
var personalLimit = generatePersonalLimit(usageCreditsData, {
|
205
|
+
totalOrderBehaviorCount: totalOrderBehaviorCount,
|
206
|
+
customerOrderBehaviorCount: customerOrderBehaviorCount
|
207
|
+
});
|
208
|
+
var utils = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {};
|
209
|
+
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
210
|
+
var _useState17 = useState([]),
|
211
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
212
|
+
TimeLineData = _useState18[0],
|
213
|
+
setTimeLineData = _useState18[1];
|
214
|
+
var _useState19 = useState(false),
|
103
215
|
_useState20 = _slicedToArray(_useState19, 2),
|
104
|
-
|
105
|
-
|
106
|
-
var
|
107
|
-
var tabsRef = useRef();
|
108
|
-
var _useState21 = useState('detail'),
|
216
|
+
isShowtimeLineDetail = _useState20[0],
|
217
|
+
setIsShowtimeLineDetail = _useState20[1];
|
218
|
+
var _useState21 = useState(true),
|
109
219
|
_useState22 = _slicedToArray(_useState21, 2),
|
110
|
-
|
111
|
-
|
112
|
-
var _useState23 = useState(
|
220
|
+
isSpending = _useState22[0],
|
221
|
+
setIsSpending = _useState22[1];
|
222
|
+
var _useState23 = useState({}),
|
113
223
|
_useState24 = _slicedToArray(_useState23, 2),
|
114
|
-
|
115
|
-
|
116
|
-
var isUserClickRef = useRef(false);
|
117
|
-
var scrollTimeoutRef = useRef(null);
|
224
|
+
timeLineDetail = _useState24[0],
|
225
|
+
setTimeLineDetail = _useState24[1];
|
118
226
|
var _useState25 = useState(false),
|
119
227
|
_useState26 = _slicedToArray(_useState25, 2),
|
120
|
-
|
121
|
-
|
122
|
-
var _useState27 = useState(
|
228
|
+
wechatModalOpen = _useState26[0],
|
229
|
+
setWechatModalOpen = _useState26[1];
|
230
|
+
var _useState27 = useState(''),
|
123
231
|
_useState28 = _slicedToArray(_useState27, 2),
|
124
|
-
|
125
|
-
|
232
|
+
copyUrl = _useState28[0],
|
233
|
+
setCopyUrl = _useState28[1];
|
234
|
+
var _useState29 = useState(false),
|
235
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
236
|
+
isLoading = _useState30[0],
|
237
|
+
setIsLoading = _useState30[1];
|
238
|
+
var _useState31 = useState(''),
|
239
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
240
|
+
apple_wallet_url = _useState32[0],
|
241
|
+
setAppleWalletUrl = _useState32[1];
|
242
|
+
var _useState33 = useState(''),
|
243
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
244
|
+
google_wallet_url = _useState34[0],
|
245
|
+
setGoogleWalletUrl = _useState34[1];
|
246
|
+
var stateTimeUnix = 1723255863; //2024.8.10 时间戳
|
247
|
+
|
248
|
+
var _useState35 = useState([]),
|
249
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
250
|
+
listData = _useState36[0],
|
251
|
+
setListData = _useState36[1];
|
252
|
+
var modalContentRef = useRef(null);
|
253
|
+
var tabsRef = useRef();
|
254
|
+
var _useState37 = useState('detail'),
|
255
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
256
|
+
activeTab = _useState38[0],
|
257
|
+
setActiveTab = _useState38[1];
|
258
|
+
var _useState39 = useState(false),
|
259
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
260
|
+
isScrolling = _useState40[0],
|
261
|
+
setIsScrolling = _useState40[1];
|
262
|
+
var isUserClickRef = useRef(false);
|
263
|
+
var scrollTimeoutRef = useRef(null);
|
264
|
+
var _useState41 = useState(false),
|
265
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
266
|
+
addWalletLoading = _useState42[0],
|
267
|
+
setAddWalletLoading = _useState42[1];
|
268
|
+
var _useState43 = useState(false),
|
269
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
270
|
+
isAddingToWallet = _useState44[0],
|
271
|
+
setIsAddingToWallet = _useState44[1];
|
126
272
|
var anchorOptions = useMemo(function () {
|
127
273
|
// 始终包含detail选项
|
128
274
|
var options = [{
|
@@ -166,9 +312,11 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
166
312
|
}];
|
167
313
|
//折扣卡显示折扣字段 其他显示余额字段
|
168
314
|
if (tag === 'product_discount_card') {
|
315
|
+
var _detail$metadata;
|
316
|
+
var isFixedAmount = ((_detail$metadata = detail.metadata) === null || _detail$metadata === void 0 ? void 0 : _detail$metadata.discount_card_type) === 'fixed_amount';
|
169
317
|
data.splice(2, 0, {
|
170
318
|
label: locales.getText('page.wallet.discount'),
|
171
|
-
value: balance ? "".concat(Number(balance), "%") : ''
|
319
|
+
value: balance ? isFixedAmount ? "".concat(symbol).concat(Number(balance)) : "".concat(Number(balance), "%") : ''
|
172
320
|
});
|
173
321
|
} else if (tag === 'point_card') {
|
174
322
|
data.splice(2, 0, {
|
@@ -231,7 +379,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
231
379
|
};
|
232
380
|
var getDetail = /*#__PURE__*/function () {
|
233
381
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
234
|
-
var _yield$getDetailApi, _yield$getDetailApi$a, apple_wallet_url, _yield$getDetailApi$g, google_wallet_url;
|
382
|
+
var _yield$getDetailApi, _yield$getDetailApi$a, apple_wallet_url, _yield$getDetailApi$g, google_wallet_url, _yield$getDetailApi$e, extension_data, _yield$getDetailApi$c, customer_order_behavior_count, _yield$getDetailApi$t, total_order_behavior_count, _yield$getDetailApi$t2, today_order_behavior_count, _yield$getDetailApi$w, week_order_behavior_count, _yield$getDetailApi$m, month_order_behavior_count, usageCreditsItem;
|
235
383
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
236
384
|
while (1) switch (_context.prev = _context.next) {
|
237
385
|
case 0:
|
@@ -245,9 +393,46 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
245
393
|
apple_wallet_url = _yield$getDetailApi$a === void 0 ? '' : _yield$getDetailApi$a;
|
246
394
|
_yield$getDetailApi$g = _yield$getDetailApi.google_wallet_url;
|
247
395
|
google_wallet_url = _yield$getDetailApi$g === void 0 ? '' : _yield$getDetailApi$g;
|
396
|
+
_yield$getDetailApi$e = _yield$getDetailApi.extension_data;
|
397
|
+
extension_data = _yield$getDetailApi$e === void 0 ? [] : _yield$getDetailApi$e;
|
398
|
+
_yield$getDetailApi$c = _yield$getDetailApi.customer_order_behavior_count;
|
399
|
+
customer_order_behavior_count = _yield$getDetailApi$c === void 0 ? 0 : _yield$getDetailApi$c;
|
400
|
+
_yield$getDetailApi$t = _yield$getDetailApi.total_order_behavior_count;
|
401
|
+
total_order_behavior_count = _yield$getDetailApi$t === void 0 ? 0 : _yield$getDetailApi$t;
|
402
|
+
_yield$getDetailApi$t2 = _yield$getDetailApi.today_order_behavior_count;
|
403
|
+
today_order_behavior_count = _yield$getDetailApi$t2 === void 0 ? 0 : _yield$getDetailApi$t2;
|
404
|
+
_yield$getDetailApi$w = _yield$getDetailApi.week_order_behavior_count;
|
405
|
+
week_order_behavior_count = _yield$getDetailApi$w === void 0 ? 0 : _yield$getDetailApi$w;
|
406
|
+
_yield$getDetailApi$m = _yield$getDetailApi.month_order_behavior_count;
|
407
|
+
month_order_behavior_count = _yield$getDetailApi$m === void 0 ? 0 : _yield$getDetailApi$m;
|
248
408
|
setAppleWalletUrl(apple_wallet_url);
|
249
409
|
setGoogleWalletUrl(google_wallet_url);
|
250
|
-
|
410
|
+
|
411
|
+
// 存储从详情接口获取的字段
|
412
|
+
setExtensionData(extension_data);
|
413
|
+
setCustomerOrderBehaviorCount(customer_order_behavior_count);
|
414
|
+
setTotalOrderBehaviorCount(total_order_behavior_count);
|
415
|
+
setTodayOrderBehaviorCount(today_order_behavior_count);
|
416
|
+
setWeekOrderBehaviorCount(week_order_behavior_count);
|
417
|
+
setMonthOrderBehaviorCount(month_order_behavior_count);
|
418
|
+
|
419
|
+
// 处理使用规则数据
|
420
|
+
if (Array.isArray(extension_data) && extension_data.length > 0) {
|
421
|
+
usageCreditsItem = extension_data.find(function (item) {
|
422
|
+
return item.field_key === 'usage_credits';
|
423
|
+
});
|
424
|
+
if (usageCreditsItem !== null && usageCreditsItem !== void 0 && usageCreditsItem.value) {
|
425
|
+
setUsageCreditsData(usageCreditsItem.value);
|
426
|
+
setShouldShowUsageRules(true);
|
427
|
+
} else {
|
428
|
+
setUsageCreditsData(null);
|
429
|
+
setShouldShowUsageRules(false);
|
430
|
+
}
|
431
|
+
} else {
|
432
|
+
setUsageCreditsData(null);
|
433
|
+
setShouldShowUsageRules(false);
|
434
|
+
}
|
435
|
+
case 28:
|
251
436
|
case "end":
|
252
437
|
return _context.stop();
|
253
438
|
}
|
@@ -257,6 +442,8 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
257
442
|
return _ref3.apply(this, arguments);
|
258
443
|
};
|
259
444
|
}();
|
445
|
+
|
446
|
+
// 当切换商品卡时,获取新的详情数据
|
260
447
|
useEffect(function () {
|
261
448
|
if (detail.id) {
|
262
449
|
getDetail();
|
@@ -718,10 +905,10 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
718
905
|
|
719
906
|
// 添加ref用于获取容器元素
|
720
907
|
var detailWrapperRef = useRef(null);
|
721
|
-
var
|
722
|
-
|
723
|
-
contentHeight =
|
724
|
-
setContentHeight =
|
908
|
+
var _useState45 = useState(undefined),
|
909
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
910
|
+
contentHeight = _useState46[0],
|
911
|
+
setContentHeight = _useState46[1];
|
725
912
|
|
726
913
|
// 添加锚点导航ref
|
727
914
|
var anchorWrapperRef = useRef(null);
|
@@ -860,16 +1047,17 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
860
1047
|
valueColor: "#101828",
|
861
1048
|
backgroundColors: ['#fff'],
|
862
1049
|
isHasBorder: false
|
863
|
-
}), /*#__PURE__*/React.createElement("div", {
|
1050
|
+
}), description && /*#__PURE__*/React.createElement("div", {
|
864
1051
|
className: "wallet-detail-card-content-tip"
|
865
|
-
},
|
866
|
-
/*#__PURE__*/
|
867
|
-
// @ts-ignore 忽略TypeScript错误,React类型定义问题
|
868
|
-
React.createElement("div", {
|
1052
|
+
}, /*#__PURE__*/React.createElement("div", {
|
869
1053
|
dangerouslySetInnerHTML: {
|
870
1054
|
__html: description
|
871
1055
|
}
|
872
|
-
})
|
1056
|
+
})), shouldShowUsageRules && /*#__PURE__*/React.createElement(UsageRules, {
|
1057
|
+
locales: locales,
|
1058
|
+
rules: usageRules,
|
1059
|
+
personalLimit: personalLimit
|
1060
|
+
})), /*#__PURE__*/React.createElement("section", {
|
873
1061
|
className: "wallet-detail-card-content-section wallet-detail-card-content-section-timeline",
|
874
1062
|
"data-section": "activityLog"
|
875
1063
|
}, tag !== 'product_discount_card' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
@@ -29,6 +29,23 @@ declare const _default: {
|
|
29
29
|
'page.wallet.openedInBrowser': string;
|
30
30
|
'page.wallet.openFailed': string;
|
31
31
|
'page.wallet.loading': string;
|
32
|
+
'page.wallet.usageRules': string;
|
33
|
+
'page.wallet.usageRulesSubtitle': string;
|
34
|
+
'page.wallet.timeUsageLimits': string;
|
35
|
+
'page.wallet.totalQuantityControl': string;
|
36
|
+
'page.wallet.dailyLimit': string;
|
37
|
+
'page.wallet.weeklyLimit': string;
|
38
|
+
'page.wallet.monthlyLimit': string;
|
39
|
+
'page.wallet.personalLimit': string;
|
40
|
+
'page.wallet.dailyLimitDesc': string;
|
41
|
+
'page.wallet.weeklyLimitDesc': string;
|
42
|
+
'page.wallet.monthlyLimitDesc': string;
|
43
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
44
|
+
'page.wallet.personalLimitDesc': string;
|
45
|
+
'page.wallet.dailyReset': string;
|
46
|
+
'page.wallet.weeklyReset': string;
|
47
|
+
'page.wallet.monthlyReset': string;
|
48
|
+
'page.wallet.voucherExpireNote': string;
|
32
49
|
};
|
33
50
|
'zh-CN': {
|
34
51
|
'page.wallet.copyTitle': string;
|
@@ -60,6 +77,23 @@ declare const _default: {
|
|
60
77
|
'page.wallet.openedInBrowser': string;
|
61
78
|
'page.wallet.openFailed': string;
|
62
79
|
'page.wallet.loading': string;
|
80
|
+
'page.wallet.usageRules': string;
|
81
|
+
'page.wallet.usageRulesSubtitle': string;
|
82
|
+
'page.wallet.timeUsageLimits': string;
|
83
|
+
'page.wallet.totalQuantityControl': string;
|
84
|
+
'page.wallet.dailyLimit': string;
|
85
|
+
'page.wallet.weeklyLimit': string;
|
86
|
+
'page.wallet.monthlyLimit': string;
|
87
|
+
'page.wallet.personalLimit': string;
|
88
|
+
'page.wallet.dailyLimitDesc': string;
|
89
|
+
'page.wallet.weeklyLimitDesc': string;
|
90
|
+
'page.wallet.monthlyLimitDesc': string;
|
91
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
92
|
+
'page.wallet.personalLimitDesc': string;
|
93
|
+
'page.wallet.dailyReset': string;
|
94
|
+
'page.wallet.weeklyReset': string;
|
95
|
+
'page.wallet.monthlyReset': string;
|
96
|
+
'page.wallet.voucherExpireNote': string;
|
63
97
|
};
|
64
98
|
'zh-HK': {
|
65
99
|
'page.wallet.copyTitle': string;
|
@@ -91,6 +125,23 @@ declare const _default: {
|
|
91
125
|
'page.wallet.openedInBrowser': string;
|
92
126
|
'page.wallet.openFailed': string;
|
93
127
|
'page.wallet.loading': string;
|
128
|
+
'page.wallet.usageRules': string;
|
129
|
+
'page.wallet.usageRulesSubtitle': string;
|
130
|
+
'page.wallet.timeUsageLimits': string;
|
131
|
+
'page.wallet.totalQuantityControl': string;
|
132
|
+
'page.wallet.dailyLimit': string;
|
133
|
+
'page.wallet.weeklyLimit': string;
|
134
|
+
'page.wallet.monthlyLimit': string;
|
135
|
+
'page.wallet.personalLimit': string;
|
136
|
+
'page.wallet.dailyLimitDesc': string;
|
137
|
+
'page.wallet.weeklyLimitDesc': string;
|
138
|
+
'page.wallet.monthlyLimitDesc': string;
|
139
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
140
|
+
'page.wallet.personalLimitDesc': string;
|
141
|
+
'page.wallet.dailyReset': string;
|
142
|
+
'page.wallet.weeklyReset': string;
|
143
|
+
'page.wallet.monthlyReset': string;
|
144
|
+
'page.wallet.voucherExpireNote': string;
|
94
145
|
};
|
95
146
|
};
|
96
147
|
export default _default;
|
@@ -31,7 +31,25 @@ export default {
|
|
31
31
|
'page.wallet.useAppleInstead': 'You are using an iOS device, would you like to use Apple Wallet instead of Google Wallet?',
|
32
32
|
'page.wallet.openedInBrowser': 'Opened in browser',
|
33
33
|
'page.wallet.openFailed': 'Failed to open wallet link',
|
34
|
-
'page.wallet.loading': 'Loading wallet...'
|
34
|
+
'page.wallet.loading': 'Loading wallet...',
|
35
|
+
// Usage Rules
|
36
|
+
'page.wallet.usageRules': 'Terms & Conditions',
|
37
|
+
'page.wallet.usageRulesSubtitle': 'Please read the following usage conditions carefully',
|
38
|
+
'page.wallet.timeUsageLimits': 'Time Window Restrictions',
|
39
|
+
'page.wallet.totalQuantityControl': 'Total Usage Control',
|
40
|
+
'page.wallet.dailyLimit': 'Daily Limit:',
|
41
|
+
'page.wallet.weeklyLimit': 'Weekly Limit:',
|
42
|
+
'page.wallet.monthlyLimit': 'Monthly Limit:',
|
43
|
+
'page.wallet.personalLimit': 'Personal Limit:',
|
44
|
+
'page.wallet.dailyLimitDesc': 'Maximum {limit} uses from 12:00 AM to 11:59 PM each day',
|
45
|
+
'page.wallet.weeklyLimitDesc': 'Maximum {limit} uses from Monday 12:00 AM to Sunday 11:59 PM',
|
46
|
+
'page.wallet.monthlyLimitDesc': 'Maximum {limit} uses from 1st 12:00 AM to end of month 11:59 PM',
|
47
|
+
'page.wallet.monthlyLimitUnlimited': 'Unlimited',
|
48
|
+
'page.wallet.personalLimitDesc': 'You can use this voucher maximum {total} times ({remaining} remaining)',
|
49
|
+
'page.wallet.dailyReset': 'Counter resets automatically at midnight',
|
50
|
+
'page.wallet.weeklyReset': 'Counter resets every Monday at midnight',
|
51
|
+
'page.wallet.monthlyReset': 'Counter resets on 1st of each month at midnight',
|
52
|
+
'page.wallet.voucherExpireNote': 'Voucher will automatically expire when limit is reached'
|
35
53
|
},
|
36
54
|
'zh-CN': {
|
37
55
|
// 简体中文翻译
|
@@ -65,7 +83,25 @@ export default {
|
|
65
83
|
'page.wallet.useAppleInstead': '您正在使用iOS设备,是否使用Apple Wallet代替Google Wallet?',
|
66
84
|
'page.wallet.openedInBrowser': '已在浏览器中打开',
|
67
85
|
'page.wallet.openFailed': '打开钱包链接失败',
|
68
|
-
'page.wallet.loading': '正在加载钱包...'
|
86
|
+
'page.wallet.loading': '正在加载钱包...',
|
87
|
+
// Usage Rules
|
88
|
+
'page.wallet.usageRules': '使用规则',
|
89
|
+
'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
|
90
|
+
'page.wallet.timeUsageLimits': '时间使用限制',
|
91
|
+
'page.wallet.totalQuantityControl': '总量控制',
|
92
|
+
'page.wallet.dailyLimit': '每日限制:',
|
93
|
+
'page.wallet.weeklyLimit': '每周限制:',
|
94
|
+
'page.wallet.monthlyLimit': '每月限制:',
|
95
|
+
'page.wallet.personalLimit': '个人限额:',
|
96
|
+
'page.wallet.dailyLimitDesc': '每天0点-24点最多使用{limit}次',
|
97
|
+
'page.wallet.weeklyLimitDesc': '每周一0点-周日24点最多使用{limit}次',
|
98
|
+
'page.wallet.monthlyLimitDesc': '每月1号0点-月末24点最多使用{limit}次',
|
99
|
+
'page.wallet.monthlyLimitUnlimited': '无限制',
|
100
|
+
'page.wallet.personalLimitDesc': '您最多可使用此券{total}次(剩余{remaining}次)',
|
101
|
+
'page.wallet.dailyReset': '每天0点自动重置计数',
|
102
|
+
'page.wallet.weeklyReset': '每周一0点自动重置计数',
|
103
|
+
'page.wallet.monthlyReset': '每月1号0点自动重置计数',
|
104
|
+
'page.wallet.voucherExpireNote': '用完后此券将自动失效'
|
69
105
|
},
|
70
106
|
'zh-HK': {
|
71
107
|
// 繁体中文翻译
|
@@ -99,6 +135,24 @@ export default {
|
|
99
135
|
'page.wallet.useAppleInstead': '您正在使用iOS設備,是否使用Apple Wallet代替Google Wallet?',
|
100
136
|
'page.wallet.openedInBrowser': '已在瀏覽器中打開',
|
101
137
|
'page.wallet.openFailed': '打開錢包連結失敗',
|
102
|
-
'page.wallet.loading': '正在加載錢包...'
|
138
|
+
'page.wallet.loading': '正在加載錢包...',
|
139
|
+
// Usage Rules
|
140
|
+
'page.wallet.usageRules': '使用規則',
|
141
|
+
'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
|
142
|
+
'page.wallet.timeUsageLimits': '時間使用限制',
|
143
|
+
'page.wallet.totalQuantityControl': '總量控制',
|
144
|
+
'page.wallet.dailyLimit': '每日限制:',
|
145
|
+
'page.wallet.weeklyLimit': '每週限制:',
|
146
|
+
'page.wallet.monthlyLimit': '每月限制:',
|
147
|
+
'page.wallet.personalLimit': '個人限額:',
|
148
|
+
'page.wallet.dailyLimitDesc': '每天0點-24點最多使用{limit}次',
|
149
|
+
'page.wallet.weeklyLimitDesc': '每週一0點-週日24點最多使用{limit}次',
|
150
|
+
'page.wallet.monthlyLimitDesc': '每月1號0點-月末24點最多使用{limit}次',
|
151
|
+
'page.wallet.monthlyLimitUnlimited': '無限制',
|
152
|
+
'page.wallet.personalLimitDesc': '您最多可使用此券{total}次(剩餘{remaining}次)',
|
153
|
+
'page.wallet.dailyReset': '每天0點自動重置計數',
|
154
|
+
'page.wallet.weeklyReset': '每週一0點自動重置計數',
|
155
|
+
'page.wallet.monthlyReset': '每月1號0點自動重置計數',
|
156
|
+
'page.wallet.voucherExpireNote': '用完後此券將自動失效'
|
103
157
|
}
|
104
158
|
};
|
@@ -1,13 +1 @@
|
|
1
|
-
|
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;
|
@@ -43,7 +43,11 @@ export var getDetailApi = /*#__PURE__*/function () {
|
|
43
43
|
while (1) switch (_context2.prev = _context2.next) {
|
44
44
|
case 0:
|
45
45
|
_context2.next = 2;
|
46
|
-
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
46
|
+
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
47
|
+
order_behavior_count: 1,
|
48
|
+
// 订单行为次数
|
49
|
+
order_behavior_count_customer: 1 // 客户订单行为次数
|
50
|
+
});
|
47
51
|
case 2:
|
48
52
|
_yield$request$getReq2 = _context2.sent;
|
49
53
|
data = _yield$request$getReq2.data;
|
@@ -1,14 +1 @@
|
|
1
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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;
|