@fonixtree/magic-design 2.0.163 → 2.0.165
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/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
- package/es/composite-comp/bol/components/Button/defaultJSON.js +6 -1
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
- package/es/composite-comp/bol/components/Text/defaultJSON.js +16 -5
- package/es/composite-comp/bol/components/Video/defaultJSON.js +9 -4
- package/es/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
- package/es/composite-comp/common/components/MonpayProductItem/index.js +25 -47
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
- package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
- package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
- package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
- package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +6 -28
- package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
- package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
- package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
- package/es/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
- package/es/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +6 -1
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +16 -5
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +9 -4
- package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +25 -47
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
- package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
- package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
- package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +6 -28
- package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
- package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
- package/lib/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
- package/lib/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
- package/package.json +1 -1
|
@@ -15,8 +15,6 @@ var _currencyUtil = require("../../../../utils/currencyUtil");
|
|
|
15
15
|
|
|
16
16
|
var _common = require("../../../../common");
|
|
17
17
|
|
|
18
|
-
var _ImageLabel = _interopRequireDefault(require("../ImageLabel"));
|
|
19
|
-
|
|
20
18
|
var _components = require("../../../../meta-comp/components");
|
|
21
19
|
|
|
22
20
|
var _locale = require("../../../../locale");
|
|
@@ -119,23 +117,22 @@ function (_super) {
|
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
ProductItem.prototype.render = function () {
|
|
122
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
data =
|
|
126
|
-
panelProps =
|
|
127
|
-
onItemClick =
|
|
128
|
-
showProName =
|
|
129
|
-
showProgress =
|
|
130
|
-
intelligentType =
|
|
131
|
-
fixHeight =
|
|
132
|
-
layout =
|
|
133
|
-
imgHeight =
|
|
134
|
-
imgWidth =
|
|
135
|
-
showDiscountTag =
|
|
136
|
-
isWill =
|
|
137
|
-
rest = __rest(
|
|
138
|
-
|
|
120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
121
|
+
|
|
122
|
+
var _j = this.props,
|
|
123
|
+
data = _j.data,
|
|
124
|
+
panelProps = _j.panelProps,
|
|
125
|
+
onItemClick = _j.onItemClick,
|
|
126
|
+
showProName = _j.showProName,
|
|
127
|
+
showProgress = _j.showProgress,
|
|
128
|
+
intelligentType = _j.intelligentType,
|
|
129
|
+
fixHeight = _j.fixHeight,
|
|
130
|
+
layout = _j.layout,
|
|
131
|
+
imgHeight = _j.imgHeight,
|
|
132
|
+
imgWidth = _j.imgWidth,
|
|
133
|
+
showDiscountTag = _j.showDiscountTag,
|
|
134
|
+
isWill = _j.isWill,
|
|
135
|
+
rest = __rest(_j, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag", "isWill"]);
|
|
139
136
|
|
|
140
137
|
var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
141
138
|
var oldPrice = null;
|
|
@@ -143,22 +140,12 @@ function (_super) {
|
|
|
143
140
|
if (data.specialPrice !== null) {
|
|
144
141
|
price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
|
|
145
142
|
oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
|
|
146
|
-
}
|
|
147
|
-
|
|
143
|
+
}
|
|
148
144
|
|
|
149
145
|
var salePercent = Number(data.salePercent) / 100 || 0;
|
|
150
146
|
var imgStyle = {};
|
|
151
147
|
if (imgWidth) imgStyle.width = imgWidth;
|
|
152
148
|
if (imgHeight) imgStyle.height = imgHeight;
|
|
153
|
-
var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
|
|
154
|
-
return f.position !== '6' && f.position !== '7';
|
|
155
|
-
})) || [];
|
|
156
|
-
var prodLabels = ((_b = data.labels) === null || _b === void 0 ? void 0 : _b.filter(function (f) {
|
|
157
|
-
return f.position === '6';
|
|
158
|
-
})) || [];
|
|
159
|
-
var priceLabels = ((_c = data.labels) === null || _c === void 0 ? void 0 : _c.filter(function (f) {
|
|
160
|
-
return f.position === '7';
|
|
161
|
-
})) || [];
|
|
162
149
|
var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
|
|
163
150
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
164
151
|
className: (0, _classnames["default"])('monpay-product-item-wrap', {
|
|
@@ -178,10 +165,7 @@ function (_super) {
|
|
|
178
165
|
lazy: true,
|
|
179
166
|
src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent),
|
|
180
167
|
style: imgStyle
|
|
181
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
182
|
-
labels: imgLabels,
|
|
183
|
-
small: true
|
|
184
|
-
}), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
}), (((_a = panelProps.discount) === null || _a === void 0 ? void 0 : _a.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
169
|
className: "discount-tag"
|
|
186
170
|
}, isWill ? (0, _locale.i18n)('COMING_SOON') : data.discountPercent + "% " + (0, _locale.i18n)('OFF'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
171
|
className: "content-wrap"
|
|
@@ -189,10 +173,7 @@ function (_super) {
|
|
|
189
173
|
className: "product-name-wrap"
|
|
190
174
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
175
|
className: "box"
|
|
192
|
-
},
|
|
193
|
-
labels: prodLabels,
|
|
194
|
-
small: true
|
|
195
|
-
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
176
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
196
177
|
data: __assign(__assign({}, panelProps.productName), {
|
|
197
178
|
text: data.offerName
|
|
198
179
|
}),
|
|
@@ -205,9 +186,6 @@ function (_super) {
|
|
|
205
186
|
text: price
|
|
206
187
|
}),
|
|
207
188
|
readonly: true
|
|
208
|
-
}), priceLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
|
|
209
|
-
labels: priceLabels,
|
|
210
|
-
small: true
|
|
211
189
|
})), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
212
190
|
className: "price-sold-wrap"
|
|
213
191
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -223,7 +201,7 @@ function (_super) {
|
|
|
223
201
|
}
|
|
224
202
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
203
|
className: "rate-sold-wrap"
|
|
226
|
-
}, ((
|
|
204
|
+
}, ((_b = panelProps.evaluationScore) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
205
|
className: "evaluation-score"
|
|
228
206
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
229
207
|
color: "#FF8650",
|
|
@@ -235,9 +213,9 @@ function (_super) {
|
|
|
235
213
|
text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
|
|
236
214
|
}),
|
|
237
215
|
readonly: true
|
|
238
|
-
})), ((
|
|
216
|
+
})), ((_c = panelProps.evaluationScore) === null || _c === void 0 ? void 0 : _c.open) && ((_d = panelProps.sold) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
239
217
|
className: "line"
|
|
240
|
-
}), ((
|
|
218
|
+
}), ((_e = panelProps.sold) === null || _e === void 0 ? void 0 : _e.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
219
|
className: "sold"
|
|
242
220
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
243
221
|
data: __assign(__assign({}, panelProps.sold), {
|
|
@@ -260,15 +238,15 @@ function (_super) {
|
|
|
260
238
|
}, renderDiscount(m).text));
|
|
261
239
|
})), showProgress && /*#__PURE__*/_react["default"].createElement("div", {
|
|
262
240
|
className: "progress-wrap"
|
|
263
|
-
}, ((
|
|
241
|
+
}, ((_f = panelProps.salesProgress) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
242
|
className: "progress-container"
|
|
265
243
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
266
244
|
className: "progress",
|
|
267
245
|
style: {
|
|
268
246
|
width: salePercent + "%",
|
|
269
|
-
backgroundColor: (
|
|
247
|
+
backgroundColor: (_g = panelProps.salesProgress) === null || _g === void 0 ? void 0 : _g.color
|
|
270
248
|
}
|
|
271
|
-
})), ((
|
|
249
|
+
})), ((_h = panelProps.stock) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
272
250
|
className: "text"
|
|
273
251
|
}, data.saleNum || 0, "/", data.stockNum || 0, " ", (0, _locale.i18n)('STOCK')))));
|
|
274
252
|
};
|
|
@@ -9,8 +9,13 @@ var _uuid = require("uuid");
|
|
|
9
9
|
|
|
10
10
|
var _base = require("../../../../assets/images/base64");
|
|
11
11
|
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
12
14
|
var getDefaultJSON = function getDefaultJSON() {
|
|
15
|
+
var _a;
|
|
16
|
+
|
|
13
17
|
var contentId = (0, _uuid.v4)();
|
|
18
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
14
19
|
return {
|
|
15
20
|
id: (0, _uuid.v4)(),
|
|
16
21
|
type: 'BARGAIN',
|
|
@@ -28,7 +33,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
28
33
|
text: 'Refer and Bargain',
|
|
29
34
|
content: {
|
|
30
35
|
sizeType: 'Customize font styles',
|
|
31
|
-
fontFamily:
|
|
36
|
+
fontFamily: defaultFontFamily,
|
|
32
37
|
fontWeight: 700,
|
|
33
38
|
fontSize: 14,
|
|
34
39
|
color: '#FFFFFF'
|
|
@@ -54,7 +59,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
54
59
|
},
|
|
55
60
|
buttonText: {
|
|
56
61
|
sizeType: 'Customize font styles',
|
|
57
|
-
fontFamily:
|
|
62
|
+
fontFamily: defaultFontFamily,
|
|
58
63
|
fontWeight: 600,
|
|
59
64
|
fontSize: 12,
|
|
60
65
|
fontStyle: 'normal',
|
|
@@ -102,7 +107,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
102
107
|
},
|
|
103
108
|
buttonText: {
|
|
104
109
|
sizeType: 'Customize font styles',
|
|
105
|
-
fontFamily:
|
|
110
|
+
fontFamily: defaultFontFamily,
|
|
106
111
|
fontWeight: 600,
|
|
107
112
|
fontSize: 8,
|
|
108
113
|
fontStyle: 'normal',
|
|
@@ -142,7 +147,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
142
147
|
text: '',
|
|
143
148
|
content: {
|
|
144
149
|
sizeType: 'Customize font styles',
|
|
145
|
-
fontFamily:
|
|
150
|
+
fontFamily: defaultFontFamily,
|
|
146
151
|
fontWeight: 500,
|
|
147
152
|
fontSize: 14,
|
|
148
153
|
color: '#2C2C2C'
|
|
@@ -166,7 +171,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
166
171
|
text: '',
|
|
167
172
|
content: {
|
|
168
173
|
sizeType: 'Customize font styles',
|
|
169
|
-
fontFamily:
|
|
174
|
+
fontFamily: defaultFontFamily,
|
|
170
175
|
fontWeight: 600,
|
|
171
176
|
fontSize: 14,
|
|
172
177
|
color: '#CE1126'
|
|
@@ -190,7 +195,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
190
195
|
text: '',
|
|
191
196
|
content: {
|
|
192
197
|
sizeType: 'Customize font styles',
|
|
193
|
-
fontFamily:
|
|
198
|
+
fontFamily: defaultFontFamily,
|
|
194
199
|
fontWeight: 500,
|
|
195
200
|
fontSize: 10,
|
|
196
201
|
color: '#929292'
|
|
@@ -7,8 +7,13 @@ exports.getDefaultJSON = exports.CommonFunctionsGroupSourceJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(text, url) {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
16
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
12
17
|
return {
|
|
13
18
|
id: groupId,
|
|
14
19
|
title: {
|
|
@@ -20,7 +25,7 @@ var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(tex
|
|
|
20
25
|
text: text || 'Chat With Us',
|
|
21
26
|
content: {
|
|
22
27
|
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily:
|
|
28
|
+
fontFamily: defaultFontFamily,
|
|
24
29
|
fontWeight: 600,
|
|
25
30
|
fontSize: 14,
|
|
26
31
|
color: '#2C2C2C',
|
|
@@ -9,8 +9,13 @@ var _uuid = require("uuid");
|
|
|
9
9
|
|
|
10
10
|
var _base = require("../../../../assets/images/base64");
|
|
11
11
|
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
12
14
|
var getDefaultJSON = function getDefaultJSON() {
|
|
15
|
+
var _a;
|
|
16
|
+
|
|
13
17
|
var contentId = (0, _uuid.v4)();
|
|
18
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
14
19
|
return {
|
|
15
20
|
id: (0, _uuid.v4)(),
|
|
16
21
|
type: 'FLASH_DEAL',
|
|
@@ -28,7 +33,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
28
33
|
text: 'Flash Deal',
|
|
29
34
|
content: {
|
|
30
35
|
sizeType: 'Customize font styles',
|
|
31
|
-
fontFamily:
|
|
36
|
+
fontFamily: defaultFontFamily,
|
|
32
37
|
fontWeight: 600,
|
|
33
38
|
fontSize: 14,
|
|
34
39
|
color: '#2C2C2C'
|
|
@@ -54,7 +59,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
54
59
|
},
|
|
55
60
|
buttonText: {
|
|
56
61
|
sizeType: 'Customize font styles',
|
|
57
|
-
fontFamily:
|
|
62
|
+
fontFamily: defaultFontFamily,
|
|
58
63
|
fontWeight: 600,
|
|
59
64
|
fontSize: 12,
|
|
60
65
|
fontStyle: 'normal',
|
|
@@ -106,7 +111,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
106
111
|
},
|
|
107
112
|
buttonText: {
|
|
108
113
|
sizeType: 'Customize font styles',
|
|
109
|
-
fontFamily:
|
|
114
|
+
fontFamily: defaultFontFamily,
|
|
110
115
|
fontWeight: 600,
|
|
111
116
|
fontSize: 8,
|
|
112
117
|
fontStyle: 'normal',
|
|
@@ -146,7 +151,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
146
151
|
text: 'Flash Deal',
|
|
147
152
|
content: {
|
|
148
153
|
sizeType: 'Customize font styles',
|
|
149
|
-
fontFamily:
|
|
154
|
+
fontFamily: defaultFontFamily,
|
|
150
155
|
fontWeight: 500,
|
|
151
156
|
fontSize: 14,
|
|
152
157
|
color: '#2C2C2C'
|
|
@@ -170,7 +175,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
170
175
|
text: 'Flash Deal',
|
|
171
176
|
content: {
|
|
172
177
|
sizeType: 'Customize font styles',
|
|
173
|
-
fontFamily:
|
|
178
|
+
fontFamily: defaultFontFamily,
|
|
174
179
|
fontWeight: 600,
|
|
175
180
|
fontSize: 14,
|
|
176
181
|
color: '#CE1126'
|
|
@@ -194,7 +199,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
194
199
|
text: 'Flash Deal',
|
|
195
200
|
content: {
|
|
196
201
|
sizeType: 'Customize font styles',
|
|
197
|
-
fontFamily:
|
|
202
|
+
fontFamily: defaultFontFamily,
|
|
198
203
|
fontWeight: 500,
|
|
199
204
|
fontSize: 10,
|
|
200
205
|
color: '#929292'
|
|
@@ -7,8 +7,13 @@ exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var getDefaultJSON = function getDefaultJSON() {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var contentId = (0, _uuid.v4)();
|
|
16
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
12
17
|
return {
|
|
13
18
|
id: (0, _uuid.v4)(),
|
|
14
19
|
type: 'GROUP_BUY',
|
|
@@ -21,7 +26,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
21
26
|
text: 'Group Buy',
|
|
22
27
|
content: {
|
|
23
28
|
sizeType: 'Customize font styles',
|
|
24
|
-
fontFamily:
|
|
29
|
+
fontFamily: defaultFontFamily,
|
|
25
30
|
fontWeight: 600,
|
|
26
31
|
fontSize: 16,
|
|
27
32
|
color: '#000'
|
|
@@ -47,7 +52,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
47
52
|
},
|
|
48
53
|
buttonText: {
|
|
49
54
|
sizeType: 'Customize font styles',
|
|
50
|
-
fontFamily:
|
|
55
|
+
fontFamily: defaultFontFamily,
|
|
51
56
|
fontWeight: 400,
|
|
52
57
|
fontSize: 13,
|
|
53
58
|
fontStyle: 'normal',
|
|
@@ -95,7 +100,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
95
100
|
},
|
|
96
101
|
buttonText: {
|
|
97
102
|
sizeType: 'Customize font styles',
|
|
98
|
-
fontFamily:
|
|
103
|
+
fontFamily: defaultFontFamily,
|
|
99
104
|
fontWeight: 700,
|
|
100
105
|
fontSize: 8,
|
|
101
106
|
fontStyle: 'normal',
|
|
@@ -129,7 +134,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
129
134
|
text: 'Group Buy',
|
|
130
135
|
content: {
|
|
131
136
|
sizeType: 'Customize font styles',
|
|
132
|
-
fontFamily:
|
|
137
|
+
fontFamily: defaultFontFamily,
|
|
133
138
|
fontWeight: 700,
|
|
134
139
|
fontSize: 13,
|
|
135
140
|
color: '#232F46'
|
|
@@ -153,7 +158,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
153
158
|
text: 'Group Buy',
|
|
154
159
|
content: {
|
|
155
160
|
sizeType: 'Customize font styles',
|
|
156
|
-
fontFamily:
|
|
161
|
+
fontFamily: defaultFontFamily,
|
|
157
162
|
fontWeight: 700,
|
|
158
163
|
fontSize: 13,
|
|
159
164
|
color: '#CE1126'
|
|
@@ -177,7 +182,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
177
182
|
text: 'Group Buy',
|
|
178
183
|
content: {
|
|
179
184
|
sizeType: 'Customize font styles',
|
|
180
|
-
fontFamily:
|
|
185
|
+
fontFamily: defaultFontFamily,
|
|
181
186
|
fontWeight: 500,
|
|
182
187
|
fontSize: 10,
|
|
183
188
|
color: '#8493AF'
|
|
@@ -7,8 +7,13 @@ exports.getDefaultJSON = exports.MobileNavGroupSourceJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
16
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
12
17
|
return {
|
|
13
18
|
id: groupId,
|
|
14
19
|
image: {
|
|
@@ -40,7 +45,7 @@ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
|
|
|
40
45
|
text: 'name',
|
|
41
46
|
content: {
|
|
42
47
|
sizeType: 'Customize font styles',
|
|
43
|
-
fontFamily:
|
|
48
|
+
fontFamily: defaultFontFamily,
|
|
44
49
|
fontWeight: 600,
|
|
45
50
|
fontSize: 12,
|
|
46
51
|
color: '#232F46',
|
|
@@ -7,8 +7,13 @@ exports.getDefaultJSON = exports.OrdersGroupSourceJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
16
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
12
17
|
return {
|
|
13
18
|
id: groupId,
|
|
14
19
|
title: {
|
|
@@ -20,7 +25,7 @@ var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
|
|
|
20
25
|
text: text || 'Name',
|
|
21
26
|
content: {
|
|
22
27
|
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily:
|
|
28
|
+
fontFamily: defaultFontFamily,
|
|
24
29
|
fontWeight: 400,
|
|
25
30
|
fontSize: 12,
|
|
26
31
|
color: '#2C2C2C',
|
|
@@ -9,8 +9,13 @@ var _uuid = require("uuid");
|
|
|
9
9
|
|
|
10
10
|
var _base = require("../../../../assets/images/base64");
|
|
11
11
|
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
|
+
|
|
12
14
|
var PcNavGroupSourceJSON = function PcNavGroupSourceJSON() {
|
|
15
|
+
var _a;
|
|
16
|
+
|
|
13
17
|
var groupId = (0, _uuid.v4)();
|
|
18
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
14
19
|
return {
|
|
15
20
|
id: groupId,
|
|
16
21
|
title: {
|
|
@@ -22,7 +27,7 @@ var PcNavGroupSourceJSON = function PcNavGroupSourceJSON() {
|
|
|
22
27
|
text: 'Navigation',
|
|
23
28
|
content: {
|
|
24
29
|
sizeType: 'Customize font styles',
|
|
25
|
-
fontFamily:
|
|
30
|
+
fontFamily: defaultFontFamily,
|
|
26
31
|
fontWeight: 400,
|
|
27
32
|
fontSize: 16,
|
|
28
33
|
pcFontSize: 16,
|
|
@@ -78,7 +83,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
78
83
|
iconUrl: _base.pcNavIcon,
|
|
79
84
|
content: {
|
|
80
85
|
sizeType: 'Customize font styles',
|
|
81
|
-
fontFamily:
|
|
86
|
+
fontFamily: defaultFontFamily,
|
|
82
87
|
fontWeight: 400,
|
|
83
88
|
fontSize: 16,
|
|
84
89
|
pcFontSize: 16,
|
|
@@ -91,7 +96,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
91
96
|
specialContent: [],
|
|
92
97
|
content: {
|
|
93
98
|
sizeType: 'Customize font styles',
|
|
94
|
-
fontFamily:
|
|
99
|
+
fontFamily: defaultFontFamily,
|
|
95
100
|
fontWeight: 400,
|
|
96
101
|
fontSize: 16,
|
|
97
102
|
pcFontSize: 16,
|
|
@@ -104,7 +109,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
104
109
|
specialContent: [],
|
|
105
110
|
content: {
|
|
106
111
|
sizeType: 'Customize font styles',
|
|
107
|
-
fontFamily:
|
|
112
|
+
fontFamily: defaultFontFamily,
|
|
108
113
|
fontWeight: 400,
|
|
109
114
|
fontSize: 16,
|
|
110
115
|
pcFontSize: 16,
|
|
@@ -117,7 +122,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
117
122
|
specialContent: [],
|
|
118
123
|
content: {
|
|
119
124
|
sizeType: 'Customize font styles',
|
|
120
|
-
fontFamily:
|
|
125
|
+
fontFamily: defaultFontFamily,
|
|
121
126
|
fontWeight: 400,
|
|
122
127
|
fontSize: 16,
|
|
123
128
|
pcFontSize: 16,
|
|
@@ -7,8 +7,13 @@ exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
16
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
12
17
|
return {
|
|
13
18
|
id: groupId,
|
|
14
19
|
title: {
|
|
@@ -20,7 +25,7 @@ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
|
20
25
|
text: text || 'Name',
|
|
21
26
|
content: {
|
|
22
27
|
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily:
|
|
28
|
+
fontFamily: defaultFontFamily,
|
|
24
29
|
fontWeight: 400,
|
|
25
30
|
fontSize: 12,
|
|
26
31
|
color: '#fff',
|
|
@@ -43,7 +48,7 @@ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
|
43
48
|
text: 0,
|
|
44
49
|
content: {
|
|
45
50
|
sizeType: 'Customize font styles',
|
|
46
|
-
fontFamily:
|
|
51
|
+
fontFamily: defaultFontFamily,
|
|
47
52
|
fontWeight: 600,
|
|
48
53
|
fontSize: 18,
|
|
49
54
|
color: '#fff',
|
|
@@ -7,10 +7,15 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
11
15
|
var groupId = (0, _uuid.v4)();
|
|
12
16
|
var imageId = (0, _uuid.v4)();
|
|
13
17
|
var groupNameId = (0, _uuid.v4)();
|
|
18
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
14
19
|
return {
|
|
15
20
|
id: groupId,
|
|
16
21
|
parentId: parentId,
|
|
@@ -43,7 +48,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
43
48
|
text: text,
|
|
44
49
|
content: {
|
|
45
50
|
sizeType: 'Customize font styles',
|
|
46
|
-
fontFamily:
|
|
51
|
+
fontFamily: defaultFontFamily,
|
|
47
52
|
fontWeight: 400,
|
|
48
53
|
fontSize: 14,
|
|
49
54
|
color: '#8493AF'
|
|
@@ -67,7 +72,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
67
72
|
},
|
|
68
73
|
buttonText: {
|
|
69
74
|
sizeType: 'Customize font styles',
|
|
70
|
-
fontFamily:
|
|
75
|
+
fontFamily: defaultFontFamily,
|
|
71
76
|
fontWeight: 400,
|
|
72
77
|
fontSize: 12,
|
|
73
78
|
fontStyle: 'normal',
|
|
@@ -134,7 +139,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
134
139
|
text: text,
|
|
135
140
|
content: {
|
|
136
141
|
sizeType: 'Customize font styles',
|
|
137
|
-
fontFamily:
|
|
142
|
+
fontFamily: defaultFontFamily,
|
|
138
143
|
fontWeight: 600,
|
|
139
144
|
fontSize: 14,
|
|
140
145
|
color: '#CE1126'
|
|
@@ -153,7 +158,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
|
|
|
153
158
|
exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
|
|
154
159
|
|
|
155
160
|
var getDefaultJSON = function getDefaultJSON() {
|
|
161
|
+
var _a;
|
|
162
|
+
|
|
156
163
|
var groupId = (0, _uuid.v4)();
|
|
164
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
157
165
|
return {
|
|
158
166
|
id: groupId,
|
|
159
167
|
type: 'RECOMMEND',
|
|
@@ -170,7 +178,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
170
178
|
},
|
|
171
179
|
buttonText: {
|
|
172
180
|
sizeType: 'Customize font styles',
|
|
173
|
-
fontFamily:
|
|
181
|
+
fontFamily: defaultFontFamily,
|
|
174
182
|
fontWeight: 600,
|
|
175
183
|
fontSize: 8,
|
|
176
184
|
fontStyle: 'normal',
|
|
@@ -209,7 +217,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
209
217
|
text: 'Flash Deal',
|
|
210
218
|
content: {
|
|
211
219
|
sizeType: 'Customize font styles',
|
|
212
|
-
fontFamily:
|
|
220
|
+
fontFamily: defaultFontFamily,
|
|
213
221
|
fontWeight: 700,
|
|
214
222
|
fontSize: 14,
|
|
215
223
|
color: '#232F46'
|
|
@@ -232,7 +240,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
232
240
|
text: 'Flash Deal',
|
|
233
241
|
content: {
|
|
234
242
|
sizeType: 'Customize font styles',
|
|
235
|
-
fontFamily:
|
|
243
|
+
fontFamily: defaultFontFamily,
|
|
236
244
|
fontWeight: 700,
|
|
237
245
|
fontSize: 14,
|
|
238
246
|
color: '#CE1126'
|
|
@@ -255,7 +263,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
255
263
|
text: 'Flash Deal',
|
|
256
264
|
content: {
|
|
257
265
|
sizeType: 'Customize font styles',
|
|
258
|
-
fontFamily:
|
|
266
|
+
fontFamily: defaultFontFamily,
|
|
259
267
|
fontWeight: 500,
|
|
260
268
|
fontSize: 10,
|
|
261
269
|
color: '#8493AF'
|
|
@@ -7,7 +7,12 @@ exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var getDefaultJSON = function getDefaultJSON() {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
15
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
11
16
|
return {
|
|
12
17
|
id: (0, _uuid.v4)(),
|
|
13
18
|
type: 'SEARCH',
|
|
@@ -50,7 +55,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
50
55
|
placeholder: 'Tshirt Woman',
|
|
51
56
|
content: {
|
|
52
57
|
sizeType: 'Customize font styles',
|
|
53
|
-
fontFamily:
|
|
58
|
+
fontFamily: defaultFontFamily,
|
|
54
59
|
fontWeight: 600,
|
|
55
60
|
fontSize: 12,
|
|
56
61
|
pcFontSize: 14,
|
|
@@ -7,7 +7,12 @@ exports.getDefaultJSON = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
10
|
+
var _constants = require("../../../../constants");
|
|
11
|
+
|
|
10
12
|
var getDefaultJSON = function getDefaultJSON() {
|
|
13
|
+
var _a;
|
|
14
|
+
|
|
15
|
+
var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
|
|
11
16
|
return {
|
|
12
17
|
id: (0, _uuid.v4)(),
|
|
13
18
|
type: 'SIGN_BOARD',
|
|
@@ -39,7 +44,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
39
44
|
text: 'Title',
|
|
40
45
|
content: {
|
|
41
46
|
sizeType: 'Customize font styles',
|
|
42
|
-
fontFamily:
|
|
47
|
+
fontFamily: defaultFontFamily,
|
|
43
48
|
fontWeight: 600,
|
|
44
49
|
fontSize: 16,
|
|
45
50
|
color: '#070707'
|
|
@@ -67,10 +72,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
67
72
|
marginBottom: window.magicDesign.compSpacing
|
|
68
73
|
}
|
|
69
74
|
},
|
|
70
|
-
// customize: {
|
|
71
|
-
// layout: 'left',
|
|
72
|
-
// align: 'left',
|
|
73
|
-
// },
|
|
74
75
|
background: {
|
|
75
76
|
opacity: 100,
|
|
76
77
|
color: '#fff',
|