tplus-portaltouch 3.22.7 → 3.22.11
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/containers/Main/index.js +0 -4
 - package/dist/containers/Main/index.js.map +1 -1
 - package/dist/pages/Portalbc/data.js +2 -2
 - package/dist/pages/Portalbc/data.js.map +1 -1
 - package/dist/pages/Portalbc/index.js +105 -99
 - package/dist/pages/Portalbc/index.js.map +1 -1
 - package/package.json +1 -1
 - package/dist/pages/Portal/index.js +0 -926
 - package/dist/pages/Portal/index.js.map +0 -1
 
| 
         @@ -102,6 +102,8 @@ var _horizontalPadPortal2 = _interopRequireDefault(_horizontalPadPortal); 
     | 
|
| 
       102 
102 
     | 
    
         | 
| 
       103 
103 
     | 
    
         
             
            require('./index.less');
         
     | 
| 
       104 
104 
     | 
    
         | 
| 
      
 105 
     | 
    
         
            +
            var _rxjs = require('rxjs');
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
       105 
107 
     | 
    
         
             
            function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
         
     | 
| 
       106 
108 
     | 
    
         | 
| 
       107 
109 
     | 
    
         
             
            var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.platform.electron;
         
     | 
| 
         @@ -220,6 +222,34 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       220 
222 
     | 
    
         
             
                  });
         
     | 
| 
       221 
223 
     | 
    
         
             
                };
         
     | 
| 
       222 
224 
     | 
    
         | 
| 
      
 225 
     | 
    
         
            +
                _this.initPageData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
         
     | 
| 
      
 226 
     | 
    
         
            +
                  var hasUseOffline;
         
     | 
| 
      
 227 
     | 
    
         
            +
                  return _regenerator2.default.wrap(function _callee2$(_context2) {
         
     | 
| 
      
 228 
     | 
    
         
            +
                    while (1) {
         
     | 
| 
      
 229 
     | 
    
         
            +
                      switch (_context2.prev = _context2.next) {
         
     | 
| 
      
 230 
     | 
    
         
            +
                        case 0:
         
     | 
| 
      
 231 
     | 
    
         
            +
                          hasUseOffline = (0, _tplusPoslogin.PosInitData)('IsOfflineCash') === "1" && !(_this.isVerticalTouch || _this.isMobileEnvironment); //是否允许离线
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
                          if (!(hasUseOffline == true)) {
         
     | 
| 
      
 234 
     | 
    
         
            +
                            _context2.next = 4;
         
     | 
| 
      
 235 
     | 
    
         
            +
                            break;
         
     | 
| 
      
 236 
     | 
    
         
            +
                          }
         
     | 
| 
      
 237 
     | 
    
         
            +
             
     | 
| 
      
 238 
     | 
    
         
            +
                          _context2.next = 4;
         
     | 
| 
      
 239 
     | 
    
         
            +
                          return _this.catchOfflineData();
         
     | 
| 
      
 240 
     | 
    
         
            +
             
     | 
| 
      
 241 
     | 
    
         
            +
                        case 4:
         
     | 
| 
      
 242 
     | 
    
         
            +
                          _context2.next = 6;
         
     | 
| 
      
 243 
     | 
    
         
            +
                          return _this.getOperation();
         
     | 
| 
      
 244 
     | 
    
         
            +
             
     | 
| 
      
 245 
     | 
    
         
            +
                        case 6:
         
     | 
| 
      
 246 
     | 
    
         
            +
                        case 'end':
         
     | 
| 
      
 247 
     | 
    
         
            +
                          return _context2.stop();
         
     | 
| 
      
 248 
     | 
    
         
            +
                      }
         
     | 
| 
      
 249 
     | 
    
         
            +
                    }
         
     | 
| 
      
 250 
     | 
    
         
            +
                  }, _callee2, _this2);
         
     | 
| 
      
 251 
     | 
    
         
            +
                }));
         
     | 
| 
      
 252 
     | 
    
         
            +
             
     | 
| 
       223 
