mcrm-mobile 1.9.8 → 1.9.9

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.8';
95
+ var version = '1.9.9';
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) {
@@ -1611,7 +1611,7 @@ var openPage = /*#__PURE__*/function () {
1611
1611
 
1612
1612
  var verify = /*#__PURE__*/function () {
1613
1613
  var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(menu, sybInfo, notAuth) {
1614
- 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;
1614
+ 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;
1615
1615
 
1616
1616
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
1617
1617
  while (1) {
@@ -1641,7 +1641,6 @@ var verify = /*#__PURE__*/function () {
1641
1641
  _yield$getExpInfo5 = _context11.sent;
1642
1642
  _yield$getExpInfo5$ap = _yield$getExpInfo5.appVersion;
1643
1643
  appVersion = _yield$getExpInfo5$ap === void 0 ? "" : _yield$getExpInfo5$ap;
1644
- // TODO菜单新增位置校验
1645
1644
  body = {
1646
1645
  funcId: funcId,
1647
1646
  funcType: funcType,
@@ -1652,63 +1651,45 @@ var verify = /*#__PURE__*/function () {
1652
1651
  opSys: opSys,
1653
1652
  appVersion: appVersion,
1654
1653
  menuCode: menuCode
1655
- };
1656
- cityLimit = "1";
1657
- checkType = "1";
1658
- _context11.prev = 19;
1659
- _context11.next = 22;
1660
- return Http.menuPositionCheck(menuCode);
1661
-
1662
- case 22:
1663
- data = _context11.sent;
1654
+ }; // let cityLimit = "1";
1655
+ // let checkType = "1";
1656
+ // try {
1657
+ // const data = await Http.menuPositionCheck(menuCode);
1658
+ // if (data) {
1659
+ // cityLimit = data.cityLimit;
1660
+ // checkType = data.checkType;
1661
+ // }
1662
+ // } catch (e) {
1663
+ // console.error(e);
1664
+ // }
1665
+ // if (mcrm.env.isMcrm && (cityLimit === "1" || checkType === "1")) {
1666
+ // const getLocationPromise = new Promise((resolve) => {
1667
+ // mcrm.device.getLocation({
1668
+ // isRealTime: true,
1669
+ // onSuccess: (res) => {
1670
+ // body.longitude = res.longitude;
1671
+ // body.latitude = res.latitude;
1672
+ // body.mapCityName = res.cityName || "";
1673
+ // body.mapProvinceName = res.provinceName || "";
1674
+ // body.mapAddress = res.address || "";
1675
+ // resolve(); // 成功时resolve
1676
+ // },
1677
+ // onFail: (res) => {
1678
+ // console.error(res);
1679
+ // resolve(); // 失败时也resolve,确保Promise完成
1680
+ // },
1681
+ // });
1682
+ // });
1683
+ // const timeoutPromise = new Promise((resolve) => {
1684
+ // setTimeout(() => {
1685
+ // console.log("获取定位超时(1.5秒),继续执行菜单校验");
1686
+ // resolve();
1687
+ // }, 1500);
1688
+ // });
1689
+ // // 使用Promise.race实现超时控制
1690
+ // await Promise.race([getLocationPromise, timeoutPromise]);
1691
+ // }
1664
1692
 
1665
- if (data) {
1666
- cityLimit = data.cityLimit;
1667
- checkType = data.checkType;
1668
- }
1669
-
1670
- _context11.next = 29;
1671
- break;
1672
-
1673
- case 26:
1674
- _context11.prev = 26;
1675
- _context11.t0 = _context11["catch"](19);
1676
- console.error(_context11.t0);
1677
-
1678
- case 29:
1679
- if (!(mcrm.env.isMcrm && (cityLimit === "1" || checkType === "1"))) {
1680
- _context11.next = 34;
1681
- break;
1682
- }
1683
-
1684
- getLocationPromise = new Promise(function (resolve) {
1685
- mcrm.device.getLocation({
1686
- isRealTime: true,
1687
- onSuccess: function onSuccess(res) {
1688
- body.longitude = res.longitude;
1689
- body.latitude = res.latitude;
1690
- body.mapCityName = res.cityName || "";
1691
- body.mapProvinceName = res.provinceName || "";
1692
- body.mapAddress = res.address || "";
1693
- resolve(); // 成功时resolve
1694
- },
1695
- onFail: function onFail(res) {
1696
- console.error(res);
1697
- resolve(); // 失败时也resolve,确保Promise完成
1698
- }
1699
- });
1700
- });
1701
- timeoutPromise = new Promise(function (resolve) {
1702
- setTimeout(function () {
1703
- console.log("获取定位超时(1.5秒),继续执行菜单校验");
1704
- resolve();
1705
- }, 1500);
1706
- }); // 使用Promise.race实现超时控制
1707
-
1708
- _context11.next = 34;
1709
- return Promise.race([getLocationPromise, timeoutPromise]);
1710
-
1711
- case 34:
1712
1693
  return _context11.abrupt("return", new Promise(function (resolve, reject) {
1713
1694
  Http.menuPageVerify(body).then( /*#__PURE__*/function () {
1714
1695
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(data) {
@@ -1868,12 +1849,12 @@ var verify = /*#__PURE__*/function () {
1868
1849
  });
1869
1850
  }));
1870
1851
 
1871
- case 35:
1852
+ case 18:
1872
1853
  case "end":
1873
1854
  return _context11.stop();
1874
1855
  }
1875
1856
  }
1876
- }, _callee11, null, [[19, 26]]);
1857
+ }, _callee11);
1877
1858
  }));
