@fonixtree/magic-design 1.0.126 → 1.0.130
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 +7 -3
- package/es/assets/fonts/magic-box-iconfont.js +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/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -9
- package/es/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/es/constants/component-types.js +3 -9
- package/es/constants/index.js +0 -4
- package/es/core/Designer/ConfigPanel/index.js +17 -1
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/decorator/metaDecorator.js +1 -2
- package/es/mobx/Store.js +12 -0
- package/lib/assets/fonts/magic-box-iconfont.css +7 -3
- package/lib/assets/fonts/magic-box-iconfont.js +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/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +8 -0
- package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +58 -4
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +147 -15
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +100 -9
- package/lib/composite-comp/dito/config-panels/{OrdersConfig/ConfigGroup → PersonalInformationConfig/OrdersConfigGroup}/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +14 -4
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +64 -1
- package/lib/constants/component-types.js +3 -9
- package/lib/constants/index.js +0 -4
- package/lib/core/Designer/ConfigPanel/index.js +17 -1
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/decorator/metaDecorator.js +1 -2
- package/lib/mobx/Store.js +12 -0
- package/package.json +1 -1
- package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/es/composite-comp/dito/components/Orders/index.js +0 -84
- package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
- package/lib/composite-comp/dito/components/Orders/index.js +0 -84
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -352
- package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
- package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
- /package/es/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
- /package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/{ConfigGroup → PersonInfoConfigGroup}/index.js +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -20,8 +20,8 @@ var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(tex
|
|
|
20
20
|
text: text || 'Chat With Us',
|
|
21
21
|
content: {
|
|
22
22
|
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily: '
|
|
24
|
-
fontWeight:
|
|
23
|
+
fontFamily: 'Montserrat',
|
|
24
|
+
fontWeight: 500,
|
|
25
25
|
fontSize: 14,
|
|
26
26
|
color: '#2C2C2C',
|
|
27
27
|
width: 0,
|
|
@@ -9,12 +9,16 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
13
|
+
|
|
12
14
|
var _components = require("../../../../../meta-comp/components");
|
|
13
15
|
|
|
14
16
|
var _common = require("../../../../../common");
|
|
15
17
|
|
|
16
18
|
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
17
19
|
|
|
20
|
+
var _storeUtil = require("../../../../../utils/storeUtil");
|
|
21
|
+
|
|
18
22
|
require("./index.less");
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -71,11 +75,15 @@ function (_super) {
|
|
|
71
75
|
var _this = this;
|
|
72
76
|
|
|
73
77
|
var data = this.props.data;
|
|
78
|
+
var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
|
|
74
79
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
80
|
className: (0, _classnames["default"])('common-functions-mobile')
|
|
76
81
|
}, /*#__PURE__*/_react["default"].createElement("ul", null, data.groupSource.map(function (item) {
|
|
77
82
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
78
83
|
key: item.id,
|
|
84
|
+
className: (0, _classnames["default"])({
|
|
85
|
+
hide: !(0, _isEmpty["default"])(LPObj) && item.title.text === 'Security Center'
|
|
86
|
+
}),
|
|
79
87
|
onClick: function onClick() {
|
|
80
88
|
return _this.onItemClick(item);
|
|
81
89
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = void 0;
|
|
6
|
+
exports.getDefaultJSON = exports.PersonalInfoGroupSourceJSON = exports.OrdersGroupSourceJSON = void 0;
|
|
7
7
|
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
9
|
|
|
@@ -20,8 +20,8 @@ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
|
20
20
|
text: text || 'Name',
|
|
21
21
|
content: {
|
|
22
22
|
sizeType: 'Customize font styles',
|
|
23
|
-
fontFamily: '
|
|
24
|
-
fontWeight:
|
|
23
|
+
fontFamily: 'Montserrat',
|
|
24
|
+
fontWeight: 500,
|
|
25
25
|
fontSize: 12,
|
|
26
26
|
color: '#fff',
|
|
27
27
|
width: 0,
|
|
@@ -43,7 +43,7 @@ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
|
43
43
|
text: 0,
|
|
44
44
|
content: {
|
|
45
45
|
sizeType: 'Customize font styles',
|
|
46
|
-
fontFamily: '
|
|
46
|
+
fontFamily: 'Montserrat',
|
|
47
47
|
fontWeight: 600,
|
|
48
48
|
fontSize: 18,
|
|
49
49
|
color: '#fff',
|
|
@@ -63,6 +63,59 @@ var PersonalInfoGroupSourceJSON = function PersonalInfoGroupSourceJSON(text) {
|
|
|
63
63
|
|
|
64
64
|
exports.PersonalInfoGroupSourceJSON = PersonalInfoGroupSourceJSON;
|
|
65
65
|
|
|
66
|
+
var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
|
|
67
|
+
var groupId = (0, _uuid.v4)();
|
|
68
|
+
return {
|
|
69
|
+
id: groupId,
|
|
70
|
+
title: {
|
|
71
|
+
parentId: groupId,
|
|
72
|
+
id: (0, _uuid.v4)(),
|
|
73
|
+
open: true,
|
|
74
|
+
type: 'TEXT',
|
|
75
|
+
specialContent: [],
|
|
76
|
+
text: text || 'Name',
|
|
77
|
+
content: {
|
|
78
|
+
sizeType: 'Customize font styles',
|
|
79
|
+
fontFamily: 'Montserrat',
|
|
80
|
+
fontWeight: 500,
|
|
81
|
+
fontSize: 12,
|
|
82
|
+
color: '#2C2C2C',
|
|
83
|
+
width: 0,
|
|
84
|
+
textAlign: 'center'
|
|
85
|
+
},
|
|
86
|
+
underline: {
|
|
87
|
+
open: false,
|
|
88
|
+
textDecorationColor: '',
|
|
89
|
+
textDecorationStyle: 'solid'
|
|
90
|
+
},
|
|
91
|
+
vertical: {}
|
|
92
|
+
},
|
|
93
|
+
image: {
|
|
94
|
+
parentId: groupId,
|
|
95
|
+
id: (0, _uuid.v4)(),
|
|
96
|
+
open: true,
|
|
97
|
+
type: 'IMAGE',
|
|
98
|
+
content: {
|
|
99
|
+
h5Name: 'name2',
|
|
100
|
+
pcName: 'name2',
|
|
101
|
+
h5ImgSrc: '',
|
|
102
|
+
pcImgSrc: '',
|
|
103
|
+
clickUrl: ''
|
|
104
|
+
},
|
|
105
|
+
hover: {
|
|
106
|
+
open: false,
|
|
107
|
+
backgroundType: 'enlarge',
|
|
108
|
+
magnification: 1.5,
|
|
109
|
+
pcImgHoverUrl: '',
|
|
110
|
+
h5ImgHoverUrl: ''
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
sourceType: text
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
exports.OrdersGroupSourceJSON = OrdersGroupSourceJSON;
|
|
118
|
+
|
|
66
119
|
var getDefaultJSON = function getDefaultJSON() {
|
|
67
120
|
return {
|
|
68
121
|
id: (0, _uuid.v4)(),
|
|
@@ -90,6 +143,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
90
143
|
}
|
|
91
144
|
},
|
|
92
145
|
groupSource: [PersonalInfoGroupSourceJSON('Wishlist'), PersonalInfoGroupSourceJSON('Stores'), PersonalInfoGroupSourceJSON('Vouchers'), PersonalInfoGroupSourceJSON('Recently Viewed')],
|
|
146
|
+
groupSource2: [OrdersGroupSourceJSON('To Pay'), OrdersGroupSourceJSON('To Ship'), OrdersGroupSourceJSON('To Receive'), OrdersGroupSourceJSON('Done'), OrdersGroupSourceJSON('Cancelled')],
|
|
93
147
|
spacing: {
|
|
94
148
|
pc: {
|
|
95
149
|
paddingTop: 0,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.setAccountPageValue = exports.pInfoData = exports["default"] = void 0;
|
|
6
|
+
exports.setAccountPageValue = exports.pInfoData = exports.orderData = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -15,6 +15,8 @@ var _antd = require("antd");
|
|
|
15
15
|
|
|
16
16
|
var _avatar = _interopRequireDefault(require("./images/avatar.png"));
|
|
17
17
|
|
|
18
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
19
|
+
|
|
18
20
|
var _components = require("../../../../../meta-comp/components");
|
|
19
21
|
|
|
20
22
|
var _androidUtil = require("../../../../../utils/androidUtil");
|
|
@@ -220,6 +222,20 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
220
222
|
}
|
|
221
223
|
};
|
|
222
224
|
|
|
225
|
+
var currentUser = JSON.parse(localStorage.getItem('currentUser')) || {};
|
|
226
|
+
|
|
227
|
+
var setAccountPageValue = function setAccountPageValue(obj) {
|
|
228
|
+
var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
|
|
229
|
+
localStorage.setItem('accountPageValue', JSON.stringify(__assign(__assign({}, accountPageValue), obj)));
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
exports.setAccountPageValue = setAccountPageValue;
|
|
233
|
+
|
|
234
|
+
var getAccountPageValue = function getAccountPageValue(key) {
|
|
235
|
+
var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
|
|
236
|
+
return accountPageValue ? accountPageValue[key] || '' : '';
|
|
237
|
+
};
|
|
238
|
+
|
|
223
239
|
var pInfoData = {
|
|
224
240
|
Wishlist: {
|
|
225
241
|
route: '/favourite/list'
|
|
@@ -235,15 +251,29 @@ var pInfoData = {
|
|
|
235
251
|
}
|
|
236
252
|
};
|
|
237
253
|
exports.pInfoData = pInfoData;
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
254
|
+
var orderData = {
|
|
255
|
+
'To Pay': {
|
|
256
|
+
key: 'toPayNum',
|
|
257
|
+
route: '/main/order/1'
|
|
258
|
+
},
|
|
259
|
+
'To Ship': {
|
|
260
|
+
key: 'toDeliveryNum',
|
|
261
|
+
route: '/main/order/2'
|
|
262
|
+
},
|
|
263
|
+
'To Receive': {
|
|
264
|
+
key: 'toReceiveNum',
|
|
265
|
+
route: '/main/order/3'
|
|
266
|
+
},
|
|
267
|
+
Done: {
|
|
268
|
+
key: 'toRatingNum',
|
|
269
|
+
route: '/main/order/4'
|
|
270
|
+
},
|
|
271
|
+
Cancelled: {
|
|
272
|
+
key: 'returnsNum',
|
|
273
|
+
route: '/main/order/5'
|
|
274
|
+
}
|
|
244
275
|
};
|
|
245
|
-
|
|
246
|
-
exports.setAccountPageValue = setAccountPageValue;
|
|
276
|
+
exports.orderData = orderData;
|
|
247
277
|
|
|
248
278
|
var PersonalInfoMobile =
|
|
249
279
|
/** @class */
|
|
@@ -258,7 +288,8 @@ function (_super) {
|
|
|
258
288
|
userInfo: currentUser,
|
|
259
289
|
loading: false,
|
|
260
290
|
selectedImgFile: {},
|
|
261
|
-
editImgModalVisible: false
|
|
291
|
+
editImgModalVisible: false,
|
|
292
|
+
orderStatus: getAccountPageValue('orderStatus') || {}
|
|
262
293
|
};
|
|
263
294
|
|
|
264
295
|
_this.getNum = function (v) {
|
|
@@ -309,6 +340,8 @@ function (_super) {
|
|
|
309
340
|
};
|
|
310
341
|
|
|
311
342
|
_this.clickName = function () {
|
|
343
|
+
var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
|
|
344
|
+
|
|
312
345
|
if (!(0, _isEmpty["default"])(LPObj)) {
|
|
313
346
|
return;
|
|
314
347
|
}
|
|
@@ -406,7 +439,6 @@ function (_super) {
|
|
|
406
439
|
|
|
407
440
|
_this.hideBottomBar = function () {
|
|
408
441
|
var homeNavBar = document.querySelector('.home-navigation');
|
|
409
|
-
console.log('homeNavBar', homeNavBar);
|
|
410
442
|
if (homeNavBar) homeNavBar.style.visibility = 'hidden';
|
|
411
443
|
};
|
|
412
444
|
|
|
@@ -471,6 +503,57 @@ function (_super) {
|
|
|
471
503
|
}
|
|
472
504
|
};
|
|
473
505
|
|
|
506
|
+
_this.onOrderItemClick = function (v) {
|
|
507
|
+
var _a;
|
|
508
|
+
|
|
509
|
+
if ((0, _commonUtil.checkLogin)(true)) {
|
|
510
|
+
var routeUrl = (_a = orderData[v]) === null || _a === void 0 ? void 0 : _a.route;
|
|
511
|
+
var selfUrl = (0, _commonUtil.ensure)(function () {
|
|
512
|
+
return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
|
|
513
|
+
}, '');
|
|
514
|
+
(0, _commonUtil.navigateTo)(routeUrl || selfUrl);
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
_this.getInit = function () {
|
|
519
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
520
|
+
var orderStatus;
|
|
521
|
+
return __generator(this, function (_a) {
|
|
522
|
+
switch (_a.label) {
|
|
523
|
+
case 0:
|
|
524
|
+
return [4
|
|
525
|
+
/*yield*/
|
|
526
|
+
, (0, _commonUtil.commonFetch)('/designer/v1/h5/orders/status/num', {}, 'GET')];
|
|
527
|
+
|
|
528
|
+
case 1:
|
|
529
|
+
orderStatus = _a.sent();
|
|
530
|
+
this.setState({
|
|
531
|
+
orderStatus: orderStatus
|
|
532
|
+
});
|
|
533
|
+
setAccountPageValue({
|
|
534
|
+
orderStatus: orderStatus
|
|
535
|
+
});
|
|
536
|
+
return [2
|
|
537
|
+
/*return*/
|
|
538
|
+
];
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
_this.getImageHtml = function (item) {
|
|
545
|
+
var orderStatus = _this.state.orderStatus;
|
|
546
|
+
var num = (0, _commonUtil.ensure)(function () {
|
|
547
|
+
return orderStatus[orderData[item.sourceType].key];
|
|
548
|
+
}, '');
|
|
549
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
550
|
+
data: item.image,
|
|
551
|
+
maxWidth: "100%"
|
|
552
|
+
}), num ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
553
|
+
className: "pot"
|
|
554
|
+
}, num) : null);
|
|
555
|
+
};
|
|
556
|
+
|
|
474
557
|
return _this;
|
|
475
558
|
}
|
|
476
559
|
|
|
@@ -480,6 +563,10 @@ function (_super) {
|
|
|
480
563
|
}
|
|
481
564
|
|
|
482
565
|
this.getMessageNum();
|
|
566
|
+
|
|
567
|
+
if ((0, _commonUtil.isLogin)()) {
|
|
568
|
+
this.getInit();
|
|
569
|
+
}
|
|
483
570
|
};
|
|
484
571
|
|
|
485
572
|
PersonalInfoMobile.prototype.render = function () {
|
|
@@ -491,8 +578,11 @@ function (_super) {
|
|
|
491
578
|
userInfo = _a.userInfo,
|
|
492
579
|
editImgModalVisible = _a.editImgModalVisible,
|
|
493
580
|
selectedImgFile = _a.selectedImgFile;
|
|
581
|
+
var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
|
|
494
582
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
495
|
-
className: (0, _classnames["default"])('personal-information-mobile'
|
|
583
|
+
className: (0, _classnames["default"])('personal-information-mobile', {
|
|
584
|
+
higher: (0, _commonUtil.isLogin)() || (0, _coreUtil.isDesignMode)()
|
|
585
|
+
})
|
|
496
586
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
497
587
|
className: "top"
|
|
498
588
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -541,7 +631,7 @@ function (_super) {
|
|
|
541
631
|
color: "#fff",
|
|
542
632
|
onClick: this.goSettings,
|
|
543
633
|
size: 24,
|
|
544
|
-
type: "icon-
|
|
634
|
+
type: "icon-settings"
|
|
545
635
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
546
636
|
className: "iconWrap"
|
|
547
637
|
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
@@ -551,7 +641,7 @@ function (_super) {
|
|
|
551
641
|
type: "icon-messages"
|
|
552
642
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
553
643
|
className: "num"
|
|
554
|
-
}, messageNum)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
644
|
+
}, messageNum)))), ((0, _commonUtil.isLogin)() || (0, _coreUtil.isDesignMode)()) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
555
645
|
className: "bottom"
|
|
556
646
|
}, data.groupSource.map(function (item) {
|
|
557
647
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -577,7 +667,49 @@ function (_super) {
|
|
|
577
667
|
item.title.text = text;
|
|
578
668
|
}
|
|
579
669
|
})));
|
|
580
|
-
})),
|
|
670
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
671
|
+
className: "orders"
|
|
672
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
673
|
+
className: "fixed-wrap"
|
|
674
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
675
|
+
className: "top"
|
|
676
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
677
|
+
className: "title"
|
|
678
|
+
}, (0, _locale.i18n)('ORDERS')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
679
|
+
className: "btn-wrap"
|
|
680
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
681
|
+
className: "text",
|
|
682
|
+
onClick: function onClick() {
|
|
683
|
+
if ((0, _commonUtil.checkLogin)(true)) (0, _commonUtil.navigateTo)('/main/order/0');
|
|
684
|
+
}
|
|
685
|
+
}, (0, _locale.i18n)('VIEW_ALL_ORDERS')), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
686
|
+
color: "#C7C7C7",
|
|
687
|
+
size: 13,
|
|
688
|
+
type: "icon-outlined-right"
|
|
689
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
690
|
+
className: "list"
|
|
691
|
+
}, data.groupSource2.map(function (item) {
|
|
692
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
693
|
+
key: item.id,
|
|
694
|
+
className: "item",
|
|
695
|
+
onClick: function onClick() {
|
|
696
|
+
return _this.onOrderItemClick(item.sourceType);
|
|
697
|
+
}
|
|
698
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
699
|
+
className: "content-wrap",
|
|
700
|
+
style: {
|
|
701
|
+
pointerEvents: window.magicDesign.mode == 'designer' ? 'auto' : 'none'
|
|
702
|
+
}
|
|
703
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
704
|
+
className: "img-wrap"
|
|
705
|
+
}, item.image.open && _this.getImageHtml(item)), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
706
|
+
className: "title",
|
|
707
|
+
data: item.title,
|
|
708
|
+
onTextInput: function onTextInput(text) {
|
|
709
|
+
item.title.text = text;
|
|
710
|
+
}
|
|
711
|
+
})));
|
|
712
|
+
})))), editImgModalVisible && /*#__PURE__*/_react["default"].createElement(_common.CropperModal, {
|
|
581
713
|
onClose: function onClose() {
|
|
582
714
|
_this.setState({
|
|
583
715
|
editImgModalVisible: false
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
.personal-information-mobile {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
padding: 0.44rem 0.32rem;
|
|
3
|
+
box-sizing: content-box;
|
|
4
|
+
height: 4.18rem;
|
|
5
|
+
}
|
|
6
|
+
.personal-information-mobile.higher {
|
|
7
|
+
border-bottom: 1.6rem solid #fff;
|
|
5
8
|
}
|
|
6
9
|
.personal-information-mobile .top {
|
|
7
10
|
display: flex;
|
|
@@ -45,8 +48,9 @@
|
|
|
45
48
|
margin: 0;
|
|
46
49
|
}
|
|
47
50
|
.personal-information-mobile .top .pInfoWrap .userInfo .name {
|
|
48
|
-
font-
|
|
49
|
-
font-
|
|
51
|
+
font-family: Montserrat;
|
|
52
|
+
font-size: 0.32rem;
|
|
53
|
+
font-weight: 600;
|
|
50
54
|
color: #ffffff;
|
|
51
55
|
max-width: 2.96rem;
|
|
52
56
|
white-space: nowrap;
|
|
@@ -55,8 +59,9 @@
|
|
|
55
59
|
word-break: break-all;
|
|
56
60
|
}
|
|
57
61
|
.personal-information-mobile .top .pInfoWrap .userInfo .phone {
|
|
58
|
-
font-
|
|
59
|
-
font-
|
|
62
|
+
font-family: Montserrat;
|
|
63
|
+
font-size: 0.32rem;
|
|
64
|
+
font-weight: 600;
|
|
60
65
|
color: #ffffff;
|
|
61
66
|
margin-top: 0.1rem;
|
|
62
67
|
}
|
|
@@ -70,8 +75,8 @@
|
|
|
70
75
|
border-radius: 50%;
|
|
71
76
|
}
|
|
72
77
|
.personal-information-mobile .top .pInfoWrap .btnLogin {
|
|
73
|
-
font-size: 0.
|
|
74
|
-
font-weight:
|
|
78
|
+
font-size: 0.32rem;
|
|
79
|
+
font-weight: 600;
|
|
75
80
|
color: #ffffff;
|
|
76
81
|
font-family: Montserrat;
|
|
77
82
|
}
|
|
@@ -140,3 +145,89 @@
|
|
|
140
145
|
line-height: 0.32rem;
|
|
141
146
|
text-align: center;
|
|
142
147
|
}
|
|
148
|
+
.personal-information-mobile .orders {
|
|
149
|
+
margin-top: 0.48rem;
|
|
150
|
+
}
|
|
151
|
+
.personal-information-mobile .orders .fixed-wrap {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
background-color: #fff;
|
|
155
|
+
box-shadow: 0 0.06rem 0.12rem rgba(0, 0, 0, 0.16);
|
|
156
|
+
border-radius: 0.32rem;
|
|
157
|
+
width: auto;
|
|
158
|
+
padding: 0.32rem;
|
|
159
|
+
}
|
|
160
|
+
.personal-information-mobile .orders .fixed-wrap .top {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
justify-content: space-between;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
line-height: 0.36rem;
|
|
166
|
+
color: var(--font-color);
|
|
167
|
+
}
|
|
168
|
+
.personal-information-mobile .orders .fixed-wrap .top .title {
|
|
169
|
+
font-size: 0.28rem;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
color: #2C2C2C;
|
|
172
|
+
}
|
|
173
|
+
.personal-information-mobile .orders .fixed-wrap .top .btn-wrap {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
.personal-information-mobile .orders .fixed-wrap .top .btn-wrap .text {
|
|
180
|
+
font-size: 0.28rem;
|
|
181
|
+
color: #929292;
|
|
182
|
+
font-weight: 400;
|
|
183
|
+
margin-right: 0.08rem;
|
|
184
|
+
}
|
|
185
|
+
.personal-information-mobile .orders .fixed-wrap .list {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: row;
|
|
188
|
+
justify-content: space-between;
|
|
189
|
+
height: 1.32rem;
|
|
190
|
+
margin-top: 0.48rem;
|
|
191
|
+
margin-bottom: 0.02rem;
|
|
192
|
+
}
|
|
193
|
+
.personal-information-mobile .orders .fixed-wrap .list .item {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex: 1 1;
|
|
196
|
+
}
|
|
197
|
+
.personal-information-mobile .orders .fixed-wrap .list .item .content-wrap {
|
|
198
|
+
width: 100%;
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
align-items: center;
|
|
203
|
+
}
|
|
204
|
+
.personal-information-mobile .orders .fixed-wrap .list .item .img-wrap {
|
|
205
|
+
position: relative;
|
|
206
|
+
display: flex;
|
|
207
|
+
margin-bottom: 0.16rem;
|
|
208
|
+
width: 0.72rem;
|
|
209
|
+
height: 0.72rem;
|
|
210
|
+
}
|
|
211
|
+
.personal-information-mobile .orders .fixed-wrap .list .item .img-wrap .pot {
|
|
212
|
+
display: inline-block;
|
|
213
|
+
padding: 0 0.08rem;
|
|
214
|
+
background: #ce1126;
|
|
215
|
+
border: 0.02rem solid #ce1126;
|
|
216
|
+
font-size: 0.16rem;
|
|
217
|
+
text-align: center;
|
|
218
|
+
color: #fff;
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: -0.04rem;
|
|
221
|
+
left: 0.4rem;
|
|
222
|
+
min-width: 0.32rem;
|
|
223
|
+
height: 0.32rem;
|
|
224
|
+
border-radius: 50%;
|
|
225
|
+
line-height: 0.3rem;
|
|
226
|
+
}
|
|
227
|
+
.personal-information-mobile .orders .fixed-wrap .list .item .title {
|
|
228
|
+
height: 0.44rem;
|
|
229
|
+
font-size: 0.24rem;
|
|
230
|
+
line-height: 0.22rem;
|
|
231
|
+
color: #2C2C2C;
|
|
232
|
+
text-align: center;
|
|
233
|
+
}
|
|
@@ -13,9 +13,9 @@ var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList
|
|
|
13
13
|
|
|
14
14
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _defaultJSON = require("../../../components/PersonalInformation/defaultJSON");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
@@ -7,10 +7,12 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _PersonInfoConfigGroup = _interopRequireDefault(require("./PersonInfoConfigGroup"));
|
|
11
11
|
|
|
12
12
|
var _ConfigDecoration = _interopRequireDefault(require("./ConfigDecoration"));
|
|
13
13
|
|
|
14
|
+
var _OrdersConfigGroup = _interopRequireDefault(require("./OrdersConfigGroup"));
|
|
15
|
+
|
|
14
16
|
var _locale = require("../../../../locale");
|
|
15
17
|
|
|
16
18
|
var _common = require("../../../../common");
|
|
@@ -94,20 +96,28 @@ function (_super) {
|
|
|
94
96
|
})
|
|
95
97
|
}, {
|
|
96
98
|
key: 'PersonalInformation3',
|
|
97
|
-
name: (0, _locale.i18n)('
|
|
98
|
-
value: /*#__PURE__*/_react["default"].createElement(
|
|
99
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
100
|
+
value: /*#__PURE__*/_react["default"].createElement(_PersonInfoConfigGroup["default"], {
|
|
99
101
|
maxNum: 4,
|
|
100
102
|
source: data.groupSource
|
|
101
103
|
}),
|
|
102
104
|
metaOption: data.groupSource
|
|
103
105
|
}, {
|
|
104
106
|
key: 'PersonalInformation4',
|
|
107
|
+
name: (0, _locale.i18n)('ORDERS'),
|
|
108
|
+
value: /*#__PURE__*/_react["default"].createElement(_OrdersConfigGroup["default"], {
|
|
109
|
+
maxNum: 5,
|
|
110
|
+
source: data.groupSource2
|
|
111
|
+
}),
|
|
112
|
+
metaOption: data.groupSource2
|
|
113
|
+
}, {
|
|
114
|
+
key: 'PersonalInformation5',
|
|
105
115
|
name: (0, _locale.i18n)('SPACING'),
|
|
106
116
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
107
117
|
data: data.spacing
|
|
108
118
|
})
|
|
109
119
|
}, {
|
|
110
|
-
key: '
|
|
120
|
+
key: 'PersonalInformation6',
|
|
111
121
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
112
122
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
113
123
|
data: data.background
|