253 
     | 
    
         
             
                _this.initHsyPage = function () {
         
     | 
| 
       224 
254 
     | 
    
         
             
                  var external_frame = document.getElementById('external-frame-cc');
         
     | 
| 
       225 
255 
     | 
    
         
             
                  var win = external_frame && external_frame.contentWindow;
         
     | 
| 
         @@ -237,12 +267,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       237 
267 
     | 
    
         
             
                  //SunMi初始化参数设置。
         
     | 
| 
       238 
268 
     | 
    
         
             
                  //副屏幕交互。硬件改动20200428   需要在商米页面加载成功后才能发送 初始化命令
         
     | 
| 
       239 
269 
     | 
    
         
             
                  // 进行主副屏数据交互 初始化
         
     | 
| 
       240 
     | 
    
         
            -
                  var  
     | 
| 
       241 
     | 
    
         
            -
                       
     | 
| 
      
 270 
     | 
    
         
            +
                  var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
         
     | 
| 
      
 271 
     | 
    
         
            +
                      _ref3$store = _ref3.store;
         
     | 
| 
       242 
272 
     | 
    
         | 
| 
       243 
     | 
    
         
            -
                   
     | 
| 
       244 
     | 
    
         
            -
                  var  
     | 
| 
       245 
     | 
    
         
            -
                      storeName =  
     | 
| 
      
 273 
     | 
    
         
            +
                  _ref3$store = _ref3$store === undefined ? {} : _ref3$store;
         
     | 
| 
      
 274 
     | 
    
         
            +
                  var _ref3$store$storeName = _ref3$store.storeName,
         
     | 
| 
      
 275 
     | 
    
         
            +
                      storeName = _ref3$store$storeName === undefined ? '' : _ref3$store$storeName;
         
     | 
| 
       246 
276 
     | 
    
         | 
| 
       247 
277 
     | 
    
         
             
                  console.log(result);
         
     | 
| 
       248 
278 
     | 
    
         | 
| 
         @@ -286,11 +316,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       286 
316 
     | 
    
         | 
| 
       287 
317 
     | 
    
         
             
                  var loginInfo = user.options.get('loginInfo');
         
     | 
| 
       288 
318 
     | 
    
         | 
| 
       289 
     | 
    
         
            -
                  var  
     | 
| 
       290 
     | 
    
         
            -
                      UserCode =  
     | 
| 
       291 
     | 
    
         
            -
                      AccountNum =  
     | 
| 
       292 
     | 
    
         
            -
                      posCode =  
     | 
| 
       293 
     | 
    
         
            -
                      TplusStoreId =  
     | 
| 
      
 319 
     | 
    
         
            +
                  var _ref4 = loginInfo || {},
         
     | 
| 
      
 320 
     | 
    
         
            +
                      UserCode = _ref4.UserCode,
         
     | 
| 
      
 321 
     | 
    
         
            +
                      AccountNum = _ref4.AccountNum,
         
     | 
| 
      
 322 
     | 
    
         
            +
                      posCode = _ref4.posCode,
         
     | 
| 
      
 323 
     | 
    
         
            +
                      TplusStoreId = _ref4.TplusStoreId;
         
     | 
| 
       294 
324 
     | 
    
         | 
| 
       295 
325 
     | 
    
         
             
                  var uid = _this.tplusEncode(UserCode);
         
     | 
| 
       296 
326 
     | 
    
         
             
                  var pwd = _this.tplusEncode(user.options.get("password"));
         
     | 
| 
         @@ -342,11 +372,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       342 
372 
     | 
    
         
             
                    return vv.Name === Name;
         
     | 
| 
       343 
373 
     | 
    
         
             
                  });
         
     | 
| 
       344 
374 
     | 
    
         | 
| 
       345 
     | 
    
         
            -
                  var  
     | 
| 
       346 
     | 
    
         
            -
                      Visibility =  
     | 
| 
       347 
     | 
    
         
            -
                      HoldFunctionAuth =  
     | 
| 
       348 
     | 
    
         
            -
                      Title =  
     | 
| 
       349 
     | 
    
         
            -
                      MenuCode =  
     | 
| 
      
 375 
     | 
    
         
            +
                  var _ref5 = controllable || {},
         
     | 
| 
      
 376 
     | 
    
         
            +
                      Visibility = _ref5.Visibility,
         
     | 
| 
      
 377 
     | 
    
         
            +
                      HoldFunctionAuth = _ref5.HoldFunctionAuth,
         
     | 
| 
      
 378 
     | 
    
         
            +
                      Title = _ref5.Title,
         
     | 
