@pisell/private-materials 3.0.147 → 3.0.149
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 +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/addons/index.js +1 -0
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/info/service/addService/index.js +1 -0
- package/es/components/booking/info/service/addTimeModal/index.js +3 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/pay/toC/WalletPassBlock/index.js +16 -6
- package/es/components/pay/toC/WalletPassBlock/index.less +22 -11
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/index.js +12 -11
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/components/schedules/products/index.d.ts +2 -2
- package/es/components/schedules/products/index.js +8 -7
- package/lib/components/booking/addons/index.js +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/info/service/addService/index.js +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.js +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +23 -25
- package/lib/components/pay/toC/WalletPassBlock/index.less +22 -11
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/index.js +2 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/components/schedules/products/index.d.ts +2 -2
- package/lib/components/schedules/products/index.js +1 -0
- package/package.json +4 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -254,7 +254,8 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
254
254
|
open_quotation: 1,
|
|
255
255
|
schedule_date: state.date.value.format('YYYY-MM-DD'),
|
|
256
256
|
customer_id: isWalkIn((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id) ? undefined : (_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : (_state$client2$value = _state$client2.value) === null || _state$client2$value === void 0 ? void 0 : _state$client2$value.id,
|
|
257
|
-
extension_type: ['product_add_time']
|
|
257
|
+
extension_type: ['product_add_time'],
|
|
258
|
+
status: 'published'
|
|
258
259
|
}, {
|
|
259
260
|
useCache: true
|
|
260
261
|
});
|
|
@@ -462,7 +463,7 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
462
463
|
key: 'booking_checkout',
|
|
463
464
|
data: {
|
|
464
465
|
order_id: state.bookingId,
|
|
465
|
-
callbackType:
|
|
466
|
+
callbackType: 'pisell2'
|
|
466
467
|
}
|
|
467
468
|
}));
|
|
468
469
|
case 2:
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -9,7 +9,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
9
9
|
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
10
|
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
11
|
import React, { useMemo, useRef } from 'react';
|
|
12
|
-
import { PisellRow, Iconfont, PisellText } from '@pisell/materials';
|
|
12
|
+
import { PisellRow, Iconfont, PisellText, Button } from '@pisell/materials';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { locales } from '@pisell/utils';
|
|
15
15
|
import WalletPass from "../PaymentMethods/WalletPass";
|
|
@@ -51,11 +51,21 @@ var WalletPassBlock = function WalletPassBlock(props) {
|
|
|
51
51
|
className: "wallet-pass-card-title"
|
|
52
52
|
}, locales.getText('tocPay.text.walletPass')), /*#__PURE__*/React.createElement("div", {
|
|
53
53
|
className: "wallet-pass-card-desc"
|
|
54
|
-
}, centerContentDesc)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
}, centerContentDesc), /*#__PURE__*/React.createElement(Button, {
|
|
55
|
+
size: "large",
|
|
56
|
+
className: "wallet-pass-card-to-use",
|
|
57
|
+
rightIcon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
58
|
+
type: "pisell2-arrow-right",
|
|
59
|
+
className: "wallet-pass-card-icon"
|
|
60
|
+
})
|
|
61
|
+
}, locales.getText('tocPay.text.toUse')))
|
|
62
|
+
// rightContent={
|
|
63
|
+
// <Iconfont
|
|
64
|
+
// type="pisell2-chevron-right"
|
|
65
|
+
// className="wallet-pass-card-icon"
|
|
66
|
+
// />
|
|
67
|
+
// }
|
|
68
|
+
,
|
|
59
69
|
padding: 16,
|
|
60
70
|
gap: 4,
|
|
61
71
|
onClick: handleClick
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
.wallet-pass-wrap {
|
|
2
2
|
cursor: pointer;
|
|
3
|
+
.wallet-pass-card-to-use {
|
|
4
|
+
margin-top: 8px;
|
|
5
|
+
.wallet-pass-card-icon {
|
|
6
|
+
font-size: 20px;
|
|
7
|
+
color: #344054;
|
|
8
|
+
}
|
|
9
|
+
& > span {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
|
|
4
15
|
.wallet-pass-title {
|
|
5
16
|
color: var(--Gray-900, #101828);
|
|
@@ -12,11 +23,11 @@
|
|
|
12
23
|
.wallet-pass-card {
|
|
13
24
|
margin-top: 20px;
|
|
14
25
|
border-radius: 12px;
|
|
15
|
-
border: 1px solid var(--Gray-
|
|
26
|
+
border: 1px solid var(--Gray-400, #98A2B3);
|
|
16
27
|
background: var(--Base-White, #FFF);
|
|
17
28
|
|
|
18
29
|
.wallet-pass-card-title {
|
|
19
|
-
color: var(--Gray-
|
|
30
|
+
color: var(--Gray-900, #101828);
|
|
20
31
|
font-size: 16px;
|
|
21
32
|
font-style: normal;
|
|
22
33
|
font-weight: 600;
|
|
@@ -35,15 +46,15 @@
|
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
49
|
+
//.wallet-pass-card-icon {
|
|
50
|
+
// width: 24px;
|
|
51
|
+
// height: 24px;
|
|
52
|
+
// color: #667085;
|
|
53
|
+
// display: flex;
|
|
54
|
+
// align-items: center;
|
|
55
|
+
// justify-content: center;
|
|
56
|
+
// font-size: 24px;
|
|
57
|
+
//}
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
.wallet-pass-card-complete-title {
|
|
@@ -48,6 +48,7 @@ declare const _default: {
|
|
|
48
48
|
'tocPay.text.leave': string;
|
|
49
49
|
'tocPay.text.getParamsFail': string;
|
|
50
50
|
'tocPay.text.walletPass': string;
|
|
51
|
+
'tocPay.text.toUse': string;
|
|
51
52
|
'tocPay.text.searchResult': string;
|
|
52
53
|
'tocPay.text.select': string;
|
|
53
54
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -120,6 +121,7 @@ declare const _default: {
|
|
|
120
121
|
'tocPay.text.leave': string;
|
|
121
122
|
'tocPay.text.getParamsFail': string;
|
|
122
123
|
'tocPay.text.walletPass': string;
|
|
124
|
+
'tocPay.text.toUse': string;
|
|
123
125
|
'tocPay.text.searchResult': string;
|
|
124
126
|
'tocPay.text.select': string;
|
|
125
127
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -191,6 +193,7 @@ declare const _default: {
|
|
|
191
193
|
'tocPay.text.leave': string;
|
|
192
194
|
'tocPay.text.getParamsFail': string;
|
|
193
195
|
'tocPay.text.walletPass': string;
|
|
196
|
+
'tocPay.text.toUse': string;
|
|
194
197
|
'tocPay.text.searchResult': string;
|
|
195
198
|
'tocPay.text.select': string;
|
|
196
199
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'tocPay.text.leave': 'Leave',
|
|
49
49
|
'tocPay.text.getParamsFail': 'Failed to obtain payment parameters',
|
|
50
50
|
'tocPay.text.walletPass': 'Wallet Pass',
|
|
51
|
+
'tocPay.text.toUse': 'To use',
|
|
51
52
|
'tocPay.text.searchResult': 'Search result',
|
|
52
53
|
'tocPay.text.select': 'Select',
|
|
53
54
|
'tocPay.text.couponCodesAdded': 'Codes added',
|
|
@@ -120,6 +121,7 @@ export default {
|
|
|
120
121
|
'tocPay.text.leave': '离开',
|
|
121
122
|
'tocPay.text.getParamsFail': '获取支付参数失败',
|
|
122
123
|
'tocPay.text.walletPass': '钱包支付',
|
|
124
|
+
'tocPay.text.toUse': '去使用',
|
|
123
125
|
'tocPay.text.searchResult': '搜索结果',
|
|
124
126
|
'tocPay.text.select': '选择',
|
|
125
127
|
'tocPay.text.couponCodesAdded': '编码添加',
|
|
@@ -191,6 +193,7 @@ export default {
|
|
|
191
193
|
'tocPay.text.leave': '離開',
|
|
192
194
|
'tocPay.text.getParamsFail': '取得支付參數失敗',
|
|
193
195
|
'tocPay.text.walletPass': '錢包支付',
|
|
196
|
+
'tocPay.text.toUse': '去使用',
|
|
194
197
|
'tocPay.text.searchResult': '搜索結果',
|
|
195
198
|
'tocPay.text.select': '選擇',
|
|
196
199
|
'tocPay.text.couponCodesAdded': '編碼添加',
|
|
@@ -4,14 +4,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
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; }
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useState, useMemo, useEffect } from
|
|
8
|
-
import { useRequest } from
|
|
7
|
+
import React, { useState, useMemo, useEffect } from 'react';
|
|
8
|
+
import { useRequest } from 'ahooks';
|
|
9
9
|
import SelectModal from "../../../selectModal";
|
|
10
10
|
import { getProductList } from "./server";
|
|
11
11
|
import ProductItem from "./ProductItem";
|
|
12
12
|
import ProductItemPreview from "./ProductItemPreview";
|
|
13
13
|
import "./index.less";
|
|
14
|
-
import { locales } from
|
|
14
|
+
import { locales } from '@pisell/utils';
|
|
15
15
|
var SelectProducts = function SelectProducts(_ref) {
|
|
16
16
|
var value = _ref.value,
|
|
17
17
|
_onChange = _ref.onChange;
|
|
@@ -41,9 +41,10 @@ var SelectProducts = function SelectProducts(_ref) {
|
|
|
41
41
|
_getProductList.run({
|
|
42
42
|
skip: 1,
|
|
43
43
|
num: 500,
|
|
44
|
-
with: [
|
|
44
|
+
with: ['category'],
|
|
45
45
|
open_quotation: 1,
|
|
46
|
-
exclude_extension_type: [
|
|
46
|
+
exclude_extension_type: ['event_item'],
|
|
47
|
+
status: 'published'
|
|
47
48
|
});
|
|
48
49
|
}, []);
|
|
49
50
|
var onRemove = function onRemove(item) {
|
|
@@ -81,18 +82,18 @@ var SelectProducts = function SelectProducts(_ref) {
|
|
|
81
82
|
},
|
|
82
83
|
buttonProps: {
|
|
83
84
|
showSub: !!(value !== null && value !== void 0 && value.length),
|
|
84
|
-
title: locales.getText(
|
|
85
|
-
subTitle: locales.getText(
|
|
85
|
+
title: locales.getText('pisell2.text.product-extension.add-product'),
|
|
86
|
+
subTitle: locales.getText('pisell2.text.product-extension.add-other-product')
|
|
86
87
|
},
|
|
87
88
|
drawerProps: {
|
|
88
89
|
width: 500,
|
|
89
|
-
title: locales.getText(
|
|
90
|
-
rootClassName:
|
|
90
|
+
title: locales.getText('pisell2.text.product-extension.add-product'),
|
|
91
|
+
rootClassName: 'select-product-drawer'
|
|
91
92
|
},
|
|
92
93
|
tabProductProps: {
|
|
93
|
-
warpClassName:
|
|
94
|
+
warpClassName: 'select-product-warp',
|
|
94
95
|
stickyTop: 188,
|
|
95
|
-
scrollDom:
|
|
96
|
+
scrollDom: '.select-product-drawer .pisell-lowcode-drawer-body'
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,7 +68,7 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
71
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
73
72
|
state: FormState;
|
|
74
73
|
} & {
|
|
75
74
|
dispatch: (params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { useEffect, useContext } from
|
|
2
|
-
import { useRequest } from
|
|
1
|
+
import React, { useEffect, useContext } from 'react';
|
|
2
|
+
import { useRequest } from 'ahooks';
|
|
3
3
|
import CurrentDay from "../components/CurrentDay";
|
|
4
4
|
import List from "./list";
|
|
5
5
|
import ProductDetailDrawer from "./ProductDetailDrawer";
|
|
@@ -20,7 +20,7 @@ var Products = function Products() {
|
|
|
20
20
|
// 当获取完商品数据和日程数据时, 进行合并,方便后续处理
|
|
21
21
|
useEffect(function () {
|
|
22
22
|
dispatch({
|
|
23
|
-
type:
|
|
23
|
+
type: 'setProducts',
|
|
24
24
|
payload: {
|
|
25
25
|
list: formatProductSchedules(_getProducts.data || [], state.schedules.scheduleMap)
|
|
26
26
|
}
|
|
@@ -29,9 +29,9 @@ var Products = function Products() {
|
|
|
29
29
|
var _init = function _init() {
|
|
30
30
|
// 获取数据前, 关闭所有的弹窗
|
|
31
31
|
dispatch({
|
|
32
|
-
type:
|
|
32
|
+
type: 'setProducts',
|
|
33
33
|
payload: {
|
|
34
|
-
search:
|
|
34
|
+
search: '',
|
|
35
35
|
currentProduct: null,
|
|
36
36
|
openProductDetailDrawer: false,
|
|
37
37
|
openAddSchedulesDrawer: false
|
|
@@ -45,7 +45,8 @@ var Products = function Products() {
|
|
|
45
45
|
skip: 1,
|
|
46
46
|
num: 500,
|
|
47
47
|
// extension_type: ["normal"],
|
|
48
|
-
with: [
|
|
48
|
+
with: ['category'],
|
|
49
|
+
status: 'published',
|
|
49
50
|
open_quotation: 1,
|
|
50
51
|
with_schedule: true,
|
|
51
52
|
schedule: 1,
|
|
@@ -58,7 +59,7 @@ var Products = function Products() {
|
|
|
58
59
|
}, [currentSelectDayDetail]);
|
|
59
60
|
var handleClose = function handleClose() {
|
|
60
61
|
dispatch({
|
|
61
|
-
type:
|
|
62
|
+
type: 'setState',
|
|
62
63
|
payload: {
|
|
63
64
|
currentSelectDayDetail: null
|
|
64
65
|
}
|
|
@@ -194,6 +194,7 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
194
194
|
// include_bundle: "no",
|
|
195
195
|
// include_option: "no",
|
|
196
196
|
// include_variant: "no",
|
|
197
|
+
status: "published",
|
|
197
198
|
open_quotation: 1,
|
|
198
199
|
with_schedule: 0,
|
|
199
200
|
with_count: ["bundleGroup", "optionGroup"],
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -188,7 +188,8 @@ var AddTimeModal = () => {
|
|
|
188
188
|
open_quotation: 1,
|
|
189
189
|
schedule_date: state.date.value.format("YYYY-MM-DD"),
|
|
190
190
|
customer_id: (0, import_utils3.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) ? void 0 : (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id,
|
|
191
|
-
extension_type: ["product_add_time"]
|
|
191
|
+
extension_type: ["product_add_time"],
|
|
192
|
+
status: "published"
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
useCache: true
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -60,32 +60,30 @@ var WalletPassBlock = (props) => {
|
|
|
60
60
|
), " ", import_utils.locales.getText("tocPay.text.creditHaveBeen"));
|
|
61
61
|
}
|
|
62
62
|
}, [(_a = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a.amount]);
|
|
63
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
-
|
|
63
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { ...others, className: (0, import_classnames.default)("wallet-pass-wrap", className) }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-title" }, import_utils.locales.getText("tocPay.text.howToPay")), /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
+
import_materials.PisellRow,
|
|
65
65
|
{
|
|
66
|
-
|
|
67
|
-
className: (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
((payGroup == null ? void 0 : payGroup.wait_amount) || 0) == 0 && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-complete-title" }, import_utils.locales.getText("tocPay.text.walletPassCompleteTitle")), /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-complete-no-extre-pay" }, import_utils.locales.getText("tocPay.text.walletPassNoExtraPay")))
|
|
88
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
className: "wallet-pass-card",
|
|
67
|
+
centerContent: /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-title" }, import_utils.locales.getText("tocPay.text.walletPass")), /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-desc" }, centerContentDesc), /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
+
import_materials.Button,
|
|
69
|
+
{
|
|
70
|
+
size: "large",
|
|
71
|
+
className: "wallet-pass-card-to-use",
|
|
72
|
+
rightIcon: /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
+
import_materials.Iconfont,
|
|
74
|
+
{
|
|
75
|
+
type: "pisell2-arrow-right",
|
|
76
|
+
className: "wallet-pass-card-icon"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
},
|
|
80
|
+
import_utils.locales.getText("tocPay.text.toUse")
|
|
81
|
+
)),
|
|
82
|
+
padding: 16,
|
|
83
|
+
gap: 4,
|
|
84
|
+
onClick: handleClick
|
|
85
|
+
}
|
|
86
|
+
), ((payGroup == null ? void 0 : payGroup.wait_amount) || 0) == 0 && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-complete-title" }, import_utils.locales.getText("tocPay.text.walletPassCompleteTitle")), /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-card-complete-no-extre-pay" }, import_utils.locales.getText("tocPay.text.walletPassNoExtraPay")))), /* @__PURE__ */ import_react.default.createElement(
|
|
89
87
|
import_WalletPass.default,
|
|
90
88
|
{
|
|
91
89
|
ref: walletPassRef,
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
.wallet-pass-wrap {
|
|
2
2
|
cursor: pointer;
|
|
3
|
+
.wallet-pass-card-to-use {
|
|
4
|
+
margin-top: 8px;
|
|
5
|
+
.wallet-pass-card-icon {
|
|
6
|
+
font-size: 20px;
|
|
7
|
+
color: #344054;
|
|
8
|
+
}
|
|
9
|
+
& > span {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
|
|
4
15
|
.wallet-pass-title {
|
|
5
16
|
color: var(--Gray-900, #101828);
|
|
@@ -12,11 +23,11 @@
|
|
|
12
23
|
.wallet-pass-card {
|
|
13
24
|
margin-top: 20px;
|
|
14
25
|
border-radius: 12px;
|
|
15
|
-
border: 1px solid var(--Gray-
|
|
26
|
+
border: 1px solid var(--Gray-400, #98A2B3);
|
|
16
27
|
background: var(--Base-White, #FFF);
|
|
17
28
|
|
|
18
29
|
.wallet-pass-card-title {
|
|
19
|
-
color: var(--Gray-
|
|
30
|
+
color: var(--Gray-900, #101828);
|
|
20
31
|
font-size: 16px;
|
|
21
32
|
font-style: normal;
|
|
22
33
|
font-weight: 600;
|
|
@@ -35,15 +46,15 @@
|
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
49
|
+
//.wallet-pass-card-icon {
|
|
50
|
+
// width: 24px;
|
|
51
|
+
// height: 24px;
|
|
52
|
+
// color: #667085;
|
|
53
|
+
// display: flex;
|
|
54
|
+
// align-items: center;
|
|
55
|
+
// justify-content: center;
|
|
56
|
+
// font-size: 24px;
|
|
57
|
+
//}
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
.wallet-pass-card-complete-title {
|
|
@@ -48,6 +48,7 @@ declare const _default: {
|
|
|
48
48
|
'tocPay.text.leave': string;
|
|
49
49
|
'tocPay.text.getParamsFail': string;
|
|
50
50
|
'tocPay.text.walletPass': string;
|
|
51
|
+
'tocPay.text.toUse': string;
|
|
51
52
|
'tocPay.text.searchResult': string;
|
|
52
53
|
'tocPay.text.select': string;
|
|
53
54
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -120,6 +121,7 @@ declare const _default: {
|
|
|
120
121
|
'tocPay.text.leave': string;
|
|
121
122
|
'tocPay.text.getParamsFail': string;
|
|
122
123
|
'tocPay.text.walletPass': string;
|
|
124
|
+
'tocPay.text.toUse': string;
|
|
123
125
|
'tocPay.text.searchResult': string;
|
|
124
126
|
'tocPay.text.select': string;
|
|
125
127
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -191,6 +193,7 @@ declare const _default: {
|
|
|
191
193
|
'tocPay.text.leave': string;
|
|
192
194
|
'tocPay.text.getParamsFail': string;
|
|
193
195
|
'tocPay.text.walletPass': string;
|
|
196
|
+
'tocPay.text.toUse': string;
|
|
194
197
|
'tocPay.text.searchResult': string;
|
|
195
198
|
'tocPay.text.select': string;
|
|
196
199
|
'tocPay.text.couponCodesAdded': string;
|
|
@@ -72,6 +72,7 @@ var locales_default = {
|
|
|
72
72
|
"tocPay.text.leave": "Leave",
|
|
73
73
|
"tocPay.text.getParamsFail": "Failed to obtain payment parameters",
|
|
74
74
|
"tocPay.text.walletPass": "Wallet Pass",
|
|
75
|
+
"tocPay.text.toUse": "To use",
|
|
75
76
|
"tocPay.text.searchResult": "Search result",
|
|
76
77
|
"tocPay.text.select": "Select",
|
|
77
78
|
"tocPay.text.couponCodesAdded": "Codes added",
|
|
@@ -144,6 +145,7 @@ var locales_default = {
|
|
|
144
145
|
"tocPay.text.leave": "离开",
|
|
145
146
|
"tocPay.text.getParamsFail": "获取支付参数失败",
|
|
146
147
|
"tocPay.text.walletPass": "钱包支付",
|
|
148
|
+
"tocPay.text.toUse": "去使用",
|
|
147
149
|
"tocPay.text.searchResult": "搜索结果",
|
|
148
150
|
"tocPay.text.select": "选择",
|
|
149
151
|
"tocPay.text.couponCodesAdded": "编码添加",
|
|
@@ -215,6 +217,7 @@ var locales_default = {
|
|
|
215
217
|
"tocPay.text.leave": "離開",
|
|
216
218
|
"tocPay.text.getParamsFail": "取得支付參數失敗",
|
|
217
219
|
"tocPay.text.walletPass": "錢包支付",
|
|
220
|
+
"tocPay.text.toUse": "去使用",
|
|
218
221
|
"tocPay.text.searchResult": "搜索結果",
|
|
219
222
|
"tocPay.text.select": "選擇",
|
|
220
223
|
"tocPay.text.couponCodesAdded": "編碼添加",
|
|
@@ -64,7 +64,8 @@ var SelectProducts = ({ value, onChange }) => {
|
|
|
64
64
|
num: 500,
|
|
65
65
|
with: ["category"],
|
|
66
66
|
open_quotation: 1,
|
|
67
|
-
exclude_extension_type: ["event_item"]
|
|
67
|
+
exclude_extension_type: ["event_item"],
|
|
68
|
+
status: "published"
|
|
68
69
|
});
|
|
69
70
|
}, []);
|
|
70
71
|
const onRemove = (item) => {
|