tplus-portaltouch 3.25.3 → 3.25.7

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 (67) hide show
  1. package/dist/api/ModifyPassApi.js.map +1 -1
  2. package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -1
  3. package/dist/components/dutyandsettle/dutysettlehistory.js +7 -7
  4. package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
  5. package/dist/components/dutyandsettle/index.js.map +1 -1
  6. package/dist/components/dutyandsettle/tipContent.js.map +1 -1
  7. package/dist/components/header/customUse.js.map +1 -1
  8. package/dist/components/header/headContent.js.map +1 -1
  9. package/dist/components/header/index.js +13 -13
  10. package/dist/components/header/index.js.map +1 -1
  11. package/dist/components/header/offlinePointDesc.js.map +1 -1
  12. package/dist/components/header/style.less +456 -456
  13. package/dist/components/header/themeModal.js.map +1 -1
  14. package/dist/components/header/uploadList.js +6 -6
  15. package/dist/components/header/uploadList.js.map +1 -1
  16. package/dist/components/header/vertical-touch.js.map +1 -1
  17. package/dist/components/header/vertical-touch.less +228 -228
  18. package/dist/containers/Main/index.js +0 -4
  19. package/dist/containers/Main/index.js.map +1 -1
  20. package/dist/dutyService/index.js.map +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/middleWare/index.js.map +1 -1
  23. package/dist/modalRouter/StaticRouter.js.map +1 -1
  24. package/dist/modalRouter/index.js +8 -8
  25. package/dist/modalRouter/index.js.map +1 -1
  26. package/dist/pages/Modal/index.js.map +1 -1
  27. package/dist/pages/Modal/style.less +5 -5
  28. package/dist/pages/Portalbc/data.js +51 -7
  29. package/dist/pages/Portalbc/data.js.map +1 -1
  30. package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -1
  31. package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -1
  32. package/dist/pages/Portalbc/index.js +243 -148
  33. package/dist/pages/Portalbc/index.js.map +1 -1
  34. package/dist/pages/Portalbc/index.less +799 -777
  35. package/dist/pages/Portalbc/onframe.js +9 -11
  36. package/dist/pages/Portalbc/onframe.js.map +1 -1
  37. package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
  38. package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
  39. package/dist/pages/dutyandsettle/index.js.map +1 -1
  40. package/dist/pages/dutyandsettle/index.less +529 -529
  41. package/dist/pages/dutyandsettle/offDuty.js +7 -7
  42. package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
  43. package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
  44. package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
  45. package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
  46. package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
  47. package/dist/pages/index.js.map +1 -1
  48. package/dist/pages/modifyPass/index.js.map +1 -1
  49. package/dist/pages/modifyPass/style.less +71 -71
  50. package/dist/pages/notFound/index.js.map +1 -1
  51. package/dist/pages/notFound/style.less +17 -17
  52. package/dist/stores/ModalRouter.js.map +1 -1
  53. package/dist/stores/ModifyPassStore.js +4 -1
  54. package/dist/stores/ModifyPassStore.js.map +1 -1
  55. package/dist/stores/PortalStore.js +5 -5
  56. package/dist/stores/PortalStore.js.map +1 -1
  57. package/dist/stores/PosLoginStore.js +3 -6
  58. package/dist/stores/PosLoginStore.js.map +1 -1
  59. package/dist/stores/billHistoryStore.js.map +1 -1
  60. package/dist/stores/dutySettleStore.js.map +1 -1
  61. package/dist/stores/index.js.map +1 -1
  62. package/dist/utils/PrintProcess.js +10 -10
  63. package/dist/utils/PrintProcess.js.map +1 -1
  64. package/dist/utils/index.js.map +1 -1
  65. package/dist/utils/networkCheck.js.map +1 -1
  66. package/package.json +37 -37
  67. package/tsconfig.json +14 -14
@@ -49,12 +49,12 @@ var _inherits2 = require('babel-runtime/helpers/inherits');
49
49
 
50
50
  var _inherits3 = _interopRequireDefault(_inherits2);
51
51
 
