tplus-portaltouch 3.22.6 → 3.22.10
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 +1 -1
 - package/dist/api/ModifyPassApi.js.map +1 -1
 - package/dist/components/header/headContent.js +495 -38
 - package/dist/components/header/headContent.js.map +1 -1
 - package/dist/components/header/offlinePointDesc.js +7 -0
 - package/dist/components/header/offlinePointDesc.js.map +1 -0
 - package/dist/components/header/style.less +106 -1
 - package/dist/components/header/uploadList.js +269 -0
 - package/dist/components/header/uploadList.js.map +1 -0
 - package/dist/containers/Main/index.js +15 -12
 - 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 +224 -129
 - package/dist/pages/Portalbc/index.js.map +1 -1
 - package/package.json +37 -37
 
| 
         @@ -5,29 +5,29 @@ Object.defineProperty(exports, "__esModule", { 
     | 
|
| 
       5 
5 
     | 
    
         
             
            });
         
     | 
| 
       6 
6 
     | 
    
         
             
            exports.default = undefined;
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
            var _stringify = require('babel-runtime/core-js/json/stringify');
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            var _stringify2 = _interopRequireDefault(_stringify);
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
8 
     | 
    
         
             
            var _assign = require('babel-runtime/core-js/object/assign');
         
     | 
| 
       13 
9 
     | 
    
         | 
| 
       14 
10 
     | 
    
         
             
            var _assign2 = _interopRequireDefault(_assign);
         
     | 
| 
       15 
11 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
            var  
     | 
| 
      
 12 
     | 
    
         
            +
            var _extends2 = require('babel-runtime/helpers/extends');
         
     | 
| 
       17 
13 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            var  
     | 
| 
      
 14 
     | 
    
         
            +
            var _extends3 = _interopRequireDefault(_extends2);
         
     | 
| 
       19 
15 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
            var  
     | 
| 
      
 16 
     | 
    
         
            +
            var _stringify = require('babel-runtime/core-js/json/stringify');
         
     | 
| 
       21 
17 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
            var  
     | 
| 
      
 18 
     | 
    
         
            +
            var _stringify2 = _interopRequireDefault(_stringify);
         
     | 
| 
       23 
19 
     | 
    
         | 
| 
       24 
20 
     | 
    
         
             
            var _promise = require('babel-runtime/core-js/promise');
         
     | 
| 
       25 
21 
     | 
    
         | 
| 
       26 
22 
     | 
    
         
             
            var _promise2 = _interopRequireDefault(_promise);
         
     | 
| 
       27 
23 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
            var  
     | 
| 
      
 24 
     | 
    
         
            +
            var _regenerator = require('babel-runtime/regenerator');
         
     | 
| 
       29 
25 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
            var  
     | 
| 
      
 26 
     | 
    
         
            +
            var _regenerator2 = _interopRequireDefault(_regenerator);
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
         @@ -52,7 +52,7 @@ var _inherits3 = _interopRequireDefault(_inherits2); 
     | 
|
| 
       52 
52 
     | 
    
         
             
            var _class, _class2, _temp; /*
         
     | 
| 
       53 
53 
     | 
    
         
             
                                         * @Description:
         
     | 
| 
       54 
54 
     | 
    
         
             
                                         * @Date: 2019-08-13 08:42:18
         
     | 
| 
       55 
     | 
    
         
            -
                                         * @LastEditTime: 2021- 
     | 
| 
      
 55 
     | 
    
         
            +
                                         * @LastEditTime: 2021-09-27 19:05:04
         
     | 
| 
       56 
56 
     | 
    
         
             
                                         * @LastEditors: chenlongad
         
     | 
| 
       57 
57 
     | 
    
         
             
                                         * @modify:修改跳转到T+的查询方案方式
         
     | 
| 
       58 
58 
     | 
    
         
             
                                         */
         
     | 
| 
         @@ -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;
         
     | 
| 
         @@ -121,6 +123,133 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       121 
123 
     | 
    
         | 
| 
       122 
124 
     | 
    
         
             
                var _this = (0, _possibleConstructorReturn3.default)(this, (_default.__proto__ || (0, _getPrototypeOf2.default)(_default)).call(this, props));
         
     | 
| 
       123 
125 
     | 
    
         | 
| 
      
 126 
     | 
    
         
            +
                _this.catchOfflineData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
         
     | 
| 
      
 127 
     | 
    
         
            +
                  var offlineSys, isLoginAfter, downloadCatcherDay, currentDay, downProgress, result;
         
     | 