| 
      
 379 
     | 
    
         
            +
                      MenuCode = _ref5.MenuCode;
         
     | 
| 
       350 
380 
     | 
    
         | 
| 
       351 
381 
     | 
    
         
             
                  var errorTip = void 0;
         
     | 
| 
       352 
382 
     | 
    
         
             
                  if (type == 'more') {
         
     | 
| 
         @@ -427,19 +457,23 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       427 
457 
     | 
    
         
             
                };
         
     | 
| 
       428 
458 
     | 
    
         | 
| 
       429 
459 
     | 
    
         
             
                _this.toFramePage = function (params) {
         
     | 
| 
       430 
     | 
    
         
            -
                  var  
     | 
| 
       431 
     | 
    
         
            -
                      app =  
     | 
| 
       432 
     | 
    
         
            -
                      title =  
     | 
| 
       433 
     | 
    
         
            -
                      style =  
     | 
| 
       434 
     | 
    
         
            -
                      search =  
     | 
| 
       435 
     | 
    
         
            -
                      tmenuCode =  
     | 
| 
       436 
     | 
    
         
            -
                      MenuCode =  
     | 
| 
       437 
     | 
    
         
            -
                      isHsyLoadFinish =  
     | 
| 
      
 460 
     | 
    
         
            +
                  var _ref6 = params || {},
         
     | 
| 
      
 461 
     | 
    
         
            +
                      app = _ref6.app,
         
     | 
| 
      
 462 
     | 
    
         
            +
                      title = _ref6.title,
         
     | 
| 
      
 463 
     | 
    
         
            +
                      style = _ref6.style,
         
     | 
| 
      
 464 
     | 
    
         
            +
                      search = _ref6.search,
         
     | 
| 
      
 465 
     | 
    
         
            +
                      tmenuCode = _ref6.tmenuCode,
         
     | 
| 
      
 466 
     | 
    
         
            +
                      MenuCode = _ref6.MenuCode,
         
     | 
| 
      
 467 
     | 
    
         
            +
                      isHsyLoadFinish = _ref6.isHsyLoadFinish;
         
     | 
| 
       438 
468 
     | 
    
         | 
| 
       439 
469 
     | 
    
         
             
                  switch (app) {
         
     | 
| 
       440 
470 
     | 
    
         
             
                    case 'cc':
         
     | 
| 
       441 
471 
     | 
    
         
             
                      var sh = '';
         
     | 
| 
       442 
     | 
    
         
            -
                      if ( 
     | 
| 
      
 472 
     | 
    
         
            +
                      if (_this.isMobileEnvironment) {
         
     | 
| 
      
 473 
     | 
    
         
            +
                        //暂时不支持android系统跳转
         
     | 
| 
      
 474 
     | 
    
         
            +
                        return _tplusComponentsTouch.Message.warn('新功能正在研发中,敬请期待。');
         
     | 
| 
      
 475 
     | 
    
         
            +
                      }
         
     | 
| 
      
 476 
     | 
    
         
            +
                      if (!isHsyLoadFinish) {
         
     | 
| 
       443 
477 
     | 
    
         
             
                        return _tplusComponentsTouch.Message.warn('正在加载资源中,请稍后。');
         
     | 
| 
       444 
478 
     | 
    
         
             
                      }
         
     | 
| 
       445 
479 
     | 
    
         
             
                      if (!search) {
         
     | 
| 
         @@ -493,37 +527,37 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       493 
527 
     | 
    
         
             
                };
         
     | 
| 
       494 
528 
     | 
    
         | 
| 
       495 
529 
     | 
    
         
             
                _this.toTplusPage = function () {
         
     | 
| 
       496 
     | 
    
         
            -
                  var  
     | 
| 
       497 
     | 
    
         
            -
                    var ret,  
     | 
| 
      
 530 
     | 
    
         
            +
                  var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(tmenuCode, search) {
         
     | 
| 
      
 531 
     | 
    
         
            +
                    var ret, _ref8, ossjumpUrl, postMessageUrl, dsearchPlanID, portalStore, menu, external_frame_tc, win, loadTcURL;
         
     | 
| 
       498 
532 
     | 
    
         | 
| 
       499 
     | 
    
         
            -
                    return _regenerator2.default.wrap(function  
     | 
| 
      
 533 
     | 
    
         
            +
                    return _regenerator2.default.wrap(function _callee3$(_context3) {
         
     | 
| 
       500 
534 
     | 
    
         
             
                      while (1) {
         
     | 
| 
       501 
     | 
    
         
            -
                        switch ( 
     | 
| 
      
 535 
     | 
    
         
            +
                        switch (_context3.prev = _context3.next) {
         
     | 
| 
       502 
536 
     | 
    
         
             
                          case 0:
         
     | 
| 
       503 
537 
     | 
    
         
             
                            ret = _this.getTcBasicInfoInit();
         
     | 
| 
       504 
538 
     | 
    
         | 
| 
       505 
539 
     | 
    
         
             
                            if (!(ret === false)) {
         
     | 
| 
       506 
     | 
    
         
            -
                               
     | 
| 
      
 540 
     | 
    
         
            +
                              _context3.next = 3;
         
     | 
| 
       507 
541 
     | 
    
         
             
                              break;
         
     | 
| 
       508 
542 
     | 
    
         
             
                            }
         
     | 
| 
       509 
543 
     | 
    
         | 
| 
       510 
     | 
    
         
            -
                            return  
     | 
| 
      
 544 
     | 
    
         
            +
                            return _context3.abrupt('return');
         
     | 
| 
       511 
545 
     | 
    
         | 
| 
       512 
546 
     | 
    
         
             
                          case 3:
         
     | 
| 
       513 
     | 
    
         
            -
                             
     | 
| 
      
 547 
     | 
    
         
            +
                            _ref8 = ret || {}, ossjumpUrl = _ref8.ossjumpUrl, postMessageUrl = _ref8.postMessageUrl;
         
     | 
| 
       514 
548 
     | 
    
         
             
                            dsearchPlanID = '';
         
     | 
| 
       515 
549 
     | 
    
         | 
| 
       516 
550 
     | 
    
         
             
                            if (!(search && search.id)) {
         
     | 
| 
       517 
     | 
    
         
            -
                               
     | 
| 
      
 551 
     | 
    
         
            +
                              _context3.next = 10;
         
     | 
| 
       518 
552 
     | 
    
         
             
                              break;
         
     | 
| 
       519 
553 
     | 
    
         
             
                            }
         
     | 
| 
       520 
554 
     | 
    
         | 
| 
       521 
555 
     | 
    
         
             
                            portalStore = _this.context.stores.portalStore;
         
     | 
| 
       522 
     | 
    
         
            -
                             
     | 
| 
      
 556 
     | 
    
         
            +
                            _context3.next = 9;
         
     | 
| 
       523 
557 
     | 
    
         
             
                            return portalStore.getSearchPlanId(search);
         
     | 
| 
       524 
558 
     | 
    
         | 
| 
       525 
559 
     | 
    
         
             
                          case 9:
         
     | 
| 
       526 
     | 
    
         
            -
                            dsearchPlanID =  
     | 
| 
      
 560 
     | 
    
         
            +
                            dsearchPlanID = _context3.sent;
         
     | 
| 
       527 
561 
     | 
    
         | 
| 
       528 
562 
     | 
    
         
             
                          case 10:
         
     | 
| 
       529 
563 
     | 
    
         
             
                            menu = _this.tplusEncode(tmenuCode);
         
     | 
| 
         @@ -534,22 +568,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       534 
568 
     | 
    
         
             
                            }
         
     | 
| 
       535 
569 
     | 
    
         | 
| 
       536 
570 
     | 
    
         
             
                            if (!_this.isHorizontalSunMi) {
         
     | 
| 
       537 
     | 
    
         
            -
                               
     | 
| 
      
 571 
     | 
    
         
            +
                              _context3.next = 17;
         
     | 
| 
       538 
572 
     | 
    
         
             
                              break;
         
     | 
| 
       539 
573 
     | 
    
         
             
                            }
         
     | 
| 
       540 
574 
     | 
    
         | 
| 
       541 
575 
     | 
    
         
             
                            window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
         
     | 
| 
       542 
     | 
    
         
            -
                             
     | 
| 
      
 576 
     | 
    
         
            +
                            _context3.next = 25;
         
     | 
| 
       543 
577 
     | 
    
         
             
                            break;
         
     | 
| 
       544 
578 
     | 
    
         | 
| 
       545 
579 
     | 
    
         
             
                          case 17:
         
     | 
| 
       546 
580 
     | 
    
         
             
                            if (!(_this.new_retail_app == 'tc' || _this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj')) {
         
     | 
| 
       547 
     | 
    
         
            -
                               
     | 
| 
      
 581 
     | 
    
         
            +
                              _context3.next = 20;
         
     | 
| 
       548 
582 
     | 
    
         
             
                              break;
         
     | 
| 
       549 
583 
     | 
    
         
             
                            }
         
     | 
| 
       550 
584 
     | 
    
         | 
| 
       551 
585 
     | 
    
         
             
                            _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
         
     | 
| 
       552 
     | 
    
         
            -
                            return  
     | 
| 
      
 586 
     | 
    
         
            +
                            return _context3.abrupt('return');
         
     | 
| 
       553 
587 
     | 
    
         | 
| 
       554 
588 
     | 
    
         
             
                          case 20:
         
     | 
| 
       555 
589 
     | 
    
         
             
                            external_frame_tc = document.getElementById('external-frame-tc');
         
     | 
| 
         @@ -572,24 +606,24 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       572 
606 
     | 
    
         | 
| 
       573 
607 
     | 
    
         
             
                          case 25:
         
     | 
| 
       574 
608 
     | 
    
         
             
                          case 'end':
         
     | 
| 
       575 
     | 
    
         
            -
                            return  
     | 
| 
      
 609 
     | 
    
         
            +
                            return _context3.stop();
         
     | 
| 
       576 
610 
     | 
    
         
             
                        }
         
     | 
| 
       577 
611 
     | 
    
         
             
                      }
         
     | 
| 
       578 
     | 
    
         
            -
                    },  
     | 
| 
      
 612 
     | 
    
         
            +
                    }, _callee3, _this2);
         
     | 
| 
       579 
613 
     | 
    
         
             
                  }));
         
     | 
| 
       580 
614 
     | 
    
         | 
| 
       581 
615 
     | 
    
         
             
                  return function (_x2, _x3) {
         
     | 
| 
       582 
     | 
    
         
            -
                    return  
     | 
| 
      
 616 
     | 
    
         
            +
                    return _ref7.apply(this, arguments);
         
     | 
| 
       583 
617 
     | 
    
         
             
                  };
         
     | 
| 
       584 
618 
     | 
    
         
             
                }();
         
     | 
| 
       585 
619 
     | 
    
         | 
| 
       586 
620 
     | 
    
         
             
                _this.toHsyPage = function () {
         
     | 
| 
       587 
     | 
    
         
            -
                  var  
     | 
| 
       588 
     | 
    
         
            -
                    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,  
     | 
| 
      
 621 
     | 
    
         
            +
                  var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(params) {
         
     | 
| 
      
 622 
     | 
    
         
            +
                    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;
         
     | 
| 
       589 
623 
     | 
    
         | 
| 
       590 
     | 
    
         
            -
                    return _regenerator2.default.wrap(function  
     | 
| 
      
 624 
     | 
    
         
            +
                    return _regenerator2.default.wrap(function _callee4$(_context4) {
         
     | 
| 
       591 
625 
     | 
    
         
             
                      while (1) {
         
     | 
| 
       592 
     | 
    
         
            -
                        switch ( 
     | 
| 
      
 626 
     | 
    
         
            +
                        switch (_context4.prev = _context4.next) {
         
     | 
| 
       593 
627 
     | 
    
         
             
                          case 0:
         
     | 
| 
       594 
628 
     | 
    
         
             
                            content_only = params.content_only, bar_bg = params.bar_bg, bar_active_bg = params.bar_active_bg, menu = params.menu, secondRouter = params.secondRouter, activePrompt = params.activePrompt, closePrompt = params.closePrompt, closeable = params.closeable, leavePrompt = params.leavePrompt, lock = params.lock, pageId = params.pageId, pageParams = params.pageParams, path = params.path, tabId = params.tabId, tabLabel = params.tabLabel, pageType = params.pageType, _k = params._k;
         
     | 
| 
       595 
629 
     | 
    
         
             
                            filter = {};
         
     | 
| 
         @@ -598,11 +632,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       598 
632 
     | 
    
         
             
                            IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
         
     | 
| 
       599 
633 
     | 
    
         
             
                            WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
         
     | 
| 
       600 
634 
     | 
    
         
             
                            IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
         
     | 
| 
       601 
     | 
    
         
            -
                             
     | 
| 
       602 
     | 
    
         
            -
                             
     | 
| 
       603 
     | 
    
         
            -
                             
     | 
| 
       604 
     | 
    
         
            -
                             
     | 
| 
       605 
     | 
    
         
            -
                             
     | 
| 
      
 635 
     | 
    
         
            +
                            _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;
         
     | 
| 
      
 636 
     | 
    
         
            +
                            _ref10$store = _ref10$store === undefined ? {} : _ref10$store;
         
     | 
| 
      
 637 
     | 
    
         
            +
                            _ref10$store$storeNam = _ref10$store.storeName, storeName = _ref10$store$storeNam === undefined ? '' : _ref10$store$storeNam;
         
     | 
| 
      
 638 
     | 
    
         
            +
                            _context4.t0 = pageType;
         
     | 
| 
      
 639 
     | 
    
         
            +
                            _context4.next = _context4.t0 === 'voucher' ? 11 : _context4.t0 === 'report' ? 14 : 18;
         
     | 
| 
       606 
640 
     | 
    
         
             
                            break;
         
     | 
| 
       607 
641 
     | 
    
         | 
| 
       608 
642 
     | 
    
         
             
                          case 11:
         
     | 
| 
         @@ -632,7 +666,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       632 
666 
     | 
    
         
             
                                }
         
     | 
| 
       633 
667 
     | 
    
         
             
                              };
         
     | 
| 
       634 
668 
     | 
    
         
             
                            }
         
     | 
| 
       635 
     | 
    
         
            -
                            return  
     | 
| 
      
 669 
     | 
    
         
            +
                            return _context4.abrupt('break', 18);
         
     | 
| 
       636 
670 
     | 
    
         | 
| 
       637 
671 
     | 
    
         
             
                          case 14:
         
     | 
| 
       638 
672 
     | 
    
         
             
                            filter = {
         
     | 
| 
         @@ -688,7 +722,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       688 
722 
     | 
    
         
             
                                }
         
     | 
| 
       689 
723 
     | 
    
         
             
                              };
         
     | 
| 
       690 
724 
     | 
    
         
             
                            }
         
     | 
| 
       691 
     | 
    
         
            -
                            return  
     | 
| 
      
 725 
     | 
    
         
            +
                            return _context4.abrupt('break', 18);
         
     | 
| 
       692 
726 
     | 
    
         | 
| 
       693 
727 
     | 
    
         
             
                          case 18:
         
     | 
| 
       694 
728 
     | 
    
         
             
                            bar_bg = encodeURIComponent(bar_bg);
         
     | 
| 
         @@ -706,19 +740,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       706 
740 
     | 
    
         
             
                            console.log('web_hsy_url:', cc_url);
         
     | 
| 
       707 
741 
     | 
    
         | 
| 
       708 
742 
     | 
    
         
             
                            if (!_this.isHorizontalSunMi) {
         
     | 
| 
       709 
     | 
    
         
            -
                               
     | 
| 
      
 743 
     | 
    
         
            +
                              _context4.next = 37;
         
     | 
| 
       710 
744 
     | 
    
         
             
                              break;
         
     | 
| 
       711 
745 
     | 
    
         
             
                            }
         
     | 
| 
       712 
746 
     | 
    
         | 
| 
       713 
     | 
    
         
            -
                             
     | 
| 
      
 747 
     | 
    
         
            +
                            _context4.next = 32;
         
     | 
| 
       714 
748 
     | 
    
         
             
                            return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
         
     | 
| 
       715 
749 
     | 
    
         | 
| 
       716 
750 
     | 
    
         
             
                          case 32:
         
     | 
| 
       717 
     | 
    
         
            -
                            CC_WEB_URL =  
     | 
| 
      
 751 
     | 
    
         
            +
                            CC_WEB_URL = _context4.sent;
         
     | 
| 
       718 
752 
     | 
    
         | 
| 
       719 
753 
     | 
    
         
             
                            console.log('CC_WEB_URL:', CC_WEB_URL);
         
     | 
| 
       720 
754 
     | 
    
         
             
                            window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
         
     | 
| 
       721 
     | 
    
         
            -
                             
     | 
| 
      
 755 
     | 
    
         
            +
                            _context4.next = 42;
         
     | 
| 
       722 
756 
     | 
    
         
             
                            break;
         
     | 
| 
       723 
757 
     | 
    
         | 
| 
       724 
758 
     | 
    
         
             
                          case 37:
         
     | 
| 
         @@ -740,14 +774,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       740 
774 
     | 
    
         | 
| 
       741 
775 
     | 
    
         
             
                          case 42:
         
     | 
| 
       742 
776 
     | 
    
         
             
                          case 'end':
         
     | 
| 
       743 
     | 
    
         
            -
                            return  
     | 
| 
      
 777 
     | 
    
         
            +
                            return _context4.stop();
         
     | 
| 
       744 
778 
     | 
    
         
             
                        }
         
     | 
| 
       745 
779 
     | 
    
         
             
                      }
         
     | 
| 
       746 
     | 
    
         
            -
                    },  
     | 
| 
      
 780 
     | 
    
         
            +
                    }, _callee4, _this2);
         
     | 