52
- var _class, _class2, _temp; /*
53
- * @Description:
54
- * @Date: 2019-08-13 08:42:18
55
- * @LastEditTime: 2021-11-22 18:41:40
56
- * @LastEditors: chenlongad
57
- * @modify:修改跳转到T+的查询方案方式
52
+ var _class, _class2, _temp; /*
53
+ * @Description:
54
+ * @Date: 2019-08-13 08:42:18
55
+ * @LastEditTime: 2021-12-01 10:51:40
56
+ * @LastEditors: chenlongad
57
+ * @modify:修改跳转到T+的查询方案方式
58
58
  */
59
59
 
60
60
 
@@ -135,44 +135,59 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
135
135
  currentDay = Math.ceil(new Date() / 1000 / 60 / 60 / 24);
136
136
 
137
137
  if (!(isLoginAfter == 1)) {
138
- _context.next = 14;
138
+ _context.next = 24;
139
139
  break;
140
140
  }
141
141
 
142
142
  if (!(!downloadCatcherDay || currentDay > downloadCatcherDay)) {
143
- _context.next = 13;
143
+ _context.next = 23;
144
144
  break;
145
145
  }
146
146
 
147
+ _context.prev = 6;
148
+
147
149
  downProgress = function downProgress(params) {
148
150
  _tplusComponentsTouch.Loading.transfer(params);
149
151
  };
150
152
 
151
153
  _tplusComponentsTouch.Loading.show({
152
- text: '离线数据下载中',
154
+ text: '离线数据下载中,请稍等...',
153
155
  delay: 0,
154
156
  showProgress: true
155
157
  });
156
- _context.next = 10;
158
+ _context.next = 11;
157
159
  return offlineSys.downloadCatcherData(downProgress);
158
160
 
159
- case 10:
161
+ case 11:
160
162
  result = _context.sent;
161
163
 
164
+ if (result) _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
162
165
  _tplusComponentsTouch.Loading.hide();
163
- if (result) {
164
- _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
165
- }
166
+ _context.next = 20;
167
+ break;
166
168
 
167
- case 13:
169
+ case 16:
170
+ _context.prev = 16;
171
+ _context.t0 = _context['catch'](6);
172
+
173
+ console.log('downloadCatcherData下载离线数据', _context.t0);
174
+ _tplusComponentsTouch.Loading.hide();
175
+
176
+ case 20:
177
+ _context.prev = 20;
178
+
179
+ _tplusComponentsTouch.Loading.hide();
180
+ return _context.finish(20);
181
+
182
+ case 23:
168
183
  _mutantsMicrofx.localStore.set("isLoginAfter", 0);
169
184
 
170
- case 14:
185
+ case 24:
171
186
  case 'end':
172
187
  return _context.stop();
173
188
  }
174
189
  }
175
- }, _callee, _this2);
190
+ }, _callee, _this2, [[6, 16, 20, 23]]);
176
191
  }));
177
192
 
178
193
  _this.getOperation = function () {
@@ -217,7 +232,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
217
232
 
218
233
  case 7:
219
234
  _tplusComponentsTouch.Loading.show({
220
- text: '权限加载中...',
235
+ text: '权限加载中,请稍等...',
221
236
  delay: 2500
222
237
  });
223
238
  //权限加载
@@ -232,10 +247,16 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
232
247
  case 13:
233
248
  _context2.prev = 13;
234
249
  _context2.t0 = _context2['catch'](8);
250
+
235
251
  _tplusComponentsTouch.Loading.hide();
236
252
 
237
253
  case 16:
254
+ _context2.prev = 16;
255
+
238
256
  _tplusComponentsTouch.Loading.hide();
257
+ return _context2.finish(16);
258
+
259
+ case 19:
239
260
  addClass && addClass(_this.state.id, 'portalHead');
240
261
  // 初始化参数设置。
241
262
  stores.setStore.initSetParams().then(function (ret) {
@@ -254,12 +275,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
254
275
  });
255
276
  _this.hsyBasicInfoInit();
256
277
 
257
- case 20:
278
+ case 22:
258
279
  case 'end':
259
280
  return _context2.stop();
260
281
  }
261
282
  }
262
- }, _callee2, _this2, [[8, 13]]);
283
+ }, _callee2, _this2, [[8, 13, 16, 19]]);
263
284
  }));
264
285
 