| 
      
 128 
     | 
    
         
            +
                  return _regenerator2.default.wrap(function _callee$(_context) {
         
     | 
| 
      
 129 
     | 
    
         
            +
                    while (1) {
         
     | 
| 
      
 130 
     | 
    
         
            +
                      switch (_context.prev = _context.next) {
         
     | 
| 
      
 131 
     | 
    
         
            +
                        case 0:
         
     | 
| 
      
 132 
     | 
    
         
            +
                          offlineSys = _this.context.stores.offlineSys;
         
     | 
| 
      
 133 
     | 
    
         
            +
                          isLoginAfter = _mutantsMicrofx.localStore.get("isLoginAfter");
         
     | 
| 
      
 134 
     | 
    
         
            +
                          downloadCatcherDay = _mutantsMicrofx.localStore.get("downloadCatcherDay");
         
     | 
| 
      
 135 
     | 
    
         
            +
                          currentDay = Math.ceil(new Date() / 1000 / 60 / 60 / 24);
         
     | 
| 
      
 136 
     | 
    
         
            +
             
     | 
| 
      
 137 
     | 
    
         
            +
                          if (!(isLoginAfter == 1)) {
         
     | 
| 
      
 138 
     | 
    
         
            +
                            _context.next = 14;
         
     | 
| 
      
 139 
     | 
    
         
            +
                            break;
         
     | 
| 
      
 140 
     | 
    
         
            +
                          }
         
     | 
| 
      
 141 
     | 
    
         
            +
             
     | 
| 
      
 142 
     | 
    
         
            +
                          if (!(!downloadCatcherDay || currentDay > downloadCatcherDay)) {
         
     | 
| 
      
 143 
     | 
    
         
            +
                            _context.next = 13;
         
     | 
| 
      
 144 
     | 
    
         
            +
                            break;
         
     | 
| 
      
 145 
     | 
    
         
            +
                          }
         
     | 
| 
      
 146 
     | 
    
         
            +
             
     | 
| 
      
 147 
     | 
    
         
            +
                          downProgress = function downProgress(params) {
         
     | 
| 
      
 148 
     | 
    
         
            +
                            _tplusComponentsTouch.Loading.transfer(params);
         
     | 
| 
      
 149 
     | 
    
         
            +
                          };
         
     | 
| 
      
 150 
     | 
    
         
            +
             
     | 
| 
      
 151 
     | 
    
         
            +
                          _tplusComponentsTouch.Loading.show({
         
     | 
| 
      
 152 
     | 
    
         
            +
                            text: '离线数据下载中',
         
     | 
| 
      
 153 
     | 
    
         
            +
                            delay: 0,
         
     | 
| 
      
 154 
     | 
    
         
            +
                            showProgress: true
         
     | 
| 
      
 155 
     | 
    
         
            +
                          });
         
     | 
| 
      
 156 
     | 
    
         
            +
                          _context.next = 10;
         
     | 
| 
      
 157 
     | 
    
         
            +
                          return offlineSys.downloadCatcherData(downProgress);
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                        case 10:
         
     | 
| 
      
 160 
     | 
    
         
            +
                          result = _context.sent;
         
     | 
| 
      
 161 
     | 
    
         
            +
             
     | 
| 
      
 162 
     | 
    
         
            +
                          _tplusComponentsTouch.Loading.hide();
         
     | 
| 
      
 163 
     | 
    
         
            +
                          if (result) {
         
     | 
| 
      
 164 
     | 
    
         
            +
                            _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
         
     | 
| 
      
 165 
     | 
    
         
            +
                          }
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                        case 13:
         
     | 
| 
      
 168 
     | 
    
         
            +
                          _mutantsMicrofx.localStore.set("isLoginAfter", 0);
         
     | 
| 
      
 169 
     | 
    
         
            +
             
     | 
| 
      
 170 
     | 
    
         
            +
                        case 14:
         
     | 
| 
      
 171 
     | 
    
         
            +
                        case 'end':
         
     | 
| 
      
 172 
     | 
    
         
            +
                          return _context.stop();
         
     | 
| 
      
 173 
     | 
    
         
            +
                      }
         
     | 
| 
      
 174 
     | 
    
         
            +
                    }
         
     | 
| 
      
 175 
     | 
    
         
            +
                  }, _callee, _this2);
         
     | 
| 
      
 176 
     | 
    
         
            +
                }));
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
      
 178 
     | 
    
         
            +
                _this.getOperation = function () {
         
     | 
| 
      
 179 
     | 
    
         
            +
                  return new _promise2.default(function (resolve, reject) {
         
     | 
| 
      
 180 
     | 
    
         
            +
                    var _this$context = _this.context,
         
     | 
| 
      
 181 
     | 
    
         
            +
                        _this$context$stores = _this$context.stores;
         
     | 
| 
      
 182 
     | 
    
         
            +
                    _this$context$stores = _this$context$stores === undefined ? {} : _this$context$stores;
         
     | 
| 
      
 183 
     | 
    
         
            +
                    var portalStore = _this$context$stores.portalStore,
         
     | 
| 
      
 184 
     | 
    
         
            +
                        _this$context$headHoo = _this$context.headHook;
         
     | 
| 
      
 185 
     | 
    
         
            +
                    _this$context$headHoo = _this$context$headHoo === undefined ? {} : _this$context$headHoo;
         
     | 
| 
      
 186 
     | 
    
         
            +
                    var addClass = _this$context$headHoo.addClass;
         
     | 
| 
      
 187 
     | 
    
         
            +
                    var homeOperation = _ModifyPassApi.Request.homeOperation,
         
     | 
| 
      
 188 
     | 
    
         
            +
                        functionData = _ModifyPassApi.Request.functionData;
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
                    _tplusComponentsTouch.Loading.show({
         
     | 
| 
      
 191 
     | 
    
         
            +
                      text: '首页权限加载中...',
         
     | 
| 
      
 192 
     | 
    
         
            +
                      delay: 2500
         
     | 
| 
      
 193 
     | 
    
         
            +
                    });
         
     | 
| 
      
 194 
     | 
    
         
            +
                    homeOperation().then(function (operations) {
         
     | 
| 
      
 195 
     | 
    
         
            +
                      _mutantsMicrofx.localStore.set('operationsAuth', (0, _stringify2.default)(operations));
         
     | 
| 
      
 196 
     | 
    
         
            +
                      _this.setState({ operations: operations || [] });
         
     | 
| 
      
 197 
     | 
    
         
            +
                      _tplusComponentsTouch.Loading.hide();
         
     | 
| 
      
 198 
     | 
    
         
            +
                      resolve();
         
     | 
| 
      
 199 
     | 
    
         
            +
                    }).catch(function (err) {
         
     | 
| 
      
 200 
     | 
    
         
            +
                      console.log('homeOperation.error======', err);
         
     | 
| 
      
 201 
     | 
    
         
            +
                      _tplusComponentsTouch.Loading.hide();
         
     | 
| 
      
 202 
     | 
    
         
            +
                      resolve();
         
     | 
| 
      
 203 
     | 
    
         
            +
                    });
         
     | 
| 
      
 204 
     | 
    
         
            +
                    functionData().then(function (data) {
         
     | 
| 
      
 205 
     | 
    
         
            +
                      // 加载权限数据  DR-29735 by majian
         
     | 
| 
      
 206 
     | 
    
         
            +
                      (0, _tplusPoslogin.PosSetData)(data);
         
     | 
| 
      
 207 
     | 
    
         
            +
                    });
         
     | 
| 
      
 208 
     | 
    
         
            +
                    // portalStore && portalStore.getPortalMenu();
         
     | 
| 
      
 209 
     | 
    
         
            +
                    addClass && addClass(_this.state.id, 'portalHead');
         
     | 
| 
      
 210 
     | 
    
         
            +
                    // 初始化参数设置。
         
     | 
| 
      
 211 
     | 
    
         
            +
                    _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
         
     | 
| 
      
 212 
     | 
    
         
            +
                      // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
         
     | 
| 
      
 213 
     | 
    
         
            +
                      if (_this.getScreenType() === true) {
         
     | 
| 
      
 214 
     | 
    
         
            +
                        if (_this.isHorizontalSunMi) {
         
     | 
| 
      
 215 
     | 
    
         
            +
                          _this.sunMiPresentationInit(ret);
         
     | 
| 
      
 216 
     | 
    
         
            +
                          return;
         
     | 
| 
      
 217 
     | 
    
         
            +
                        }
         
     | 
| 
      
 218 
     | 
    
         
            +
                        window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
         
     | 
| 
      
 219 
     | 
    
         
            +
                      }
         
     | 
| 
      
 220 
     | 
    
         
            +
                    });
         
     | 
| 
      
 221 
     | 
    
         
            +
                    _this.hsyBasicInfoInit();
         
     | 
| 
      
 222 
     | 
    
         
            +
                  });
         
     | 