| 
       747 
781 
     | 
    
         
             
                  }));
         
     | 
| 
       748 
782 
     | 
    
         | 
| 
       749 
783 
     | 
    
         
             
                  return function (_x4) {
         
     | 
| 
       750 
     | 
    
         
            -
                    return  
     | 
| 
      
 784 
     | 
    
         
            +
                    return _ref9.apply(this, arguments);
         
     | 
| 
       751 
785 
     | 
    
         
             
                  };
         
     | 
| 
       752 
786 
     | 
    
         
             
                }();
         
     | 
| 
       753 
787 
     | 
    
         | 
| 
         @@ -841,10 +875,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       841 
875 
     | 
    
         
             
                      return vv.Name === v.Name;
         
     | 
| 
       842 
876 
     | 
    
         
             
                    });
         
     | 
| 
       843 
877 
     | 
    
         | 
| 
       844 
     | 
    
         
            -
                    var  
     | 
| 
       845 
     | 
    
         
            -
                        Visibility =  
     | 
| 
       846 
     | 
    
         
            -
                        HoldFunctionAuth =  
     | 
| 
       847 
     | 
    
         
            -
                        Title =  
     | 
| 
      
 878 
     | 
    
         
            +
                    var _ref11 = controllable || {},
         
     | 
| 
      
 879 
     | 
    
         
            +
                        Visibility = _ref11.Visibility,
         
     | 