265
286
  _this.initHsyPage = function () {
@@ -281,12 +302,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
281
302
  // 进行主副屏数据交互 初始化
282
303
  console.log(result);
283
304
 
284
- var _ref3 = _mutantsMicrofx.stores.user || {},
285
- _ref3$store = _ref3.store;
286
-
287
- _ref3$store = _ref3$store === undefined ? {} : _ref3$store;
288
- var _ref3$store$storeName = _ref3$store.storeName,
289
- storeName = _ref3$store$storeName === undefined ? '' : _ref3$store$storeName;
305
+ var _ref3 = _mutantsMicrofx.stores.user.options.get('store') || {},
306
+ _ref3$storeName = _ref3.storeName,
307
+ storeName = _ref3$storeName === undefined ? '' : _ref3$storeName;
290
308
 
291
309
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
292
310
  RE_POSParamType = _enumController$getEn.RE_POSParamType;
@@ -634,7 +652,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
634
652
 
635
653
  _this.toHsyPage = function () {
636
654
  var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(params) {
637
- var content_only, bar_bg, bar_active_bg, menu, secondRouter, activePrompt, closePrompt, closeable, leavePrompt, lock, pageId, pageParams, path, tabId, tabLabel, pageType, _k, filter, IdWarehouse, WarehouseName, IsPerformanceDistribution, _ref10, _ref10$loginInfo, _ref10$loginInfo$IdSt, IdStore, _ref10$loginInfo$PosI, PosId, _ref10$store, _ref10$store$storeNam, storeName, commonArgs, actionUrl, cc_url, CC_WEB_URL, external_frame, win;
655
+ var content_only, bar_bg, bar_active_bg, menu, secondRouter, activePrompt, closePrompt, closeable, leavePrompt, lock, pageId, pageParams, path, tabId, tabLabel, pageType, _k, filter, IdWarehouse, WarehouseName, IsPerformanceDistribution, _ref10, _ref10$IdStore, IdStore, _ref10$PosId, PosId, _ref11, _ref11$storeName, storeName, commonArgs, actionUrl, cc_url, CC_WEB_URL, external_frame, win;
638
656
 
639
657
  return _regenerator2.default.wrap(function _callee4$(_context4) {
640
658
  while (1) {
@@ -647,14 +665,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
647
665
  IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
648
666
  WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
649
667
  IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
650
- _ref10 = _mutantsMicrofx.stores.user || {}, _ref10$loginInfo = _ref10.loginInfo, _ref10$loginInfo$IdSt = _ref10$loginInfo.IdStore, IdStore = _ref10$loginInfo$IdSt === undefined ? '' : _ref10$loginInfo$IdSt, _ref10$loginInfo$PosI = _ref10$loginInfo.PosId, PosId = _ref10$loginInfo$PosI === undefined ? '' : _ref10$loginInfo$PosI, _ref10$store = _ref10.store;
651
- _ref10$store = _ref10$store === undefined ? {} : _ref10$store;
652
- _ref10$store$storeNam = _ref10$store.storeName, storeName = _ref10$store$storeNam === undefined ? '' : _ref10$store$storeNam;
668
+ _ref10 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {}, _ref10$IdStore = _ref10.IdStore, IdStore = _ref10$IdStore === undefined ? '' : _ref10$IdStore, _ref10$PosId = _ref10.PosId, PosId = _ref10$PosId === undefined ? '' : _ref10$PosId;
669
+ _ref11 = _mutantsMicrofx.stores.user.options.get('store') || {}, _ref11$storeName = _ref11.storeName, storeName = _ref11$storeName === undefined ? '' : _ref11$storeName;
653
670
  _context4.t0 = pageType;
654
- _context4.next = _context4.t0 === 'voucher' ? 11 : _context4.t0 === 'report' ? 14 : 18;
671
+ _context4.next = _context4.t0 === 'voucher' ? 10 : _context4.t0 === 'report' ? 13 : 17;
655
672
  break;
656
673
 
657
- case 11:
674
+ case 10:
658
675
  filter = {
659
676
  defaultValue: {
660
677
  storeId: {
@@ -681,9 +698,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
681
698
  }
682
699
  };
683
700
  }
684
- return _context4.abrupt('break', 18);
701
+ return _context4.abrupt('break', 17);
685
702
 
686
- case 14:
703
+ case 13:
687
704
  filter = {
688
705
  filterValue: {
689
706
  storeId: {
@@ -737,9 +754,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
737
754
  }
738
755
  };
739
756
  }
740
- return _context4.abrupt('break', 18);
757
+ return _context4.abrupt('break', 17);
741
758
 
742
- case 18:
759
+ case 17:
743
760
  bar_bg = encodeURIComponent(bar_bg);
744
761
  bar_active_bg = encodeURIComponent(bar_active_bg);
745
762
  menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
@@ -755,22 +772,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
755
772
  console.log('web_hsy_url:', cc_url);
756
773
 
757
774
  if (!_this.isHorizontalSunMi) {
758
- _context4.next = 37;
775
+ _context4.next = 36;
759
776
  break;
760
777
  }
761
778
 
762
- _context4.next = 32;
779
+ _context4.next = 31;
763
780
  return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
764
781
 
765
- case 32:
782
+ case 31:
766
783
  CC_WEB_URL = _context4.sent;
767
784
 
768
785
  console.log('CC_WEB_URL:', CC_WEB_URL);
769
786
  window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
770
- _context4.next = 42;
787
+ _context4.next = 41;
771
788
  break;
772
789
 
773
- case 37:
790
+ case 36:
774
791
  external_frame = document.getElementById('external-frame-cc');
775
792
  win = external_frame.contentWindow;
776
793
 
@@ -791,7 +808,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
791
808
  }
792
809
  });
793
810
 
794
- case 42:
811
+ case 41:
795
812
  case 'end':
796
813
  return _context4.stop();
797
814
  }
@@ -894,10 +911,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
894
911
  return vv.Name === v.Name;
895
912
  });
