@fonixtree/magic-design 2.0.36 → 2.0.37
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/es/assets/images/layout-icon/walletLayout2.png +0 -0
- package/es/assets/less/cylon-antd.less +7246 -1686
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/es/composite-comp/common/components/AffiliateProductItem/index.js +6 -4
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +9 -8
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +5 -2
- package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
- package/es/constants/layout.js +40 -1
- package/es/core/Designer/ConfigPanel/index.js +1 -1
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
- package/lib/assets/less/cylon-antd.less +7246 -1686
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +277 -24
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +81 -13
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +50 -81
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
- package/lib/composite-comp/common/components/AffiliateProductItem/index.js +6 -4
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +8 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +9 -8
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +5 -2
- package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +1 -1
- package/lib/constants/layout.js +40 -1
- package/lib/core/Designer/ConfigPanel/index.js +1 -1
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/package.json +1 -1
|
@@ -1,27 +1,95 @@
|
|
|
1
1
|
.m-Wallet-mobile .headline {
|
|
2
2
|
margin-bottom: 0.14rem;
|
|
3
3
|
}
|
|
4
|
-
.m-Wallet-mobile .content {
|
|
4
|
+
.m-Wallet-mobile .item-wrap .text-content {
|
|
5
|
+
position: relative;
|
|
5
6
|
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
6
9
|
flex-wrap: wrap;
|
|
10
|
+
border-radius: 0.2rem;
|
|
11
|
+
padding: 0.4rem 0.8rem 1.8rem 0.8rem;
|
|
7
12
|
}
|
|
8
|
-
.m-Wallet-mobile .
|
|
9
|
-
top:
|
|
13
|
+
.m-Wallet-mobile .item-wrap .text-content .wallet-btn {
|
|
14
|
+
margin-top: 0.4rem;
|
|
10
15
|
}
|
|
11
|
-
.m-Wallet-mobile .
|
|
12
|
-
|
|
16
|
+
.m-Wallet-mobile .item-wrap .text-content .peek {
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: 0.32rem;
|
|
19
|
+
width: 0.8rem !important;
|
|
20
|
+
}
|
|
21
|
+
.m-Wallet-mobile .item-wrap .text-content .peek.left {
|
|
22
|
+
left: 0.8rem;
|
|
13
23
|
}
|
|
14
|
-
.m-Wallet-mobile .
|
|
24
|
+
.m-Wallet-mobile .item-wrap .text-content .peek.right {
|
|
25
|
+
right: 0.8rem;
|
|
26
|
+
}
|
|
27
|
+
.m-Wallet-mobile .column-layout {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: wrap;
|
|
30
|
+
}
|
|
31
|
+
.m-Wallet-mobile .column-layout .text-content {
|
|
32
|
+
padding: 0.2rem 0 1.2rem 0;
|
|
33
|
+
}
|
|
34
|
+
.m-Wallet-mobile .column-layout .text-content .wallet-btn {
|
|
35
|
+
margin-top: 0.2rem;
|
|
36
|
+
}
|
|
37
|
+
.m-Wallet-mobile .column-layout .text-content .peek {
|
|
38
|
+
bottom: 0.2rem;
|
|
39
|
+
}
|
|
40
|
+
.m-Wallet-mobile .column-layout .text-content .peek.left {
|
|
41
|
+
left: 0.32rem;
|
|
42
|
+
}
|
|
43
|
+
.m-Wallet-mobile .column-layout .text-content .peek.right {
|
|
44
|
+
right: 0.32rem;
|
|
45
|
+
}
|
|
46
|
+
.m-Wallet-mobile .carousel-layout .slick-track {
|
|
15
47
|
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
48
|
justify-content: center;
|
|
18
|
-
|
|
19
|
-
border-radius: 0.2rem;
|
|
49
|
+
align-items: center;
|
|
20
50
|
}
|
|
21
|
-
.m-Wallet-mobile .
|
|
22
|
-
|
|
23
|
-
|
|
51
|
+
.m-Wallet-mobile .carousel-layout .carousel-icon-left {
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 0.32rem;
|
|
54
|
+
top: 0;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
margin: auto;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
z-index: 10;
|
|
59
|
+
}
|
|
60
|
+
.m-Wallet-mobile .carousel-layout .carousel-icon-right {
|
|
61
|
+
position: absolute;
|
|
62
|
+
right: 0.32rem;
|
|
63
|
+
top: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
margin: auto;
|
|
66
|
+
cursor: pointer;
|
|
24
67
|
}
|
|
25
|
-
.m-Wallet-mobile .
|
|
68
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban {
|
|
26
69
|
position: absolute;
|
|
70
|
+
width: 100%;
|
|
71
|
+
bottom: 0.8rem;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
}
|
|
76
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban {
|
|
77
|
+
font-size: 0.16rem;
|
|
78
|
+
width: 1em;
|
|
79
|
+
height: 1em;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
background-color: #FFF;
|
|
82
|
+
cursor: inherit;
|
|
83
|
+
margin-right: 0.2rem;
|
|
84
|
+
transition: all 0.5s;
|
|
85
|
+
opacity: 0.4;
|
|
86
|
+
}
|
|
87
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban:last-child {
|
|
88
|
+
margin-right: 0;
|
|
89
|
+
}
|
|
90
|
+
.m-Wallet-mobile .carousel-layout .swiper-ban .ban.active {
|
|
91
|
+
width: 2em;
|
|
92
|
+
height: 1em;
|
|
93
|
+
border-radius: 2rem;
|
|
94
|
+
opacity: 1;
|
|
27
95
|
}
|
|
@@ -17,8 +17,6 @@ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
|
17
17
|
|
|
18
18
|
var _defaultJSON = require("../../../components/Wallet/defaultJSON");
|
|
19
19
|
|
|
20
|
-
var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
|
|
21
|
-
|
|
22
20
|
var _locale = require("../../../../../locale");
|
|
23
21
|
|
|
24
22
|
var _decorator = require("../../../../../decorator");
|
|
@@ -109,10 +107,7 @@ function (_super) {
|
|
|
109
107
|
|
|
110
108
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
109
|
className: "card_wrap"
|
|
112
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
113
|
-
alt: "",
|
|
114
|
-
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
115
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
111
|
className: "name"
|
|
117
112
|
}, (_a = src.title) === null || _a === void 0 ? void 0 : _a.text));
|
|
118
113
|
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _common = require("../../../../../common");
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
|
+
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var WalletConfigSetting =
|
|
47
|
+
/** @class */
|
|
48
|
+
function (_super) {
|
|
49
|
+
__extends(WalletConfigSetting, _super);
|
|
50
|
+
|
|
51
|
+
function WalletConfigSetting() {
|
|
52
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
|
|
54
|
+
_this.reRender = function () {
|
|
55
|
+
(0, _coreUtil.renderPreview)();
|
|
56
|
+
|
|
57
|
+
_this.setState({});
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return _this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
WalletConfigSetting.prototype.render = function () {
|
|
64
|
+
var _this = this;
|
|
65
|
+
|
|
66
|
+
var setting = this.props.setting;
|
|
67
|
+
|
|
68
|
+
var autoplaySetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
69
|
+
title: (0, _locale.i18n)('HOW_LONG_BETWEEN_SLIDES_(SECS)')
|
|
70
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
71
|
+
maxVal: 60,
|
|
72
|
+
minVal: 1,
|
|
73
|
+
onChange: function onChange(value) {
|
|
74
|
+
setting.autoplay.interval = value.count;
|
|
75
|
+
|
|
76
|
+
_this.reRender();
|
|
77
|
+
},
|
|
78
|
+
unit: "s",
|
|
79
|
+
value: {
|
|
80
|
+
count: setting.autoplay.interval
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
83
|
+
|
|
84
|
+
var navigationSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
85
|
+
title: (0, _locale.i18n)('NAVIGATION_ARROW')
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
87
|
+
needColor: true,
|
|
88
|
+
onChange: function onChange(value) {
|
|
89
|
+
setting.navigation.size = value.count;
|
|
90
|
+
setting.navigation.color = value.color;
|
|
91
|
+
|
|
92
|
+
_this.reRender();
|
|
93
|
+
},
|
|
94
|
+
unit: "px",
|
|
95
|
+
value: {
|
|
96
|
+
count: setting.navigation.size,
|
|
97
|
+
color: setting.navigation.color
|
|
98
|
+
}
|
|
99
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
100
|
+
title: (0, _locale.i18n)('SELECTED_ARROW')
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
102
|
+
needColor: true,
|
|
103
|
+
onChange: function onChange(value) {
|
|
104
|
+
setting.navigation.hoverSize = value.count;
|
|
105
|
+
setting.navigation.hoverColor = value.color;
|
|
106
|
+
|
|
107
|
+
_this.reRender();
|
|
108
|
+
},
|
|
109
|
+
unit: "px",
|
|
110
|
+
value: {
|
|
111
|
+
count: setting.navigation.hoverSize,
|
|
112
|
+
color: setting.navigation.hoverColor
|
|
113
|
+
}
|
|
114
|
+
})));
|
|
115
|
+
|
|
116
|
+
var dotsSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
117
|
+
title: (0, _locale.i18n)('SLIDE_BUTTON')
|
|
118
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
119
|
+
needColor: true,
|
|
120
|
+
onChange: function onChange(value) {
|
|
121
|
+
setting.dots.size = value.count;
|
|
122
|
+
setting.dots.color = value.color;
|
|
123
|
+
|
|
124
|
+
_this.reRender();
|
|
125
|
+
},
|
|
126
|
+
unit: "px",
|
|
127
|
+
value: {
|
|
128
|
+
count: setting.dots.size,
|
|
129
|
+
color: setting.dots.color
|
|
130
|
+
}
|
|
131
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
132
|
+
title: (0, _locale.i18n)('SELECTED_BUTTON')
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
134
|
+
needColor: true,
|
|
135
|
+
onChange: function onChange(value) {
|
|
136
|
+
setting.dots.hoverSize = value.count;
|
|
137
|
+
setting.dots.hoverColor = value.color;
|
|
138
|
+
|
|
139
|
+
_this.reRender();
|
|
140
|
+
},
|
|
141
|
+
unit: "px",
|
|
142
|
+
value: {
|
|
143
|
+
count: setting.dots.hoverSize,
|
|
144
|
+
color: setting.dots.hoverColor
|
|
145
|
+
}
|
|
146
|
+
})));
|
|
147
|
+
|
|
148
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
+
className: "carousel_setting"
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
151
|
+
divider: "dashed",
|
|
152
|
+
onRefresh: this.reRender,
|
|
153
|
+
source: [{
|
|
154
|
+
key: '1',
|
|
155
|
+
name: (0, _locale.i18n)('AUTOPLAYS'),
|
|
156
|
+
value: autoplaySetting,
|
|
157
|
+
metaOption: setting.autoplay,
|
|
158
|
+
toggleType: 'switch'
|
|
159
|
+
}, {
|
|
160
|
+
key: '2',
|
|
161
|
+
name: (0, _locale.i18n)('SHOW_NAVIGATION_ARROW'),
|
|
162
|
+
value: navigationSetting,
|
|
163
|
+
metaOption: setting.navigation,
|
|
164
|
+
toggleType: 'switch'
|
|
165
|
+
}, {
|
|
166
|
+
key: '3',
|
|
167
|
+
name: (0, _locale.i18n)('SHOW_SLIDE_BUTTON'),
|
|
168
|
+
value: dotsSetting,
|
|
169
|
+
metaOption: setting.dots,
|
|
170
|
+
toggleType: 'switch'
|
|
171
|
+
}]
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
WalletConfigSetting.defaultProps = {
|
|
176
|
+
setting: {
|
|
177
|
+
autoplay: {
|
|
178
|
+
open: true,
|
|
179
|
+
interval: 3
|
|
180
|
+
},
|
|
181
|
+
navigation: {
|
|
182
|
+
open: true,
|
|
183
|
+
size: 16,
|
|
184
|
+
color: '#384966',
|
|
185
|
+
hoverSize: 16,
|
|
186
|
+
hoverColor: '#384966'
|
|
187
|
+
},
|
|
188
|
+
dots: {
|
|
189
|
+
open: true,
|
|
190
|
+
size: 16,
|
|
191
|
+
color: '#fff',
|
|
192
|
+
hoverSize: 16,
|
|
193
|
+
hoverColor: '#fff'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
return WalletConfigSetting;
|
|
198
|
+
}(_react["default"].Component);
|
|
199
|
+
|
|
200
|
+
var _default = WalletConfigSetting;
|
|
201
|
+
exports["default"] = _default;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _WalletConfigImageGroup = _interopRequireDefault(require("./WalletConfigImageGroup"));
|
|
11
11
|
|
|
12
|
+
var _WalletConfigSetting = _interopRequireDefault(require("./WalletConfigSetting"));
|
|
13
|
+
|
|
12
14
|
var _WalletConfigContent = _interopRequireDefault(require("./WalletConfigContent"));
|
|
13
15
|
|
|
14
16
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
@@ -44,20 +46,27 @@ function WalletConfig(props) {
|
|
|
44
46
|
})
|
|
45
47
|
}, {
|
|
46
48
|
key: '3',
|
|
49
|
+
name: (0, _locale.i18n)('SETTING'),
|
|
50
|
+
value: /*#__PURE__*/_react["default"].createElement(_WalletConfigSetting["default"], {
|
|
51
|
+
setting: data.setting
|
|
52
|
+
})
|
|
53
|
+
}, {
|
|
54
|
+
key: '4',
|
|
47
55
|
name: (0, _locale.i18n)('SPACING'),
|
|
48
56
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
49
57
|
data: data.spacing
|
|
50
58
|
})
|
|
51
59
|
}, {
|
|
52
|
-
key: '
|
|
60
|
+
key: '5',
|
|
53
61
|
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
54
62
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
63
|
+
component: "wallet",
|
|
55
64
|
data: data.customize,
|
|
56
65
|
isHideAlign: true,
|
|
57
66
|
layoutSource: _layout.WalletLayout
|
|
58
67
|
})
|
|
59
68
|
}, {
|
|
60
|
-
key: '
|
|
69
|
+
key: '6',
|
|
61
70
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
62
71
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
63
72
|
data: data.background
|
|
@@ -13,12 +13,14 @@ var _locale = require("../../../../locale");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../common");
|
|
15
15
|
|
|
16
|
-
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
|
-
|
|
18
16
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
19
17
|
|
|
18
|
+
var _ButtonConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ButtonConfig"));
|
|
19
|
+
|
|
20
20
|
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
21
21
|
|
|
22
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
23
|
+
|
|
22
24
|
var _coreUtil = require("../../../../utils/coreUtil");
|
|
23
25
|
|
|
24
26
|
require("./index.less");
|
|
@@ -51,22 +53,6 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
51
53
|
};
|
|
52
54
|
}();
|
|
53
55
|
|
|
54
|
-
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
-
__assign = Object.assign || function (t) {
|
|
56
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
-
s = arguments[i];
|
|
58
|
-
|
|
59
|
-
for (var p in s) {
|
|
60
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return t;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return __assign.apply(this, arguments);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
56
|
var WalletSecondConfig =
|
|
71
57
|
/** @class */
|
|
72
58
|
function (_super) {
|
|
@@ -81,26 +67,41 @@ function (_super) {
|
|
|
81
67
|
var panelProps = _this.props.panelProps;
|
|
82
68
|
var defaultSource = [{
|
|
83
69
|
key: 'defaultSource_1',
|
|
84
|
-
name: (0, _locale.i18n)('IMAGE'),
|
|
85
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
86
|
-
data: panelProps.image
|
|
87
|
-
}),
|
|
88
|
-
metaOption: panelProps.image
|
|
89
|
-
}, {
|
|
90
|
-
key: 'defaultSource_2',
|
|
91
70
|
name: (0, _locale.i18n)('TITLE'),
|
|
92
71
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
93
72
|
data: panelProps.title
|
|
94
73
|
}),
|
|
95
74
|
metaOption: panelProps.title
|
|
96
75
|
}, {
|
|
97
|
-
key: '
|
|
76
|
+
key: 'defaultSource_2',
|
|
98
77
|
name: (0, _locale.i18n)('AMOUNT'),
|
|
99
78
|
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
100
79
|
data: panelProps.amount
|
|
101
80
|
}),
|
|
102
81
|
metaOption: panelProps.amount
|
|
103
82
|
}];
|
|
83
|
+
var defaultSource2 = [{
|
|
84
|
+
key: 'defaultSource_3',
|
|
85
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
86
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
87
|
+
data: panelProps.text
|
|
88
|
+
}),
|
|
89
|
+
metaOption: panelProps.text
|
|
90
|
+
}, {
|
|
91
|
+
key: 'defaultSource_4',
|
|
92
|
+
name: (0, _locale.i18n)('BUTTON'),
|
|
93
|
+
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
94
|
+
data: panelProps.button
|
|
95
|
+
}),
|
|
96
|
+
metaOption: panelProps.button
|
|
97
|
+
}, {
|
|
98
|
+
key: 'defaultSource_5',
|
|
99
|
+
name: (0, _locale.i18n)('PEEK'),
|
|
100
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
101
|
+
data: panelProps.peek
|
|
102
|
+
}),
|
|
103
|
+
metaOption: panelProps.peek
|
|
104
|
+
}];
|
|
104
105
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
105
106
|
divider: "dashed",
|
|
106
107
|
headerSize: "middle",
|
|
@@ -123,81 +124,49 @@ function (_super) {
|
|
|
123
124
|
},
|
|
124
125
|
value: panelProps.sourceType
|
|
125
126
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
126
|
-
value: "
|
|
127
|
-
}, (0, _locale.i18n)('
|
|
127
|
+
value: "Balance"
|
|
128
|
+
}, (0, _locale.i18n)('Balance')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
129
|
+
value: "B2B PayLater"
|
|
130
|
+
}, (0, _locale.i18n)('B2B PayLater')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
131
|
+
value: "Cenduit"
|
|
132
|
+
}, (0, _locale.i18n)('Cenduit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
133
|
+
value: "BNPL"
|
|
134
|
+
}, (0, _locale.i18n)('BNPL')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
128
135
|
value: "Credit"
|
|
129
136
|
}, (0, _locale.i18n)('Credit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
130
|
-
value: "
|
|
131
|
-
}, (0, _locale.i18n)('
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
137
|
+
value: "Cashback"
|
|
138
|
+
}, (0, _locale.i18n)('Cashback'))))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
139
|
+
divider: "dashed",
|
|
140
|
+
headerSize: "middle",
|
|
141
|
+
onRefresh: function onRefresh() {
|
|
142
|
+
return (0, _coreUtil.renderPreview)();
|
|
143
|
+
},
|
|
144
|
+
showActiveColor: true,
|
|
145
|
+
source: defaultSource2,
|
|
146
|
+
type: "switch"
|
|
147
|
+
}));
|
|
142
148
|
};
|
|
143
149
|
|
|
144
150
|
return _this;
|
|
145
151
|
}
|
|
146
152
|
|
|
147
153
|
WalletSecondConfig.prototype.render = function () {
|
|
148
|
-
var _this = this;
|
|
149
|
-
|
|
150
154
|
var panelProps = this.props.panelProps;
|
|
151
|
-
|
|
152
|
-
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
153
|
-
divider: "dashed",
|
|
154
|
-
noChange: true,
|
|
155
|
-
onRefresh: function onRefresh() {
|
|
156
|
-
return (0, _coreUtil.renderPreview)();
|
|
157
|
-
},
|
|
158
|
-
source: [{
|
|
159
|
-
key: 'hoverSetting_1',
|
|
160
|
-
name: (0, _locale.i18n)('IMAGE'),
|
|
161
|
-
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
162
|
-
data: panelProps.hover.image
|
|
163
|
-
}),
|
|
164
|
-
metaOption: panelProps.hover.image
|
|
165
|
-
}, {
|
|
166
|
-
key: 'hoverSetting_2',
|
|
167
|
-
name: (0, _locale.i18n)('TITLE'),
|
|
168
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
169
|
-
data: panelProps.hover.title
|
|
170
|
-
}),
|
|
171
|
-
metaOption: panelProps.hover.title
|
|
172
|
-
}, {
|
|
173
|
-
key: 'hoverSetting_3',
|
|
174
|
-
name: (0, _locale.i18n)('AMOUNT'),
|
|
175
|
-
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
176
|
-
data: panelProps.hover.amount
|
|
177
|
-
}),
|
|
178
|
-
metaOption: panelProps.hover.amount
|
|
179
|
-
}],
|
|
180
|
-
type: "switch"
|
|
181
|
-
});
|
|
182
|
-
|
|
183
155
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
156
|
className: "Wallet_second_conf_wrap"
|
|
185
157
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
186
158
|
divider: "bold",
|
|
187
159
|
headerSize: "large",
|
|
188
|
-
onRefresh: function onRefresh() {
|
|
189
|
-
return _this.resetHover();
|
|
190
|
-
},
|
|
191
160
|
source: [{
|
|
192
161
|
key: '1',
|
|
193
162
|
name: (0, _locale.i18n)('CONTENT'),
|
|
194
163
|
value: this.getContentPanel()
|
|
195
164
|
}, {
|
|
196
165
|
key: '2',
|
|
197
|
-
name: (0, _locale.i18n)('
|
|
198
|
-
value:
|
|
199
|
-
|
|
200
|
-
|
|
166
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
167
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
168
|
+
data: panelProps.background
|
|
169
|
+
})
|
|
201
170
|
}]
|
|
202
171
|
}));
|
|
203
172
|
};
|
|
@@ -103,7 +103,8 @@ function (_super) {
|
|
|
103
103
|
layout = _b.layout,
|
|
104
104
|
imgHeight = _b.imgHeight,
|
|
105
105
|
imgWidth = _b.imgWidth,
|
|
106
|
-
|
|
106
|
+
customFont = _b.customFont,
|
|
107
|
+
rest = __rest(_b, ["data", "panelProps", "onItemClick", "fixHeight", "layout", "imgHeight", "imgWidth", "customFont"]);
|
|
107
108
|
|
|
108
109
|
var imgStyle = {};
|
|
109
110
|
if (imgWidth) imgStyle.width = imgWidth;
|
|
@@ -142,14 +143,14 @@ function (_super) {
|
|
|
142
143
|
alt: "",
|
|
143
144
|
src: _iconBalance["default"]
|
|
144
145
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
-
className: "cashBackBox_text"
|
|
146
|
+
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
146
147
|
}, "Cashback Saldo", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrencyWithSymbolNotSpace)(data.buyCommission || 0)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
148
|
className: "cashBackBox_koin"
|
|
148
149
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
149
150
|
alt: "",
|
|
150
151
|
src: _iconKoin["default"]
|
|
151
152
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
|
-
className: "cashBackBox_text"
|
|
153
|
+
className: "cashBackBox_text " + (customFont ? 'custom_font' : '')
|
|
153
154
|
}, "Cashback", /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrency)(data.giftCommission || 0)), "Koin"))), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
154
155
|
className: "producItemPrice",
|
|
155
156
|
data: __assign(__assign({}, panelProps.salesPrice), {
|
|
@@ -166,7 +167,8 @@ function (_super) {
|
|
|
166
167
|
data: {},
|
|
167
168
|
panelProps: {},
|
|
168
169
|
fixHeight: false,
|
|
169
|
-
layout: 'vertical'
|
|
170
|
+
layout: 'vertical',
|
|
171
|
+
customFont: false
|
|
170
172
|
};
|
|
171
173
|
return AffiliateProductItem;
|
|
172
174
|
}(_react["default"].Component);
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
padding-left: 2px;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
.custom_font {
|
|
53
|
+
font-size: 9px;
|
|
54
|
+
padding-left: 2px;
|
|
55
|
+
}
|
|
52
56
|
}
|
|
53
57
|
.cashBackBox_koin {
|
|
54
58
|
display: flex;
|
|
@@ -71,6 +75,10 @@
|
|
|
71
75
|
padding: 0 2px;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
78
|
+
.custom_font {
|
|
79
|
+
font-size: 9px;
|
|
80
|
+
padding-left: 2px;
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
84
|
.producItemPrice {
|
|
@@ -135,6 +135,19 @@ function (_super) {
|
|
|
135
135
|
showRowNum: false
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
+
} // wallet 第一种布局可选列数
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
if (component === 'wallet') {
|
|
142
|
+
if (v === 'layout2') {
|
|
143
|
+
_this.setState({
|
|
144
|
+
showRowNum: false
|
|
145
|
+
});
|
|
146
|
+
} else {
|
|
147
|
+
_this.setState({
|
|
148
|
+
showRowNum: true
|
|
149
|
+
});
|
|
150
|
+
}
|
|
138
151
|
} // 移动端导航特殊处理
|
|
139
152
|
// 更改需求,两个布局都需 可选行数
|
|
140
153
|
// if (component == 'mobileNavigation') {
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
align-items: center;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.selectWrap {
|
|
8
9
|
position: relative;
|
|
9
10
|
display: flex;
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
.iconNum {
|
|
12
13
|
position: absolute;
|
|
13
14
|
z-index: 9;
|
|
14
15
|
left: 15px;
|
|
15
|
-
top:
|
|
16
|
+
top: 8px;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.cylon-select {
|