@fonixtree/magic-design 1.0.55 → 1.0.56

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.
@@ -67,7 +67,7 @@ var getDefaultJSON = function getDefaultJSON() {
67
67
  return {
68
68
  id: (0, _uuid.v4)(),
69
69
  type: 'COMMON_FUNCTIONS',
70
- groupSource: [CommonFunctionsGroupSourceJSON('Address', '/address/manage'), CommonFunctionsGroupSourceJSON('Policies', '/account/policies'), CommonFunctionsGroupSourceJSON('Security Center', '/account/security'), CommonFunctionsGroupSourceJSON('Chat With Us')],
70
+ groupSource: [CommonFunctionsGroupSourceJSON('Address', '/address/manage'), CommonFunctionsGroupSourceJSON('Policies', '/account/policies'), CommonFunctionsGroupSourceJSON('Security Center', '/account/security'), CommonFunctionsGroupSourceJSON('Chat With Us', '/new-chat')],
71
71
  spacing: {
72
72
  pc: {
73
73
  paddingTop: 0,
@@ -56,7 +56,7 @@ function (_super) {
56
56
  _this.state = {};
57
57
 
58
58
  _this.onItemClick = function (item) {
59
- if ((0, _commonUtil.checkLogin)()) {
59
+ if ((0, _commonUtil.checkLogin)(true, '/main/account')) {
60
60
  var url = (0, _commonUtil.ensure)(function () {
61
61
  return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
62
62
  }, '');
@@ -19,8 +19,8 @@
19
19
  align-items: center;
20
20
  }
21
21
  .common-functions-mobile ul li > div .img {
22
- width: 0.32rem;
23
- height: 0.32rem;
22
+ width: 0.56rem;
23
+ height: 0.56rem;
24
24
  margin-right: 0.08rem;
25
25
  }
26
26
  .common-functions-mobile ul li > div .title {
@@ -212,11 +212,11 @@ var orderData = {
212
212
  },
213
213
  Done: {
214
214
  key: 'toRatingNum',
215
- route: '/rating-list'
215
+ route: '/main/order/4'
216
216
  },
217
217
  Cancelled: {
218
218
  key: 'returnsNum',
219
- route: '/aftersale-list'
219
+ route: '/main/order/5'
220
220
  }
221
221
  };
222
222
  exports.orderData = orderData;
@@ -349,7 +349,7 @@ function goLogin(state, replaceFlag) {
349
349
  var signUrl = isFromSf === 'Y' ? '/sign-in-opt' : '/sign-in';
350
350
 
351
351
  if (replaceFlag) {
352
- Fishx.history.replace({
352
+ window.magicDesign.history.replace({
353
353
  pathname: signUrl,
354
354
  state: state
355
355
  });
@@ -67,7 +67,7 @@ var getDefaultJSON = function getDefaultJSON() {
67
67
  return {
68
68
  id: (0, _uuid.v4)(),
69
69
  type: 'COMMON_FUNCTIONS',
70
- groupSource: [CommonFunctionsGroupSourceJSON('Address', '/address/manage'), CommonFunctionsGroupSourceJSON('Policies', '/account/policies'), CommonFunctionsGroupSourceJSON('Security Center', '/account/security'), CommonFunctionsGroupSourceJSON('Chat With Us')],
70
+ groupSource: [CommonFunctionsGroupSourceJSON('Address', '/address/manage'), CommonFunctionsGroupSourceJSON('Policies', '/account/policies'), CommonFunctionsGroupSourceJSON('Security Center', '/account/security'), CommonFunctionsGroupSourceJSON('Chat With Us', '/new-chat')],
71
71
  spacing: {
72
72
  pc: {
73
73
  paddingTop: 0,
@@ -56,7 +56,7 @@ function (_super) {
56
56
  _this.state = {};
57
57
 
58
58
  _this.onItemClick = function (item) {
59
- if ((0, _commonUtil.checkLogin)()) {
59
+ if ((0, _commonUtil.checkLogin)(true, '/main/account')) {
60
60
  var url = (0, _commonUtil.ensure)(function () {
61
61
  return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
62
62
  }, '');
@@ -19,8 +19,8 @@
19
19
  align-items: center;
20
20
  }
21
21
  .common-functions-mobile ul li > div .img {
22
- width: 0.32rem;
23
- height: 0.32rem;
22
+ width: 0.56rem;
23
+ height: 0.56rem;
24
24
  margin-right: 0.08rem;
25
25
  }
26
26
  .common-functions-mobile ul li > div .title {
@@ -212,11 +212,11 @@ var orderData = {
212
212
  },
213
213
  Done: {
214
214
  key: 'toRatingNum',
215
- route: '/rating-list'
215
+ route: '/main/order/4'
216
216
  },
217
217
  Cancelled: {
218
218
  key: 'returnsNum',
219
- route: '/aftersale-list'
219
+ route: '/main/order/5'
220
220
  }
221
221
  };
222
222
  exports.orderData = orderData;
@@ -349,7 +349,7 @@ function goLogin(state, replaceFlag) {
349
349
  var signUrl = isFromSf === 'Y' ? '/sign-in-opt' : '/sign-in';
350
350
 
351
351
  if (replaceFlag) {
352
- Fishx.history.replace({
352
+ window.magicDesign.history.replace({
353
353
  pathname: signUrl,
354
354
  state: state
355
355
  });
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.55",
4
+ "version": "1.0.56",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",