| 
      
 223 
     | 
    
         
            +
                };
         
     | 
| 
      
 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.isMobileEnvironment || _this.isHorizontalSunMi); //是否允许离线
         
     | 
| 
      
 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 
     | 
    
         
            +
             
     | 
| 
       124 
253 
     | 
    
         
             
                _this.initHsyPage = function () {
         
     | 
| 
       125 
254 
     | 
    
         
             
                  var external_frame = document.getElementById('external-frame-cc');
         
     | 
| 
       126 
255 
     | 
    
         
             
                  var win = external_frame && external_frame.contentWindow;
         
     | 
| 
         @@ -138,12 +267,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       138 
267 
     | 
    
         
             
                  //SunMi初始化参数设置。
         
     | 
| 
       139 
268 
     | 
    
         
             
                  //副屏幕交互。硬件改动20200428   需要在商米页面加载成功后才能发送 初始化命令
         
     | 
| 
       140 
269 
     | 
    
         
             
                  // 进行主副屏数据交互 初始化
         
     | 
| 
       141 
     | 
    
         
            -
                  var  
     | 
| 
       142 
     | 
    
         
            -
                       
     | 
| 
      
 270 
     | 
    
         
            +
                  var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
         
     | 
| 
      
 271 
     | 
    
         
            +
                      _ref3$store = _ref3.store;
         
     | 
| 
       143 
272 
     | 
    
         | 
| 
       144 
     | 
    
         
            -
                   
     | 
| 
       145 
     | 
    
         
            -
                  var  
     | 
| 
       146 
     | 
    
         
            -
                      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;
         
     | 
| 
       147 
276 
     | 
    
         | 
| 
       148 
277 
     | 
    
         
             
                  console.log(result);
         
     | 
| 
       149 
278 
     | 
    
         | 
| 
         @@ -187,11 +316,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       187 
316 
     | 
    
         | 
| 
       188 
317 
     | 
    
         
             
                  var loginInfo = user.options.get('loginInfo');
         
     | 
| 
       189 
318 
     | 
    
         | 
| 
       190 
     | 
    
         
            -
                  var  
     | 
| 
       191 
     | 
    
         
            -
                      UserCode =  
     | 
| 
       192 
     | 
    
         
            -
                      AccountNum =  
     | 
| 
       193 
     | 
    
         
            -
                      posCode =  
     | 
| 
       194 
     | 
    
         
            -
                      TplusStoreId =  
     | 
| 
      
 319 
     | 
    
         
            +
                  var _ref4 = loginInfo || {},
         
     | 
| 
      
 320 
     | 
    
         
            +
                      UserCode = _ref4.UserCode,
         
     | 
| 
      
 321 
     | 
    
         
            +
                      AccountNum = _ref4.AccountNum,
         
     | 
| 
      
 322 
     | 
    
         
            +
                      posCode = _ref4.posCode,
         
     | 
| 
      
 323 
     | 
    
         
            +
                      TplusStoreId = _ref4.TplusStoreId;
         
     | 
| 
       195 
324 
     | 
    
         | 
| 
       196 
325 
     | 
    
         
             
                  var uid = _this.tplusEncode(UserCode);
         
     | 
| 
       197 
326 
     | 
    
         
             
                  var pwd = _this.tplusEncode(user.options.get("password"));
         
     | 
| 
         @@ -243,11 +372,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       243 
372 
     | 
    
         
             
                    return vv.Name === Name;
         
     | 
| 
       244 
373 
     | 
    
         
             
                  });
         
     | 
