tplus-portaltouch 3.25.2 → 3.25.6

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.
@@ -52,7 +52,7 @@ var _inherits3 = _interopRequireDefault(_inherits2);
52
52
  var _class, _class2, _temp; /*
53
53
  * @Description:
54
54
  * @Date: 2019-08-13 08:42:18
55
- * @LastEditTime: 2021-11-22 18:41:40
55
+ * @LastEditTime: 2021-11-30 20:21:27
56
56
  * @LastEditors: chenlongad
57
57
  * @modify:修改跳转到T+的查询方案方式
58
58
  */
@@ -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) {
@@ -245,17 +266,21 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
245
266
  _this.sunMiPresentationInit(ret);
246
267
  return;
247
268
  }
269
+ console.log('副屏页面打开之前,user信息', (0, _stringify2.default)(stores.user));
248
270
  window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
271
+ setTimeout(function () {
272
+ console.log('副屏页面打开之后,user信息', (0, _stringify2.default)(stores.user));
273
+ }, 3000);
249
274
  }
250
275
  });
251
276
  _this.hsyBasicInfoInit();
252
277
 
253
- case 20:
278
+ case 22:
254
279
  case 'end':
255
280
  return _context2.stop();
256
281
  }
257
282
  }
258
- }, _callee2, _this2, [[8, 13]]);
283
+ }, _callee2, _this2, [[8, 13, 16, 19]]);
259
284
  }));
260
285
 