896
913
 
897
- var _ref11 = controllable || {},
898
- Visibility = _ref11.Visibility,
899
- HoldFunctionAuth = _ref11.HoldFunctionAuth,
900
- Title = _ref11.Title;
914
+ var _ref12 = controllable || {},
915
+ Visibility = _ref12.Visibility,
916
+ HoldFunctionAuth = _ref12.HoldFunctionAuth,
917
+ Title = _ref12.Title;
901
918
 
902
919
  var errorTip = void 0;
903
920
  if (!Visibility) {
@@ -912,6 +929,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
912
929
 
913
930
  _this.createLeftNode = function () {
914
931
  var menu = _this.leftMenu;
932
+ if (menu.length == 0) {
933
+ return _react2.default.createElement(
934
+ _antd.Col,
935
+ { xl: 3, md: 3, className: 'portal-left-col', key: 'left' },
936
+ _react2.default.createElement('div', { className: 'portal-left-content' })
937
+ );
938
+ // return null;
939
+ }
915
940
  var menuNode = menu.map(function (v) {
916
941
  return v.container ? _react2.default.createElement(
917
942
  'div',
@@ -962,7 +987,15 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
962
987
  v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
963
988
  );
964
989
  });
965
- return menuNode;
990
+ return _react2.default.createElement(
991
+ _antd.Col,
992
+ { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
993
+ _react2.default.createElement(
994
+ 'div',
995
+ { className: 'portal-left-content' },
996
+ menuNode
997
+ )
998
+ );
966
999
  };
967
1000
 
968
1001
  _this.createCenterNode = function () {
@@ -1096,12 +1129,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1096
1129
  };
1097
1130
 
1098
1131
  _this.createMoreNode = function () {
1099
- var arrs = _this.centerRightMenu.find(function (v) {
1100
- return v.sub && v.sub.find(function (vv) {
1101
- return vv.key == 'more';
1102
- });
1103
- }).sub[1];
1104
- var items = _this.new_retail_app == 'cc' ? arrs.sub_cc : _this.new_retail_app == 'tc' || _this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj' ? arrs.sub_tc : [];
1132
+ var arrs = _this.getMoreNodeInfo();
1133
+ var items = _this.isNewRetailBCPosTC ? arrs.sub_tc : arrs.sub_cc || [];
1105
1134
  var node = items.length > 0 && items.map(function (v) {
1106
1135
  return _react2.default.createElement(
1107
1136
  'div',
@@ -1126,6 +1155,34 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1126
1155
  return node;
1127
1156
  };
1128
1157
 
1158
+ _this.getMoreNodeInfo = function () {
1159
+ if (_this.isNewRetailBCPosTC) {
1160
+ if (_this.isMobileEnvironment) {
1161
+ return _this.centerRightMenu.find(function (vv) {
1162
+ return vv.key == 'more';
1163
+ }) || {};
1164
+ } else {
1165
+ return _this.centerRightMenu.find(function (v) {
1166
+ return v.sub && v.sub.find(function (vv) {
1167
+ return vv.key == 'more';
1168
+ });
1169
+ }).sub[1] || {};
1170
+ }
1171
+ } else {
1172
+ if (_this.isMobileEnvironment) {
1173
+ return _this.centerRightMenu.find(function (vv) {
1174
+ return vv.key == 'more';
1175
+ }) || {};
1176
+ } else {
1177
+ return _this.centerRightMenu.find(function (v) {
1178
+ return v.sub && v.sub.find(function (vv) {
1179
+ return vv.key == 'more';
1180
+ });
1181
+ }).sub[1] || {};
1182
+ }
1183
+ }
1184
+ };
1185
+
1129
1186
  _this.hasElectron = hasElectron;
1130
1187
  _this.state = {
1131
1188
  id: Date.now(),
@@ -1140,12 +1197,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1140
1197
  modalURL: ''
1141
1198
  };
1142
1199
 
1143
- var _ref12 = _mutantsUtil.platform || {},
1144
- isVerticalTouch = _ref12.isVerticalTouch,
1145
- isHorizontalPad = _ref12.isHorizontalPad,
1146
- isHorizontalSunMi = _ref12.isHorizontalSunMi,
1147
- isNewRetailBCPos = _ref12.isNewRetailBCPos,
1148
- isNewRetailBCPosTC = _ref12.isNewRetailBCPosTC;
1200
+ var _ref13 = _mutantsUtil.platform || {},
1201
+ isVerticalTouch = _ref13.isVerticalTouch,
1202
+ isHorizontalPad = _ref13.isHorizontalPad,
1203
+ isHorizontalSunMi = _ref13.isHorizontalSunMi,
1204
+ isNewRetailBCPos = _ref13.isNewRetailBCPos,
1205
+ isNewRetailBCPosTC = _ref13.isNewRetailBCPosTC;
1149
1206
 
1150
1207
  _this.isVerticalTouch = !!isVerticalTouch;
1151
1208
  _this.isHorizontalPad = !!isHorizontalPad;
@@ -1157,17 +1214,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1157
1214
  _this.new_retail_app = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('newRetailAppType');
1158
1215
 
1159
1216
  //首页布局
1160
- var leftMenu = _data2.default.leftMenu,
1161
- centerLeftMenu = _data2.default.centerLeftMenu,
1162
- centerRightMenu = _data2.default.centerRightMenu,
1163
- rightMenu = _data2.default.rightMenu,
1164
- leftMenuTC = _data2.default.leftMenuTC,
1165
- rightMenuTC = _data2.default.rightMenuTC;
1166
-
1167
- _this.leftMenu = isNewRetailBCPosTC ? leftMenuTC : leftMenu;
1168
- _this.centerLeftMenu = centerLeftMenu;
1169
- _this.centerRightMenu = centerRightMenu;
1170
- _this.rightMenu = isNewRetailBCPosTC ? rightMenuTC : rightMenu;
1217
+ _this.leftMenu = _this.getMenuByPosition('left');
1218
+ _this.centerLeftMenu = _this.getMenuByPosition('centerLeft');
1219
+ _this.centerRightMenu = _this.getMenuByPosition('centerRight');
1220
+ _this.rightMenu = _this.getMenuByPosition('right');
1171
1221
  _this.hsy_domain = _tplusApi.User && _tplusApi.User.getWebEntry();
1172
1222
  _this.randomWord = _this.randomWord.bind(_this);
1173
1223
  (0, _mobx.autorun)(function () {
@@ -1177,6 +1227,58 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1177
1227
  }
1178
1228
 
1179
1229
  (0, _createClass3.default)(_default, [{
1230
+ key: 'getMenuByPosition',
1231
+ value: function getMenuByPosition(position) {
1232
+ var leftMenu = _data2.default.leftMenu,
1233
+ centerLeftMenu = _data2.default.centerLeftMenu,
1234
+ centerRightMenu = _data2.default.centerRightMenu,
1235
+ rightMenu = _data2.default.rightMenu,
1236
+ leftMenuTC = _data2.default.leftMenuTC,
1237
+ rightMenuTC = _data2.default.rightMenuTC,
1238
+ centerLeftMenuMobileCC = _data2.default.centerLeftMenuMobileCC,
1239
+ centerLeftMenuMobileTC = _data2.default.centerLeftMenuMobileTC,
1240
+ centerRightMenuMobileCC = _data2.default.centerRightMenuMobileCC,
1241
+ centerRightMenuMobileTC = _data2.default.centerRightMenuMobileTC,
1242
+ rightMenuMobileTC = _data2.default.rightMenuMobileTC,
1243
+ rightMenuMobileCC = _data2.default.rightMenuMobileCC;
1244
+
1245
+ switch (position) {
1246
+ case "left":
1247
+ {
1248
+ return this.getMenuByEnvironment(leftMenu, leftMenuTC, [], []);
1249
+ }
1250
+ case "centerLeft":
1251
+ {
1252
+ return this.getMenuByEnvironment(centerLeftMenu, centerLeftMenu, centerLeftMenuMobileTC, centerLeftMenuMobileCC);
1253
+ }
1254
+ case "centerRight":
1255
+ {
1256
+ return this.getMenuByEnvironment(centerRightMenu, centerRightMenu, centerRightMenuMobileTC, centerRightMenuMobileCC);
1257
+ }
1258
+ case "right":
1259
+ {
1260
+ return this.getMenuByEnvironment(rightMenu, rightMenuTC, rightMenuMobileTC, rightMenuMobileCC);
1261
+ }
1262
+ }
1263
+ }
1264
+ }, {
1265
+ key: 'getMenuByEnvironment',
1266
+ value: function getMenuByEnvironment(ccMenu, tcMenu, tcMobilMenu, ccMobilMenu) {
1267
+ if (this.isNewRetailBCPosTC) {
1268
+ if (this.isMobileEnvironment) {
1269
+ return tcMobilMenu;
1270
+ } else {
1271
+ return tcMenu;
1272
+ }
1273
+ } else {
1274
+ if (this.isMobileEnvironment) {
1275
+ return ccMobilMenu;
1276
+ } else {
1277
+ return ccMenu;
1278
+ }
1279
+ }
1280
+ }
1281
+ }, {
1180
1282
  key: 'componentDidMount',
1181
1283
  value: function componentDidMount() {
1182
1284
  this.initPageData();
@@ -1213,9 +1315,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1213
1315
  break;
1214
1316
  }
1215
1317
 
1216
- var _ref13 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1217
- _ref13$PosId = _ref13.PosId,
1218
- PosId = _ref13$PosId === undefined ? '' : _ref13$PosId;
1318
+ var _ref14 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1319
+ _ref14$PosId = _ref14.PosId,
1320
+ PosId = _ref14$PosId === undefined ? '' : _ref14$PosId;
1219
1321
 
1220
1322
  var cc_url = this.hsy_domain.replace('#/', '') + '?fromApp=nretail&posid=' + PosId + '&content_only=true&bar_bg=' + encodeURIComponent('#FFFFFF') + '&bar_active_bg=' + encodeURIComponent(color);
1221
1323
  this.setState({ loadHsyURL: cc_url });
@@ -1274,88 +1376,81 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1274
1376
 
1275
1377
  var screenHeight = window.screen.availHeight - 100;
1276
1378
  var htmlContent = null;
1277
- if (this.isVerticalTouch) {
1278
- htmlContent = _react2.default.createElement(_verticalPortal2.default, { handelClick: this.handelClick });
1279
- } else if (this.isHorizontalPad) {
1280
- htmlContent = _react2.default.createElement(_horizontalPadPortal2.default, { handelClick: this.handelClick });
1281
- } else {
1282
- htmlContent = _react2.default.createElement(
1283
- _tplusComponentsTouch.Layout,
1284
- { style: { height: '100%' }, className: 'portal-content' },
1379
+ // if (this.isVerticalTouch) {
1380
+ // htmlContent = <VerticalPortal handelClick={this.handelClick} />
1381
+ // } else if (this.isHorizontalPad) {
1382
+ // htmlContent = <HorizontalPadPortal handelClick={this.handelClick} />
1383
+ // }
1384
+ // else {
1385
+ htmlContent = _react2.default.createElement(
1386
+ _tplusComponentsTouch.Layout,
1387
+ { style: { height: '100%' }, className: 'portal-content' },
1388
+ _react2.default.createElement(
1389
+ Content,
1390
+ { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
1285
1391
  _react2.default.createElement(
1286
- Content,
1287
- { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
1392
+ _antd.Row,
1393
+ null,
1394
+ this.createLeftNode(),
1288
1395
  _react2.default.createElement(
1289
- _antd.Row,
1290
- null,
1291
- _react2.default.createElement(
1292
- _antd.Col,
1293
- { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
1294
- _react2.default.createElement(
1295
- 'div',
1296
- { className: 'portal-left-content' },
1297
- this.createLeftNode()
1298
- )
1299
- ),
1396
+ _antd.Col,
1397
+ { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1300
1398
  _react2.default.createElement(
1301
- _antd.Col,
1302
- { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1303
- _react2.default.createElement(
1304
- 'div',
1305
- { className: 'portal-center-content' },
1306
- this.createCenterNode()
1307
- )
1308
- ),
1399
+ 'div',
1400
+ { className: 'portal-center-content' },
1401
+ this.createCenterNode()
1402
+ )
1403
+ ),
1404
+ _react2.default.createElement(
1405
+ _antd.Col,
1406
+ { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
1309
1407
  _react2.default.createElement(
1310
- _antd.Col,
1311
- { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
1312
- _react2.default.createElement(
1313
- 'div',
1314
- { className: 'portal-right-content' },
1315
- this.createRightNode()
1316
- )
1408
+ 'div',
1409
+ { className: 'portal-right-content' },
1410
+ this.createRightNode()
1317
1411
  )
1318
1412
  )
1319
- ),
1320
- _react2.default.createElement(
1321
- 'div',
1322
- { className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1323
- _react2.default.createElement('iframe', { src: loadHsyURL, width: '100%', height: '93%', frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true', id: 'external-frame-cc' })
1324
- ),
1325
- _react2.default.createElement(
1326
- 'div',
1327
- { className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1328
- _react2.default.createElement('iframe', { src: loadTcURL, width: '100%', height: '93%', frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true', id: 'external-frame-tc' })
1329
- ),
1330
- this.isMobileEnvironment && _react2.default.createElement(
1331
- _antd.Modal,
1332
- {
1333
- visible: showModal,
1334
- onCancel: this.closeFrameModal,
1335
- width: '99%',
1336
- height: '99%',
1337
- footer: null
1338
- },
1339
- _react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
1340
- ),
1341
- _react2.default.createElement(
1342
- _antd.Modal,
1343
- {
1344
- title: '更多',
1345
- className: 'portal-container-modal-more',
1346
- visible: showMoreModal,
1347
- onCancel: this.closeMoreModal,
1348
- width: 800,
1349
- height: 375,
1350
- footer: null,
1351
- centered: true,
1352
- maskClosable: false,
1353
- keyboard: false
1354
- },
1355
- this.createMoreNode()
1356
1413
  )
1357
- );
1358
- }
1414
+ ),
1415
+ _react2.default.createElement(
1416
+ 'div',
1417
+ { className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1418
+ _react2.default.createElement('iframe', { src: loadHsyURL, width: '100%', height: '93%', frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true', id: 'external-frame-cc' })
1419
+ ),
1420
+ _react2.default.createElement(
1421
+ 'div',
1422
+ { className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1423
+ _react2.default.createElement('iframe', { src: loadTcURL, width: '100%', height: '93%', frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true', id: 'external-frame-tc' })
1424
+ ),
1425
+ this.isMobileEnvironment && _react2.default.createElement(
1426
+ _antd.Modal,
1427
+ {
1428
+ visible: showModal,
1429
+ onCancel: this.closeFrameModal,
1430
+ width: '99%',
1431
+ height: '99%',
1432
+ footer: null
1433
+ },
1434
+ _react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
1435
+ ),
1436
+ _react2.default.createElement(
1437
+ _antd.Modal,
1438
+ {
1439
+ title: '更多',
1440
+ className: 'portal-container-modal-more',
1441
+ visible: showMoreModal,
1442
+ onCancel: this.closeMoreModal,
1443
+ width: 800,
1444
+ height: 375,
1445
+ footer: null,
1446
+ centered: true,
1447
+ maskClosable: false,
1448
+ keyboard: false
1449
+ },
1450
+ this.createMoreNode()
1451
+ )
1452
+ );
1453
+ // }
1359
1454
  return htmlContent;
1360
1455
  }
1361
1456
  }]);