| 
       245 
374 
     | 
    
         | 
| 
       246 
     | 
    
         
            -
                  var  
     | 
| 
       247 
     | 
    
         
            -
                      Visibility =  
     | 
| 
       248 
     | 
    
         
            -
                      HoldFunctionAuth =  
     | 
| 
       249 
     | 
    
         
            -
                      Title =  
     | 
| 
       250 
     | 
    
         
            -
                      MenuCode =  
     | 
| 
      
 375 
     | 
    
         
            +
                  var _ref5 = controllable || {},
         
     | 
| 
      
 376 
     | 
    
         
            +
                      Visibility = _ref5.Visibility,
         
     | 
| 
      
 377 
     | 
    
         
            +
                      HoldFunctionAuth = _ref5.HoldFunctionAuth,
         
     | 
| 
      
 378 
     | 
    
         
            +
                      Title = _ref5.Title,
         
     | 
| 
      
 379 
     | 
    
         
            +
                      MenuCode = _ref5.MenuCode;
         
     | 
| 
       251 
380 
     | 
    
         | 
| 
       252 
381 
     | 
    
         
             
                  var errorTip = void 0;
         
     | 
| 
       253 
382 
     | 
    
         
             
                  if (type == 'more') {
         
     | 
| 
         @@ -264,6 +393,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       264 
393 
     | 
    
         
             
                      okType: 'primary'
         
     | 
| 
       265 
394 
     | 
    
         
             
                    });
         
     | 
| 
       266 
395 
     | 
    
         
             
                  }
         
     | 
| 
      
 396 
     | 
    
         
            +
             
     | 
| 
      
 397 
     | 
    
         
            +
                  if (!_mutantsMicrofx.stores.offlineSys.shouldOpenHomeOperation(Name)) {
         
     | 
| 
      
 398 
     | 
    
         
            +
                    _tplusComponentsTouch.Message.warn("离线模式下此操作不可用");
         
     | 
| 
      
 399 
     | 
    
         
            +
                    return;
         
     | 
| 
      
 400 
     | 
    
         
            +
                  }
         
     | 
| 
      
 401 
     | 
    
         
            +
             
     | 
| 
       267 
402 
     | 
    
         
             
                  if (!Visibility) {
         
     | 
| 
       268 
403 
     | 
    
         
             
                    errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
         
     | 
| 
       269 
404 
     | 
    
         
             
                  } else if (!HoldFunctionAuth) {
         
     | 
| 
         @@ -322,19 +457,23 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       322 
457 
     | 
    
         
             
                };
         
     | 
| 
       323 
458 
     | 
    
         | 
| 
       324 