1878
1859
 
1879
1860
  return function verify(_x38, _x39, _x40) {
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.8';
380
+ var version = '1.9.9';
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
 
@@ -22187,7 +22187,7 @@ var openPage = /*#__PURE__*/function () {
22187
22187
 
22188
22188
  var verify = /*#__PURE__*/function () {
22189
22189
  var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee11(menu, sybInfo, notAuth) {
22190
- 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;
22190
+ 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;
22191
22191
 
22192
22192
  return regenerator_default.a.wrap(function _callee11$(_context11) {
22193
22193
  while (1) {
@@ -22216,8 +22216,7 @@ var verify = /*#__PURE__*/function () {
22216
22216
  case 13:
22217
22217
  _yield$getExpInfo5 = _context11.sent;
22218
22218
  _yield$getExpInfo5$ap = _yield$getExpInfo5.appVersion;
22219
- appVersion = _yield$getExpInfo5$ap === void 0 ? "" : _yield$getExpInfo5$ap; // TODO菜单新增位置校验
22220
-
22219
+ appVersion = _yield$getExpInfo5$ap === void 0 ? "" : _yield$getExpInfo5$ap;
22221
22220
  body = {
22222
22221
  funcId: funcId,
22223
22222
  funcType: funcType,
@@ -22228,63 +22227,45 @@ var verify = /*#__PURE__*/function () {
22228
22227
  opSys: opSys,
22229
22228
  appVersion: appVersion,
22230
22229
  menuCode: menuCode
22231
- };
22232
- cityLimit = "1";
22233
- checkType = "1";
22234
- _context11.prev = 19;
22235
- _context11.next = 22;
22236
- return http.menuPositionCheck(menuCode);
22237
-
22238
- case 22:
22239
- data = _context11.sent;
22240
-
22241
- if (data) {
22242
- cityLimit = data.cityLimit;
22243
- checkType = data.checkType;
22244
- }
22230
+ }; // let cityLimit = "1";
22231
+ // let checkType = "1";
22232
+ // try {
22233
+ // const data = await Http.menuPositionCheck(menuCode);
22234
+ // if (data) {
22235
+ // cityLimit = data.cityLimit;
22236
+ // checkType = data.checkType;
22237
+ // }
22238
+ // } catch (e) {
22239
+ // console.error(e);
22240
+ // }
22241
+ // if (mcrm.env.isMcrm && (cityLimit === "1" || checkType === "1")) {
22242
+ // const getLocationPromise = new Promise((resolve) => {
22243
+ // mcrm.device.getLocation({
22244
+ // isRealTime: true,
22245
+ // onSuccess: (res) => {
22246
+ // body.longitude = res.longitude;
22247
+ // body.latitude = res.latitude;
22248
+ // body.mapCityName = res.cityName || "";
22249
+ // body.mapProvinceName = res.provinceName || "";
22250
+ // body.mapAddress = res.address || "";
22251
+ // resolve(); // 成功时resolve
22252
+ // },
22253
+ // onFail: (res) => {
22254
+ // console.error(res);
22255
+ // resolve(); // 失败时也resolve,确保Promise完成
22256
+ // },
22257
+ // });
22258
+ // });
22259
+ // const timeoutPromise = new Promise((resolve) => {
22260
+ // setTimeout(() => {
22261
+ // console.log("获取定位超时(1.5秒),继续执行菜单校验");
22262
+ // resolve();
22263
+ // }, 1500);
22264
+ // });
22265
+ // // 使用Promise.race实现超时控制
22266
+ // await Promise.race([getLocationPromise, timeoutPromise]);
22267
+ // }
22245
22268
 
22246
- _context11.next = 29;
22247
- break;
22248
-
22249
- case 26:
22250
- _context11.prev = 26;
22251
- _context11.t0 = _context11["catch"](19);
22252
- console.error(_context11.t0);
22253
-
22254
- case 29:
22255
- if (!(external_mcrm_default.a.env.isMcrm && (cityLimit === "1" || checkType === "1"))) {
22256
- _context11.next = 34;
22257
- break;
22258
- }
22259
-
22260
- getLocationPromise = new Promise(function (resolve) {
22261
- external_mcrm_default.a.device.getLocation({
22262
- isRealTime: true,
22263
- onSuccess: function onSuccess(res) {
22264
- body.longitude = res.longitude;
22265
- body.latitude = res.latitude;
22266
- body.mapCityName = res.cityName || "";
22267
- body.mapProvinceName = res.provinceName || "";
22268
- body.mapAddress = res.address || "";
22269
- resolve(); // 成功时resolve
22270
- },
22271
- onFail: function onFail(res) {
22272
- console.error(res);
22273
- resolve(); // 失败时也resolve,确保Promise完成
22274
- }
22275
- });
22276
- });
22277
- timeoutPromise = new Promise(function (resolve) {
22278
- setTimeout(function () {
22279
- console.log("获取定位超时(1.5秒),继续执行菜单校验");
22280
- resolve();
22281
- }, 1500);
22282
- }); // 使用Promise.race实现超时控制
22283
-
22284
- _context11.next = 34;
22285
- return Promise.race([getLocationPromise, timeoutPromise]);
22286
-
22287
- case 34:
22288
22269
  return _context11.abrupt("return", new Promise(function (resolve, reject) {
22289
22270
  http.menuPageVerify(body).then( /*#__PURE__*/function () {
22290
22271
  var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee10(data) {
@@ -22444,12 +22425,12 @@ var verify = /*#__PURE__*/function () {
22444
22425
  });
22445
22426
  }));
22446
22427
 
22447
- case 35:
22428
+ case 18:
22448
22429
  case "end":
22449
22430
  return _context11.stop();
22450
22431
  }
22451
22432
  }
22452
- }, _callee11, null, [[19, 26]]);
22433
+ }, _callee11);
22453
22434
  }));
22454
22435
 
22455
22436
  return function verify(_x38, _x39, _x40) {
@@ -39190,7 +39171,7 @@ function isImageFile(item) {
39190
39171
 
39191
39172
 
39192
39173
 
39193
- var version = '1.9.8';
39174
+ var version = '1.9.9';
39194
39175
  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];
39195
39176
 
39196
39177
  var es_install = function install(Vue) {