261
286
  _this.initHsyPage = function () {
@@ -275,15 +300,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
275
300
  //SunMi初始化参数设置。
276
301
  //副屏幕交互。硬件改动20200428 需要在商米页面加载成功后才能发送 初始化命令
277
302
  // 进行主副屏数据交互 初始化
278
- var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
279
- _ref3$store = _ref3.store;
280
-
281
- _ref3$store = _ref3$store === undefined ? {} : _ref3$store;
282
- var _ref3$store$storeName = _ref3$store.storeName,
283
- storeName = _ref3$store$storeName === undefined ? '' : _ref3$store$storeName;
284
-
285
303
  console.log(result);
286
304
 
305
+ var _ref3 = _mutantsMicrofx.stores.user.options.get('store') || {},
306
+ _ref3$storeName = _ref3.storeName,
307
+ storeName = _ref3$storeName === undefined ? '' : _ref3$storeName;
308
+
287
309
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
288
310
  RE_POSParamType = _enumController$getEn.RE_POSParamType;
289
311
 
@@ -630,7 +652,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
630
652
 
631
653
  _this.toHsyPage = function () {
632
654
  var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(params) {
633
- 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;
634
656
 
635
657
  return _regenerator2.default.wrap(function _callee4$(_context4) {
636
658
  while (1) {
@@ -643,14 +665,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
643
665
  IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
644
666
  WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
645
667
  IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
646
- _ref10 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('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;
647
- _ref10$store = _ref10$store === undefined ? {} : _ref10$store;
648
- _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;
649
670
  _context4.t0 = pageType;
650
- _context4.next = _context4.t0 === 'voucher' ? 11 : _context4.t0 === 'report' ? 14 : 18;
671
+ _context4.next = _context4.t0 === 'voucher' ? 10 : _context4.t0 === 'report' ? 13 : 17;
651
672
  break;
652
673
 
653
- case 11:
674
+ case 10:
654
675
  filter = {
655
676
  defaultValue: {
656
677
  storeId: {
@@ -677,9 +698,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
677
698
  }
678
699
  };
679
700
  }
680
- return _context4.abrupt('break', 18);
701
+ return _context4.abrupt('break', 17);
681
702
 
682
- case 14:
703
+ case 13:
683
704
  filter = {
684
705
  filterValue: {
685
706
  storeId: {
@@ -733,9 +754,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
733
754
  }
734
755
  };
735
756
  }
736
- return _context4.abrupt('break', 18);
757
+ return _context4.abrupt('break', 17);
737
758
 
738
- case 18:
759
+ case 17:
739
760
  bar_bg = encodeURIComponent(bar_bg);
740
761
  bar_active_bg = encodeURIComponent(bar_active_bg);
741
762
  menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
@@ -751,22 +772,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
751
772
  console.log('web_hsy_url:', cc_url);
752
773
 
753
774
  if (!_this.isHorizontalSunMi) {
754
- _context4.next = 37;
775
+ _context4.next = 36;
755
776
  break;
756
777
  }
757
778
 
758
- _context4.next = 32;
779
+ _context4.next = 31;
759
780
  return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
760
781
 
761
- case 32:
782
+ case 31:
762
783
  CC_WEB_URL = _context4.sent;
763
784
 
764
785
  console.log('CC_WEB_URL:', CC_WEB_URL);
765
786
  window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
766
- _context4.next = 42;
787
+ _context4.next = 41;
767
788
  break;
768
789
 
769
- case 37:
790
+ case 36:
770
791
  external_frame = document.getElementById('external-frame-cc');
771
792
  win = external_frame.contentWindow;
772
793
 
@@ -787,7 +808,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
787
808
  }
788
809
  });
789
810
 
790
- case 42:
811
+ case 41:
791
812
  case 'end':
792
813
  return _context4.stop();
793
814
  }
@@ -890,10 +911,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
890
911
  return vv.Name === v.Name;
891
912
  });
892
913
 
893
- var _ref11 = controllable || {},
894
- Visibility = _ref11.Visibility,
895
- HoldFunctionAuth = _ref11.HoldFunctionAuth,
896
- Title = _ref11.Title;
914
+ var _ref12 = controllable || {},
915
+ Visibility = _ref12.Visibility,
916
+ HoldFunctionAuth = _ref12.HoldFunctionAuth,
917
+ Title = _ref12.Title;
897
918
 
898
919
  var errorTip = void 0;
899
920
  if (!Visibility) {
@@ -908,6 +929,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
908
929
 
909
930
  _this.createLeftNode = function () {
910
931
  var menu = _this.leftMenu;
932
+ if (menu.length == 0) {
933
+ return _react2.default.createElement(
934
+ _antd.Col,
935
+ { xl: 4, md: 4, className: 'portal-left-col', key: 'left' },
936
+ _react2.default.createElement('div', { className: 'portal-left-content' })
937
+ );
938
+ }
911
939
  var menuNode = menu.map(function (v) {
912
940
  return v.container ? _react2.default.createElement(
913
941
  'div',
@@ -958,7 +986,15 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
958
986
  v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
959
987
  );
960
988
  });
961
- return menuNode;
989
+ return _react2.default.createElement(
990
+ _antd.Col,
991
+ { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
992
+ _react2.default.createElement(
993
+ 'div',
994
+ { className: 'portal-left-content' },
995
+ menuNode
996
+ )
997
+ );
962
998
  };
963
999
 
964
1000
  _this.createCenterNode = function () {
@@ -1092,12 +1128,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1092
1128
  };
1093
1129
 
1094
1130
  _this.createMoreNode = function () {
1095
- var arrs = _this.centerRightMenu.find(function (v) {
1096
- return v.sub && v.sub.find(function (vv) {
1097
- return vv.key == 'more';
1098
- });
1099
- }).sub[1];
1100
- 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 : [];
1131
+ var arrs = _this.getMoreNodeInfo();
1132
+ var items = _this.isNewRetailBCPosTC ? arrs.sub_tc : arrs.sub_cc || [];
1101
1133
  var node = items.length > 0 && items.map(function (v) {
1102
1134
  return _react2.default.createElement(
1103
1135
  'div',
@@ -1122,6 +1154,34 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1122
1154
  return node;
1123
1155
  };
1124
1156
 
1157
+ _this.getMoreNodeInfo = function () {
1158
+ if (_this.isNewRetailBCPosTC) {
1159
+ if (_this.isMobileEnvironment) {
1160
+ return _this.centerRightMenu.find(function (vv) {
1161
+ return vv.key == 'more';
1162
+ }) || {};
1163
+ } else {
1164
+ return _this.centerRightMenu.find(function (v) {
1165
+ return v.sub && v.sub.find(function (vv) {
1166
+ return vv.key == 'more';
1167
+ });
1168
+ }).sub[1] || {};
1169
+ }
1170
+ } else {
1171
+ if (_this.isMobileEnvironment) {
1172
+ return _this.centerRightMenu.find(function (vv) {
1173
+ return vv.key == 'more';
1174
+ }) || {};
1175
+ } else {
1176
+ return _this.centerRightMenu.find(function (v) {
1177
+ return v.sub && v.sub.find(function (vv) {
1178
+ return vv.key == 'more';
1179
+ });
1180
+ }).sub[1] || {};
1181
+ }
1182
+ }
1183
+ };
1184
+
1125
1185
  _this.hasElectron = hasElectron;
1126
1186
  _this.state = {
1127
1187
  id: Date.now(),
@@ -1136,12 +1196,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1136
1196
  modalURL: ''
1137
1197
  };
1138
1198
 
1139
- var _ref12 = _mutantsUtil.platform || {},
1140
- isVerticalTouch = _ref12.isVerticalTouch,
1141
- isHorizontalPad = _ref12.isHorizontalPad,
1142
- isHorizontalSunMi = _ref12.isHorizontalSunMi,
1143
- isNewRetailBCPos = _ref12.isNewRetailBCPos,
1144
- isNewRetailBCPosTC = _ref12.isNewRetailBCPosTC;
1199
+ var _ref13 = _mutantsUtil.platform || {},
1200
+ isVerticalTouch = _ref13.isVerticalTouch,
1201
+ isHorizontalPad = _ref13.isHorizontalPad,
1202
+ isHorizontalSunMi = _ref13.isHorizontalSunMi,
1203
+ isNewRetailBCPos = _ref13.isNewRetailBCPos,
1204
+ isNewRetailBCPosTC = _ref13.isNewRetailBCPosTC;
1145
1205
 
1146
1206
  _this.isVerticalTouch = !!isVerticalTouch;
1147
1207
  _this.isHorizontalPad = !!isHorizontalPad;
@@ -1153,17 +1213,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1153
1213
  _this.new_retail_app = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('newRetailAppType');
1154
1214
 
1155
1215
  //首页布局
1156
- var leftMenu = _data2.default.leftMenu,
1157
- centerLeftMenu = _data2.default.centerLeftMenu,
1158
- centerRightMenu = _data2.default.centerRightMenu,
1159
- rightMenu = _data2.default.rightMenu,
1160
- leftMenuTC = _data2.default.leftMenuTC,
1161
- rightMenuTC = _data2.default.rightMenuTC;
1162
-
1163
- _this.leftMenu = isNewRetailBCPosTC ? leftMenuTC : leftMenu;
1164
- _this.centerLeftMenu = centerLeftMenu;
1165
- _this.centerRightMenu = centerRightMenu;
1166
- _this.rightMenu = isNewRetailBCPosTC ? rightMenuTC : rightMenu;
1216
+ _this.leftMenu = _this.getMenuByPosition('left');
1217
+ _this.centerLeftMenu = _this.getMenuByPosition('centerLeft');
1218
+ _this.centerRightMenu = _this.getMenuByPosition('centerRight');
1219
+ _this.rightMenu = _this.getMenuByPosition('right');
1167
1220
  _this.hsy_domain = _tplusApi.User && _tplusApi.User.getWebEntry();
1168
1221
  _this.randomWord = _this.randomWord.bind(_this);
1169
1222
  (0, _mobx.autorun)(function () {
@@ -1173,6 +1226,58 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1173
1226
  }
1174
1227
 
1175
1228
  (0, _createClass3.default)(_default, [{
1229
+ key: 'getMenuByPosition',
1230
+ value: function getMenuByPosition(position) {
1231
+ var leftMenu = _data2.default.leftMenu,
1232
+ centerLeftMenu = _data2.default.centerLeftMenu,
1233
+ centerRightMenu = _data2.default.centerRightMenu,
1234
+ rightMenu = _data2.default.rightMenu,
1235
+ leftMenuTC = _data2.default.leftMenuTC,
1236
+ rightMenuTC = _data2.default.rightMenuTC,
1237
+ centerLeftMenuMobileCC = _data2.default.centerLeftMenuMobileCC,
1238
+ centerLeftMenuMobileTC = _data2.default.centerLeftMenuMobileTC,
1239
+ centerRightMenuMobileCC = _data2.default.centerRightMenuMobileCC,
1240
+ centerRightMenuMobileTC = _data2.default.centerRightMenuMobileTC,
1241
+ rightMenuMobileTC = _data2.default.rightMenuMobileTC,
1242
+ rightMenuMobileCC = _data2.default.rightMenuMobileCC;
1243
+
1244
+ switch (position) {
1245
+ case "left":
1246
+ {
1247
+ return this.getMenuByEnvironment(leftMenu, leftMenuTC, [], []);
1248
+ }
1249
+ case "centerLeft":
1250
+ {
1251
+ return this.getMenuByEnvironment(centerLeftMenu, centerLeftMenu, centerLeftMenuMobileTC, centerLeftMenuMobileCC);
1252
+ }
1253
+ case "centerRight":
1254
+ {
1255
+ return this.getMenuByEnvironment(centerRightMenu, centerRightMenu, centerRightMenuMobileTC, centerRightMenuMobileCC);
1256
+ }
1257
+ case "right":
1258
+ {
1259
+ return this.getMenuByEnvironment(rightMenu, rightMenuTC, rightMenuMobileTC, rightMenuMobileCC);
1260
+ }
1261
+ }
1262
+ }
1263
+ }, {
1264
+ key: 'getMenuByEnvironment',
1265
+ value: function getMenuByEnvironment(ccMenu, tcMenu, tcMobilMenu, ccMobilMenu) {
1266
+ if (this.isNewRetailBCPosTC) {
1267
+ if (this.isMobileEnvironment) {
1268
+ return tcMobilMenu;
1269
+ } else {
1270
+ return tcMenu;
1271
+ }
1272
+ } else {
1273
+ if (this.isMobileEnvironment) {
1274
+ return ccMobilMenu;
1275
+ } else {
1276
+ return ccMenu;
1277
+ }
1278
+ }
1279
+ }
1280
+ }, {
1176
1281
  key: 'componentDidMount',
1177
1282
  value: function componentDidMount() {
1178
1283
  this.initPageData();
@@ -1209,9 +1314,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1209
1314
  break;
1210
1315
  }
1211
1316
 
1212
- var _ref13 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1213
- _ref13$PosId = _ref13.PosId,
1214
- PosId = _ref13$PosId === undefined ? '' : _ref13$PosId;
1317
+ var _ref14 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1318
+ _ref14$PosId = _ref14.PosId,
1319
+ PosId = _ref14$PosId === undefined ? '' : _ref14$PosId;
1215
1320
 
1216
1321
  var cc_url = this.hsy_domain.replace('#/', '') + '?fromApp=nretail&posid=' + PosId + '&content_only=true&bar_bg=' + encodeURIComponent('#FFFFFF') + '&bar_active_bg=' + encodeURIComponent(color);
1217
1322
  this.setState({ loadHsyURL: cc_url });
@@ -1270,88 +1375,81 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1270
1375
 
1271
1376
  var screenHeight = window.screen.availHeight - 100;
1272
1377
  var htmlContent = null;
1273
- if (this.isVerticalTouch) {
1274
- htmlContent = _react2.default.createElement(_verticalPortal2.default, { handelClick: this.handelClick });
1275
- } else if (this.isHorizontalPad) {
1276
- htmlContent = _react2.default.createElement(_horizontalPadPortal2.default, { handelClick: this.handelClick });
1277
- } else {
1278
- htmlContent = _react2.default.createElement(
1279
- _tplusComponentsTouch.Layout,
1280
- { style: { height: '100%' }, className: 'portal-content' },
1378
+ // if (this.isVerticalTouch) {
1379
+ // htmlContent = <VerticalPortal handelClick={this.handelClick} />
1380
+ // } else if (this.isHorizontalPad) {
1381
+ // htmlContent = <HorizontalPadPortal handelClick={this.handelClick} />
1382
+ // }
1383
+ // else {
1384
+ htmlContent = _react2.default.createElement(
1385
+ _tplusComponentsTouch.Layout,
1386
+ { style: { height: '100%' }, className: 'portal-content' },
1387
+ _react2.default.createElement(
1388
+ Content,
1389
+ { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
1281
1390
  _react2.default.createElement(
1282
- Content,
1283
- { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
1391
+ _antd.Row,
1392
+ null,
1393
+ this.createLeftNode(),
1284
1394
  _react2.default.createElement(
1285
- _antd.Row,
1286
- null,
1395
+ _antd.Col,
1396
+ { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1287
1397
  _react2.default.createElement(
1288
- _antd.Col,
1289
- { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
1290
- _react2.default.createElement(
1291
- 'div',
1292
- { className: 'portal-left-content' },
1293
- this.createLeftNode()
1294
- )
1295
- ),
1296
- _react2.default.createElement(
1297
- _antd.Col,
1298
- { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1299
- _react2.default.createElement(
1300
- 'div',
1301
- { className: 'portal-center-content' },
1302
- this.createCenterNode()
1303
- )
1304
- ),
1398
+ 'div',
1399
+ { className: 'portal-center-content' },
1400
+ this.createCenterNode()
1401
+ )
1402
+ ),
1403
+ _react2.default.createElement(
1404
+ _antd.Col,
1405
+ { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
1305
1406
  _react2.default.createElement(
1306
- _antd.Col,
1307
- { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
1308
- _react2.default.createElement(
1309
- 'div',
1310
- { className: 'portal-right-content' },
1311
- this.createRightNode()
1312
- )
1407
+ 'div',
1408
+ { className: 'portal-right-content' },
1409
+ this.createRightNode()
1313
1410
  )
1314
1411
  )
1315
- ),
1316
- _react2.default.createElement(
1317
- 'div',
1318
- { className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1319
- _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' })
1320
- ),
1321
- _react2.default.createElement(
1322
- 'div',
1323
- { className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1324
- _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' })
1325
- ),
1326
- this.isMobileEnvironment && _react2.default.createElement(
1327
- _antd.Modal,
1328
- {
1329
- visible: showModal,
1330
- onCancel: this.closeFrameModal,
1331
- width: '99%',
1332
- height: '99%',
1333
- footer: null
1334
- },
1335
- _react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
1336
- ),
1337
- _react2.default.createElement(
1338
- _antd.Modal,
1339
- {
1340
- title: '更多',
1341
- className: 'portal-container-modal-more',
1342
- visible: showMoreModal,
1343
- onCancel: this.closeMoreModal,
1344
- width: 800,
1345
- height: 375,
1346
- footer: null,
1347
- centered: true,
1348
- maskClosable: false,
1349
- keyboard: false
1350
- },
1351
- this.createMoreNode()
1352
1412
  )
1353
- );
1354
- }
1413
+ ),
1414
+ _react2.default.createElement(
1415
+ 'div',
1416
+ { className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1417
+ _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' })
1418
+ ),
1419
+ _react2.default.createElement(
1420
+ 'div',
1421
+ { className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1422
+ _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' })
1423
+ ),
1424
+ this.isMobileEnvironment && _react2.default.createElement(
1425
+ _antd.Modal,
1426
+ {
1427
+ visible: showModal,
1428
+ onCancel: this.closeFrameModal,
1429
+ width: '99%',
1430
+ height: '99%',
1431
+ footer: null
1432
+ },
1433
+ _react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
1434
+ ),
1435
+ _react2.default.createElement(
1436
+ _antd.Modal,
1437
+ {
1438
+ title: '更多',
1439
+ className: 'portal-container-modal-more',
1440
+ visible: showMoreModal,
1441
+ onCancel: this.closeMoreModal,
1442
+ width: 800,
1443
+ height: 375,
1444
+ footer: null,
1445
+ centered: true,
1446
+ maskClosable: false,
1447
+ keyboard: false
1448
+ },
1449
+ this.createMoreNode()
1450
+ )
1451
+ );
1452
+ // }
1355
1453
  return htmlContent;
1356
1454
  }
1357
1455
  }]);