tplus-portaltouch 3.25.5 → 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.
Files changed (63) 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.map +1 -1
  19. package/dist/dutyService/index.js.map +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/middleWare/index.js.map +1 -1
  22. package/dist/modalRouter/StaticRouter.js.map +1 -1
  23. package/dist/modalRouter/index.js +8 -8
  24. package/dist/modalRouter/index.js.map +1 -1
  25. package/dist/pages/Modal/index.js.map +1 -1
  26. package/dist/pages/Modal/style.less +5 -5
  27. package/dist/pages/Portalbc/data.js +45 -7
  28. package/dist/pages/Portalbc/data.js.map +1 -1
  29. package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -1
  30. package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -1
  31. package/dist/pages/Portalbc/index.js +176 -99
  32. package/dist/pages/Portalbc/index.js.map +1 -1
  33. package/dist/pages/Portalbc/index.less +798 -777
  34. package/dist/pages/Portalbc/onframe.js.map +1 -1
  35. package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
  36. package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
  37. package/dist/pages/dutyandsettle/index.js.map +1 -1
  38. package/dist/pages/dutyandsettle/index.less +529 -529
  39. package/dist/pages/dutyandsettle/offDuty.js +7 -7
  40. package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
  41. package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
  42. package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
  43. package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
  44. package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
  45. package/dist/pages/index.js.map +1 -1
  46. package/dist/pages/modifyPass/index.js.map +1 -1
  47. package/dist/pages/modifyPass/style.less +71 -71
  48. package/dist/pages/notFound/index.js.map +1 -1
  49. package/dist/pages/notFound/style.less +17 -17
  50. package/dist/stores/ModalRouter.js.map +1 -1
  51. package/dist/stores/ModifyPassStore.js.map +1 -1
  52. package/dist/stores/PortalStore.js +5 -5
  53. package/dist/stores/PortalStore.js.map +1 -1
  54. package/dist/stores/PosLoginStore.js.map +1 -1
  55. package/dist/stores/billHistoryStore.js.map +1 -1
  56. package/dist/stores/dutySettleStore.js.map +1 -1
  57. package/dist/stores/index.js.map +1 -1
  58. package/dist/utils/PrintProcess.js +10 -10
  59. package/dist/utils/PrintProcess.js.map +1 -1
  60. package/dist/utils/index.js.map +1 -1
  61. package/dist/utils/networkCheck.js.map +1 -1
  62. package/package.json +37 -37
  63. 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-11-30 20:21:27
56
+ * @LastEditors: chenlongad
57
+ * @modify:修改跳转到T+的查询方案方式
58
58
  */
59
59
 
60
60
 
@@ -929,6 +929,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
929
929
 
930
930
  _this.createLeftNode = function () {
931
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
+ }
932
939
  var menuNode = menu.map(function (v) {
933
940
  return v.container ? _react2.default.createElement(
934
941
  'div',
@@ -979,7 +986,15 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
979
986
  v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
980
987
  );
981
988
  });
982
- 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
+ );
983
998
  };
984
999
 
985
1000
  _this.createCenterNode = function () {
@@ -1113,12 +1128,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1113
1128
  };
1114
1129
 