459 
     | 
    
         
             
                _this.toFramePage = function (params) {
         
     | 
| 
       325 
     | 
    
         
            -
                  var  
     | 
| 
       326 
     | 
    
         
            -
                      app =  
     | 
| 
       327 
     | 
    
         
            -
                      title =  
     | 
| 
       328 
     | 
    
         
            -
                      style =  
     | 
| 
       329 
     | 
    
         
            -
                      search =  
     | 
| 
       330 
     | 
    
         
            -
                      tmenuCode =  
     | 
| 
       331 
     | 
    
         
            -
                      MenuCode =  
     | 
| 
       332 
     | 
    
         
            -
                      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;
         
     | 
| 
       333 
468 
     | 
    
         | 
| 
       334 
469 
     | 
    
         
             
                  switch (app) {
         
     | 
| 
       335 
470 
     | 
    
         
             
                    case 'cc':
         
     | 
| 
       336 
471 
     | 
    
         
             
                      var sh = '';
         
     | 
| 
       337 
     | 
    
         
            -
                      if ( 
     | 
| 
      
 472 
     | 
    
         
            +
                      if (_this.isMobileEnvironment) {
         
     | 
| 
      
 473 
     | 
    
         
            +
                        //暂时不支持android系统跳转
         
     | 
| 
      
 474 
     | 
    
         
            +
                        return _tplusComponentsTouch.Message.warn('新功能正在研发中,敬请期待。');
         
     | 
| 
      
 475 
     | 
    
         
            +
                      }
         
     | 
| 
      
 476 
     | 
    
         
            +
                      if (!isHsyLoadFinish) {
         
     | 
| 
       338 
477 
     | 
    
         
             
                        return _tplusComponentsTouch.Message.warn('正在加载资源中,请稍后。');
         
     | 
| 
       339 
478 
     | 
    
         
             
                      }
         
     | 
| 
       340 
479 
     | 
    
         
             
                      if (!search) {
         
     | 
| 
         @@ -388,37 +527,37 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       388 
527 
     | 
    
         
             
                };
         
     | 
| 
       389 
528 
     | 
    
         | 
| 
       390 
529 
     | 
    
         
             
                _this.toTplusPage = function () {
         
     | 
| 
       391 
     | 
    
         
            -
                  var  
     | 
| 
       392 
     | 
    
         
            -
                    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;
         
     | 
| 
       393 
532 
     | 
    
         | 
| 
       394 
     | 
    
         
            -
                    return _regenerator2.default.wrap(function  
     | 
| 
      
 533 
     | 
    
         
            +
                    return _regenerator2.default.wrap(function _callee3$(_context3) {
         
     | 
| 
       395 
534 
     | 
    
         
             
                      while (1) {
         
     | 
| 
       396 
     | 
    
         
            -
                        switch ( 
     | 
| 
      
 535 
     | 
    
         
            +
                        switch (_context3.prev = _context3.next) {
         
     | 
| 
       397 
536 
     | 
    
         
             
                          case 0:
         
     | 
| 
       398 
537 
     | 
    
         
             
                            ret = _this.getTcBasicInfoInit();
         
     | 
| 
       399 
538 
     | 
    
         | 
| 
       400 
539 
     | 
    
         
             
                            if (!(ret === false)) {
         
     | 
| 
       401 
     | 
    
         
            -
                               
     | 
| 
      
 540 
     | 
    
         
            +
                              _context3.next = 3;
         
     | 
| 
       402 
541 
     | 
    
         
             
                              break;
         
     | 
| 
       403 
542 
     | 
    
         
             
                            }
         
     | 
| 
       404 
543 
     | 
    
         | 
| 
       405 
     | 
    
         
            -
                            return  
     | 
| 
      
 544 
     | 
    
         
            +
                            return _context3.abrupt('return');
         
     | 
| 
       406 
545 
     | 
    
         | 
| 
       407 
546 
     | 
    
         
             
                          case 3:
         
     | 
| 
       408 
     | 
    
         
            -
                             
     | 
| 
      
 547 
     | 
    
         
            +
                            _ref8 = ret || {}, ossjumpUrl = _ref8.ossjumpUrl, postMessageUrl = _ref8.postMessageUrl;
         
     | 
| 
       409 
548 
     | 
    
         
             
                            dsearchPlanID = '';
         
     | 
| 
       410 
549 
     | 
    
         | 
| 
       411 
550 
     | 
    
         
             
                            if (!(search && search.id)) {
         
     | 
| 
       412 
     | 
    
         
            -
                               
     | 
| 
      
 551 
     | 
    
         
            +
                              _context3.next = 10;
         
     | 
| 
       413 
552 
     | 
    
         
             
                              break;
         
     | 
| 
       414 
553 
     | 
    
         
             
                            }
         
     | 
| 
       415 
554 
     | 
    
         | 
| 
       416 
555 
     | 
    
         
             
                            portalStore = _this.context.stores.portalStore;
         
     | 
| 
       417 
     | 
    
         
            -
                             
     | 
| 
      
 556 
     | 
    
         
            +
                            _context3.next = 9;
         
     | 
| 
       418 
557 
     | 
    
         
             
                            return portalStore.getSearchPlanId(search);
         
     | 
| 
       419 
558 
     | 
    
         | 
| 
       420 
559 
     | 
    
         
             
                          case 9:
         
     | 
| 
       421 
     | 
    
         
            -
                            dsearchPlanID =  
     | 
| 
      
 560 
     | 
    
         
            +
                            dsearchPlanID = _context3.sent;
         
     | 
| 
       422 
561 
     | 
    
         | 
| 
       423 
562 
     | 
    
         
             
                          case 10:
         
     | 
| 
       424 
563 
     | 
    
         
             
                            menu = _this.tplusEncode(tmenuCode);
         
     | 
| 
         @@ -429,22 +568,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       429 
568 
     | 
    
         
             
                            }
         
     | 
| 
       430 
569 
     | 
    
         | 
| 
       431 
570 
     | 
    
         
             
                            if (!_this.isHorizontalSunMi) {
         
     | 
| 
       432 
     | 
    
         
            -
                               
     | 
| 
      
 571 
     | 
    
         
            +
                              _context3.next = 17;
         
     | 
| 
       433 
572 
     | 
    
         
             
                              break;
         
     | 
| 
       434 
573 
     | 
    
         
             
                            }
         
     | 
| 
       435 
574 
     | 
    
         | 
| 
       436 
575 
     | 
    
         
             
                            window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
         
     | 
| 
       437 
     | 
    
         
            -
                             
     | 
| 
      
 576 
     | 
    
         
            +
                            _context3.next = 25;
         
     | 
| 
       438 
577 
     | 
    
         
             
                            break;
         
     | 
| 
       439 
578 
     | 
    
         | 
| 
       440 
579 
     | 
    
         
             
                          case 17:
         
     | 
| 
       441 
580 
     | 
    
         
             
                            if (!(_this.new_retail_app == 'tc' || _this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj')) {
         
     | 
| 
       442 
     | 
    
         
            -
                               
     | 
| 
      
 581 
     | 
    
         
            +
                              _context3.next = 20;
         
     | 
| 
       443 
582 
     | 
    
         
             
                              break;
         
     | 
| 
       444 
583 
     | 
    
         
             
                            }
         
     | 
| 
       445 
584 
     | 
    
         | 
| 
       446 
585 
     | 
    
         
             
                            _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
         
     | 
| 
       447 
     | 
    
         
            -
                            return  
     | 
| 
      
 586 
     | 
    
         
            +
                            return _context3.abrupt('return');
         
     | 
| 
       448 
587 
     | 
    
         | 
| 
       449 
588 
     | 
    
         
             
                          case 20:
         
     | 
| 
       450 
589 
     | 
    
         
             
                            external_frame_tc = document.getElementById('external-frame-tc');
         
     | 
| 
         @@ -467,24 +606,24 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       467 
606 
     | 
    
         | 
| 
       468 
607 
     | 
    
         
             
                          case 25:
         
     | 
| 
       469 
608 
     | 
    
         
             
                          case 'end':
         
     | 
| 
       470 
     | 
    
         
            -
                            return  
     | 
| 
      
 609 
     | 
    
         
            +
                            return _context3.stop();
         
     | 
| 
       471 
610 
     | 
    
         
             
                        }
         
     | 
| 
       472 
611 
     | 
    
         
             
                      }
         
     | 
| 
       473 
     | 
    
         
            -
                    },  
     | 
| 
      
 612 
     | 
    
         
            +
                    }, _callee3, _this2);
         
     | 
| 
       474 
613 
     | 
    
         
             
                  }));
         
     | 
| 
       475 
614 
     | 
    
         | 
| 
       476 
615 
     | 
    
         
             
                  return function (_x2, _x3) {
         
     | 
| 
       477 
     | 
    
         
            -
                    return  
     | 
| 
      
 616 
     | 
    
         
            +
                    return _ref7.apply(this, arguments);
         
     | 
| 
       478 
617 
     | 
    
         
             
                  };
         
     | 
| 
       479 
618 
     | 
    
         
             
                }();
         
     | 
| 
       480 
619 
     | 
    
         | 
| 
       481 
620 
     | 
    
         
             
                _this.toHsyPage = function () {
         
     | 
| 
       482 
     | 
    
         
            -
                  var  
     | 
| 
       483 
     | 
    
         
            -
                    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;
         
     | 
| 
       484 
623 
     | 
    
         | 
| 
       485 
     | 
    
         
            -
                    return _regenerator2.default.wrap(function  
     | 
| 
      
 624 
     | 
    
         
            +
                    return _regenerator2.default.wrap(function _callee4$(_context4) {
         
     | 
| 
       486 
625 
     | 
    
         
             
                      while (1) {
         
     | 
| 
       487 
     | 
    
         
            -
                        switch ( 
     | 
| 
      
 626 
     | 
    
         
            +
                        switch (_context4.prev = _context4.next) {
         
     | 
| 
       488 
627 
     | 
    
         
             
                          case 0:
         
     | 
| 
       489 
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;
         
     | 
| 
       490 
629 
     | 
    
         
             
                            filter = {};
         
     | 
| 
         @@ -493,11 +632,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       493 
632 
     | 
    
         
             
                            IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
         
     | 
| 
       494 
633 
     | 
    
         
             
                            WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
         
     | 
| 
       495 
634 
     | 
    
         
             
                            IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
         
     | 
| 
       496 
     | 
    
         
            -
                             
     | 
| 
       497 
     | 
    
         
            -
                             
     | 
| 
       498 
     | 
    
         
            -
                             
     | 
| 
       499 
     | 
    
         
            -
                             
     | 
| 
       500 
     | 
    
         
            -
                             
     | 
| 
      
 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;
         
     | 
| 
       501 
640 
     | 
    
         
             
                            break;
         
     | 
| 
       502 
641 
     | 
    
         | 
| 
       503 
642 
     | 
    
         
             
                          case 11:
         
     | 
| 
         @@ -527,7 +666,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       527 
666 
     | 
    
         
             
                                }
         
     | 
| 
       528 
667 
     | 
    
         
             
                              };
         
     | 
| 
       529 
668 
     | 
    
         
             
                            }
         
     | 
| 
       530 
     | 
    
         
            -
                            return  
     | 
| 
      
 669 
     | 
    
         
            +
                            return _context4.abrupt('break', 18);
         
     | 
| 
       531 
670 
     | 
    
         | 
| 
       532 
671 
     | 
    
         
             
                          case 14:
         
     | 
| 
       533 
672 
     | 
    
         
             
                            filter = {
         
     | 
| 
         @@ -583,7 +722,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       583 
722 
     | 
    
         
             
                                }
         
     | 
| 
       584 
723 
     | 
    
         
             
                              };
         
     | 
| 
       585 
724 
     | 
    
         
             
                            }
         
     | 
| 
       586 
     | 
    
         
            -
                            return  
     | 
| 
      
 725 
     | 
    
         
            +
                            return _context4.abrupt('break', 18);
         
     | 
| 
       587 
726 
     | 
    
         | 
| 
       588 
727 
     | 
    
         
             
                          case 18:
         
     | 
| 
       589 
728 
     | 
    
         
             
                            bar_bg = encodeURIComponent(bar_bg);
         
     | 
| 
         @@ -601,19 +740,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       601 
740 
     | 
    
         
             
                            console.log('web_hsy_url:', cc_url);
         
     | 
| 
       602 
741 
     | 
    
         | 
| 
       603 
742 
     | 
    
         
             
                            if (!_this.isHorizontalSunMi) {
         
     | 
| 
       604 
     | 
    
         
            -
                               
     | 
| 
      
 743 
     | 
    
         
            +
                              _context4.next = 37;
         
     | 
| 
       605 
744 
     | 
    
         
             
                              break;
         
     | 
| 
       606 
745 
     | 
    
         
             
                            }
         
     | 
| 
       607 
746 
     | 
    
         | 
| 
       608 
     | 
    
         
            -
                             
     | 
| 
      
 747 
     | 
    
         
            +
                            _context4.next = 32;
         
     | 
| 
       609 
748 
     | 
    
         
             
                            return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
         
     | 
| 
       610 
749 
     | 
    
         | 
| 
       611 
750 
     | 
    
         
             
                          case 32:
         
     | 
| 
       612 
     | 
    
         
            -
                            CC_WEB_URL =  
     | 
| 
      
 751 
     | 
    
         
            +
                            CC_WEB_URL = _context4.sent;
         
     | 
| 
       613 
752 
     | 
    
         | 
| 
       614 
753 
     | 
    
         
             
                            console.log('CC_WEB_URL:', CC_WEB_URL);
         
     | 
| 
       615 
754 
     | 
    
         
             
                            window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
         
     | 
| 
       616 
     | 
    
         
            -
                             
     | 
| 
      
 755 
     | 
    
         
            +
                            _context4.next = 42;
         
     | 
| 
       617 
756 
     | 
    
         
             
                            break;
         
     | 
| 
       618 
757 
     | 
    
         | 
| 
       619 
758 
     | 
    
         
             
                          case 37:
         
     | 
| 
         @@ -635,14 +774,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       635 
774 
     | 
    
         | 
| 
       636 
775 
     | 
    
         
             
                          case 42:
         
     | 
| 
       637 
776 
     | 
    
         
             
                          case 'end':
         
     | 
| 
       638 
     | 
    
         
            -
                            return  
     | 
| 
      
 777 
     | 
    
         
            +
                            return _context4.stop();
         
     | 
| 
       639 
778 
     | 
    
         
             
                        }
         
     | 
| 
       640 
779 
     | 
    
         
             
                      }
         
     | 
| 
       641 
     | 
    
         
            -
                    },  
     | 
