@fonixtree/magic-design 1.0.124 → 1.0.126

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 (29) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +3 -7
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
  7. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -8
  8. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -3
  9. package/es/composite-comp/dito/components/Orders/defaultJSON.js +2 -2
  10. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +3 -3
  11. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +3 -3
  12. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -9
  13. package/es/utils/androidUtil.js +10 -2
  14. package/es/utils/commonUtil.js +23 -1
  15. package/lib/assets/fonts/magic-box-iconfont.css +3 -7
  16. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  17. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  18. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  19. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  20. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +2 -2
  21. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -8
  22. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -3
  23. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +2 -2
  24. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +3 -3
  25. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +3 -3
  26. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -9
  27. package/lib/utils/androidUtil.js +10 -2
  28. package/lib/utils/commonUtil.js +23 -1
  29. package/package.json +1 -1
@@ -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: 'Montserrat',
24
- fontWeight: 500,
23
+ fontFamily: 'Open Sans',
24
+ fontWeight: 600,
25
25
  fontSize: 14,
26
26
  color: '#2C2C2C',
27
27
  width: 0,
@@ -9,16 +9,12 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
13
-
14
12
  var _components = require("../../../../../meta-comp/components");
15
13
 
16
14
  var _common = require("../../../../../common");
17
15
 
18
16
  var _commonUtil = require("../../../../../utils/commonUtil");
19
17
 
20
- var _storeUtil = require("../../../../../utils/storeUtil");
21
-
22
18
  require("./index.less");
23
19
 
