@fonixtree/magic-design 2.0.122 → 2.0.125
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/less/menu.less +5 -2
- package/es/assets/less/modal.less +1 -1
- package/es/composite-comp/common/components/MonpayProductItem/index.less +1 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +1 -0
- package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +21 -0
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +8 -10
- package/es/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +4 -3
- package/es/core/Designer/QuickMenuBar/index.js +2 -3
- package/lib/assets/less/menu.less +5 -2
- package/lib/assets/less/modal.less +1 -1
- package/lib/composite-comp/common/components/MonpayProductItem/index.less +1 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +1 -0
- package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +21 -0
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +8 -10
- package/lib/composite-comp/monpay/components/MonpaySignBoard/mobile/index.js +4 -3
- package/lib/core/Designer/QuickMenuBar/index.js +2 -3
- package/package.json +1 -1
package/es/assets/less/menu.less
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
.cylon-dropdown {
|
|
2
|
-
.cylon-dropdown-menu{
|
|
2
|
+
.cylon-dropdown-menu {
|
|
3
3
|
border-radius: 10px;
|
|
4
|
-
width:
|
|
4
|
+
max-width: 300px;
|
|
5
|
+
min-width: 200px;
|
|
5
6
|
padding: 8px 0;
|
|
7
|
+
|
|
6
8
|
.cylon-dropdown-menu-item {
|
|
7
9
|
padding: 16px 24px;
|
|
8
10
|
font-family: 'Open Sans';
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
line-height: 24px;
|
|
13
15
|
color: #232F46;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.cylon-dropdown-menu-item-active {
|
|
16
19
|
background: #E9F0FF;
|
|
17
20
|
color: #2F54EB;
|
|
@@ -21,6 +21,8 @@ var _locale = require("../../../../../locale");
|
|
|
21
21
|
|
|
22
22
|
var _decorator = require("../../../../../decorator");
|
|
23
23
|
|
|
24
|
+
var _defaultImg = _interopRequireDefault(require("../../../../../common/GroupList/defaultImg.png"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -98,6 +100,22 @@ function (_super) {
|
|
|
98
100
|
|
|
99
101
|
ImageTextConfigGroup.prototype.render = function () {
|
|
100
102
|
var source = this.props.source;
|
|
103
|
+
console.log('source', source);
|
|
104
|
+
|
|
105
|
+
var _renderCard = function renderCard(src) {
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "card_wrap"
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
109
|
+
alt: "",
|
|
110
|
+
src: src.image.content.h5ImgSrc || _defaultImg["default"]
|
|
111
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
+
className: "name",
|
|
113
|
+
dangerouslySetInnerHTML: {
|
|
114
|
+
__html: src.title.html || src.title.text
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
118
|
+
|
|
101
119
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
120
|
className: "banner_group"
|
|
103
121
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -106,6 +124,9 @@ function (_super) {
|
|
|
106
124
|
className: "notice"
|
|
107
125
|
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
108
126
|
onClickItem: this.onClickItem,
|
|
127
|
+
renderCard: function renderCard(v) {
|
|
128
|
+
return _renderCard(v);
|
|
129
|
+
},
|
|
109
130
|
reRender: this.reRender,
|
|
110
131
|
source: source
|
|
111
132
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -21,8 +21,6 @@ var _components = require("../../../../../meta-comp/components");
|
|
|
21
21
|
|
|
22
22
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
23
23
|
|
|
24
|
-
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -270,9 +268,7 @@ function (_super) {
|
|
|
270
268
|
|
|
271
269
|
_this.state = {
|
|
272
270
|
interest: {},
|
|
273
|
-
list: (0, _coreUtil.isDesignMode)() ? defaultData :
|
|
274
|
-
return (0, _storeUtil.getMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
275
|
-
}, [])
|
|
271
|
+
list: (0, _coreUtil.isDesignMode)() ? defaultData : []
|
|
276
272
|
};
|
|
277
273
|
|
|
278
274
|
_this.getMacy = function () {
|
|
@@ -295,8 +291,11 @@ function (_super) {
|
|
|
295
291
|
_this.getData = function () {
|
|
296
292
|
return __awaiter(_this, void 0, void 0, function () {
|
|
297
293
|
var maxProdNum, res, list;
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
|
|
295
|
+
var _a;
|
|
296
|
+
|
|
297
|
+
return __generator(this, function (_b) {
|
|
298
|
+
switch (_b.label) {
|
|
300
299
|
case 0:
|
|
301
300
|
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
302
301
|
return [4
|
|
@@ -308,14 +307,13 @@ function (_super) {
|
|
|
308
307
|
}, 'POST')];
|
|
309
308
|
|
|
310
309
|
case 1:
|
|
311
|
-
res =
|
|
312
|
-
list = res.pageInfo.list;
|
|
310
|
+
res = _b.sent();
|
|
311
|
+
list = ((_a = res.pageInfo) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
313
312
|
this.setState({
|
|
314
313
|
interest: res.interest || {},
|
|
315
314
|
list: list
|
|
316
315
|
});
|
|
317
316
|
if (list.length > 0) this.getMacy();
|
|
318
|
-
(0, _storeUtil.setMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, list);
|
|
319
317
|
return [2
|
|
320
318
|
/*return*/
|
|
321
319
|
];
|
|
@@ -238,7 +238,7 @@ function (_super) {
|
|
|
238
238
|
storeDetailInfo = _a.sent();
|
|
239
239
|
this.setState({
|
|
240
240
|
storeInfo: storeDetailInfo,
|
|
241
|
-
isFollow: storeDetailInfo.
|
|
241
|
+
isFollow: storeDetailInfo.collected == 'Y'
|
|
242
242
|
});
|
|
243
243
|
_a.label = 2;
|
|
244
244
|
|
|
@@ -320,13 +320,14 @@ function (_super) {
|
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
-
_this.onShare = function () {
|
|
323
|
+
_this.onShare = function () {
|
|
324
|
+
if (window.magicDesign.socialShare) window.magicDesign.socialShare('store', window.magicDesign.storeId);
|
|
325
|
+
};
|
|
324
326
|
|
|
325
327
|
return _this;
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
SignBoardMobile.prototype.componentDidMount = function () {
|
|
329
|
-
window.magicDesign.storeId = 2;
|
|
330
331
|
this.getStoreInfo();
|
|
331
332
|
};
|
|
332
333
|
|
|
@@ -113,7 +113,7 @@ function (_super) {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
_this.isShowPublish = function () {
|
|
116
|
-
return (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
116
|
+
return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
117
117
|
}; // 审核失败和未审核状态展示 To Review 按钮
|
|
118
118
|
|
|
119
119
|
|
|
@@ -130,11 +130,10 @@ function (_super) {
|
|
|
130
130
|
_this.isShowSetTemplate = function () {
|
|
131
131
|
return _constants.pageStateMap.DRAFT === _this.props.pageState;
|
|
132
132
|
}; // 拒绝审核 和 草稿状态展示保存按钮
|
|
133
|
-
// isShowSave = () => [pageStateMap.REJECTED, pageStateMap.DRAFT].includes(this.props.pageState)
|
|
134
133
|
|
|
135
134
|
|
|
136
135
|
_this.isShowSave = function () {
|
|
137
|
-
return
|
|
136
|
+
return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState) || localStorage.getItem('DEV_MODE') === 'Y';
|
|
138
137
|
};
|
|
139
138
|
|
|
140
139
|
return _this;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
.cylon-dropdown {
|
|
2
|
-
.cylon-dropdown-menu{
|
|
2
|
+
.cylon-dropdown-menu {
|
|
3
3
|
border-radius: 10px;
|
|
4
|
-
width:
|
|
4
|
+
max-width: 300px;
|
|
5
|
+
min-width: 200px;
|
|
5
6
|
padding: 8px 0;
|
|
7
|
+
|
|
6
8
|
.cylon-dropdown-menu-item {
|
|
7
9
|
padding: 16px 24px;
|
|
8
10
|
font-family: 'Open Sans';
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
line-height: 24px;
|
|
13
15
|
color: #232F46;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.cylon-dropdown-menu-item-active {
|
|
16
19
|
background: #E9F0FF;
|
|
17
20
|
color: #2F54EB;
|
|
@@ -21,6 +21,8 @@ var _locale = require("../../../../../locale");
|
|
|
21
21
|
|
|
22
22
|
var _decorator = require("../../../../../decorator");
|
|
23
23
|
|
|
24
|
+
var _defaultImg = _interopRequireDefault(require("../../../../../common/GroupList/defaultImg.png"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -98,6 +100,22 @@ function (_super) {
|
|
|
98
100
|
|
|
99
101
|
ImageTextConfigGroup.prototype.render = function () {
|
|
100
102
|
var source = this.props.source;
|
|
103
|
+
console.log('source', source);
|
|
104
|
+
|
|
105
|
+
var _renderCard = function renderCard(src) {
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
+
className: "card_wrap"
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
109
|
+
alt: "",
|
|
110
|
+
src: src.image.content.h5ImgSrc || _defaultImg["default"]
|
|
111
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
+
className: "name",
|
|
113
|
+
dangerouslySetInnerHTML: {
|
|
114
|
+
__html: src.title.html || src.title.text
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
118
|
+
|
|
101
119
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
120
|
className: "banner_group"
|
|
103
121
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -106,6 +124,9 @@ function (_super) {
|
|
|
106
124
|
className: "notice"
|
|
107
125
|
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
108
126
|
onClickItem: this.onClickItem,
|
|
127
|
+
renderCard: function renderCard(v) {
|
|
128
|
+
return _renderCard(v);
|
|
129
|
+
},
|
|
109
130
|
reRender: this.reRender,
|
|
110
131
|
source: source
|
|
111
132
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -21,8 +21,6 @@ var _components = require("../../../../../meta-comp/components");
|
|
|
21
21
|
|
|
22
22
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
23
23
|
|
|
24
|
-
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -270,9 +268,7 @@ function (_super) {
|
|
|
270
268
|
|
|
271
269
|
_this.state = {
|
|
272
270
|
interest: {},
|
|
273
|
-
list: (0, _coreUtil.isDesignMode)() ? defaultData :
|
|
274
|
-
return (0, _storeUtil.getMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
|
|
275
|
-
}, [])
|
|
271
|
+
list: (0, _coreUtil.isDesignMode)() ? defaultData : []
|
|
276
272
|
};
|
|
277
273
|
|
|
278
274
|
_this.getMacy = function () {
|
|
@@ -295,8 +291,11 @@ function (_super) {
|
|
|
295
291
|
_this.getData = function () {
|
|
296
292
|
return __awaiter(_this, void 0, void 0, function () {
|
|
297
293
|
var maxProdNum, res, list;
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
|
|
295
|
+
var _a;
|
|
296
|
+
|
|
297
|
+
return __generator(this, function (_b) {
|
|
298
|
+
switch (_b.label) {
|
|
300
299
|
case 0:
|
|
301
300
|
maxProdNum = this.props.panelProps.content.maxProdNum;
|
|
302
301
|
return [4
|
|
@@ -308,14 +307,13 @@ function (_super) {
|
|
|
308
307
|
}, 'POST')];
|
|
309
308
|
|
|
310
309
|
case 1:
|
|
311
|
-
res =
|
|
312
|
-
list = res.pageInfo.list;
|
|
310
|
+
res = _b.sent();
|
|
311
|
+
list = ((_a = res.pageInfo) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
313
312
|
this.setState({
|
|
314
313
|
interest: res.interest || {},
|
|
315
314
|
list: list
|
|
316
315
|
});
|
|
317
316
|
if (list.length > 0) this.getMacy();
|
|
318
|
-
(0, _storeUtil.setMagicStore)("interestProducts_" + (window.magicDesign.pageId || '') + "_" + this.props.panelProps.id, list);
|
|
319
317
|
return [2
|
|
320
318
|
/*return*/
|
|
321
319
|
];
|
|
@@ -238,7 +238,7 @@ function (_super) {
|
|
|
238
238
|
storeDetailInfo = _a.sent();
|
|
239
239
|
this.setState({
|
|
240
240
|
storeInfo: storeDetailInfo,
|
|
241
|
-
isFollow: storeDetailInfo.
|
|
241
|
+
isFollow: storeDetailInfo.collected == 'Y'
|
|
242
242
|
});
|
|
243
243
|
_a.label = 2;
|
|
244
244
|
|
|
@@ -320,13 +320,14 @@ function (_super) {
|
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
-
_this.onShare = function () {
|
|
323
|
+
_this.onShare = function () {
|
|
324
|
+
if (window.magicDesign.socialShare) window.magicDesign.socialShare('store', window.magicDesign.storeId);
|
|
325
|
+
};
|
|
324
326
|
|
|
325
327
|
return _this;
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
SignBoardMobile.prototype.componentDidMount = function () {
|
|
329
|
-
window.magicDesign.storeId = 2;
|
|
330
331
|
this.getStoreInfo();
|
|
331
332
|
};
|
|
332
333
|
|
|
@@ -113,7 +113,7 @@ function (_super) {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
_this.isShowPublish = function () {
|
|
116
|
-
return (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
116
|
+
return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || (0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.DRAFT || !(0, _coreUtil.isAutoAudit)() && _this.props.pageState === _constants.pageStateMap.ACTIVE;
|
|
117
117
|
}; // 审核失败和未审核状态展示 To Review 按钮
|
|
118
118
|
|
|
119
119
|
|
|
@@ -130,11 +130,10 @@ function (_super) {
|
|
|
130
130
|
_this.isShowSetTemplate = function () {
|
|
131
131
|
return _constants.pageStateMap.DRAFT === _this.props.pageState;
|
|
132
132
|
}; // 拒绝审核 和 草稿状态展示保存按钮
|
|
133
|
-
// isShowSave = () => [pageStateMap.REJECTED, pageStateMap.DRAFT].includes(this.props.pageState)
|
|
134
133
|
|
|
135
134
|
|
|
136
135
|
_this.isShowSave = function () {
|
|
137
|
-
return
|
|
136
|
+
return window.magicDesign.templateType === _constants.tempTypeMap.TEMPLATE || [_constants.pageStateMap.REJECTED, _constants.pageStateMap.DRAFT].includes(_this.props.pageState) || localStorage.getItem('DEV_MODE') === 'Y';
|
|
138
137
|
};
|
|
139
138
|
|
|
140
139
|
return _this;
|