| 
      
 780 
     | 
    
         
            +
                    }, _callee4, _this2);
         
     | 
| 
       642 
781 
     | 
    
         
             
                  }));
         
     | 
| 
       643 
782 
     | 
    
         | 
| 
       644 
783 
     | 
    
         
             
                  return function (_x4) {
         
     | 
| 
       645 
     | 
    
         
            -
                    return  
     | 
| 
      
 784 
     | 
    
         
            +
                    return _ref9.apply(this, arguments);
         
     | 
| 
       646 
785 
     | 
    
         
             
                  };
         
     | 
| 
       647 
786 
     | 
    
         
             
                }();
         
     | 
| 
       648 
787 
     | 
    
         | 
| 
         @@ -736,10 +875,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       736 
875 
     | 
    
         
             
                      return vv.Name === v.Name;
         
     | 
| 
       737 
876 
     | 
    
         
             
                    });
         
     | 
| 
       738 
877 
     | 
    
         | 
| 
       739 
     | 
    
         
            -
                    var  
     | 
| 
       740 
     | 
    
         
            -
                        Visibility =  
     | 
| 
       741 
     | 
    
         
            -
                        HoldFunctionAuth =  
     | 
| 
       742 
     | 
    
         
            -
                        Title =  
     | 
| 
      
 878 
     | 
    
         
            +
                    var _ref11 = controllable || {},
         
     | 
