@fonixtree/magic-design 1.0.125 → 1.0.128

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.
Files changed (41) hide show
  1. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +55 -1
  2. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
  3. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +86 -0
  4. package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  5. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
  6. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  7. package/es/constants/component-types.js +3 -9
  8. package/es/constants/index.js +0 -4
  9. package/es/core/Designer/ConfigPanel/index.js +18 -1
  10. package/es/decorator/compositeDecorator.js +1 -1
  11. package/es/decorator/metaDecorator.js +1 -2
  12. package/es/mobx/Store.js +12 -0
  13. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +55 -1
  14. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +137 -7
  15. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +86 -0
  16. package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
  17. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
  18. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
  19. package/lib/constants/component-types.js +3 -9
  20. package/lib/constants/index.js +0 -4
  21. package/lib/core/Designer/ConfigPanel/index.js +18 -1
  22. package/lib/decorator/compositeDecorator.js +1 -1
  23. package/lib/decorator/metaDecorator.js +1 -2
  24. package/lib/mobx/Store.js +12 -0
  25. package/package.json +1 -1
  26. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  27. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  28. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  29. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  30. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  31. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  32. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  33. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  34. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  35. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
  36. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  37. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  38. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  39. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  40. /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
  41. /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
@@ -66,6 +66,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
66
66
  return;
67
67
  }
68
68
 
69
+ console.log('....', selectedNode, _mobx.store.clickedGroup);
69
70
  var panelProps = selectedNode.groupSource.find(function (src) {
70
71
  return src.id === clickedGroup;
71
72
  });
@@ -73,6 +74,15 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
73
74
  return src.id === clickedGroup;
74
75
  });
75
76
 
77
+ if (!panelProps) {
78
+ panelProps = selectedNode.groupSource2.find(function (src) {
79
+ return src.id === clickedGroup;
80
+ });
81
+ panelIndex = selectedNode.groupSource2.findIndex(function (src) {
82
+ return src.id === clickedGroup;
83
+ });
84
+ }
85
+
76
86
  if (!panelProps) {
77
87
  return;
78
88
  }
@@ -133,7 +143,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
133
143
  break;
134
144
 
135
145
  case 'PERSONAL_INFOMATION':
136
- case 'ORDERS':
137
146
  groupName = panelProps.sourceType;
138
147
  break;
139
148
  }
@@ -291,6 +300,14 @@ function (_super) {
291
300
  });
292
301
  }, null);
293
302
 