| 
      
 880 
     | 
    
         
            +
                        HoldFunctionAuth = _ref11.HoldFunctionAuth,
         
     | 
| 
      
 881 
     | 
    
         
            +
                        Title = _ref11.Title;
         
     | 
| 
       848 
882 
     | 
    
         | 
| 
       849 
883 
     | 
    
         
             
                    var errorTip = void 0;
         
     | 
| 
       850 
884 
     | 
    
         
             
                    if (!Visibility) {
         
     | 
| 
         @@ -1087,12 +1121,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       1087 
1121 
     | 
    
         
             
                  modalURL: ''
         
     | 
| 
       1088 
1122 
     | 
    
         
             
                };
         
     | 
| 
       1089 
1123 
     | 
    
         | 
| 
       1090 
     | 
    
         
            -
                var  
     | 
| 
       1091 
     | 
    
         
            -
                    isVerticalTouch =  
     | 
| 
       1092 
     | 
    
         
            -
                    isHorizontalPad =  
     | 
| 
       1093 
     | 
    
         
            -
                    isHorizontalSunMi =  
     | 
| 
       1094 
     | 
    
         
            -
                    isNewRetailBCPos =  
     | 
| 
       1095 
     | 
    
         
            -
                    isNewRetailBCPosTC =  
     | 