| 
      
 879 
     | 
    
         
            +
                        Visibility = _ref11.Visibility,
         
     | 
| 
      
 880 
     | 
    
         
            +
                        HoldFunctionAuth = _ref11.HoldFunctionAuth,
         
     | 
| 
      
 881 
     | 
    
         
            +
                        Title = _ref11.Title;
         
     | 
| 
       743 
882 
     | 
    
         | 
| 
       744 
883 
     | 
    
         
             
                    var errorTip = void 0;
         
     | 
| 
       745 
884 
     | 
    
         
             
                    if (!Visibility) {
         
     | 
| 
         @@ -982,12 +1121,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       982 
1121 
     | 
    
         
             
                  modalURL: ''
         
     | 
| 
       983 
1122 
     | 
    
         
             
                };
         
     | 
| 
       984 
1123 
     | 
    
         | 
| 
       985 
     | 
    
         
            -
                var  
     | 
| 
       986 
     | 
    
         
            -
                    isVerticalTouch =  
     | 
| 
       987 
     | 
    
         
            -
                    isHorizontalPad =  
     | 
| 
       988 
     | 
    
         
            -
                    isHorizontalSunMi =  
     | 
| 
       989 
     | 
    
         
            -
                    isNewRetailBCPos =  
     | 
| 
       990 
     | 
    
         
            -
                    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;
         
     | 
| 
       991 
1130 
     | 
    
         | 
| 
       992 
1131 
     | 
    
         
             
                _this.isVerticalTouch = !!isVerticalTouch;
         
     | 
| 
       993 
1132 
     | 
    
         
             
                _this.isHorizontalPad = !!isHorizontalPad;
         
     | 
| 
         @@ -1019,54 +1158,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       1019 
1158 
     | 
    
         
             
              }
         
     | 
| 
       1020 
1159 
     | 
    
         | 
| 
       1021 
