mcrm-mobile 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -92,7 +92,7 @@ import Tag from './tag';
92
92
  import Toast from './toast';
93
93
  import TreeSelect from './tree-select';
94
94
  import Uploader from './uploader';
95
- var version = '1.9.5';
95
+ var version = '1.9.6';
96
96
  var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, System, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
97
97
 
98
98
  var install = function install(Vue) {
@@ -1576,7 +1576,7 @@ var openPage = /*#__PURE__*/function () {
1576
1576
 
1577
1577
  var verify = /*#__PURE__*/function () {
1578
1578
  var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(menu, sybInfo, notAuth) {
1579
- var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, _sybInfo$custUniqueId, custUniqueId, allVerifySerial, custUniqueIdVerifySerial, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body, data, cityLimit, checkType, getLocationPromise, timeoutPromise;
1579
+ var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, _sybInfo$custUniqueId, custUniqueId, allVerifySerial, custUniqueIdVerifySerial, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body, cityLimit, checkType, data, getLocationPromise, timeoutPromise;
1580
1580
 
1581
1581
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
1582
1582
  while (1) {
@@ -1618,21 +1618,31 @@ var verify = /*#__PURE__*/function () {
1618
1618
  appVersion: appVersion,
1619
1619
  menuCode: menuCode
1620
1620
  };
1621
- _context11.next = 19;
1621
+ cityLimit = "1";
1622
+ checkType = "1";
1623
+ _context11.prev = 19;
1624
+ _context11.next = 22;
1622
1625
  return Http.menuPositionCheck(menuCode);
1623
1626
 
1624
- case 19:
1627
+ case 22:
1625
1628
  data = _context11.sent;
1626
- cityLimit = "1";
1627
- checkType = "1";
1628
1629
 
1629
1630
  if (data) {
1630
- data.cityLimit && (cityLimit = data.cityLimit);
1631
- data.checkType && (checkType = data.checkType);
1631
+ cityLimit = data.cityLimit;
1632
+ checkType = data.checkType;
1632
1633
  }
1633
1634
 
1635
+ _context11.next = 29;
1636
+ break;
1637
+
1638
+ case 26:
1639
+ _context11.prev = 26;
1640
+ _context11.t0 = _context11["catch"](19);
1641
+ console.error(_context11.t0);
1642
+
1643
+ case 29:
1634
1644
  if (!(mcrm.env.isMcrm && (cityLimit === "1" || checkType === "1"))) {
1635
- _context11.next = 28;
1645
+ _context11.next = 34;
1636
1646
  break;
1637
1647
  }
1638
1648
 
@@ -1658,10 +1668,10 @@ var verify = /*#__PURE__*/function () {
1658
1668
  }, 1500);
1659
1669
  }); // 使用Promise.race实现超时控制
1660
1670
 
1661
- _context11.next = 28;
1671
+ _context11.next = 34;
1662
1672
  return Promise.race([getLocationPromise, timeoutPromise]);
1663
1673
 
1664
- case 28:
1674
+ case 34:
1665
1675
  return _context11.abrupt("return", new Promise(function (resolve, reject) {
1666
1676
  Http.menuPageVerify(body).then( /*#__PURE__*/function () {
1667
1677
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(data) {
@@ -1821,12 +1831,12 @@ var verify = /*#__PURE__*/function () {
1821
1831
  });
1822
1832
  }));
1823
1833
 
1824
- case 29:
1834
+ case 35:
1825
1835
  case "end":
1826
1836
  return _context11.stop();
1827
1837
  }
1828
1838
  }
1829
- }, _callee11);
1839
+ }, _callee11, null, [[19, 26]]);
1830
1840
  }));
1831
1841
 