1115
1130
  _this.createMoreNode = function () {
1116
- var arrs = _this.centerRightMenu.find(function (v) {
1117
- return v.sub && v.sub.find(function (vv) {
1118
- return vv.key == 'more';
1119
- });
1120
- }).sub[1];
1121
- 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 || [];
1122
1133
  var node = items.length > 0 && items.map(function (v) {
1123
1134
  return _react2.default.createElement(
1124
1135
  'div',
@@ -1143,6 +1154,34 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1143
1154
  return node;
1144
1155
  };
1145
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
+
1146
1185
  _this.hasElectron = hasElectron;
1147
1186
  _this.state = {
1148
1187
  id: Date.now(),
@@ -1174,17 +1213,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1174
1213
  _this.new_retail_app = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('newRetailAppType');
1175
1214
 
1176
1215
  //首页布局
1177
- var leftMenu = _data2.default.leftMenu,
1178
- centerLeftMenu = _data2.default.centerLeftMenu,
1179
- centerRightMenu = _data2.default.centerRightMenu,
1180
- rightMenu = _data2.default.rightMenu,
1181
- leftMenuTC = _data2.default.leftMenuTC,
1182
- rightMenuTC = _data2.default.rightMenuTC;
1183
-
1184
- _this.leftMenu = isNewRetailBCPosTC ? leftMenuTC : leftMenu;
1185
- _this.centerLeftMenu = centerLeftMenu;
1186
- _this.centerRightMenu = centerRightMenu;
1187
- _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');
1188
1220
  _this.hsy_domain = _tplusApi.User && _tplusApi.User.getWebEntry();
1189
1221
  _this.randomWord = _this.randomWord.bind(_this);
1190
1222
  (0, _mobx.autorun)(function () {
@@ -1194,6 +1226,58 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1194
1226
  }
1195
1227
 
1196
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
+ }, {
1197
1281
  key: 'componentDidMount',
1198
1282
  value: function componentDidMount() {
1199
1283
  this.initPageData();
@@ -1291,88 +1375,81 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1291
1375
 
1292
1376
  var screenHeight = window.screen.availHeight - 100;
1293
1377
  var htmlContent = null;
1294
- if (this.isVerticalTouch) {
1295
- htmlContent = _react2.default.createElement(_verticalPortal2.default, { handelClick: this.handelClick });
1296
- } else if (this.isHorizontalPad) {
1297
- htmlContent = _react2.default.createElement(_horizontalPadPortal2.default, { handelClick: this.handelClick });
1298
- } else {
1299
- htmlContent = _react2.default.createElement(
1300
- _tplusComponentsTouch.Layout,
1301
- { 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' },
1302
1390
  _react2.default.createElement(
1303
- Content,
1304
- { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
1391
+ _antd.Row,
1392
+ null,
1393
+ this.createLeftNode(),
1305
1394
  _react2.default.createElement(
1306
- _antd.Row,
1307
- null,
1395
+ _antd.Col,
1396
+ { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1308
1397
  _react2.default.createElement(
1309
- _antd.Col,
1310
- { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
1311
- _react2.default.createElement(
1312
- 'div',
1313
- { className: 'portal-left-content' },
1314
- this.createLeftNode()
1315
- )
1316
- ),
1317
- _react2.default.createElement(
1318
- _antd.Col,
1319
- { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
1320
- _react2.default.createElement(
1321
- 'div',
1322
- { className: 'portal-center-content' },
1323
- this.createCenterNode()
1324
- )
1325
- ),
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' },
1326
1406
  _react2.default.createElement(
1327
- _antd.Col,
1328
- { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
1329
- _react2.default.createElement(
1330
- 'div',
1331
- { className: 'portal-right-content' },
1332
- this.createRightNode()
1333
- )
1407
+ 'div',
1408
+ { className: 'portal-right-content' },
1409
+ this.createRightNode()
1334
1410
  )
1335
1411
  )
1336
- ),
1337
- _react2.default.createElement(
1338
- 'div',
1339
- { className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1340
- _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' })
1341
- ),
1342
- _react2.default.createElement(
1343
- 'div',
1344
- { className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
1345
- _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' })
1346
- ),
1347
- this.isMobileEnvironment && _react2.default.createElement(
1348
- _antd.Modal,
1349
- {
1350
- visible: showModal,
1351
- onCancel: this.closeFrameModal,
1352
- width: '99%',
1353
- height: '99%',
1354
- footer: null
1355
- },
1356
- _react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
1357
- ),
1358
- _react2.default.createElement(
1359
- _antd.Modal,
1360
- {
1361
- title: '更多',
1362
- className: 'portal-container-modal-more',
1363
- visible: showMoreModal,
1364
- onCancel: this.closeMoreModal,
1365
- width: 800,
1366
- height: 375,
1367
- footer: null,
1368
- centered: true,
1369
- maskClosable: false,
1370
- keyboard: false
1371
- },
1372
- this.createMoreNode()
1373
1412
  )
1374
- );
1375
- }
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
+ // }
1376
1453
  return htmlContent;
1377
1454
  }
1378
1455
  }]);