tplus-portaltouch 3.25.10 → 3.28.1
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.
- package/dist/api/ModifyPassApi.js.map +1 -1
- package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -1
- package/dist/components/dutyandsettle/dutysettlehistory.js +16 -44
- package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
- package/dist/components/dutyandsettle/index.js.map +1 -1
- package/dist/components/dutyandsettle/tipContent.js.map +1 -1
- package/dist/components/header/customUse.js.map +1 -1
- package/dist/components/header/headContent.js +3 -3
- package/dist/components/header/headContent.js.map +1 -1
- package/dist/components/header/index.js +13 -13
- package/dist/components/header/index.js.map +1 -1
- package/dist/components/header/offlinePointDesc.js.map +1 -1
- package/dist/components/header/style.less +456 -456
- package/dist/components/header/themeModal.js.map +1 -1
- package/dist/components/header/uploadList.js +6 -6
- package/dist/components/header/uploadList.js.map +1 -1
- package/dist/components/header/vertical-touch.js.map +1 -1
- package/dist/components/header/vertical-touch.less +228 -228
- package/dist/containers/Main/index.js +5 -1
- package/dist/containers/Main/index.js.map +1 -1
- package/dist/dutyService/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/middleWare/index.js.map +1 -1
- package/dist/modalRouter/StaticRouter.js.map +1 -1
- package/dist/modalRouter/index.js +8 -8
- package/dist/modalRouter/index.js.map +1 -1
- package/dist/pages/Modal/index.js.map +1 -1
- package/dist/pages/Modal/style.less +5 -5
- package/dist/pages/Portalbc/data.js +7 -51
- package/dist/pages/Portalbc/data.js.map +1 -1
- package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -1
- package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -1
- package/dist/pages/Portalbc/index.js +159 -259
- package/dist/pages/Portalbc/index.js.map +1 -1
- package/dist/pages/Portalbc/index.less +777 -812
- package/dist/pages/Portalbc/onframe.js +12 -9
- package/dist/pages/Portalbc/onframe.js.map +1 -1
- package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
- package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
- package/dist/pages/dutyandsettle/index.js.map +1 -1
- package/dist/pages/dutyandsettle/index.less +529 -529
- package/dist/pages/dutyandsettle/offDuty.js +56 -83
- package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
- package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
- package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
- package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
- package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/modifyPass/index.js.map +1 -1
- package/dist/pages/modifyPass/style.less +71 -71
- package/dist/pages/notFound/index.js.map +1 -1
- package/dist/pages/notFound/style.less +17 -17
- package/dist/stores/ModalRouter.js.map +1 -1
- package/dist/stores/ModifyPassStore.js +5 -9
- package/dist/stores/ModifyPassStore.js.map +1 -1
- package/dist/stores/PortalStore.js +5 -5
- package/dist/stores/PortalStore.js.map +1 -1
- package/dist/stores/PosLoginStore.js +6 -3
- package/dist/stores/PosLoginStore.js.map +1 -1
- package/dist/stores/billHistoryStore.js.map +1 -1
- package/dist/stores/dutySettleStore.js.map +1 -1
- package/dist/stores/index.js.map +1 -1
- package/dist/utils/PrintProcess.js +10 -10
- package/dist/utils/PrintProcess.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/networkCheck.js.map +1 -1
- package/package.json +4 -4
- 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-
|
|
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-10 14:48:46
|
|
56
|
+
* @LastEditors: chenlongad
|
|
57
|
+
* @modify:修改跳转到T+的查询方案方式
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
60
|
|
|
@@ -135,59 +135,44 @@ 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 =
|
|
138
|
+
_context.next = 14;
|
|
139
139
|
break;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
if (!(!downloadCatcherDay || currentDay > downloadCatcherDay)) {
|
|
143
|
-
_context.next =
|
|
143
|
+
_context.next = 13;
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
_context.prev = 6;
|
|
148
|
-
|
|
149
147
|
downProgress = function downProgress(params) {
|
|
150
148
|
_tplusComponentsTouch.Loading.transfer(params);
|
|
151
149
|
};
|
|
152
150
|
|
|
153
151
|
_tplusComponentsTouch.Loading.show({
|
|
154
|
-
text: '
|
|
152
|
+
text: '离线数据下载中',
|
|
155
153
|
delay: 0,
|
|
156
154
|
showProgress: true
|
|
157
155
|
});
|
|
158
|
-
_context.next =
|
|
156
|
+
_context.next = 10;
|
|
159
157
|
return offlineSys.downloadCatcherData(downProgress);
|
|
160
158
|
|
|
161
|
-
case
|
|
159
|
+
case 10:
|
|
162
160
|
result = _context.sent;
|
|
163
161
|
|
|
164
|
-
if (result) _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
|
|
165
|
-
_tplusComponentsTouch.Loading.hide();
|
|
166
|
-
_context.next = 20;
|
|
167
|
-
break;
|
|
168
|
-
|
|
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
162
|
_tplusComponentsTouch.Loading.hide();
|
|
180
|
-
|
|
163
|
+
if (result) {
|
|
164
|
+
_mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
|
|
165
|
+
}
|
|
181
166
|
|
|
182
|
-
case
|
|
167
|
+
case 13:
|
|
183
168
|
_mutantsMicrofx.localStore.set("isLoginAfter", 0);
|
|
184
169
|
|
|
185
|
-
case
|
|
170
|
+
case 14:
|
|
186
171
|
case 'end':
|
|
187
172
|
return _context.stop();
|
|
188
173
|
}
|
|
189
174
|
}
|
|
190
|
-
}, _callee, _this2
|
|
175
|
+
}, _callee, _this2);
|
|
191
176
|
}));
|
|
192
177
|
|
|
193
178
|
_this.getOperation = function () {
|
|
@@ -232,7 +217,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
232
217
|
|
|
233
218
|
case 7:
|
|
234
219
|
_tplusComponentsTouch.Loading.show({
|
|
235
|
-
text: '
|
|
220
|
+
text: '权限加载中...',
|
|
236
221
|
delay: 2500
|
|
237
222
|
});
|
|
238
223
|
//权限加载
|
|
@@ -247,16 +232,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
247
232
|
case 13:
|
|
248
233
|
_context2.prev = 13;
|
|
249
234
|
_context2.t0 = _context2['catch'](8);
|
|
250
|
-
|
|
251
235
|
_tplusComponentsTouch.Loading.hide();
|
|
252
236
|
|
|
253
237
|
case 16:
|
|
254
|
-
_context2.prev = 16;
|
|
255
|
-
|
|
256
238
|
_tplusComponentsTouch.Loading.hide();
|
|
257
|
-
return _context2.finish(16);
|
|
258
|
-
|
|
259
|
-
case 19:
|
|
260
239
|
addClass && addClass(_this.state.id, 'portalHead');
|
|
261
240
|
// 初始化参数设置。
|
|
262
241
|
stores.setStore.initSetParams().then(function (ret) {
|
|
@@ -266,21 +245,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
266
245
|
_this.sunMiPresentationInit(ret);
|
|
267
246
|
return;
|
|
268
247
|
}
|
|
269
|
-
console.log('副屏页面打开之前,user信息', (0, _stringify2.default)(stores.user));
|
|
270
248
|
window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
|
|
271
|
-
setTimeout(function () {
|
|
272
|
-
console.log('副屏页面打开之后,user信息', (0, _stringify2.default)(stores.user));
|
|
273
|
-
}, 3000);
|
|
274
249
|
}
|
|
275
250
|
});
|
|
276
251
|
_this.hsyBasicInfoInit();
|
|
277
252
|
|
|
278
|
-
case
|
|
253
|
+
case 20:
|
|
279
254
|
case 'end':
|
|
280
255
|
return _context2.stop();
|
|
281
256
|
}
|
|
282
257
|
}
|
|
283
|
-
}, _callee2, _this2, [[8, 13
|
|
258
|
+
}, _callee2, _this2, [[8, 13]]);
|
|
284
259
|
}));
|
|
285
260
|
|
|
286
261
|
_this.initHsyPage = function () {
|
|
@@ -300,11 +275,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
300
275
|
//SunMi初始化参数设置。
|
|
301
276
|
//副屏幕交互。硬件改动20200428 需要在商米页面加载成功后才能发送 初始化命令
|
|
302
277
|
// 进行主副屏数据交互 初始化
|
|
303
|
-
|
|
278
|
+
var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
|
|
279
|
+
_ref3$store = _ref3.store;
|
|
304
280
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
storeName = _ref3$storeName === undefined ? '' : _ref3$storeName;
|
|
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
|
+
console.log(result);
|
|
308
286
|
|
|
309
287
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
310
288
|
RE_POSParamType = _enumController$getEn.RE_POSParamType;
|
|
@@ -416,9 +394,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
416
394
|
}
|
|
417
395
|
|
|
418
396
|
if (type == 'more') {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
397
|
+
if (_this.isMobileEnvironment) {
|
|
398
|
+
//暂时不支持android系统跳转
|
|
399
|
+
return _tplusComponentsTouch.Message.warn('新功能正在研发中,敬请期待。');
|
|
400
|
+
}
|
|
422
401
|
return _this.setState({ showMoreModal: true });
|
|
423
402
|
}
|
|
424
403
|
if (!Title) {
|
|
@@ -503,10 +482,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
503
482
|
switch (app) {
|
|
504
483
|
case 'cc':
|
|
505
484
|
var sh = '';
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
485
|
+
if (_this.isMobileEnvironment) {
|
|
486
|
+
//暂时不支持android系统跳转
|
|
487
|
+
return _tplusComponentsTouch.Message.warn('新功能正在研发中,敬请期待。');
|
|
488
|
+
}
|
|
489
|
+
if (!isHsyLoadFinish) {
|
|
510
490
|
return _tplusComponentsTouch.Message.warn('正在加载资源中,请稍后。');
|
|
511
491
|
}
|
|
512
492
|
if (!search) {
|
|
@@ -652,7 +632,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
652
632
|
|
|
653
633
|
_this.toHsyPage = function () {
|
|
654
634
|
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(params) {
|
|
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$
|
|
635
|
+
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;
|
|
656
636
|
|
|
657
637
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
658
638
|
while (1) {
|
|
@@ -665,13 +645,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
665
645
|
IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
|
|
666
646
|
WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
|
|
667
647
|
IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
|
|
668
|
-
_ref10 = _mutantsMicrofx.
|
|
669
|
-
|
|
648
|
+
_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;
|
|
649
|
+
_ref10$store = _ref10$store === undefined ? {} : _ref10$store;
|
|
650
|
+
_ref10$store$storeNam = _ref10$store.storeName, storeName = _ref10$store$storeNam === undefined ? '' : _ref10$store$storeNam;
|
|
670
651
|
_context4.t0 = pageType;
|
|
671
|
-
_context4.next = _context4.t0 === 'voucher' ?
|
|
652
|
+
_context4.next = _context4.t0 === 'voucher' ? 11 : _context4.t0 === 'report' ? 14 : 18;
|
|
672
653
|
break;
|
|
673
654
|
|
|
674
|
-
case
|
|
655
|
+
case 11:
|
|
675
656
|
filter = {
|
|
676
657
|
defaultValue: {
|
|
677
658
|
storeId: {
|
|
@@ -698,9 +679,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
698
679
|
}
|
|
699
680
|
};
|
|
700
681
|
}
|
|
701
|
-
return _context4.abrupt('break',
|
|
682
|
+
return _context4.abrupt('break', 18);
|
|
702
683
|
|
|
703
|
-
case
|
|
684
|
+
case 14:
|
|
704
685
|
filter = {
|
|
705
686
|
filterValue: {
|
|
706
687
|
storeId: {
|
|
@@ -754,9 +735,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
754
735
|
}
|
|
755
736
|
};
|
|
756
737
|
}
|
|
757
|
-
return _context4.abrupt('break',
|
|
738
|
+
return _context4.abrupt('break', 18);
|
|
758
739
|
|
|
759
|
-
case
|
|
740
|
+
case 18:
|
|
760
741
|
bar_bg = encodeURIComponent(bar_bg);
|
|
761
742
|
bar_active_bg = encodeURIComponent(bar_active_bg);
|
|
762
743
|
menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
|
|
@@ -772,22 +753,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
772
753
|
console.log('web_hsy_url:', cc_url);
|
|
773
754
|
|
|
774
755
|
if (!_this.isHorizontalSunMi) {
|
|
775
|
-
_context4.next =
|
|
756
|
+
_context4.next = 37;
|
|
776
757
|
break;
|
|
777
758
|
}
|
|
778
759
|
|
|
779
|
-
_context4.next =
|
|
760
|
+
_context4.next = 32;
|
|
780
761
|
return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
|
|
781
762
|
|
|
782
|
-
case
|
|
763
|
+
case 32:
|
|
783
764
|
CC_WEB_URL = _context4.sent;
|
|
784
765
|
|
|
785
766
|
console.log('CC_WEB_URL:', CC_WEB_URL);
|
|
786
767
|
window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
|
|
787
|
-
_context4.next =
|
|
768
|
+
_context4.next = 42;
|
|
788
769
|
break;
|
|
789
770
|
|
|
790
|
-
case
|
|
771
|
+
case 37:
|
|
791
772
|
external_frame = document.getElementById('external-frame-cc');
|
|
792
773
|
win = external_frame.contentWindow;
|
|
793
774
|
|
|
@@ -808,7 +789,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
808
789
|
}
|
|
809
790
|
});
|
|
810
791
|
|
|
811
|
-
case
|
|
792
|
+
case 42:
|
|
812
793
|
case 'end':
|
|
813
794
|
return _context4.stop();
|
|
814
795
|
}
|
|
@@ -911,10 +892,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
911
892
|
return vv.Name === v.Name;
|
|
912
893
|
});
|
|
913
894
|
|
|
914
|
-
var
|
|
915
|
-
Visibility =
|
|
916
|
-
HoldFunctionAuth =
|
|
917
|
-
Title =
|
|
895
|
+
var _ref11 = controllable || {},
|
|
896
|
+
Visibility = _ref11.Visibility,
|
|
897
|
+
HoldFunctionAuth = _ref11.HoldFunctionAuth,
|
|
898
|
+
Title = _ref11.Title;
|
|
918
899
|
|
|
919
900
|
var errorTip = void 0;
|
|
920
901
|
if (!Visibility) {
|
|
@@ -929,15 +910,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
929
910
|
|
|
930
911
|
_this.createLeftNode = function () {
|
|
931
912
|
var menu = _this.leftMenu;
|
|
932
|
-
var width = menu.length == 0 ? _this.isMobileEnvironment & !_this.isNewRetailBCPosTC ? 5 : 4 : 7;
|
|
933
|
-
if (menu.length == 0) {
|
|
934
|
-
return _react2.default.createElement(
|
|
935
|
-
_antd.Col,
|
|
936
|
-
{ xl: width, md: width, className: 'portal-left-col', key: 'left' },
|
|
937
|
-
_react2.default.createElement('div', { className: 'portal-left-content' })
|
|
938
|
-
);
|
|
939
|
-
// return null;
|
|
940
|
-
}
|
|
941
913
|
var menuNode = menu.map(function (v) {
|
|
942
914
|
return v.container ? _react2.default.createElement(
|
|
943
915
|
'div',
|
|
@@ -988,15 +960,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
988
960
|
v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
|
|
989
961
|
);
|
|
990
962
|
});
|
|
991
|
-
return
|
|
992
|
-
_antd.Col,
|
|
993
|
-
{ xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
|
|
994
|
-
_react2.default.createElement(
|
|
995
|
-
'div',
|
|
996
|
-
{ className: 'portal-left-content' },
|
|
997
|
-
menuNode
|
|
998
|
-
)
|
|
999
|
-
);
|
|
963
|
+
return menuNode;
|
|
1000
964
|
};
|
|
1001
965
|
|
|
1002
966
|
_this.createCenterNode = function () {
|
|
@@ -1085,7 +1049,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1085
1049
|
};
|
|
1086
1050
|
|
|
1087
1051
|
_this.createRightNode = function () {
|
|
1088
|
-
var width = _this.leftMenu.length == 0 ? _this.isMobileEnvironment & !_this.isNewRetailBCPosTC ? 9 : 10 : 7;
|
|
1089
1052
|
var node = _this.rightMenu.map(function (v) {
|
|
1090
1053
|
return v.container ? _react2.default.createElement(
|
|
1091
1054
|
'div',
|
|
@@ -1127,20 +1090,16 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1127
1090
|
!!v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
|
|
1128
1091
|
);
|
|
1129
1092
|
});
|
|
1130
|
-
return
|
|
1131
|
-
_antd.Col,
|
|
1132
|
-
{ xl: width, md: width, className: 'portal-right-col', key: 'right' },
|
|
1133
|
-
_react2.default.createElement(
|
|
1134
|
-
'div',
|
|
1135
|
-
{ className: 'portal-right-content' },
|
|
1136
|
-
node
|
|
1137
|
-
)
|
|
1138
|
-
);
|
|
1093
|
+
return node;
|
|
1139
1094
|
};
|
|
1140
1095
|
|
|
1141
1096
|
_this.createMoreNode = function () {
|
|
1142
|
-
var arrs = _this.
|
|
1143
|
-
|
|
1097
|
+
var arrs = _this.centerRightMenu.find(function (v) {
|
|
1098
|
+
return v.sub && v.sub.find(function (vv) {
|
|
1099
|
+
return vv.key == 'more';
|
|
1100
|
+
});
|
|
1101
|
+
}).sub[1];
|
|
1102
|
+
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 : [];
|
|
1144
1103
|
var node = items.length > 0 && items.map(function (v) {
|
|
1145
1104
|
return _react2.default.createElement(
|
|
1146
1105
|
'div',
|
|
@@ -1165,34 +1124,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1165
1124
|
return node;
|
|
1166
1125
|
};
|
|
1167
1126
|
|
|
1168
|
-
_this.getMoreNodeInfo = function () {
|
|
1169
|
-
if (_this.isNewRetailBCPosTC) {
|
|
1170
|
-
if (_this.isMobileEnvironment) {
|
|
1171
|
-
return _this.centerRightMenu.find(function (vv) {
|
|
1172
|
-
return vv.key == 'more';
|
|
1173
|
-
}) || {};
|
|
1174
|
-
} else {
|
|
1175
|
-
return _this.centerRightMenu.find(function (v) {
|
|
1176
|
-
return v.sub && v.sub.find(function (vv) {
|
|
1177
|
-
return vv.key == 'more';
|
|
1178
|
-
});
|
|
1179
|
-
}).sub[1] || {};
|
|
1180
|
-
}
|
|
1181
|
-
} else {
|
|
1182
|
-
if (_this.isMobileEnvironment) {
|
|
1183
|
-
return _this.centerRightMenu.find(function (vv) {
|
|
1184
|
-
return vv.key == 'more';
|
|
1185
|
-
}) || {};
|
|
1186
|
-
} else {
|
|
1187
|
-
return _this.centerRightMenu.find(function (v) {
|
|
1188
|
-
return v.sub && v.sub.find(function (vv) {
|
|
1189
|
-
return vv.key == 'more';
|
|
1190
|
-
});
|
|
1191
|
-
}).sub[1] || {};
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
1127
|
_this.hasElectron = hasElectron;
|
|
1197
1128
|
_this.state = {
|
|
1198
1129
|
id: Date.now(),
|
|
@@ -1207,12 +1138,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1207
1138
|
modalURL: ''
|
|
1208
1139
|
};
|
|
1209
1140
|
|
|
1210
|
-
var
|
|
1211
|
-
isVerticalTouch =
|
|
1212
|
-
isHorizontalPad =
|
|
1213
|
-
isHorizontalSunMi =
|
|
1214
|
-
isNewRetailBCPos =
|
|
1215
|
-
isNewRetailBCPosTC =
|
|
1141
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1142
|
+
isVerticalTouch = _ref12.isVerticalTouch,
|
|
1143
|
+
isHorizontalPad = _ref12.isHorizontalPad,
|
|
1144
|
+
isHorizontalSunMi = _ref12.isHorizontalSunMi,
|
|
1145
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos,
|
|
1146
|
+
isNewRetailBCPosTC = _ref12.isNewRetailBCPosTC;
|
|
1216
1147
|
|
|
1217
1148
|
_this.isVerticalTouch = !!isVerticalTouch;
|
|
1218
1149
|
_this.isHorizontalPad = !!isHorizontalPad;
|
|
@@ -1224,10 +1155,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1224
1155
|
_this.new_retail_app = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('newRetailAppType');
|
|
1225
1156
|
|
|
1226
1157
|
//首页布局
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1158
|
+
var leftMenu = _data2.default.leftMenu,
|
|
1159
|
+
centerLeftMenu = _data2.default.centerLeftMenu,
|
|
1160
|
+
centerRightMenu = _data2.default.centerRightMenu,
|
|
1161
|
+
rightMenu = _data2.default.rightMenu,
|
|
1162
|
+
leftMenuTC = _data2.default.leftMenuTC,
|
|
1163
|
+
rightMenuTC = _data2.default.rightMenuTC;
|
|
1164
|
+
|
|
1165
|
+
_this.leftMenu = isNewRetailBCPosTC ? leftMenuTC : leftMenu;
|
|
1166
|
+
_this.centerLeftMenu = centerLeftMenu;
|
|
1167
|
+
_this.centerRightMenu = centerRightMenu;
|
|
1168
|
+
_this.rightMenu = isNewRetailBCPosTC ? rightMenuTC : rightMenu;
|
|
1231
1169
|
_this.hsy_domain = _tplusApi.User && _tplusApi.User.getWebEntry();
|
|
1232
1170
|
_this.randomWord = _this.randomWord.bind(_this);
|
|
1233
1171
|
(0, _mobx.autorun)(function () {
|
|
@@ -1237,58 +1175,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1237
1175
|
}
|
|
1238
1176
|
|
|
1239
1177
|
(0, _createClass3.default)(_default, [{
|
|
1240
|
-
key: 'getMenuByPosition',
|
|
1241
|
-
value: function getMenuByPosition(position) {
|
|
1242
|
-
var leftMenu = _data2.default.leftMenu,
|
|
1243
|
-
centerLeftMenu = _data2.default.centerLeftMenu,
|
|
1244
|
-
centerRightMenu = _data2.default.centerRightMenu,
|
|
1245
|
-
rightMenu = _data2.default.rightMenu,
|
|
1246
|
-
leftMenuTC = _data2.default.leftMenuTC,
|
|
1247
|
-
rightMenuTC = _data2.default.rightMenuTC,
|
|
1248
|
-
centerLeftMenuMobileCC = _data2.default.centerLeftMenuMobileCC,
|
|
1249
|
-
centerLeftMenuMobileTC = _data2.default.centerLeftMenuMobileTC,
|
|
1250
|
-
centerRightMenuMobileCC = _data2.default.centerRightMenuMobileCC,
|
|
1251
|
-
centerRightMenuMobileTC = _data2.default.centerRightMenuMobileTC,
|
|
1252
|
-
rightMenuMobileTC = _data2.default.rightMenuMobileTC,
|
|
1253
|
-
rightMenuMobileCC = _data2.default.rightMenuMobileCC;
|
|
1254
|
-
|
|
1255
|
-
switch (position) {
|
|
1256
|
-
case "left":
|
|
1257
|
-
{
|
|
1258
|
-
return this.getMenuByEnvironment(leftMenu, leftMenuTC, [], []);
|
|
1259
|
-
}
|
|
1260
|
-
case "centerLeft":
|
|
1261
|
-
{
|
|
1262
|
-
return this.getMenuByEnvironment(centerLeftMenu, centerLeftMenu, centerLeftMenuMobileTC, centerLeftMenuMobileCC);
|
|
1263
|
-
}
|
|
1264
|
-
case "centerRight":
|
|
1265
|
-
{
|
|
1266
|
-
return this.getMenuByEnvironment(centerRightMenu, centerRightMenu, centerRightMenuMobileTC, centerRightMenuMobileCC);
|
|
1267
|
-
}
|
|
1268
|
-
case "right":
|
|
1269
|
-
{
|
|
1270
|
-
return this.getMenuByEnvironment(rightMenu, rightMenuTC, rightMenuMobileTC, rightMenuMobileCC);
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
}, {
|
|
1275
|
-
key: 'getMenuByEnvironment',
|
|
1276
|
-
value: function getMenuByEnvironment(ccMenu, tcMenu, tcMobilMenu, ccMobilMenu) {
|
|
1277
|
-
if (this.isNewRetailBCPosTC) {
|
|
1278
|
-
if (this.isMobileEnvironment) {
|
|
1279
|
-
return tcMobilMenu;
|
|
1280
|
-
} else {
|
|
1281
|
-
return tcMenu;
|
|
1282
|
-
}
|
|
1283
|
-
} else {
|
|
1284
|
-
if (this.isMobileEnvironment) {
|
|
1285
|
-
return ccMobilMenu;
|
|
1286
|
-
} else {
|
|
1287
|
-
return ccMenu;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
}, {
|
|
1292
1178
|
key: 'componentDidMount',
|
|
1293
1179
|
value: function componentDidMount() {
|
|
1294
1180
|
this.initPageData();
|
|
@@ -1325,9 +1211,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1325
1211
|
break;
|
|
1326
1212
|
}
|
|
1327
1213
|
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1330
|
-
PosId =
|
|
1214
|
+
var _ref13 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
|
|
1215
|
+
_ref13$PosId = _ref13.PosId,
|
|
1216
|
+
PosId = _ref13$PosId === undefined ? '' : _ref13$PosId;
|
|
1331
1217
|
|
|
1332
1218
|
var cc_url = this.hsy_domain.replace('#/', '') + '?fromApp=nretail&posid=' + PosId + '&content_only=true&bar_bg=' + encodeURIComponent('#FFFFFF') + '&bar_active_bg=' + encodeURIComponent(color);
|
|
1333
1219
|
this.setState({ loadHsyURL: cc_url });
|
|
@@ -1388,72 +1274,86 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
|
|
|
1388
1274
|
var htmlContent = null;
|
|
1389
1275
|
if (this.isVerticalTouch) {
|
|
1390
1276
|
htmlContent = _react2.default.createElement(_verticalPortal2.default, { handelClick: this.handelClick });
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1277
|
+
} else if (this.isHorizontalPad) {
|
|
1278
|
+
htmlContent = _react2.default.createElement(_horizontalPadPortal2.default, { handelClick: this.handelClick });
|
|
1279
|
+
} else {
|
|
1280
|
+
htmlContent = _react2.default.createElement(
|
|
1281
|
+
_tplusComponentsTouch.Layout,
|
|
1282
|
+
{ style: { height: '100%' }, className: 'portal-content' },
|
|
1283
|
+
_react2.default.createElement(
|
|
1284
|
+
Content,
|
|
1285
|
+
{ style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
|
|
1399
1286
|
_react2.default.createElement(
|
|
1400
|
-
|
|
1401
|
-
|
|
1287
|
+
_antd.Row,
|
|
1288
|
+
null,
|
|
1289
|
+
_react2.default.createElement(
|
|
1290
|
+
_antd.Col,
|
|
1291
|
+
{ xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
|
|
1292
|
+
_react2.default.createElement(
|
|
1293
|
+
'div',
|
|
1294
|
+
{ className: 'portal-left-content' },
|
|
1295
|
+
this.createLeftNode()
|
|
1296
|
+
)
|
|
1297
|
+
),
|
|
1298
|
+
_react2.default.createElement(
|
|
1299
|
+
_antd.Col,
|
|
1300
|
+
{ xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
|
|
1301
|
+
_react2.default.createElement(
|
|
1302
|
+
'div',
|
|
1303
|
+
{ className: 'portal-center-content' },
|
|
1304
|
+
this.createCenterNode()
|
|
1305
|
+
)
|
|
1306
|
+
),
|
|
1402
1307
|
_react2.default.createElement(
|
|
1403
|
-
_antd.
|
|
1404
|
-
{ className: 'portal-
|
|
1405
|
-
this.createLeftNode(),
|
|
1308
|
+
_antd.Col,
|
|
1309
|
+
{ xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
|
|
1406
1310
|
_react2.default.createElement(
|
|
1407
|
-
|
|
1408
|
-
{
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
{ className: 'portal-center-content' },
|
|
1412
|
-
this.createCenterNode()
|
|
1413
|
-
)
|
|
1414
|
-
),
|
|
1415
|
-
this.createRightNode()
|
|
1311
|
+
'div',
|
|
1312
|
+
{ className: 'portal-right-content' },
|
|
1313
|
+
this.createRightNode()
|
|
1314
|
+
)
|
|
1416
1315
|
)
|
|
1417
|
-
),
|
|
1418
|
-
_react2.default.createElement(
|
|
1419
|
-
'div',
|
|
1420
|
-
{ className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
|
|
1421
|
-
_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' })
|
|
1422
|
-
),
|
|
1423
|
-
_react2.default.createElement(
|
|
1424
|
-
'div',
|
|
1425
|
-
{ className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
|
|
1426
|
-
_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' })
|
|
1427
|
-
),
|
|
1428
|
-
this.isMobileEnvironment && _react2.default.createElement(
|
|
1429
|
-
_antd.Modal,
|
|
1430
|
-
{
|
|
1431
|
-
visible: showModal,
|
|
1432
|
-
onCancel: this.closeFrameModal,
|
|
1433
|
-
width: '99%',
|
|
1434
|
-
height: '99%',
|
|
1435
|
-
footer: null
|
|
1436
|
-
},
|
|
1437
|
-
_react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
|
|
1438
|
-
),
|
|
1439
|
-
_react2.default.createElement(
|
|
1440
|
-
_antd.Modal,
|
|
1441
|
-
{
|
|
1442
|
-
title: '更多',
|
|
1443
|
-
className: 'portal-container-modal-more',
|
|
1444
|
-
visible: showMoreModal,
|
|
1445
|
-
onCancel: this.closeMoreModal,
|
|
1446
|
-
width: 800,
|
|
1447
|
-
height: 375,
|
|
1448
|
-
footer: null,
|
|
1449
|
-
centered: true,
|
|
1450
|
-
maskClosable: false,
|
|
1451
|
-
keyboard: false
|
|
1452
|
-
},
|
|
1453
|
-
this.createMoreNode()
|
|
1454
1316
|
)
|
|
1455
|
-
)
|
|
1456
|
-
|
|
1317
|
+
),
|
|
1318
|
+
_react2.default.createElement(
|
|
1319
|
+
'div',
|
|
1320
|
+
{ className: loadHsyPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
|
|
1321
|
+
_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' })
|
|
1322
|
+
),
|
|
1323
|
+
_react2.default.createElement(
|
|
1324
|
+
'div',
|
|
1325
|
+
{ className: loadTcPage ? 'portal-hsy-tc-container' : 'portal-hsy-tc-container portal-hsy-tc-container-hide' },
|
|
1326
|
+
_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' })
|
|
1327
|
+
),
|
|
1328
|
+
this.isMobileEnvironment && _react2.default.createElement(
|
|
1329
|
+
_antd.Modal,
|
|
1330
|
+
{
|
|
1331
|
+
visible: showModal,
|
|
1332
|
+
onCancel: this.closeFrameModal,
|
|
1333
|
+
width: '99%',
|
|
1334
|
+
height: '99%',
|
|
1335
|
+
footer: null
|
|
1336
|
+
},
|
|
1337
|
+
_react2.default.createElement('iframe', { src: modalURL, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
|
|
1338
|
+
),
|
|
1339
|
+
_react2.default.createElement(
|
|
1340
|
+
_antd.Modal,
|
|
1341
|
+
{
|
|
1342
|
+
title: '更多',
|
|
1343
|
+
className: 'portal-container-modal-more',
|
|
1344
|
+
visible: showMoreModal,
|
|
1345
|
+
onCancel: this.closeMoreModal,
|
|
1346
|
+
width: 800,
|
|
1347
|
+
height: 375,
|
|
1348
|
+
footer: null,
|
|
1349
|
+
centered: true,
|
|
1350
|
+
maskClosable: false,
|
|
1351
|
+
keyboard: false
|
|
1352
|
+
},
|
|
1353
|
+
this.createMoreNode()
|
|
1354
|
+
)
|
|
1355
|
+
);
|
|
1356
|
+
}
|
|
1457
1357
|
return htmlContent;
|
|
1458
1358
|
}
|
|
1459
1359
|
}]);
|