| 
      
 1124 
     | 
    
         
            +
                var _ref12 = _mutantsUtil.platform || {},
         
     | 
| 
      
 1125 
     | 
    
         
            +
                    isVerticalTouch = _ref12.isVerticalTouch,
         
     | 
| 
      
 1126 
     | 
    
         
            +
                    isHorizontalPad = _ref12.isHorizontalPad,
         
     | 
| 
      
 1127 
     | 
    
         
            +
                    isHorizontalSunMi = _ref12.isHorizontalSunMi,
         
     | 
| 
      
 1128 
     | 
    
         
            +
                    isNewRetailBCPos = _ref12.isNewRetailBCPos,
         
     | 
| 
      
 1129 
     | 
    
         
            +
                    isNewRetailBCPosTC = _ref12.isNewRetailBCPosTC;
         
     | 
| 
       1096 
1130 
     | 
    
         | 
| 
       1097 
1131 
     | 
    
         
             
                _this.isVerticalTouch = !!isVerticalTouch;
         
     | 
| 
       1098 
1132 
     | 
    
         
             
                _this.isHorizontalPad = !!isHorizontalPad;
         
     | 
| 
         @@ -1124,38 +1158,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       1124 
1158 
     | 
    
         
             
              }
         
     | 
| 
       1125 