303
+ if (!panelProps) {
304
+ panelProps = (0, _commonUtil.ensure)(function () {
305
+ return selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2.find(function (src) {
306
+ return src.id === _this.state.clickedGroup;
307
+ });
308
+ }, null);
309
+ }
310
+
294
311
  if (panelProps) {
295
312
  var instance = Clazz ? /*#__PURE__*/_react["default"].createElement(Clazz, {
296
313
  panelProps: panelProps,
@@ -144,7 +144,7 @@ function compositeDecorator(WrappedComponent) {
144
144
  var zIndex = '0';
145
145
  var position = 'relative';
146
146
 
147
- if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'ORDERS') {
147
+ if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
148
148
  zIndex = '1';
149
149
  } // 解决pc导航hover上去,类目被下面组件遮罩的问题
150
150
 
@@ -220,8 +220,7 @@ function metaDecorator(WrappedComponent) {
220
220
  className = _a.className,
221
221
  rest = __rest(_a, ["className"]);
222
222
 
223
- var hoverStyle = this.getInteractStyle(); // console.log(rest);
224
-
223
+ var hoverStyle = this.getInteractStyle();
225
224
  return /*#__PURE__*/_react["default"].createElement("div", {
226
225
  className: className,
227
226
  style: this.getStyle()
package/lib/mobx/Store.js CHANGED
@@ -81,6 +81,18 @@ function () {
81
81
  });
82
82
  return !!group;
83
83
  });
84
+
85
+ if (!componentFloor) {
86
+ componentFloor = this.MPageData.find(function (floor) {
87
+ var _a;
88
+
89
+ var group = (_a = floor.groupSource2) === null || _a === void 0 ? void 0 : _a.find(function (grp) {
90
+ return grp.id === id;
91
+ });
92
+ return !!group;
93
+ });
94
+ }
95
+
84
96
  return componentFloor === null || componentFloor === void 0 ? void 0 : componentFloor.id;
85
97
  };
86
98
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.125",
4
+ "version": "1.0.128",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getDefaultJSON = exports.OrdersGroupSourceJSON = void 0;
7
-
8
- var _uuid = require("uuid");
9
-
10
- var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
11
- var groupId = (0, _uuid.v4)();
12
- return {
13
- id: groupId,
14
- title: {
15
- parentId: groupId,
16
- id: (0, _uuid.v4)(),
17
- open: true,
18
- type: 'TEXT',
19
- specialContent: [],
20
- text: text || 'Name',
21
- content: {
22
- sizeType: 'Customize font styles',
23
- fontFamily: 'Montserrat',
24
- fontWeight: 500,
25
- fontSize: 12,
26
- color: '#2C2C2C',
27
- width: 0,
28
- textAlign: 'center'
29
- },
30
- underline: {
31
- open: false,
32
- textDecorationColor: '',
33
- textDecorationStyle: 'solid'
34
- },
35
- vertical: {}
36
- },
37
- image: {
38
- parentId: groupId,
39
- id: (0, _uuid.v4)(),
40
- open: true,
41
- type: 'IMAGE',
42
- content: {
43
- h5Name: 'name2',
44
- pcName: 'name2',
45
- h5ImgSrc: '',
46
- pcImgSrc: '',
47
- clickUrl: ''
48
- },
49
- hover: {
50
- open: false,
51
- backgroundType: 'enlarge',
52
- magnification: 1.5,
53
- pcImgHoverUrl: '',
54
- h5ImgHoverUrl: ''
55
- }
56
- },
57
- sourceType: text
58
- };
59
- };
60
-
61
- exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
62
-
63
- var getDefaultJSON = function getDefaultJSON() {
64
- return {
65
- id: (0, _uuid.v4)(),
66
- type: 'ORDERS',
67
- groupSource: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive'), OrdersGroupSourceJSON('Done'), OrdersGroupSourceJSON('Cancelled')],
68
- spacing: {
69
- pc: {
70
- paddingTop: 0,
71
- paddingBottom: 0,
72
- marginBottom: 0
73
- },
74
- mobile: {
75
- paddingTop: 0,
76
- paddingBottom: 0,
77
- marginBottom: 0
78
- }
79
- },
80
- background: {
81
- opacity: 100,
82
- color: '#FFFFFF',
83
- image: '',
84
- bgType: 'color'
85
- }
86
- };
87
- };
88
-
89
- exports.getDefaultJSON = getDefaultJSON;
@@ -1,84 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _mobile = _interopRequireDefault(require("./mobile"));
11
-
12
- var _defaultJSON = require("./defaultJSON");
13
-
14
- var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- 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); }
23
-
24
- var __extends = void 0 && (void 0).__extends || function () {
25
- var _extendStatics = function extendStatics(d, b) {
26
- _extendStatics = Object.setPrototypeOf || {
27
- __proto__: []
28
- } instanceof Array && function (d, b) {
29
- d.__proto__ = b;
30
- } || function (d, b) {
31
- for (var p in b) {
32
- if (b.hasOwnProperty(p)) d[p] = b[p];
33
- }
34
- };
35
-
36
- return _extendStatics(d, b);
37
- };
38
-
39
- return function (d, b) {
40
- _extendStatics(d, b);
41
-
42
- function __() {
43
- this.constructor = d;
44
- }
45
-
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
- };
48
- }();
49
-
50
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
- var c = arguments.length,
52
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
- d;
54
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
- }
57
- return c > 3 && r && Object.defineProperty(target, key, r), r;
58
- };
59
-
60
- var Orders =
61
- /** @class */
62
- function (_super) {
63
- __extends(Orders, _super);
64
-
65
- function Orders() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
-
69
- Orders.prototype.render = function () {
70
- var nodeData = this.props.nodeData;
71
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
- data: nodeData
73
- }));
74
- };
75
-
76
- Orders.defaultProps = {};
77
- Orders.type = 'ORDERS';
78
- Orders.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
- Orders = __decorate([_compositeDecorator["default"]], Orders);
80
- return Orders;
81
- }(_react.Component);
82
-
83
- var _default = Orders;
84
- exports["default"] = _default;
@@ -1,352 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.orderData = exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- var _components = require("../../../../../meta-comp/components");
13
-
14
- var _locale = require("../../../../../locale");
15
-
16
- var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
17
-
18
- var _commonUtil = require("../../../../../utils/commonUtil");
19
-
20
- var _index = require("../../PersonalInformation/mobile/index");
21
-
22
- require("./index.less");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- var __extends = void 0 && (void 0).__extends || function () {
27
- var _extendStatics = function extendStatics(d, b) {
28
- _extendStatics = Object.setPrototypeOf || {
29
- __proto__: []
30
- } instanceof Array && function (d, b) {
31
- d.__proto__ = b;
32
- } || function (d, b) {
33
- for (var p in b) {
34
- if (b.hasOwnProperty(p)) d[p] = b[p];
35
- }
36
- };
37
-
38
- return _extendStatics(d, b);
39
- };
40
-
41
- return function (d, b) {
42
- _extendStatics(d, b);
43
-
44
- function __() {
45
- this.constructor = d;
46
- }
47
-
48
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
- };
50
- }();
51
-
52
- var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
53
- function adopt(value) {
54
- return value instanceof P ? value : new P(function (resolve) {
55
- resolve(value);
56
- });
57
- }
58
-
59
- return new (P || (P = Promise))(function (resolve, reject) {
60
- function fulfilled(value) {
61
- try {
62
- step(generator.next(value));
63
- } catch (e) {
64
- reject(e);
65
- }
66
- }
67
-
68
- function rejected(value) {
69
- try {
70
- step(generator["throw"](value));
71
- } catch (e) {
72
- reject(e);
73
- }
74
- }
75
-
76
- function step(result) {
77
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
78
- }
79
-
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- };
83
-
84
- var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
85
- var _ = {
86
- label: 0,
87
- sent: function sent() {
88
- if (t[0] & 1) throw t[1];
89
- return t[1];
90
- },
91
- trys: [],
92
- ops: []
93
- },
94
- f,
95
- y,
96
- t,
97
- g;
98
- return g = {
99
- next: verb(0),
100
- "throw": verb(1),
101
- "return": verb(2)
102
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
103
- return this;
104
- }), g;
105
-
106
- function verb(n) {
107
- return function (v) {
108
- return step([n, v]);
109
- };
110
- }
111
-
112
- function step(op) {
113
- if (f) throw new TypeError("Generator is already executing.");
114
-
115
- while (_) {
116
- try {
117
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
118
- if (y = 0, t) op = [op[0] & 2, t.value];
119
-
120
- switch (op[0]) {
121
- case 0:
122
- case 1:
123
- t = op;
124
- break;
125
-
126
- case 4:
127
- _.label++;
128
- return {
129
- value: op[1],
130
- done: false
131
- };
132
-
133
- case 5:
134
- _.label++;
135
- y = op[1];
136
- op = [0];
137
- continue;
138
-
139
- case 7:
140
- op = _.ops.pop();
141
-
142
- _.trys.pop();
143
-
144
- continue;
145
-
146
- default:
147
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
148
- _ = 0;
149
- continue;
150
- }
151
-
152
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
153
- _.label = op[1];
154
- break;
155
- }
156
-
157
- if (op[0] === 6 && _.label < t[1]) {
158
- _.label = t[1];
159
- t = op;
160
- break;
161
- }
162
-
163
- if (t && _.label < t[2]) {
164
- _.label = t[2];
165
-
166
- _.ops.push(op);
167
-
168
- break;
169
- }
170
-
171
- if (t[2]) _.ops.pop();
172
-
173
- _.trys.pop();
174
-
175
- continue;
176
- }
177
-
178
- op = body.call(thisArg, _);
179
- } catch (e) {
180
- op = [6, e];
181
- y = 0;
182
- } finally {
183
- f = t = 0;
184
- }
185
- }
186
-
187
- if (op[0] & 5) throw op[1];
188
- return {
189
- value: op[0] ? op[1] : void 0,
190
- done: true
191
- };
192
- }
193
- };
194
-
195
- var getAccountPageValue = function getAccountPageValue(key) {
196
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
197
- return accountPageValue ? accountPageValue[key] || '' : '';
198
- };
199
-
200
- var orderData = {
201
- 'To Pay': {
202
- key: 'toPayNum',
203
- route: '/main/order/1'
204
- },
205
- 'To Ship': {
206
- key: 'toDeliveryNum',
207
- route: '/main/order/2'
208
- },
209
- 'To Receive': {
210
- key: 'toReceiveNum',
211
- route: '/main/order/3'
212
- },
213
- Done: {
214
- key: 'toRatingNum',
215
- route: '/main/order/4'
216
- },
217
- Cancelled: {
218
- key: 'returnsNum',
219
- route: '/main/order/5'
220
- }
221
- };
222
- exports.orderData = orderData;
223
-
224
- var OrdersMobile =
225
- /** @class */
226
- function (_super) {
227
- __extends(OrdersMobile, _super);
228
-
229
- function OrdersMobile() {
230
- var _this = _super !== null && _super.apply(this, arguments) || this;
231
-
232
- _this.state = {
233
- orderStatus: getAccountPageValue('orderStatus') || {}
234
- };
235
-
236
- _this.onItemClick = function (v) {
237
- var _a;
238
-
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
- }
246
- };
247
-
248
- _this.getInit = function () {
249
- return __awaiter(_this, void 0, void 0, function () {
250
- var orderStatus;
251
- return __generator(this, function (_a) {
252
- switch (_a.label) {
253
- case 0:
254
- return [4
255
- /*yield*/
256
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/orders/status/num', {}, 'GET')];
257
-
258
- case 1:
259
- orderStatus = _a.sent();
260
- this.setState({
261
- orderStatus: orderStatus
262
- });
263
- (0, _index.setAccountPageValue)({
264
- orderStatus: orderStatus
265
- });
266
- return [2
267
- /*return*/
268
- ];
269
- }
270
- });
271
- });
272
- };
273
-
274
- _this.getImageHtml = function (item) {
275
- var orderStatus = _this.state.orderStatus;
276
- var num = (0, _commonUtil.ensure)(function () {
277
- return orderStatus[orderData[item.sourceType].key];
278
- }, '');
279
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
280
- data: item.image,
281
- maxWidth: "100%"
282
- }), num ? /*#__PURE__*/_react["default"].createElement("span", {
283
- className: "pot"
284
- }, num) : null);
285
- };
286
-
287
- return _this;
288
- }
289
-
290
- OrdersMobile.prototype.componentDidMount = function () {
291
- if ((0, _commonUtil.isLogin)()) {
292
- this.getInit();
293
- }
294
- };
295
-
296
- OrdersMobile.prototype.render = function () {
297
- var _this = this;
298
-
299
- var data = this.props.data;
300
- return /*#__PURE__*/_react["default"].createElement("div", {
301
- className: (0, _classnames["default"])('orders-mobile')
302
- }, /*#__PURE__*/_react["default"].createElement("div", {
303
- className: "fixed-wrap"
304
- }, /*#__PURE__*/_react["default"].createElement("div", {
305
- className: "top"
306
- }, /*#__PURE__*/_react["default"].createElement("span", {
307
- className: "title"
308
- }, (0, _locale.i18n)('ORDERS')), /*#__PURE__*/_react["default"].createElement("div", {
309
- className: "btn-wrap"
310
- }, /*#__PURE__*/_react["default"].createElement("span", {
311
- className: "text",
312
- onClick: function onClick() {
313
- if ((0, _commonUtil.checkLogin)(true)) (0, _commonUtil.navigateTo)('/main/order/0');
314
- }
315
- }, (0, _locale.i18n)('VIEW_ALL_ORDERS')), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
316
- color: "#C7C7C7",
317
- size: 13,
318
- type: "icon-outlined-right"
319
- }))), /*#__PURE__*/_react["default"].createElement("div", {
320
- className: "list"
321
- }, data.groupSource.map(function (item) {
322
- return /*#__PURE__*/_react["default"].createElement("div", {
323
- key: item.id,
324
- className: "item",
325
- onClick: function onClick() {
326
- return _this.onItemClick(item.sourceType);
327
- }
328
- }, /*#__PURE__*/_react["default"].createElement("div", {
329
- className: "content-wrap",
330
- style: {
331
- pointerEvents: window.magicDesign.mode == 'designer' ? 'auto' : 'none'
332
- }
333
- }, /*#__PURE__*/_react["default"].createElement("div", {
334
- className: "img-wrap"
335
- }, item.image.open && _this.getImageHtml(item)), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
336
- className: "title",
337
- data: item.title,
338
- onTextInput: function onTextInput(text) {
339
- item.title.text = text;
340
- }
341
- })));
342
- }))));
343
- };
344
-
345
- OrdersMobile.defaultProps = {
346
- data: {}
347
- };
348
- return OrdersMobile;
349
- }(_react["default"].Component);
350
-
351
- var _default = OrdersMobile;
352
- exports["default"] = _default;