1832
1842
  return function verify(_x38, _x39, _x40) {
package/es/utils/http.js CHANGED
@@ -147,7 +147,7 @@ instanceJson.interceptors.response.use(function (response) {
147
147
  }
148
148
 
149
149
  if (resData.code === 200 || resData.code === "200" || resData.msg && resData.msg.code === 200 || resData.msg && resData.msg.code === "200") {
150
- return resData.data;
150
+ return resData.data || resData;
151
151
  } else if (resData.code === 402 || resData.code === "402" || resData.msg && resData.msg.code === 402 || resData.msg && resData.msg.code === "402") {
152
152
  logoutAlert(resData.message || resData.msg.message, 1);
153
153
  return Promise.reject(resData.message || resData.msg.message);
package/lib/index.js CHANGED
@@ -377,7 +377,7 @@ var _uploader = _interopRequireDefault(require("./uploader"));
377
377
 
378
378
  exports.Uploader = _uploader.default;
379
379
  // This file is auto generated by build/build-entry.js
380
- var version = '1.9.5';
380
+ var version = '1.9.6';
381
381
  exports.version = version;
382
382
  var components = [_actionSheet.default, _addressPicker.default, _api.default, _badge.default, _biz.default, _button.default, _calendar.default, _card.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _circle.default, _col.default, _collapse.default, _collapseItem.default, _commonUtils.default, _countDown.default, _dataProcess.default, _datePicker.default, _datetimePicker.default, _dialog.default, _directive.default, _divider.default, _drag.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _goodsAction.default, _goodsActionButton.default, _goodsActionIcon.default, _grid.default, _gridItem.default, _http.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _list.default, _loading.default, _local.default, _menu.default, _menuIcon.default, _menuJump.default, _menus.default, _navBar.default, _noticeBar.default, _notify.default, _overlay.default, _pagination.default, _panel.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _progress.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rank.default, _rate.default, _row.default, _safeKeyboard.default, _search.default, _session.default, _shareSheet.default, _sidebar.default, _sidebarItem.default, _slider.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _system.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tableColumn.default, _tabs.default, _tag.default, _toast.default, _treeSelect.default, _uploader.default];
383
383
 
@@ -19305,7 +19305,7 @@ instanceJson.interceptors.response.use(function (response) {
19305
19305
  }
19306
19306
 
19307
19307
  if (resData.code === 200 || resData.code === "200" || resData.msg && resData.msg.code === 200 || resData.msg && resData.msg.code === "200") {
19308
- return resData.data;
19308
+ return resData.data || resData;
19309
19309
  } else if (resData.code === 402 || resData.code === "402" || resData.msg && resData.msg.code === 402 || resData.msg && resData.msg.code === "402") {
19310
19310
  http_logoutAlert(resData.message || resData.msg.message, 1);
19311
19311
  return Promise.reject(resData.message || resData.msg.message);
@@ -22152,7 +22152,7 @@ var openPage = /*#__PURE__*/function () {
22152
22152
 
22153
22153
  var verify = /*#__PURE__*/function () {
22154
22154
  var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee11(menu, sybInfo, notAuth) {
22155
- var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, _sybInfo$custUniqueId, custUniqueId, allVerifySerial, custUniqueIdVerifySerial, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body, data, cityLimit, checkType, getLocationPromise, timeoutPromise;
22155
+ var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, _sybInfo$custUniqueId, custUniqueId, allVerifySerial, custUniqueIdVerifySerial, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body, cityLimit, checkType, data, getLocationPromise, timeoutPromise;
22156
22156
 
22157
22157
  return regenerator_default.a.wrap(function _callee11$(_context11) {
22158
22158
  while (1) {
@@ -22194,21 +22194,31 @@ var verify = /*#__PURE__*/function () {
22194
22194
  appVersion: appVersion,
22195
22195
  menuCode: menuCode
22196
22196
  };
22197
- _context11.next = 19;
22197
+ cityLimit = "1";
22198
+ checkType = "1";
22199
+ _context11.prev = 19;
22200
+ _context11.next = 22;
22198
22201
  return http.menuPositionCheck(menuCode);
22199
22202
 
22200
- case 19:
22203
+ case 22:
22201
22204
  data = _context11.sent;
22202
- cityLimit = "1";
22203
- checkType = "1";
22204
22205
 
22205
22206
  if (data) {
22206
- data.cityLimit && (cityLimit = data.cityLimit);
22207
- data.checkType && (checkType = data.checkType);
22207
+ cityLimit = data.cityLimit;
22208
+ checkType = data.checkType;
22208
22209
  }
22209
22210
 
22211
+ _context11.next = 29;
22212
+ break;
22213
+
22214
+ case 26:
22215
+ _context11.prev = 26;
22216
+ _context11.t0 = _context11["catch"](19);
22217
+ console.error(_context11.t0);
22218
+
22219
+ case 29:
22210
22220
  if (!(external_mcrm_default.a.env.isMcrm && (cityLimit === "1" || checkType === "1"))) {
22211
- _context11.next = 28;
22221
+ _context11.next = 34;
22212
22222
  break;
22213
22223
  }
22214
22224
 
@@ -22234,10 +22244,10 @@ var verify = /*#__PURE__*/function () {
22234
22244
  }, 1500);
22235
22245
  }); // 使用Promise.race实现超时控制
22236
22246
 
22237
- _context11.next = 28;
22247
+ _context11.next = 34;
22238
22248
  return Promise.race([getLocationPromise, timeoutPromise]);
22239
22249
 
22240
- case 28:
22250
+ case 34:
22241
22251
  return _context11.abrupt("return", new Promise(function (resolve, reject) {
22242
22252
  http.menuPageVerify(body).then( /*#__PURE__*/function () {
22243
22253
  var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee10(data) {
@@ -22397,12 +22407,12 @@ var verify = /*#__PURE__*/function () {
22397
22407
  });
22398
22408
  }));
22399
22409
 
22400
- case 29:
22410
+ case 35:
22401
22411
  case "end":
22402
22412
  return _context11.stop();
22403
22413
  }
22404
22414
  }
22405
- }, _callee11);
22415
+ }, _callee11, null, [[19, 26]]);
22406
22416
  }));
22407
22417
 
22408
22418
  return function verify(_x38, _x39, _x40) {
@@ -39143,7 +39153,7 @@ function isImageFile(item) {
39143
39153
 
39144
39154
 
39145
39155
 
39146
- var version = '1.9.5';
39156
+ var version = '1.9.6';
39147
39157
  var components = [action_sheet, address_picker, api, badge, biz, es_button, calendar, card, es_cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, common_utils, count_down, data_process, date_picker, datetime_picker, dialog, directive, divider, drag, dropdown_item, dropdown_menu, empty, field, goods_action, goods_action_button, goods_action_icon, grid, grid_item, http, icon, es_image, image_preview, index_anchor, index_bar, es_info, list, loading, local, es_menu, menu_icon, menu_jump, es_menus, nav_bar, notice_bar, notify, es_overlay, pagination, panel, password_input, es_picker, popover, es_popup, es_progress, pull_refresh, es_radio, radio_group, rank, es_rate, row, safe_keyboard, search, session["a" /* default */], share_sheet, sidebar, sidebar_item, slider, es_step, stepper, steps, sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, system, tab, tabbar, tabbar_item, table, table_column, tabs, tag, es_toast, tree_select, uploader];
39148
39158
 
39149
39159
  var es_install = function install(Vue) {