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