24
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -75,15 +71,11 @@ function (_super) {
75
71
  var _this = this;
76
72
 
77
73
  var data = this.props.data;
78
- var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
79
74
  return /*#__PURE__*/_react["default"].createElement("div", {
80
75
  className: (0, _classnames["default"])('common-functions-mobile')
81
76
  }, /*#__PURE__*/_react["default"].createElement("ul", null, data.groupSource.map(function (item) {
82
77
  return /*#__PURE__*/_react["default"].createElement("li", {
83
78
  key: item.id,
84
- className: (0, _classnames["default"])({
85
- hide: !(0, _isEmpty["default"])(LPObj) && item.title.text === 'Security Center'
86
- }),
87
79
  onClick: function onClick() {
88
80
  return _this.onItemClick(item);
89
81
  }
@@ -14,9 +14,6 @@
14
14
  justify-content: space-between;
15
15
  align-items: center;
16
16
  }
17
- .common-functions-mobile ul li.hide {
18
- display: none;
19
- }
20
17
  .common-functions-mobile ul li .content-wrap {
21
18
  display: flex;
22
19
  align-items: center;
@@ -20,8 +20,8 @@ var OrdersGroupSourceJSON = function OrdersGroupSourceJSON(text) {
20
20
  text: text || 'Name',
21
21
  content: {
22
22
  sizeType: 'Customize font styles',
23
- fontFamily: 'Montserrat',
24
- fontWeight: 500,
23
+ fontFamily: 'Open Sans',
24
+ fontWeight: 400,
25
25
  fontSize: 12,
26
26
  color: '#2C2C2C',
27
27
  width: 0,
@@ -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: 'Montserrat',
24
- fontWeight: 500,
23
+ fontFamily: 'Open Sans',
24
+ fontWeight: 400,
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: 'Montserrat',
46
+ fontFamily: 'Open Sans',
47
47
  fontWeight: 600,
48
48
  fontSize: 18,
49
49
  color: '#fff',
@@ -537,11 +537,11 @@ function (_super) {
537
537
  onClick: this.goLoginPage
538
538
  }, (0, _locale.i18n)('LOGIN_OR_REGISTER')))), /*#__PURE__*/_react["default"].createElement("div", {
539
539
  className: "btnGroup"
540
- }, !(0, _isEmpty["default"])(LPObj) && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
540
+ }, (0, _isEmpty["default"])(LPObj) && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
541
541
  color: "#fff",
542
542
  onClick: this.goSettings,
543
543
  size: 24,
544
- type: "icon-settings"
544
+ type: "icon-set"
545
545
  }), /*#__PURE__*/_react["default"].createElement("div", {
546
546
  className: "iconWrap"
547
547
  }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
@@ -551,7 +551,7 @@ function (_super) {
551
551
  type: "icon-messages"
552
552
  }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
553
553
  className: "num"
554
- }, messageNum)))), (0, _commonUtil.isLogin)() && /*#__PURE__*/_react["default"].createElement("div", {
554
+ }, messageNum)))), /*#__PURE__*/_react["default"].createElement("div", {
555
555
  className: "bottom"
556
556
  }, data.groupSource.map(function (item) {
557
557
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -1,5 +1,6 @@
1
1
  .personal-information-mobile {
2
- padding: 0.44rem 0.32rem;
2
+ height: 3.24rem;
3
+ padding: 0.32rem;
3
4
  box-sizing: border-box;
4
5
  }
5
6
  .personal-information-mobile .top {
@@ -44,9 +45,8 @@
44
45
  margin: 0;
45
46
  }
46
47
  .personal-information-mobile .top .pInfoWrap .userInfo .name {
47
- font-family: Montserrat;
48
- font-size: 0.32rem;
49
- font-weight: 600;
48
+ font-size: 0.28rem;
49
+ font-weight: 500;
50
50
  color: #ffffff;
51
51
  max-width: 2.96rem;
52
52
  white-space: nowrap;
@@ -55,9 +55,8 @@
55
55
  word-break: break-all;
56
56
  }
57
57
  .personal-information-mobile .top .pInfoWrap .userInfo .phone {
58
- font-family: Montserrat;
59
- font-size: 0.32rem;
60
- font-weight: 600;
58
+ font-size: 0.28rem;
59
+ font-weight: 400;
61
60
  color: #ffffff;
62
61
  margin-top: 0.1rem;
63
62
  }
@@ -71,8 +70,8 @@
71
70
  border-radius: 50%;
72
71
  }
73
72
  .personal-information-mobile .top .pInfoWrap .btnLogin {
74
- font-size: 0.32rem;
75
- font-weight: 600;
73
+ font-size: 0.28rem;
74
+ font-weight: 400;
76
75
  color: #ffffff;
77
76
  font-family: Montserrat;
78
77
  }
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sendToJs = exports.sendToIos = exports.sendToApp = exports.sendToAndroid = exports.iosSendToJs = exports.goToLoginApp = exports.connectWebViewJavascriptBridge = exports.browserVersion = void 0;
7
7
 
8
+ var _commonUtil = require("./commonUtil");
9
+
8
10
  // 判断访问终端
9
11
  var browserVersion = function browserVersion() {
10
12
  var u = navigator.userAgent;
@@ -139,9 +141,15 @@ exports.sendToApp = sendToApp;
139
141
 
140
142
  var goToLoginApp = function goToLoginApp() {
141
143
  if (browserVersion().ditoAndroidApp) {
142
- window.dito.goToLogin();
144
+ var deviceInfo = JSON.parse(window.dito.ocSetDeviceInfo());
145
+
146
+ if ((0, _commonUtil.compareVersion)(deviceInfo.AppVersion, '2.11.22') < 0) {
147
+ window.dito.goToLogin();
148
+ } else {
149
+ window.dito.goToLogin('');
150
+ }
143
151
  } else if (browserVersion().ditoIosApp) {
144
- window.dito.goToLogin();
152
+ window.dito.goToLogin(window.location.href);
145
153
  }
146
154
  };
147
155
 
@@ -7,7 +7,7 @@ exports.addZero = exports.addUrlQuery = void 0;
7
7
  exports.asyncDataURLtoImage = asyncDataURLtoImage;
8
8
  exports.checkLogin = exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
9
9
  exports.commonFetch = commonFetch;
10
- exports.convertCount = exports.compatibleNewPageData = void 0;
10
+ exports.convertCount = exports.compatibleNewPageData = exports.compareVersion = void 0;
11
11
  exports.convertImageUrl = convertImageUrl;
12
12
  exports.convertToRem = void 0;
13
13
  exports.copy2ClipBoard = copy2ClipBoard;
@@ -546,9 +546,31 @@ function convertImageUrl(imageObj, type) {
546
546
  return encodeURI(imageObj[typeMap] || imageObj.url);
547
547
  }, '');
548
548
  }
549
+
550
+ var compareVersion = function compareVersion(v1, v2) {
551
+ // 将两个版本号拆成数组
552
+ var arr1 = v1.split('.');
553
+ var arr2 = v2.split('.');
554
+ var minLength = Math.min(arr1.length, arr2.length); // 依次比较版本号每一位大小
555
+
556
+ for (var i = 0; i < minLength; i += 1) {
557
+ if (parseInt(arr1[i], 10) !== parseInt(arr2[i], 10)) {
558
+ return parseInt(arr1[i], 10) > parseInt(arr2[i], 10) ? 1 : -1;
559
+ }
560
+ } // 若前几位分隔相同,则按分隔数比较。
561
+
562
+
563
+ if (arr1.length === arr2.length) {
564
+ return 0;
565
+ }
566
+
567
+ return arr1.length > arr2.length ? 1 : -1;
568
+ };
549
569
  /** 序列化 style对象 */
550
570
 
551
571
 
572
+ exports.compareVersion = compareVersion;
573
+
552
574
  var styleStringify = function styleStringify(style, _a) {
553
575
  var _b = (_a === void 0 ? {} : _a).suffix,
554
576
  suffix = _b === void 0 ? 'px' : _b;
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.124",
4
+ "version": "1.0.126",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",