@fonixtree/magic-design 1.0.128 → 1.0.131

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.
@@ -222,6 +222,20 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
222
222
  }
223
223
  };
224
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
+
225
239
  var pInfoData = {
226
240
  Wishlist: {
227
241
  route: '/favourite/list'
@@ -237,20 +251,6 @@ var pInfoData = {
237
251
  }
238
252
  };
239
253
  exports.pInfoData = pInfoData;
240
- var currentUser = JSON.parse(localStorage.getItem('currentUser')) || {};
241
-
242
- var setAccountPageValue = function setAccountPageValue(obj) {
243
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
244
- localStorage.setItem('accountPageValue', JSON.stringify(__assign(__assign({}, accountPageValue), obj)));
245
- };
246
-
247
- exports.setAccountPageValue = setAccountPageValue;
248
-
249
- var getAccountPageValue = function getAccountPageValue(key) {
250
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
251
- return accountPageValue ? accountPageValue[key] || '' : '';
252
- };
253
-
254
254
  var orderData = {
255
255
  'To Pay': {
256
256
  key: 'toPayNum',
@@ -503,7 +503,7 @@ function (_super) {
503
503
  }
504
504
  };
505
505
 
506
- _this.onItemClick = function (v) {
506
+ _this.onOrderItemClick = function (v) {
507
507
  var _a;
508
508
 
509
509
  if ((0, _commonUtil.checkLogin)(true)) {
@@ -580,7 +580,9 @@ function (_super) {
580
580
  selectedImgFile = _a.selectedImgFile;
581
581
  var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
582
582
  return /*#__PURE__*/_react["default"].createElement("div", {
583
- className: (0, _classnames["default"])('personal-information-mobile')
583
+ className: (0, _classnames["default"])('personal-information-mobile', {
584
+ higher: (0, _commonUtil.isLogin)() || (0, _coreUtil.isDesignMode)()
585
+ })
584
586
  }, /*#__PURE__*/_react["default"].createElement("div", {
585
587
  className: "top"
586
588
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -691,7 +693,7 @@ function (_super) {
691
693
  key: item.id,
692
694
  className: "item",
693
695
  onClick: function onClick() {
694
- return _this.onItemClick(item.sourceType);
696
+ return _this.onOrderItemClick(item.sourceType);
695
697
  }
696
698
  }, /*#__PURE__*/_react["default"].createElement("div", {
697
699
  className: "content-wrap",
@@ -1,6 +1,11 @@
1
1
  .personal-information-mobile {
2
2
  padding: 0.44rem 0.32rem;
3
3
  box-sizing: border-box;
4
+ height: 5rem;
5
+ }
6
+ .personal-information-mobile.higher {
7
+ border-bottom: 1.52rem solid #fff;
8
+ height: 6.8rem;
4
9
  }
5
10
  .personal-information-mobile .top {
6
11
  display: flex;
@@ -66,7 +66,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
66
66
  return;
67
67
  }
68
68
 
69
- console.log('....', selectedNode, _mobx.store.clickedGroup);
70
69
  var panelProps = selectedNode.groupSource.find(function (src) {
71
70
  return src.id === clickedGroup;
72
71
  });
@@ -74,7 +73,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
74
73
  return src.id === clickedGroup;
75
74
  });
76
75
 
77
- if (!panelProps) {
76
+ if (!panelProps && selectedNode.groupSource2) {
78
77
  panelProps = selectedNode.groupSource2.find(function (src) {
79
78
  return src.id === clickedGroup;
80
79
  });
@@ -300,7 +299,7 @@ function (_super) {
300
299
  });
301
300
  }, null);
302
301
 
303
- if (!panelProps) {
302
+ if (!panelProps && (selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2)) {
304
303
  panelProps = (0, _commonUtil.ensure)(function () {
305
304
  return selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2.find(function (src) {
306
305
  return src.id === _this.state.clickedGroup;
@@ -222,6 +222,20 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
222
222
  }
223
223
  };
224
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
+
225
239
  var pInfoData = {
226
240
  Wishlist: {
227
241
  route: '/favourite/list'
@@ -237,20 +251,6 @@ var pInfoData = {
237
251
  }
238
252
  };
239
253
  exports.pInfoData = pInfoData;
240
- var currentUser = JSON.parse(localStorage.getItem('currentUser')) || {};
241
-
242
- var setAccountPageValue = function setAccountPageValue(obj) {
243
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
244
- localStorage.setItem('accountPageValue', JSON.stringify(__assign(__assign({}, accountPageValue), obj)));
245
- };
246
-
247
- exports.setAccountPageValue = setAccountPageValue;
248
-
249
- var getAccountPageValue = function getAccountPageValue(key) {
250
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
251
- return accountPageValue ? accountPageValue[key] || '' : '';
252
- };
253
-
254
254
  var orderData = {
255
255
  'To Pay': {
256
256
  key: 'toPayNum',
@@ -503,7 +503,7 @@ function (_super) {
503
503
  }
504
504
  };
505
505
 
506
- _this.onItemClick = function (v) {
506
+ _this.onOrderItemClick = function (v) {
507
507
  var _a;
508
508
 
509
509
  if ((0, _commonUtil.checkLogin)(true)) {
@@ -580,7 +580,9 @@ function (_super) {
580
580
  selectedImgFile = _a.selectedImgFile;
581
581
  var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
582
582
  return /*#__PURE__*/_react["default"].createElement("div", {
583
- className: (0, _classnames["default"])('personal-information-mobile')
583
+ className: (0, _classnames["default"])('personal-information-mobile', {
584
+ higher: (0, _commonUtil.isLogin)() || (0, _coreUtil.isDesignMode)()
585
+ })
584
586
  }, /*#__PURE__*/_react["default"].createElement("div", {
585
587
  className: "top"
586
588
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -691,7 +693,7 @@ function (_super) {
691
693
  key: item.id,
692
694
  className: "item",
693
695
  onClick: function onClick() {
694
- return _this.onItemClick(item.sourceType);
696
+ return _this.onOrderItemClick(item.sourceType);
695
697
  }
696
698
  }, /*#__PURE__*/_react["default"].createElement("div", {
697
699
  className: "content-wrap",
@@ -1,6 +1,11 @@
1
1
  .personal-information-mobile {
2
2
  padding: 0.44rem 0.32rem;
3
3
  box-sizing: border-box;
4
+ height: 5rem;
5
+ }
6
+ .personal-information-mobile.higher {
7
+ border-bottom: 1.52rem solid #fff;
8
+ height: 6.8rem;
4
9
  }
5
10
  .personal-information-mobile .top {
6
11
  display: flex;
@@ -66,7 +66,6 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
66
66
  return;
67
67
  }
68
68
 
69
- console.log('....', selectedNode, _mobx.store.clickedGroup);
70
69
  var panelProps = selectedNode.groupSource.find(function (src) {
71
70
  return src.id === clickedGroup;
72
71
  });
@@ -74,7 +73,7 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
74
73
  return src.id === clickedGroup;
75
74
  });
76
75
 
77
- if (!panelProps) {
76
+ if (!panelProps && selectedNode.groupSource2) {
78
77
  panelProps = selectedNode.groupSource2.find(function (src) {
79
78
  return src.id === clickedGroup;
80
79
  });
@@ -300,7 +299,7 @@ function (_super) {
300
299
  });
301
300
  }, null);
302
301
 
303
- if (!panelProps) {
302
+ if (!panelProps && (selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2)) {
304
303
  panelProps = (0, _commonUtil.ensure)(function () {
305
304
  return selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.groupSource2.find(function (src) {
306
305
  return src.id === _this.state.clickedGroup;
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.128",
4
+ "version": "1.0.131",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",