@fonixtree/magic-design 2.0.109 → 2.0.110
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/fonts/magic-box-iconfont.css +22 -10
- package/es/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/common/ImageModal/index.js +52 -50
- package/es/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/es/common/LinkModal/AffiliateStore/index.js +11 -23
- package/es/common/LinkModal/BundleCampaign/index.js +15 -27
- package/es/common/LinkModal/CatgTable/index.js +3 -11
- package/es/common/LinkModal/CouponTable/index.js +3 -11
- package/es/common/LinkModal/CustomTable/index.js +3 -11
- package/es/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/es/common/LinkModal/FunctionTable/index.js +4 -11
- package/es/common/LinkModal/MiniAppApi/index.js +4 -12
- package/es/common/LinkModal/MiniAppTable/index.js +3 -11
- package/es/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/es/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/es/common/LinkModal/ShareUrl/index.js +3 -11
- package/es/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/es/common/LinkModal/StoreTable/index.js +11 -23
- package/es/common/LinkModal/index.js +8 -19
- package/es/common/VideoUpload/index.js +1 -0
- package/es/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +8 -6
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/es/constants/index.js +21 -4
- package/es/core/Designer/QuickMenuBar/index.js +59 -10
- package/es/core/Designer/index.js +21 -3
- package/es/core/SelectUrl/index.js +0 -1
- package/es/index.js +0 -8
- package/es/utils/androidUtil.js +5 -2
- package/es/utils/commonUtil.js +2 -2
- package/es/utils/coreUtil.js +12 -2
- package/lib/assets/fonts/magic-box-iconfont.css +22 -10
- package/lib/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/common/ImageModal/index.js +52 -50
- package/lib/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/lib/common/LinkModal/AffiliateStore/index.js +11 -23
- package/lib/common/LinkModal/BundleCampaign/index.js +15 -27
- package/lib/common/LinkModal/CatgTable/index.js +3 -11
- package/lib/common/LinkModal/CouponTable/index.js +3 -11
- package/lib/common/LinkModal/CustomTable/index.js +3 -11
- package/lib/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/lib/common/LinkModal/FunctionTable/index.js +4 -11
- package/lib/common/LinkModal/MiniAppApi/index.js +4 -12
- package/lib/common/LinkModal/MiniAppTable/index.js +3 -11
- package/lib/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/lib/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/lib/common/LinkModal/ShareUrl/index.js +3 -11
- package/lib/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/lib/common/LinkModal/StoreTable/index.js +11 -23
- package/lib/common/LinkModal/index.js +8 -19
- package/lib/common/VideoUpload/index.js +1 -0
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +8 -6
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/lib/constants/index.js +21 -4
- package/lib/core/Designer/QuickMenuBar/index.js +59 -10
- package/lib/core/Designer/index.js +21 -3
- package/lib/core/SelectUrl/index.js +0 -1
- package/lib/index.js +0 -8
- package/lib/utils/androidUtil.js +5 -2
- package/lib/utils/commonUtil.js +2 -2
- package/lib/utils/coreUtil.js +12 -2
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
10
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
13
|
|
|
12
14
|
var _CouponTable = _interopRequireDefault(require("./CouponTable"));
|
|
@@ -210,20 +212,7 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
210
212
|
done: true
|
|
211
213
|
};
|
|
212
214
|
}
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
var antdLibrary;
|
|
217
|
-
|
|
218
|
-
try {
|
|
219
|
-
antdLibrary = require('antd4');
|
|
220
|
-
} catch (error) {
|
|
221
|
-
antdLibrary = require('antd');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
var Button = antdLibrary.Button,
|
|
225
|
-
Modal = antdLibrary.Modal,
|
|
226
|
-
Tabs = antdLibrary.Tabs;
|
|
215
|
+
};
|
|
227
216
|
|
|
228
217
|
var LinkModal = function LinkModal(props) {
|
|
229
218
|
var onConfirm = props.onConfirm,
|
|
@@ -313,7 +302,7 @@ var LinkModal = function LinkModal(props) {
|
|
|
313
302
|
setSelected(type);
|
|
314
303
|
};
|
|
315
304
|
|
|
316
|
-
return /*#__PURE__*/_react["default"].createElement(Modal, _extends({
|
|
305
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, _extends({
|
|
317
306
|
cancelText: (0, _locale.i18n)('CANCEL'),
|
|
318
307
|
draggable: false,
|
|
319
308
|
footer: null,
|
|
@@ -324,11 +313,11 @@ var LinkModal = function LinkModal(props) {
|
|
|
324
313
|
visible: visible,
|
|
325
314
|
width: "1000px",
|
|
326
315
|
wrapClassName: "magicLinkModal"
|
|
327
|
-
}, modalConfig), /*#__PURE__*/_react["default"].createElement(Tabs, {
|
|
316
|
+
}, modalConfig), /*#__PURE__*/_react["default"].createElement(_antd.Tabs, {
|
|
328
317
|
activeKey: selected,
|
|
329
318
|
onChange: onTabsChange
|
|
330
319
|
}, linkTypes.map(function (item) {
|
|
331
|
-
return /*#__PURE__*/_react["default"].createElement(Tabs.TabPane, {
|
|
320
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Tabs.TabPane, {
|
|
332
321
|
key: item.linkTypeCode,
|
|
333
322
|
tab: item.linkTypeName
|
|
334
323
|
}, item.linkTypeCode === 'StoreCategory' && /*#__PURE__*/_react["default"].createElement(_StoreCatgTable["default"], {
|
|
@@ -411,12 +400,12 @@ var LinkModal = function LinkModal(props) {
|
|
|
411
400
|
className: "footer"
|
|
412
401
|
}, selected === 'FilteredProduct' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
413
402
|
className: "total"
|
|
414
|
-
}, total, " Products In Total") : /*#__PURE__*/_react["default"].createElement("div", null), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
403
|
+
}, total, " Products In Total") : /*#__PURE__*/_react["default"].createElement("div", null), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
415
404
|
className: "btn-cancel",
|
|
416
405
|
onClick: function onClick() {
|
|
417
406
|
return onClose && onClose();
|
|
418
407
|
}
|
|
419
|
-
}, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
408
|
+
}, (0, _locale.i18n)('CANCEL')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
420
409
|
className: "btn-confirm",
|
|
421
410
|
onClick: onModalSave,
|
|
422
411
|
type: "primary"
|
|
@@ -132,6 +132,7 @@ function (_super) {
|
|
|
132
132
|
}, "Click or drag file to this area to upload"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
133
|
className: "subtitle"
|
|
134
134
|
}, "Support for a single or bulk upload. Strictly prohibit from uploading company data or other band files"))), visible && /*#__PURE__*/_react["default"].createElement(_ImageModal["default"], {
|
|
135
|
+
_fetch: this.props._fetch,
|
|
135
136
|
onCancel: function onCancel() {
|
|
136
137
|
_this.setState({
|
|
137
138
|
visible: false
|
|
@@ -236,11 +236,13 @@ function (_super) {
|
|
|
236
236
|
_this.onItemClick = function (v) {
|
|
237
237
|
var _a;
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
if ((0, _commonUtil.checkLogin)(true)) {
|
|
240
|
+
var routeUrl = (_a = orderData[v]) === null || _a === void 0 ? void 0 : _a.route;
|
|
241
|
+
var selfUrl = (0, _commonUtil.ensure)(function () {
|
|
242
|
+
return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
|
|
243
|
+
}, '');
|
|
244
|
+
(0, _commonUtil.navigateTo)(routeUrl || selfUrl);
|
|
245
|
+
}
|
|
244
246
|
};
|
|
245
247
|
|
|
246
248
|
_this.getInit = function () {
|
|
@@ -308,7 +310,7 @@ function (_super) {
|
|
|
308
310
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
309
311
|
className: "text",
|
|
310
312
|
onClick: function onClick() {
|
|
311
|
-
|
|
313
|
+
if ((0, _commonUtil.checkLogin)(true)) (0, _commonUtil.navigateTo)('/main/order/0');
|
|
312
314
|
}
|
|
313
315
|
}, (0, _locale.i18n)('VIEW_ALL_ORDERS')), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
314
316
|
color: "#C7C7C7",
|
|
@@ -317,7 +317,7 @@ function (_super) {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
_this.goLoginPage = function () {
|
|
320
|
-
if ((0, _androidUtil.browserVersion)().
|
|
320
|
+
if ((0, _androidUtil.browserVersion)().isDitoApp) {
|
|
321
321
|
(0, _androidUtil.goToLoginApp)();
|
|
322
322
|
} else {
|
|
323
323
|
(0, _commonUtil.goLogin)();
|
|
@@ -462,11 +462,13 @@ function (_super) {
|
|
|
462
462
|
_this.onItemClick = function (v) {
|
|
463
463
|
var _a;
|
|
464
464
|
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
465
|
+
if ((0, _commonUtil.checkLogin)(true)) {
|
|
466
|
+
var routeUrl = (_a = pInfoData[v]) === null || _a === void 0 ? void 0 : _a.route;
|
|
467
|
+
var selfUrl = (0, _commonUtil.ensure)(function () {
|
|
468
|
+
return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
|
|
469
|
+
}, '');
|
|
470
|
+
(0, _commonUtil.navigateTo)(routeUrl || selfUrl);
|
|
471
|
+
}
|
|
470
472
|
};
|
|
471
473
|
|
|
472
474
|
return _this;
|
|
@@ -269,7 +269,7 @@ function (_super) {
|
|
|
269
269
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
270
270
|
|
|
271
271
|
_this.state = {
|
|
272
|
-
|
|
272
|
+
interest: {},
|
|
273
273
|
list: (0, _coreUtil.isDesignMode)() ? defaultData : (0, _commonUtil.ensure)(function () {
|
|
274
274
|
return (0, _storeUtil.getMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
275
275
|
}, [])
|
|
@@ -311,7 +311,7 @@ function (_super) {
|
|
|
311
311
|
res = _a.sent();
|
|
312
312
|
list = res.pageInfo.list;
|
|
313
313
|
this.setState({
|
|
314
|
-
|
|
314
|
+
interest: res.interest || {},
|
|
315
315
|
list: list
|
|
316
316
|
});
|
|
317
317
|
if (list.length > 0) this.getMacy();
|
|
@@ -333,7 +333,9 @@ function (_super) {
|
|
|
333
333
|
} else {
|
|
334
334
|
if (this.state.list.length > 0) this.getMacy();
|
|
335
335
|
this.setState({
|
|
336
|
-
|
|
336
|
+
interest: {
|
|
337
|
+
interestName: 'Interest Name'
|
|
338
|
+
}
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
341
|
};
|
|
@@ -341,7 +343,7 @@ function (_super) {
|
|
|
341
343
|
InterestProductsMobile.prototype.render = function () {
|
|
342
344
|
var panelProps = this.props.panelProps;
|
|
343
345
|
var _a = this.state,
|
|
344
|
-
|
|
346
|
+
interest = _a.interest,
|
|
345
347
|
list = _a.list;
|
|
346
348
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
347
349
|
className: "monpay-interest-products-mobile"
|
|
@@ -350,10 +352,13 @@ function (_super) {
|
|
|
350
352
|
}, panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
351
353
|
className: "text",
|
|
352
354
|
data: __assign(__assign({}, panelProps.title.headline), {
|
|
353
|
-
text: interestName
|
|
355
|
+
text: interest.interestName
|
|
354
356
|
})
|
|
355
357
|
}), panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement("span", {
|
|
356
|
-
className: "btn"
|
|
358
|
+
className: "btn",
|
|
359
|
+
onClick: function onClick() {
|
|
360
|
+
return (0, _coreUtil.clickUrl)("/product/recommend/" + (interest.interestId || ''));
|
|
361
|
+
}
|
|
357
362
|
}, "See All")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
358
363
|
className: "interest-products-list macyContainer_" + panelProps.id
|
|
359
364
|
}, list.map(function (item) {
|
|
@@ -412,7 +412,7 @@ function (_super) {
|
|
|
412
412
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
413
413
|
className: "right",
|
|
414
414
|
onClick: function onClick() {
|
|
415
|
-
return (0, _coreUtil.clickUrl)('/
|
|
415
|
+
return (0, _coreUtil.clickUrl)('/flash-sale');
|
|
416
416
|
}
|
|
417
417
|
}, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
418
418
|
className: "btn",
|
|
@@ -421,7 +421,10 @@ function (_super) {
|
|
|
421
421
|
className: "flash-deal-time"
|
|
422
422
|
}, times.map(function (item) {
|
|
423
423
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
424
|
-
className: "item"
|
|
424
|
+
className: "item",
|
|
425
|
+
onClick: function onClick() {
|
|
426
|
+
return (0, _coreUtil.clickUrl)("/flash-detail/" + item.campaignId);
|
|
427
|
+
}
|
|
425
428
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
426
429
|
className: "time"
|
|
427
430
|
}, (0, _dateUtil.formatDayMonthTime)(item.effDate)), /*#__PURE__*/_react["default"].createElement("div", {
|
package/es/constants/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
|
|
6
|
+
exports.walletType = exports.urlTypeMap = exports.urlType = exports.tempTypeMap = exports.respCodeMap = exports.quickMenuCode = exports.personalInfoType = exports.partyTypeMap = exports.pageStateMap = exports.orderStatusType = exports.metaType = exports.metaInst = exports.metaInsType = exports.magicMode = exports.eventType = exports.deviceTypeWidthMap = exports.deviceTypeMap = exports.compInfoMap = exports.baseUrlMap = exports.STORE_KEY = exports.STORAGE_KEY = exports.ORDER_TYPE = exports.CREDIT_STATE = void 0;
|
|
7
7
|
var STORAGE_KEY = {
|
|
8
8
|
LOCALE: 'magicLocale',
|
|
9
9
|
MAGIC_RENDER_HTML: 'MAGIC_RENDER_HTML',
|
|
@@ -118,7 +118,10 @@ var quickMenuCode = {
|
|
|
118
118
|
MODE_PC: 'MODE_PC',
|
|
119
119
|
MODE_PHONE: 'MODE_PHONE',
|
|
120
120
|
PUSH: 'PUSH',
|
|
121
|
-
SET_AS_TEMPLATE: 'SET_AS_TEMPLATE'
|
|
121
|
+
SET_AS_TEMPLATE: 'SET_AS_TEMPLATE',
|
|
122
|
+
REVIEW_RECORD: 'REVIEW_RECORD',
|
|
123
|
+
TO_REVIEW: 'TO_REVIEW',
|
|
124
|
+
CANCEL_REVIEWL: 'CANCEL_REVIEW'
|
|
122
125
|
};
|
|
123
126
|
exports.quickMenuCode = quickMenuCode;
|
|
124
127
|
var compInfoMap = {
|
|
@@ -314,20 +317,34 @@ var eventType = {
|
|
|
314
317
|
UPDATE_FIRST_CONFIG: 'update-first-config'
|
|
315
318
|
};
|
|
316
319
|
exports.eventType = eventType;
|
|
317
|
-
var
|
|
320
|
+
var baseUrlMap = {
|
|
318
321
|
'operation/v1': 'P',
|
|
319
322
|
'trade/v1': 'S'
|
|
320
323
|
};
|
|
324
|
+
exports.baseUrlMap = baseUrlMap;
|
|
325
|
+
var partyTypeMap = {
|
|
326
|
+
PLATFORM: 'P',
|
|
327
|
+
SELLER: 'S'
|
|
328
|
+
};
|
|
321
329
|
/** 模版类型 */
|
|
322
330
|
|
|
323
331
|
exports.partyTypeMap = partyTypeMap;
|
|
324
332
|
var tempTypeMap = {
|
|
325
333
|
PAGE: 'Page',
|
|
326
334
|
TEMPLATE: 'TemplateLibrary'
|
|
335
|
+
}; // 页面审核状态
|
|
336
|
+
|
|
337
|
+
exports.tempTypeMap = tempTypeMap;
|
|
338
|
+
var pageStateMap = {
|
|
339
|
+
PUBLISHED: 'Using',
|
|
340
|
+
ACTIVE: 'Active',
|
|
341
|
+
REJECTED: 'Rejective',
|
|
342
|
+
PENDING: 'Pending',
|
|
343
|
+
DRAFT: 'Idle'
|
|
327
344
|
};
|
|
328
345
|
/** 持久化缓存 KEY */
|
|
329
346
|
|
|
330
|
-
exports.
|
|
347
|
+
exports.pageStateMap = pageStateMap;
|
|
331
348
|
var STORE_KEY = {
|
|
332
349
|
// 是否从sf app跳转
|
|
333
350
|
IS_FROM_SF: 'isFromSf',
|
|
@@ -21,6 +21,8 @@ var _Iconfont = _interopRequireDefault(require("../../../common/Iconfont"));
|
|
|
21
21
|
|
|
22
22
|
var _constants = require("../../../constants");
|
|
23
23
|
|
|
24
|
+
var _coreUtil = require("../../../utils/coreUtil");
|
|
25
|
+
|
|
24
26
|
var _locale = require("../../../locale");
|
|
25
27
|
|
|
26
28
|
require("./index.less");
|
|
@@ -103,6 +105,34 @@ function (_super) {
|
|
|
103
105
|
_this.onBtnClick(e);
|
|
104
106
|
|
|
105
107
|
e.stopPropagation();
|
|
108
|
+
}; // 未开启自动审核,Draft 和 Rejected 状态下展示审核记录按钮
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
_this.isShowReviewRecord = function () {
|
|
112
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
_this.isShowPublish = function () {
|
|
116
|
+
return (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
117
|
+
}; // 审核失败和未审核状态展示 To Review 按钮
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
_this.isShowToReview = function () {
|
|
121
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
122
|
+
}; // 提交审核状态展示 Cancel 按钮
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
_this.isShowCancelReview = function () {
|
|
126
|
+
return _this.props.pageState === _constants.pageStateMap.PENDING;
|
|
127
|
+
}; // 草稿状态展示设置模版按钮
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
_this.isShowSetTemplate = function () {
|
|
131
|
+
return _constants.pageStateMap.DRAFT === _this.props.pageState;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
_this.isShowSave = function () {
|
|
135
|
+
return !(0, _coreUtil.isAutoAudit)() && [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState);
|
|
106
136
|
};
|
|
107
137
|
|
|
108
138
|
return _this;
|
|
@@ -183,28 +213,39 @@ function (_super) {
|
|
|
183
213
|
type: "light"
|
|
184
214
|
}, (0, _locale.i18n)('SAVE'))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
215
|
className: "menu_right"
|
|
186
|
-
},
|
|
187
|
-
"data-code": _constants.quickMenuCode.
|
|
216
|
+
}, this.isShowReviewRecord() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
217
|
+
"data-code": _constants.quickMenuCode.REVIEW_RECORD,
|
|
218
|
+
icon: "icon-clock",
|
|
188
219
|
onClick: this.onBtnClick,
|
|
189
|
-
|
|
190
|
-
|
|
220
|
+
title: "Review Record",
|
|
221
|
+
type: "icon"
|
|
222
|
+
}), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
191
223
|
"data-code": _constants.quickMenuCode.PREVIEW,
|
|
192
|
-
|
|
193
|
-
|
|
224
|
+
icon: "icon-eye1",
|
|
225
|
+
onClick: this.onBtnClick,
|
|
226
|
+
title: "Preview",
|
|
227
|
+
type: "icon"
|
|
228
|
+
}), this.isShowSave() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
194
229
|
"data-code": _constants.quickMenuCode.SAVE,
|
|
195
230
|
disabled: window.magicDesign.readOnly,
|
|
231
|
+
icon: "icon-save",
|
|
196
232
|
onClick: this.onBtnClick,
|
|
197
233
|
tip: "The page is in use. Please copy or create a new page",
|
|
234
|
+
title: "Save",
|
|
235
|
+
type: "icon"
|
|
236
|
+
}), this.isShowSetTemplate() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
237
|
+
"data-code": _constants.quickMenuCode.SET_AS_TEMPLATE,
|
|
238
|
+
onClick: this.onBtnClick,
|
|
198
239
|
type: "light"
|
|
199
|
-
}, (0, _locale.i18n)('
|
|
240
|
+
}, (0, _locale.i18n)('SET_AS_TEMPLATE')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
200
241
|
className: "publish_wrap"
|
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
242
|
+
}, this.isShowPublish() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
202
243
|
"data-code": _constants.quickMenuCode.PUBLISH,
|
|
203
244
|
disabled: window.magicDesign.readOnly,
|
|
204
245
|
onClick: this.onBtnClick,
|
|
205
246
|
tip: "The page is in use. Please copy or create a new page",
|
|
206
247
|
type: "primary"
|
|
207
|
-
}, (0, _locale.i18n)('PUBLISH_NOW'), window.magicDesign.templateType ===
|
|
248
|
+
}, (0, _locale.i18n)('PUBLISH_NOW'), window.magicDesign.templateType === _constants.tempTypeMap.PAGE && /*#__PURE__*/_react["default"].createElement(_antd.Dropdown, {
|
|
208
249
|
getPopupContainer: function getPopupContainer() {
|
|
209
250
|
return document.querySelector('.publish_wrap');
|
|
210
251
|
},
|
|
@@ -226,7 +267,15 @@ function (_super) {
|
|
|
226
267
|
padding: '8px 3px 8px 6px'
|
|
227
268
|
},
|
|
228
269
|
type: "icon-outlined-down"
|
|
229
|
-
}))))
|
|
270
|
+
}))), this.isShowToReview() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
271
|
+
"data-code": _constants.quickMenuCode.TO_REVIEW,
|
|
272
|
+
onClick: this.onBtnClick,
|
|
273
|
+
type: "primary"
|
|
274
|
+
}, "To Review"), this.isShowCancelReview() && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
275
|
+
"data-code": _constants.quickMenuCode.CANCEL_REVIEW,
|
|
276
|
+
onClick: this.onBtnClick,
|
|
277
|
+
type: "primary"
|
|
278
|
+
}, "Cancel"))));
|
|
230
279
|
};
|
|
231
280
|
|
|
232
281
|
return QuickMenuBar;
|
|
@@ -262,12 +262,14 @@ window.magicDesign = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
var setDesignConfig = function setDesignConfig(data) {
|
|
265
|
-
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign),
|
|
265
|
+
window.magicDesign = __assign(__assign(__assign(__assign({}, window.magicDesign), {
|
|
266
|
+
autoAudit: true
|
|
267
|
+
}), data), {
|
|
266
268
|
designMode: true,
|
|
267
269
|
compWidth: Number(data.compWidth),
|
|
268
270
|
compSpacing: Number(data.compSpacing),
|
|
269
271
|
MBaseUrl: data.MBaseUrl || 'operation/v1',
|
|
270
|
-
partyType: _constants.
|
|
272
|
+
partyType: _constants.baseUrlMap[data.MBaseUrl] || 'P'
|
|
271
273
|
});
|
|
272
274
|
};
|
|
273
275
|
|
|
@@ -469,7 +471,10 @@ function (_super) {
|
|
|
469
471
|
onSave = _a.onSave,
|
|
470
472
|
onPreviews = _a.onPreviews,
|
|
471
473
|
onPush = _a.onPush,
|
|
472
|
-
onSetAsTemp = _a.onSetAsTemp
|
|
474
|
+
onSetAsTemp = _a.onSetAsTemp,
|
|
475
|
+
onToReview = _a.onToReview,
|
|
476
|
+
onCancelReview = _a.onCancelReview,
|
|
477
|
+
onReviewRecord = _a.onReviewRecord;
|
|
473
478
|
var _b = _this.state,
|
|
474
479
|
device = _b.device,
|
|
475
480
|
MPageData = _b.MPageData;
|
|
@@ -546,6 +551,18 @@ function (_super) {
|
|
|
546
551
|
_this.onSwitchDevice(_constants.deviceTypeMap.PHONE);
|
|
547
552
|
|
|
548
553
|
break;
|
|
554
|
+
|
|
555
|
+
case _constants.quickMenuCode.TO_REVIEW:
|
|
556
|
+
onToReview(handleParams);
|
|
557
|
+
break;
|
|
558
|
+
|
|
559
|
+
case _constants.quickMenuCode.CANCEL_REVIEW:
|
|
560
|
+
onCancelReview();
|
|
561
|
+
break;
|
|
562
|
+
|
|
563
|
+
case _constants.quickMenuCode.REVIEW_RECORD:
|
|
564
|
+
onReviewRecord();
|
|
565
|
+
break;
|
|
549
566
|
}
|
|
550
567
|
};
|
|
551
568
|
|
|
@@ -601,6 +618,7 @@ function (_super) {
|
|
|
601
618
|
|
|
602
619
|
_this.renderHeader = function () {
|
|
603
620
|
return /*#__PURE__*/_react["default"].createElement(_QuickMenuBar["default"], {
|
|
621
|
+
auditState: _this.props.auditState,
|
|
604
622
|
device: _this.state.device,
|
|
605
623
|
language: _this.props.language,
|
|
606
624
|
onBtnClick: _this.onQuickMenuClick,
|
|
@@ -14,7 +14,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
|
|
16
16
|
var SelectUrl = function SelectUrl(props) {
|
|
17
|
-
console.log(props, 'props');
|
|
18
17
|
var fishFetch = props.fishFetch,
|
|
19
18
|
config = props.config,
|
|
20
19
|
modalConfig = props.modalConfig;
|
package/es/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "ConfigProvider", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _antd.ConfigProvider;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "Designer", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -36,8 +30,6 @@ Object.defineProperty(exports, "clickUrl", {
|
|
|
36
30
|
|
|
37
31
|
require("./assets/fonts/magic-box-iconfont.css");
|
|
38
32
|
|
|
39
|
-
var _antd = require("antd4");
|
|
40
|
-
|
|
41
33
|
var _coreUtil = require("./utils/coreUtil");
|
|
42
34
|
|
|
43
35
|
require("./assets/less/index.less");
|
package/es/utils/androidUtil.js
CHANGED
|
@@ -23,6 +23,9 @@ var browserVersion = function browserVersion() {
|
|
|
23
23
|
qq: u.match(/\sQQ/i) == ' qq',
|
|
24
24
|
isApp: u.indexOf('app/CYLON-APP') > -1,
|
|
25
25
|
isNuriApp: u.indexOf('app/NURI-APP') > -1,
|
|
26
|
+
isDitoApp: u.indexOf('mydito') > -1,
|
|
27
|
+
ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
|
|
28
|
+
ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
|
26
29
|
isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
|
|
27
30
|
};
|
|
28
31
|
};
|
|
@@ -136,9 +139,9 @@ var sendToApp = function sendToApp(params) {
|
|
|
136
139
|
exports.sendToApp = sendToApp;
|
|
137
140
|
|
|
138
141
|
var goToLoginApp = function goToLoginApp() {
|
|
139
|
-
if (browserVersion().
|
|
142
|
+
if (browserVersion().ditoAndroidApp) {
|
|
140
143
|
window.dito.goToLogin();
|
|
141
|
-
} else if (browserVersion().
|
|
144
|
+
} else if (browserVersion().ditoIosApp) {
|
|
142
145
|
window.dito.goToLogin();
|
|
143
146
|
}
|
|
144
147
|
};
|
package/es/utils/commonUtil.js
CHANGED
|
@@ -372,8 +372,8 @@ var checkLogin = function checkLogin(isLead, redirectUrl, replaceFlag) {
|
|
|
372
372
|
|
|
373
373
|
if (!isLogin()) {
|
|
374
374
|
if (isLead) {
|
|
375
|
-
if ((0, _androidUtil.browserVersion)().
|
|
376
|
-
goToLoginApp();
|
|
375
|
+
if ((0, _androidUtil.browserVersion)().isDitoApp) {
|
|
376
|
+
(0, _androidUtil.goToLoginApp)();
|
|
377
377
|
} else {
|
|
378
378
|
var _a = window.location,
|
|
379
379
|
pathname = _a.pathname,
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.isActiveFloor = exports.getVideoCover = exports.copyNode = exports.clickUrl = void 0;
|
|
6
|
+
exports.setMagicDesign = exports.renderPreview = exports.isPc = exports.isDesignMode = exports.isAutoAudit = exports.isActiveFloor = exports.getVideoCover = exports.copyNode = exports.clickUrl = void 0;
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
@@ -444,5 +444,15 @@ var copyNode = function copyNode(value, parentId) {
|
|
|
444
444
|
});
|
|
445
445
|
return newNode;
|
|
446
446
|
};
|
|
447
|
+
/**
|
|
448
|
+
* 是否开启自动审核
|
|
449
|
+
*/
|
|
447
450
|
|
|
448
|
-
|
|
451
|
+
|
|
452
|
+
exports.copyNode = copyNode;
|
|
453
|
+
|
|
454
|
+
var isAutoAudit = function isAutoAudit() {
|
|
455
|
+
return window.systemParams.autoAudit !== 'false' || window.partyType === _constants.partyTypeMap.PLATFORM;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
exports.isAutoAudit = isAutoAudit;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: "magic-box-iconfont";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
url('magic-box-iconfont.ttf?t=1716443961517') format('truetype');
|
|
2
|
+
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1716881585254') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1716881585254') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1716881585254') format('truetype');
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.magic-box-iconfont {
|
|
@@ -14,6 +13,22 @@
|
|
|
14
13
|
-moz-osx-font-smoothing: grayscale;
|
|
15
14
|
}
|
|
16
15
|
|
|
16
|
+
.magic-box-icon-save:before {
|
|
17
|
+
content: "\e646";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.magic-box-icon-eye1:before {
|
|
21
|
+
content: "\e647";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.magic-box-icon-clock:before {
|
|
25
|
+
content: "\e648";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.magic-box-icon-select2:before {
|
|
29
|
+
content: "\e67a";
|
|
30
|
+
}
|
|
31
|
+
|
|
17
32
|
.magic-box-icon-list-sort:before {
|
|
18
33
|
content: "\e645";
|
|
19
34
|
}
|
|
@@ -126,10 +141,6 @@
|
|
|
126
141
|
content: "\e671";
|
|
127
142
|
}
|
|
128
143
|
|
|
129
|
-
.magic-box-icon-select2:before {
|
|
130
|
-
content: "\e67a";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
144
|
.magic-box-icon-b-play-02:before {
|
|
134
145
|
content: "\e672";
|
|
135
146
|
}
|
|
@@ -572,4 +583,5 @@
|
|
|
572
583
|
|
|
573
584
|
.magic-box-icon-image:before {
|
|
574
585
|
content: "\e608";
|
|
575
|
-
}
|
|
586
|
+
}
|
|
587
|
+
|