mcrm-mobile 1.5.1 → 1.5.2

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.
@@ -70,6 +70,13 @@ CommonUtils.desensitization = function (text, digits, position) {
70
70
  }
71
71
  break;
72
72
 
73
+ case "end-center":
74
+ {
75
+ var n = Math.floor((length - digits) / 2);
76
+ text = text.substring(0, n + 1) + star + text.substring(n + 1 + digits, length);
77
+ }
78
+ break;
79
+
73
80
  case "end":
74
81
  {
75
82
  text = text.substring(0, length - digits) + star;
@@ -78,8 +85,9 @@ CommonUtils.desensitization = function (text, digits, position) {
78
85
 
79
86
  default:
80
87
  {
81
- var n = Math.floor((length - digits) / 2);
82
- text = text.substring(0, n) + star + text.substring(n + digits, length);
88
+ var _n = Math.floor((length - digits) / 2);
89
+
90
+ text = text.substring(0, _n) + star + text.substring(_n + digits, length);
83
91
  }
84
92
  break;
85
93
  }
package/es/index.js CHANGED
@@ -91,7 +91,7 @@ import Tag from './tag';
91
91
  import Toast from './toast';
92
92
  import TreeSelect from './tree-select';
93
93
  import Uploader from './uploader';
94
- var version = '1.5.1';
94
+ var version = '1.5.2';
95
95
  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, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
96
96
 
97
97
  var install = function install(Vue) {
package/es/utils/http.js CHANGED
@@ -22,7 +22,8 @@ instanceJson.interceptors.request.use(function (config) {
22
22
  switchNames = _ref.switchNames,
23
23
  backUrl = _ref.backUrl,
24
24
  opId = _ref.opId,
25
- orgId = _ref.orgId;
25
+ orgId = _ref.orgId,
26
+ cityCode = _ref.cityCode;
26
27
 
27
28
  if (opId && orgId) {
28
29
  var AIPortal_Oper_OpId = DataProcess.base64Encrypt(opId);
@@ -34,6 +35,10 @@ instanceJson.interceptors.request.use(function (config) {
34
35
  config.headers && (config.headers["x-secure-opt-log"] = config.data.body.invokeSessionId);
35
36
  }
36
37
 
38
+ opId && config.headers && (config.headers['AIPortal_Oper_OpId'] = DataProcess.base64Encrypt(opId));
39
+ orgId && config.headers && (config.headers['AIPortal_Oper_OrgId'] = DataProcess.base64Encrypt(orgId));
40
+ cityCode && config.headers && (config.headers['AIPortal_Oper_RegionCode'] = DataProcess.base64Encrypt(cityCode));
41
+
37
42
  if (process.env.NODE_ENV !== "local" && config.baseURL && config.baseURL === backUrl && switchNames && switchNames.INTERFACE_IS_ENCRYPTION) {
38
43
  config.headers && (config.headers["Secure-Version"] = "V1.0");
39
44
  config && (config["responseType"] = "text");
@@ -78,6 +78,13 @@ CommonUtils.desensitization = function (text, digits, position) {
78
78
  }
79
79
  break;
80
80
 
81
+ case "end-center":
82
+ {
83
+ var n = Math.floor((length - digits) / 2);
84
+ text = text.substring(0, n + 1) + star + text.substring(n + 1 + digits, length);
85
+ }
86
+ break;
87
+
81
88
  case "end":
82
89
  {
83
90
  text = text.substring(0, length - digits) + star;
@@ -86,8 +93,9 @@ CommonUtils.desensitization = function (text, digits, position) {
86
93
 
87
94
  default:
88
95
  {
89
- var n = Math.floor((length - digits) / 2);
90
- text = text.substring(0, n) + star + text.substring(n + digits, length);
96
+ var _n = Math.floor((length - digits) / 2);
97
+
98
+ text = text.substring(0, _n) + star + text.substring(_n + digits, length);
91
99
  }
92
100
  break;
93
101
  }
package/lib/index.js CHANGED
@@ -373,7 +373,7 @@ var _uploader = _interopRequireDefault(require("./uploader"));
373
373
 
374
374
  exports.Uploader = _uploader.default;
375
375
  // This file is auto generated by build/build-entry.js
376
- var version = '1.5.1';
376
+ var version = '1.5.2';
377
377
  exports.version = version;
378
378
  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, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tableColumn.default, _tabs.default, _tag.default, _toast.default, _treeSelect.default, _uploader.default];
379
379
 
@@ -18572,6 +18572,13 @@ CommonUtils.desensitization = function (text, digits, position) {
18572
18572
  }
18573
18573
  break;
18574
18574
 
18575
+ case "end-center":
18576
+ {
18577
+ var n = Math.floor((length - digits) / 2);
18578
+ text = text.substring(0, n + 1) + star + text.substring(n + 1 + digits, length);
18579
+ }
18580
+ break;
18581
+
18575
18582
  case "end":
18576
18583
  {
18577
18584
  text = text.substring(0, length - digits) + star;
@@ -18580,8 +18587,9 @@ CommonUtils.desensitization = function (text, digits, position) {
18580
18587
 
18581
18588
  default:
18582
18589
  {
18583
- var n = Math.floor((length - digits) / 2);
18584
- text = text.substring(0, n) + star + text.substring(n + digits, length);
18590
+ var _n = Math.floor((length - digits) / 2);
18591
+
18592
+ text = text.substring(0, _n) + star + text.substring(_n + digits, length);
18585
18593
  }
18586
18594
  break;
18587
18595
  }
@@ -18815,7 +18823,8 @@ instanceJson.interceptors.request.use(function (config) {
18815
18823
  switchNames = _ref.switchNames,
18816
18824
  backUrl = _ref.backUrl,
18817
18825
  opId = _ref.opId,
18818
- orgId = _ref.orgId;
18826
+ orgId = _ref.orgId,
18827
+ cityCode = _ref.cityCode;
18819
18828
 
18820
18829
  if (opId && orgId) {
18821
18830
  var AIPortal_Oper_OpId = data_process["a" /* default */].base64Encrypt(opId);
@@ -18827,6 +18836,10 @@ instanceJson.interceptors.request.use(function (config) {
18827
18836
  config.headers && (config.headers["x-secure-opt-log"] = config.data.body.invokeSessionId);
18828
18837
  }
18829
18838
 
18839
+ opId && config.headers && (config.headers['AIPortal_Oper_OpId'] = data_process["a" /* default */].base64Encrypt(opId));
18840
+ orgId && config.headers && (config.headers['AIPortal_Oper_OrgId'] = data_process["a" /* default */].base64Encrypt(orgId));
18841
+ cityCode && config.headers && (config.headers['AIPortal_Oper_RegionCode'] = data_process["a" /* default */].base64Encrypt(cityCode));
18842
+
18830
18843
  if ( true && config.baseURL && config.baseURL === backUrl && switchNames && switchNames.INTERFACE_IS_ENCRYPTION) {
18831
18844
  config.headers && (config.headers["Secure-Version"] = "V1.0");
18832
18845
  config && (config["responseType"] = "text");
@@ -36894,7 +36907,7 @@ function isImageFile(item) {
36894
36907
 
36895
36908
 
36896
36909
 
36897
- var version = '1.5.1';
36910
+ var version = '1.5.2';
36898
36911
  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["a" /* default */], 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, tab, tabbar, tabbar_item, table, table_column, tabs, tag, es_toast, tree_select, uploader];
36899
36912
 
36900
36913
  var es_install = function install(Vue) {