1159 
     | 
    
         | 
| 
       1126 
1160 
     | 
    
         
             
              (0, _createClass3.default)(_default, [{
         
     | 
| 
       1127 
     | 
    
         
            -
                key: 'componentWillMount',
         
     | 
| 
       1128 
     | 
    
         
            -
                value: function () {
         
     | 
| 
       1129 
     | 
    
         
            -
                  var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
         
     | 
| 
       1130 
     | 
    
         
            -
                    return _regenerator2.default.wrap(function _callee4$(_context4) {
         
     | 
| 
       1131 
     | 
    
         
            -
                      while (1) {
         
     | 
| 
       1132 
     | 
    
         
            -
                        switch (_context4.prev = _context4.next) {
         
     | 
| 
       1133 
     | 
    
         
            -
                          case 0:
         
     | 
| 
       1134 
     | 
    
         
            -
                            _context4.next = 2;
         
     | 
| 
       1135 
     | 
    
         
            -
                            return this.catchOfflineData();
         
     | 
| 
       1136 
     | 
    
         
            -
             
     | 
| 
       1137 
     | 
    
         
            -
                          case 2:
         
     | 
| 
       1138 
     | 
    
         
            -
                            _context4.next = 4;
         
     | 
| 
       1139 
     | 
    
         
            -
                            return this.getOperation();
         
     | 
| 
       1140 
     | 
    
         
            -
             
     | 
| 
       1141 
     | 
    
         
            -
                          case 4:
         
     | 
| 
       1142 
     | 
    
         
            -
                          case 'end':
         
     | 
| 
       1143 
     | 
    
         
            -
                            return _context4.stop();
         
     | 
| 
       1144 
     | 
    
         
            -
                        }
         
     | 
| 
       1145 
     | 
    
         
            -
                      }
         
     | 
| 
       1146 
     | 
    
         
            -
                    }, _callee4, this);
         
     | 
| 
       1147 
     | 
    
         
            -
                  }));
         
     | 
| 
       1148 
     | 
    
         
            -
             
     | 
| 
       1149 
     | 
    
         
            -
                  function componentWillMount() {
         
     | 
| 
       1150 
     | 
    
         
            -
                    return _ref12.apply(this, arguments);
         
     | 
| 
       1151 
     | 
    
         
            -
                  }
         
     | 
| 
       1152 
     | 
    
         
            -
             
     | 
| 
       1153 
     | 
    
         
            -
                  return componentWillMount;
         
     | 
| 
       1154 
     | 
    
         
            -
                }()
         
     | 
| 
       1155 
     | 
    
         
            -
              }, {
         
     | 
| 
       1156 
1161 
     | 
    
         
             
                key: 'componentDidMount',
         
     | 
| 
       1157 
1162 
     | 
    
         
             
                value: function componentDidMount() {
         
     | 
| 
       1158 
     | 
    
         
            -
                   
     | 
| 
      
 1163 
     | 
    
         
            +
                  this.initPageData();
         
     | 
| 
      
 1164 
     | 
    
         
            +
                  if (this.isNewRetailBCPos && !this.isVerticalTouch && !this.isMobileEnvironment) {
         
     | 
| 
       1159 
1165 
     | 
    
         
             
                    this.initHsyPage();
         
     | 
| 
       1160 
1166 
     | 
    
         
             
                  }
         
     | 
| 
       1161 
1167 
     | 
    
         
             
                }
         
     |