1160 
     | 
    
         
             
              (0, _createClass3.default)(_default, [{
         
     | 
| 
       1022 
     | 
    
         
            -
                key: 'componentWillMount',
         
     | 
| 
       1023 
     | 
    
         
            -
                value: function componentWillMount() {
         
     | 
| 
       1024 
     | 
    
         
            -
                  var _this3 = this;
         
     | 
| 
       1025 
     | 
    
         
            -
             
     | 
| 
       1026 
     | 
    
         
            -
                  var _context3 = this.context,
         
     | 
| 
       1027 
     | 
    
         
            -
                      _context3$stores = _context3.stores;
         
     | 
| 
       1028 
     | 
    
         
            -
                  _context3$stores = _context3$stores === undefined ? {} : _context3$stores;
         
     | 
| 
       1029 
     | 
    
         
            -
                  var portalStore = _context3$stores.portalStore,
         
     | 
| 
       1030 
     | 
    
         
            -
                      _context3$headHook = _context3.headHook;
         
     | 
| 
       1031 
     | 
    
         
            -
                  _context3$headHook = _context3$headHook === undefined ? {} : _context3$headHook;
         
     | 
| 
       1032 
     | 
    
         
            -
                  var addClass = _context3$headHook.addClass;
         
     | 
| 
       1033 
     | 
    
         
            -
                  var homeOperation = _ModifyPassApi.Request.homeOperation,
         
     | 
| 
       1034 
     | 
    
         
            -
                      functionData = _ModifyPassApi.Request.functionData;
         
     | 
| 
       1035 
     | 
    
         
            -
             
     | 
| 
       1036 
     | 
    
         
            -
                  _tplusComponentsTouch.Loading.show({
         
     | 
| 
       1037 
     | 
    
         
            -
                    text: '首页权限加载中...',
         
     | 
| 
       1038 
     | 
    
         
            -
                    delay: 2500
         
     | 
| 
       1039 
     | 
    
         
            -
                  });
         
     | 
| 
       1040 
     | 
    
         
            -
                  homeOperation().then(function (operations) {
         
     | 
| 
       1041 
     | 
    
         
            -
                    _mutantsMicrofx.localStore.set('operationsAuth', operations ? (0, _stringify2.default)(operations) : []);
         
     | 
| 
       1042 
     | 
    
         
            -
                    _this3.setState({ operations: operations || [] });
         
     | 
| 
       1043 
     | 
    
         
            -
                    _tplusComponentsTouch.Loading.hide();
         
     | 
| 
       1044 
     | 
    
         
            -
                  }).catch(function (err) {
         
     | 
| 
       1045 
     | 
    
         
            -
                    console.log('homeOperation.error======', err);
         
     | 
| 
       1046 
     | 
    
         
            -
                    _tplusComponentsTouch.Loading.hide();
         
     | 
| 
       1047 
     | 
    
         
            -
                  });
         
     | 
| 
       1048 
     | 
    
         
            -
                  functionData().then(function (data) {
         
     | 
| 
       1049 
     | 
    
         
            -
                    // 加载权限数据  DR-29735 by majian
         
     | 
| 
       1050 
     | 
    
         
            -
                    (0, _tplusPoslogin.PosSetData)(data);
         
     | 
| 
       1051 
     | 
    
         
            -
                  });
         
     | 
| 
       1052 
     | 
    
         
            -
                  addClass && addClass(this.state.id, 'portalHead');
         
     | 
| 
       1053 
     | 
    
         
            -
                  // 初始化参数设置。
         
     | 
| 
       1054 
     | 
    
         
            -
                  _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
         
     | 
| 
       1055 
     | 
    
         
            -
                    // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
         
     | 
| 
       1056 
     | 
    
         
            -
                    if (_this3.getScreenType() === true) {
         
     | 
| 
       1057 
     | 
    
         
            -
                      if (_this3.isHorizontalSunMi) {
         
     | 
| 
       1058 
     | 
    
         
            -
                        _this3.sunMiPresentationInit(ret);
         
     | 
| 
       1059 
     | 
    
         
            -
                        return;
         
     | 
| 
       1060 
     | 
    
         
            -
                      }
         
     | 
| 
       1061 
     | 
    
         
            -
                      window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
         
     | 
| 
       1062 
     | 
    
         
            -
                    }
         
     | 
| 
       1063 
     | 
    
         
            -
                  });
         
     | 
| 
       1064 
     | 
    
         
            -
                  this.hsyBasicInfoInit();
         
     | 
| 
       1065 
     | 
    
         
            -
                }
         
     | 
| 
       1066 
     | 
    
         
            -
              }, {
         
     | 
| 
       1067 
1161 
     | 
    
         
             
                key: 'componentDidMount',
         
     | 
| 
       1068 
1162 
     | 
    
         
             
                value: function componentDidMount() {
         
     | 
| 
       1069 
     | 
    
         
            -
                   
     | 
| 
      
 1163 
     | 
    
         
            +
                  this.initPageData();
         
     | 
| 
      
 1164 
     | 
    
         
            +
                  if (this.isNewRetailBCPos && !this.isVerticalTouch && !this.isMobileEnvironment) {
         
     | 
| 
       1070 
1165 
     | 
    
         
             
                    this.initHsyPage();
         
     | 
| 
       1071 
1166 
     | 
    
         
             
                  }
         
     | 
| 
       1072 
1167 
     | 
    
         
             
                }
         
     | 
| 
         @@ -1099,9 +1194,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C 
     | 
|
| 
       1099 
1194 
     | 
    
         
             
                      break;
         
     | 
| 
       1100 
1195 
     | 
    
         
             
                  }
         
     | 
| 
       1101 
1196 
     | 
    
         | 
| 
       1102 
     | 
    
         
            -
                  var  
     | 
| 
       1103 
     | 
    
         
            -
                       
     | 
| 
       1104 
     | 
    
         
            -
                      PosId =  
     | 
| 
      
 1197 
     | 
    
         
            +
                  var _ref13 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
         
     | 
| 
      
 1198 
     | 
    
         
            +
                      _ref13$PosId = _ref13.PosId,
         
     | 
| 
      
 1199 
     | 
    
         
            +
                      PosId = _ref13$PosId === undefined ? '' : _ref13$PosId;
         
     | 
| 
       1105 
1200 
     | 
    
         | 
| 
       1106 
1201 
     | 
    
         
             
                  var cc_url = this.hsy_domain.replace('#/', '') + '?fromApp=nretail&posid=' + PosId + '&content_only=true&bar_bg=' + encodeURIComponent('#FFFFFF') + '&bar_active_bg=' + encodeURIComponent(color);
         
     | 
| 
       1107 
1202 
     | 
    
         
             
                  this.setState({ loadHsyURL: cc_url });
         
     |