mcrm-mobile 1.8.9 → 1.9.1
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 +1 -1
- package/es/menu-jump/index.js +98 -80
- package/es/utils/http.js +2 -2
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +101 -83
- package/lib/mcrm-mobile.min.js +1 -1
- package/lib/menu-jump/index.js +98 -80
- package/lib/utils/http.js +2 -2
- package/package.json +1 -1
- package/vetur/attributes.json +486 -486
- package/vetur/tags.json +151 -151
- package/vetur/web-types.json +1186 -1186
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.
|
|
95
|
+
var version = '1.9.1';
|
|
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) {
|
package/es/menu-jump/index.js
CHANGED
|
@@ -47,22 +47,22 @@ var viewName = {
|
|
|
47
47
|
2001522: "网格通-装维人员",
|
|
48
48
|
2001521: "网格通-商客联盟"
|
|
49
49
|
};
|
|
50
|
-
/**
|
|
51
|
-
* 加密
|
|
52
|
-
* @param context
|
|
53
|
-
* @param envType
|
|
54
|
-
* @return {string} 返回的是base64格式的密文
|
|
50
|
+
/**
|
|
51
|
+
* 加密
|
|
52
|
+
* @param context
|
|
53
|
+
* @param envType
|
|
54
|
+
* @return {string} 返回的是base64格式的密文
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
57
|
var aesEncrypt = function aesEncrypt(context, envType) {
|
|
58
58
|
var key = envType === "test" ? "6000001111737173" : "6000002087795174";
|
|
59
59
|
return aesEncryptDP(context, key, key);
|
|
60
60
|
};
|
|
61
|
-
/**
|
|
62
|
-
* 获取SerialNum
|
|
63
|
-
* @param menu 菜单信息
|
|
64
|
-
* @param sybInfo 网格通信息
|
|
65
|
-
* @returns {Promise<string>}
|
|
61
|
+
/**
|
|
62
|
+
* 获取SerialNum
|
|
63
|
+
* @param menu 菜单信息
|
|
64
|
+
* @param sybInfo 网格通信息
|
|
65
|
+
* @returns {Promise<string>}
|
|
66
66
|
*/
|
|
67
67
|
|
|
68
68
|
|
|
@@ -83,27 +83,27 @@ var getSerialNumNew = /*#__PURE__*/function () {
|
|
|
83
83
|
orgId = _yield$getExpInfo.orgId;
|
|
84
84
|
billId = sybInfo.billId;
|
|
85
85
|
menuCode = menu.menuCode, menuPageCode = menu.menuPageCode;
|
|
86
|
-
/*
|
|
87
|
-
* 业务类型
|
|
88
|
-
* 00:固话商机;
|
|
89
|
-
* 01:营销案;
|
|
90
|
-
* 02:终端;
|
|
91
|
-
* 03:宽带新装;
|
|
92
|
-
* 04:宽带续费;
|
|
93
|
-
* 05:套卡;
|
|
94
|
-
* 07:亲情网;
|
|
95
|
-
* 08:虚拟网;
|
|
96
|
-
* 09:融合业务专区;
|
|
97
|
-
* 10:业务设置;
|
|
98
|
-
* 11:政企号卡订单查询;
|
|
99
|
-
* 12:统一支付;
|
|
100
|
-
* 13:权益商城;
|
|
101
|
-
* 14:营销案一键办理;
|
|
102
|
-
* 15:套餐变更;
|
|
103
|
-
* 16:业务大厅预约单详情;
|
|
104
|
-
* 17:营销案(新);
|
|
105
|
-
* 18:终端出库(新);
|
|
106
|
-
* 99:通用宝码
|
|
86
|
+
/*
|
|
87
|
+
* 业务类型
|
|
88
|
+
* 00:固话商机;
|
|
89
|
+
* 01:营销案;
|
|
90
|
+
* 02:终端;
|
|
91
|
+
* 03:宽带新装;
|
|
92
|
+
* 04:宽带续费;
|
|
93
|
+
* 05:套卡;
|
|
94
|
+
* 07:亲情网;
|
|
95
|
+
* 08:虚拟网;
|
|
96
|
+
* 09:融合业务专区;
|
|
97
|
+
* 10:业务设置;
|
|
98
|
+
* 11:政企号卡订单查询;
|
|
99
|
+
* 12:统一支付;
|
|
100
|
+
* 13:权益商城;
|
|
101
|
+
* 14:营销案一键办理;
|
|
102
|
+
* 15:套餐变更;
|
|
103
|
+
* 16:业务大厅预约单详情;
|
|
104
|
+
* 17:营销案(新);
|
|
105
|
+
* 18:终端出库(新);
|
|
106
|
+
* 99:通用宝码
|
|
107
107
|
* */
|
|
108
108
|
|
|
109
109
|
_context.t0 = menuCode;
|
|
@@ -235,13 +235,13 @@ var getSerialNumNew = /*#__PURE__*/function () {
|
|
|
235
235
|
return _ref.apply(this, arguments);
|
|
236
236
|
};
|
|
237
237
|
}();
|
|
238
|
-
/**
|
|
239
|
-
* spliceUrl 拼接url
|
|
240
|
-
* @param data 接口返回数据
|
|
241
|
-
* @param menu 菜单信息
|
|
242
|
-
* @param sybInfo 网格通信息
|
|
243
|
-
* @param extraParams 扩展参数
|
|
244
|
-
* @returns {*} 拼接后的url
|
|
238
|
+
/**
|
|
239
|
+
* spliceUrl 拼接url
|
|
240
|
+
* @param data 接口返回数据
|
|
241
|
+
* @param menu 菜单信息
|
|
242
|
+
* @param sybInfo 网格通信息
|
|
243
|
+
* @param extraParams 扩展参数
|
|
244
|
+
* @returns {*} 拼接后的url
|
|
245
245
|
*/
|
|
246
246
|
|
|
247
247
|
|
|
@@ -844,13 +844,13 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
844
844
|
return _ref2.apply(this, arguments);
|
|
845
845
|
};
|
|
846
846
|
}();
|
|
847
|
-
/**
|
|
848
|
-
* 拼接原生入参
|
|
849
|
-
* @param menu 菜单信息
|
|
850
|
-
* @param data 接口返回的信息
|
|
851
|
-
* @param sybInfo 网格通信息
|
|
852
|
-
* @param extraParams 额外信息
|
|
853
|
-
* @returns {{}}
|
|
847
|
+
/**
|
|
848
|
+
* 拼接原生入参
|
|
849
|
+
* @param menu 菜单信息
|
|
850
|
+
* @param data 接口返回的信息
|
|
851
|
+
* @param sybInfo 网格通信息
|
|
852
|
+
* @param extraParams 额外信息
|
|
853
|
+
* @returns {{}}
|
|
854
854
|
*/
|
|
855
855
|
|
|
856
856
|
|
|
@@ -967,8 +967,8 @@ var spliceParams = /*#__PURE__*/function () {
|
|
|
967
967
|
return _ref5.apply(this, arguments);
|
|
968
968
|
};
|
|
969
969
|
}();
|
|
970
|
-
/**
|
|
971
|
-
* 整合操作日志数据
|
|
970
|
+
/**
|
|
971
|
+
* 整合操作日志数据
|
|
972
972
|
*/
|
|
973
973
|
|
|
974
974
|
|
|
@@ -1037,16 +1037,16 @@ var operLogData = /*#__PURE__*/function () {
|
|
|
1037
1037
|
return _ref6.apply(this, arguments);
|
|
1038
1038
|
};
|
|
1039
1039
|
}();
|
|
1040
|
-
/**
|
|
1041
|
-
* 根据url打开页面
|
|
1042
|
-
* @param data 接口响应数据
|
|
1043
|
-
* @param menu 菜单信息
|
|
1044
|
-
* @param sybInfo 网格通信息
|
|
1045
|
-
* @param extraParams 额外参数
|
|
1046
|
-
* @param openParams 打开页面通过原生传递的参数
|
|
1047
|
-
* @param onClose 页面关闭时,回调函数
|
|
1048
|
-
* @param onSuccess 页面打开成功时,回调函数
|
|
1049
|
-
* @param onFail 页面打开失败时,回调函数
|
|
1040
|
+
/**
|
|
1041
|
+
* 根据url打开页面
|
|
1042
|
+
* @param data 接口响应数据
|
|
1043
|
+
* @param menu 菜单信息
|
|
1044
|
+
* @param sybInfo 网格通信息
|
|
1045
|
+
* @param extraParams 额外参数
|
|
1046
|
+
* @param openParams 打开页面通过原生传递的参数
|
|
1047
|
+
* @param onClose 页面关闭时,回调函数
|
|
1048
|
+
* @param onSuccess 页面打开成功时,回调函数
|
|
1049
|
+
* @param onFail 页面打开失败时,回调函数
|
|
1050
1050
|
*/
|
|
1051
1051
|
|
|
1052
1052
|
|
|
@@ -1258,15 +1258,15 @@ var onAuth = function onAuth(menu, sybInfo) {
|
|
|
1258
1258
|
});
|
|
1259
1259
|
});
|
|
1260
1260
|
};
|
|
1261
|
-
/**
|
|
1262
|
-
* 打开网格通自己开发的页面
|
|
1263
|
-
* @param menu 菜单信息
|
|
1264
|
-
* @param data 接口响应数据
|
|
1265
|
-
* @param sybInfo {Object} 网格通信息
|
|
1266
|
-
* @param extraParams {Object} 额外参数
|
|
1267
|
-
* @param onClose {Function} 页面关闭时,回调函数
|
|
1268
|
-
* @param onSuccess {Function} 页面打开成功时,回调函数
|
|
1269
|
-
* @param onFail {Function} 页面打开失败时,回调函数
|
|
1261
|
+
/**
|
|
1262
|
+
* 打开网格通自己开发的页面
|
|
1263
|
+
* @param menu 菜单信息
|
|
1264
|
+
* @param data 接口响应数据
|
|
1265
|
+
* @param sybInfo {Object} 网格通信息
|
|
1266
|
+
* @param extraParams {Object} 额外参数
|
|
1267
|
+
* @param onClose {Function} 页面关闭时,回调函数
|
|
1268
|
+
* @param onSuccess {Function} 页面打开成功时,回调函数
|
|
1269
|
+
* @param onFail {Function} 页面打开失败时,回调函数
|
|
1270
1270
|
*/
|
|
1271
1271
|
|
|
1272
1272
|
|
|
@@ -1547,7 +1547,7 @@ var openPage = /*#__PURE__*/function () {
|
|
|
1547
1547
|
|
|
1548
1548
|
var verify = /*#__PURE__*/function () {
|
|
1549
1549
|
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(menu, sybInfo, notAuth) {
|
|
1550
|
-
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;
|
|
1550
|
+
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, getLocationPromise, timeoutPromise;
|
|
1551
1551
|
|
|
1552
1552
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
1553
1553
|
while (1) {
|
|
@@ -1589,20 +1589,38 @@ var verify = /*#__PURE__*/function () {
|
|
|
1589
1589
|
appVersion: appVersion,
|
|
1590
1590
|
menuCode: menuCode
|
|
1591
1591
|
};
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1592
|
+
|
|
1593
|
+
if (!mcrm.env.isMcrm) {
|
|
1594
|
+
_context11.next = 22;
|
|
1595
|
+
break;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
getLocationPromise = new Promise(function (resolve) {
|
|
1599
|
+
mcrm.device.getLocation({
|
|
1600
|
+
isRealTime: true,
|
|
1601
|
+
onlyCoordinates: true,
|
|
1602
|
+
onSuccess: function onSuccess(res) {
|
|
1603
|
+
body.longitude = res.longitude;
|
|
1604
|
+
body.latitude = res.latitude;
|
|
1605
|
+
resolve(); // 成功时resolve
|
|
1606
|
+
},
|
|
1607
|
+
onFail: function onFail(res) {
|
|
1608
|
+
console.error(res);
|
|
1609
|
+
resolve(); // 失败时也resolve,确保Promise完成
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1603
1612
|
});
|
|
1613
|
+
timeoutPromise = new Promise(function (resolve) {
|
|
1614
|
+
setTimeout(function () {
|
|
1615
|
+
console.log("获取定位超时(1.5秒),继续执行菜单校验");
|
|
1616
|
+
resolve();
|
|
1617
|
+
}, 1500);
|
|
1618
|
+
}); // 使用Promise.race实现超时控制
|
|
1604
1619
|
|
|
1605
|
-
|
|
1620
|
+
_context11.next = 22;
|
|
1621
|
+
return Promise.race([getLocationPromise, timeoutPromise]);
|
|
1622
|
+
|
|
1623
|
+
case 22:
|
|
1606
1624
|
return _context11.abrupt("return", new Promise(function (resolve, reject) {
|
|
1607
1625
|
Http.menuPageVerify(body).then( /*#__PURE__*/function () {
|
|
1608
1626
|
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(data) {
|
|
@@ -1762,7 +1780,7 @@ var verify = /*#__PURE__*/function () {
|
|
|
1762
1780
|
});
|
|
1763
1781
|
}));
|
|
1764
1782
|
|
|
1765
|
-
case
|
|
1783
|
+
case 23:
|
|
1766
1784
|
case "end":
|
|
1767
1785
|
return _context11.stop();
|
|
1768
1786
|
}
|
package/es/utils/http.js
CHANGED
|
@@ -17,7 +17,7 @@ var logoutAlert = function logoutAlert(message, type) {
|
|
|
17
17
|
Http.operationSaveLog({
|
|
18
18
|
operationTypeName: "登出",
|
|
19
19
|
operationTypeCode: "loginOut",
|
|
20
|
-
moduleNo: "",
|
|
20
|
+
moduleNo: "25080251",
|
|
21
21
|
moduleName: "登录",
|
|
22
22
|
operationResult: 0
|
|
23
23
|
});
|
|
@@ -199,7 +199,7 @@ instanceJson.interceptors.response.use(function (response) {
|
|
|
199
199
|
Http.operationSaveLog({
|
|
200
200
|
operationTypeName: "登出",
|
|
201
201
|
operationTypeCode: "loginOut",
|
|
202
|
-
moduleNo: "",
|
|
202
|
+
moduleNo: "25080251",
|
|
203
203
|
moduleName: "登录",
|
|
204
204
|
operationResult: 0
|
|
205
205
|
});
|
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.
|
|
380
|
+
var version = '1.9.1';
|
|
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
|
|
package/lib/mcrm-mobile.js
CHANGED
|
@@ -19181,7 +19181,7 @@ var http_logoutAlert = function logoutAlert(message, type) {
|
|
|
19181
19181
|
http.operationSaveLog({
|
|
19182
19182
|
operationTypeName: "登出",
|
|
19183
19183
|
operationTypeCode: "loginOut",
|
|
19184
|
-
moduleNo: "",
|
|
19184
|
+
moduleNo: "25080251",
|
|
19185
19185
|
moduleName: "登录",
|
|
19186
19186
|
operationResult: 0
|
|
19187
19187
|
});
|
|
@@ -19356,7 +19356,7 @@ instanceJson.interceptors.response.use(function (response) {
|
|
|
19356
19356
|
http.operationSaveLog({
|
|
19357
19357
|
operationTypeName: "登出",
|
|
19358
19358
|
operationTypeCode: "loginOut",
|
|
19359
|
-
moduleNo: "",
|
|
19359
|
+
moduleNo: "25080251",
|
|
19360
19360
|
moduleName: "登录",
|
|
19361
19361
|
operationResult: 0
|
|
19362
19362
|
});
|
|
@@ -20593,22 +20593,22 @@ var menu_jump_viewName = {
|
|
|
20593
20593
|
2001522: "网格通-装维人员",
|
|
20594
20594
|
2001521: "网格通-商客联盟"
|
|
20595
20595
|
};
|
|
20596
|
-
/**
|
|
20597
|
-
* 加密
|
|
20598
|
-
* @param context
|
|
20599
|
-
* @param envType
|
|
20600
|
-
* @return {string} 返回的是base64格式的密文
|
|
20596
|
+
/**
|
|
20597
|
+
* 加密
|
|
20598
|
+
* @param context
|
|
20599
|
+
* @param envType
|
|
20600
|
+
* @return {string} 返回的是base64格式的密文
|
|
20601
20601
|
*/
|
|
20602
20602
|
|
|
20603
20603
|
var menu_jump_aesEncrypt = function aesEncrypt(context, envType) {
|
|
20604
20604
|
var key = envType === "test" ? "6000001111737173" : "6000002087795174";
|
|
20605
20605
|
return aes_aesEncrypt(context, key, key);
|
|
20606
20606
|
};
|
|
20607
|
-
/**
|
|
20608
|
-
* 获取SerialNum
|
|
20609
|
-
* @param menu 菜单信息
|
|
20610
|
-
* @param sybInfo 网格通信息
|
|
20611
|
-
* @returns {Promise<string>}
|
|
20607
|
+
/**
|
|
20608
|
+
* 获取SerialNum
|
|
20609
|
+
* @param menu 菜单信息
|
|
20610
|
+
* @param sybInfo 网格通信息
|
|
20611
|
+
* @returns {Promise<string>}
|
|
20612
20612
|
*/
|
|
20613
20613
|
|
|
20614
20614
|
|
|
@@ -20629,27 +20629,27 @@ var getSerialNumNew = /*#__PURE__*/function () {
|
|
|
20629
20629
|
orgId = _yield$getExpInfo.orgId;
|
|
20630
20630
|
billId = sybInfo.billId;
|
|
20631
20631
|
menuCode = menu.menuCode, menuPageCode = menu.menuPageCode;
|
|
20632
|
-
/*
|
|
20633
|
-
* 业务类型
|
|
20634
|
-
* 00:固话商机;
|
|
20635
|
-
* 01:营销案;
|
|
20636
|
-
* 02:终端;
|
|
20637
|
-
* 03:宽带新装;
|
|
20638
|
-
* 04:宽带续费;
|
|
20639
|
-
* 05:套卡;
|
|
20640
|
-
* 07:亲情网;
|
|
20641
|
-
* 08:虚拟网;
|
|
20642
|
-
* 09:融合业务专区;
|
|
20643
|
-
* 10:业务设置;
|
|
20644
|
-
* 11:政企号卡订单查询;
|
|
20645
|
-
* 12:统一支付;
|
|
20646
|
-
* 13:权益商城;
|
|
20647
|
-
* 14:营销案一键办理;
|
|
20648
|
-
* 15:套餐变更;
|
|
20649
|
-
* 16:业务大厅预约单详情;
|
|
20650
|
-
* 17:营销案(新);
|
|
20651
|
-
* 18:终端出库(新);
|
|
20652
|
-
* 99:通用宝码
|
|
20632
|
+
/*
|
|
20633
|
+
* 业务类型
|
|
20634
|
+
* 00:固话商机;
|
|
20635
|
+
* 01:营销案;
|
|
20636
|
+
* 02:终端;
|
|
20637
|
+
* 03:宽带新装;
|
|
20638
|
+
* 04:宽带续费;
|
|
20639
|
+
* 05:套卡;
|
|
20640
|
+
* 07:亲情网;
|
|
20641
|
+
* 08:虚拟网;
|
|
20642
|
+
* 09:融合业务专区;
|
|
20643
|
+
* 10:业务设置;
|
|
20644
|
+
* 11:政企号卡订单查询;
|
|
20645
|
+
* 12:统一支付;
|
|
20646
|
+
* 13:权益商城;
|
|
20647
|
+
* 14:营销案一键办理;
|
|
20648
|
+
* 15:套餐变更;
|
|
20649
|
+
* 16:业务大厅预约单详情;
|
|
20650
|
+
* 17:营销案(新);
|
|
20651
|
+
* 18:终端出库(新);
|
|
20652
|
+
* 99:通用宝码
|
|
20653
20653
|
* */
|
|
20654
20654
|
|
|
20655
20655
|
_context.t0 = menuCode;
|
|
@@ -20781,13 +20781,13 @@ var getSerialNumNew = /*#__PURE__*/function () {
|
|
|
20781
20781
|
return _ref.apply(this, arguments);
|
|
20782
20782
|
};
|
|
20783
20783
|
}();
|
|
20784
|
-
/**
|
|
20785
|
-
* spliceUrl 拼接url
|
|
20786
|
-
* @param data 接口返回数据
|
|
20787
|
-
* @param menu 菜单信息
|
|
20788
|
-
* @param sybInfo 网格通信息
|
|
20789
|
-
* @param extraParams 扩展参数
|
|
20790
|
-
* @returns {*} 拼接后的url
|
|
20784
|
+
/**
|
|
20785
|
+
* spliceUrl 拼接url
|
|
20786
|
+
* @param data 接口返回数据
|
|
20787
|
+
* @param menu 菜单信息
|
|
20788
|
+
* @param sybInfo 网格通信息
|
|
20789
|
+
* @param extraParams 扩展参数
|
|
20790
|
+
* @returns {*} 拼接后的url
|
|
20791
20791
|
*/
|
|
20792
20792
|
|
|
20793
20793
|
|
|
@@ -21390,13 +21390,13 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
21390
21390
|
return _ref2.apply(this, arguments);
|
|
21391
21391
|
};
|
|
21392
21392
|
}();
|
|
21393
|
-
/**
|
|
21394
|
-
* 拼接原生入参
|
|
21395
|
-
* @param menu 菜单信息
|
|
21396
|
-
* @param data 接口返回的信息
|
|
21397
|
-
* @param sybInfo 网格通信息
|
|
21398
|
-
* @param extraParams 额外信息
|
|
21399
|
-
* @returns {{}}
|
|
21393
|
+
/**
|
|
21394
|
+
* 拼接原生入参
|
|
21395
|
+
* @param menu 菜单信息
|
|
21396
|
+
* @param data 接口返回的信息
|
|
21397
|
+
* @param sybInfo 网格通信息
|
|
21398
|
+
* @param extraParams 额外信息
|
|
21399
|
+
* @returns {{}}
|
|
21400
21400
|
*/
|
|
21401
21401
|
|
|
21402
21402
|
|
|
@@ -21513,8 +21513,8 @@ var spliceParams = /*#__PURE__*/function () {
|
|
|
21513
21513
|
return _ref5.apply(this, arguments);
|
|
21514
21514
|
};
|
|
21515
21515
|
}();
|
|
21516
|
-
/**
|
|
21517
|
-
* 整合操作日志数据
|
|
21516
|
+
/**
|
|
21517
|
+
* 整合操作日志数据
|
|
21518
21518
|
*/
|
|
21519
21519
|
|
|
21520
21520
|
|
|
@@ -21583,16 +21583,16 @@ var operLogData = /*#__PURE__*/function () {
|
|
|
21583
21583
|
return _ref6.apply(this, arguments);
|
|
21584
21584
|
};
|
|
21585
21585
|
}();
|
|
21586
|
-
/**
|
|
21587
|
-
* 根据url打开页面
|
|
21588
|
-
* @param data 接口响应数据
|
|
21589
|
-
* @param menu 菜单信息
|
|
21590
|
-
* @param sybInfo 网格通信息
|
|
21591
|
-
* @param extraParams 额外参数
|
|
21592
|
-
* @param openParams 打开页面通过原生传递的参数
|
|
21593
|
-
* @param onClose 页面关闭时,回调函数
|
|
21594
|
-
* @param onSuccess 页面打开成功时,回调函数
|
|
21595
|
-
* @param onFail 页面打开失败时,回调函数
|
|
21586
|
+
/**
|
|
21587
|
+
* 根据url打开页面
|
|
21588
|
+
* @param data 接口响应数据
|
|
21589
|
+
* @param menu 菜单信息
|
|
21590
|
+
* @param sybInfo 网格通信息
|
|
21591
|
+
* @param extraParams 额外参数
|
|
21592
|
+
* @param openParams 打开页面通过原生传递的参数
|
|
21593
|
+
* @param onClose 页面关闭时,回调函数
|
|
21594
|
+
* @param onSuccess 页面打开成功时,回调函数
|
|
21595
|
+
* @param onFail 页面打开失败时,回调函数
|
|
21596
21596
|
*/
|
|
21597
21597
|
|
|
21598
21598
|
|
|
@@ -21804,15 +21804,15 @@ var menu_jump_onAuth = function onAuth(menu, sybInfo) {
|
|
|
21804
21804
|
});
|
|
21805
21805
|
});
|
|
21806
21806
|
};
|
|
21807
|
-
/**
|
|
21808
|
-
* 打开网格通自己开发的页面
|
|
21809
|
-
* @param menu 菜单信息
|
|
21810
|
-
* @param data 接口响应数据
|
|
21811
|
-
* @param sybInfo {Object} 网格通信息
|
|
21812
|
-
* @param extraParams {Object} 额外参数
|
|
21813
|
-
* @param onClose {Function} 页面关闭时,回调函数
|
|
21814
|
-
* @param onSuccess {Function} 页面打开成功时,回调函数
|
|
21815
|
-
* @param onFail {Function} 页面打开失败时,回调函数
|
|
21807
|
+
/**
|
|
21808
|
+
* 打开网格通自己开发的页面
|
|
21809
|
+
* @param menu 菜单信息
|
|
21810
|
+
* @param data 接口响应数据
|
|
21811
|
+
* @param sybInfo {Object} 网格通信息
|
|
21812
|
+
* @param extraParams {Object} 额外参数
|
|
21813
|
+
* @param onClose {Function} 页面关闭时,回调函数
|
|
21814
|
+
* @param onSuccess {Function} 页面打开成功时,回调函数
|
|
21815
|
+
* @param onFail {Function} 页面打开失败时,回调函数
|
|
21816
21816
|
*/
|
|
21817
21817
|
|
|
21818
21818
|
|
|
@@ -22093,7 +22093,7 @@ var openPage = /*#__PURE__*/function () {
|
|
|
22093
22093
|
|
|
22094
22094
|
var verify = /*#__PURE__*/function () {
|
|
22095
22095
|
var _ref13 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee11(menu, sybInfo, notAuth) {
|
|
22096
|
-
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;
|
|
22096
|
+
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, getLocationPromise, timeoutPromise;
|
|
22097
22097
|
|
|
22098
22098
|
return regenerator_default.a.wrap(function _callee11$(_context11) {
|
|
22099
22099
|
while (1) {
|
|
@@ -22135,20 +22135,38 @@ var verify = /*#__PURE__*/function () {
|
|
|
22135
22135
|
appVersion: appVersion,
|
|
22136
22136
|
menuCode: menuCode
|
|
22137
22137
|
};
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22142
|
-
|
|
22143
|
-
|
|
22144
|
-
|
|
22145
|
-
|
|
22146
|
-
|
|
22147
|
-
|
|
22148
|
-
|
|
22138
|
+
|
|
22139
|
+
if (!external_mcrm_default.a.env.isMcrm) {
|
|
22140
|
+
_context11.next = 22;
|
|
22141
|
+
break;
|
|
22142
|
+
}
|
|
22143
|
+
|
|
22144
|
+
getLocationPromise = new Promise(function (resolve) {
|
|
22145
|
+
external_mcrm_default.a.device.getLocation({
|
|
22146
|
+
isRealTime: true,
|
|
22147
|
+
onlyCoordinates: true,
|
|
22148
|
+
onSuccess: function onSuccess(res) {
|
|
22149
|
+
body.longitude = res.longitude;
|
|
22150
|
+
body.latitude = res.latitude;
|
|
22151
|
+
resolve(); // 成功时resolve
|
|
22152
|
+
},
|
|
22153
|
+
onFail: function onFail(res) {
|
|
22154
|
+
console.error(res);
|
|
22155
|
+
resolve(); // 失败时也resolve,确保Promise完成
|
|
22156
|
+
}
|
|
22157
|
+
});
|
|
22149
22158
|
});
|
|
22159
|
+
timeoutPromise = new Promise(function (resolve) {
|
|
22160
|
+
setTimeout(function () {
|
|
22161
|
+
console.log("获取定位超时(1.5秒),继续执行菜单校验");
|
|
22162
|
+
resolve();
|
|
22163
|
+
}, 1500);
|
|
22164
|
+
}); // 使用Promise.race实现超时控制
|
|
22150
22165
|
|
|
22151
|
-
|
|
22166
|
+
_context11.next = 22;
|
|
22167
|
+
return Promise.race([getLocationPromise, timeoutPromise]);
|
|
22168
|
+
|
|
22169
|
+
case 22:
|
|
22152
22170
|
return _context11.abrupt("return", new Promise(function (resolve, reject) {
|
|
22153
22171
|
http.menuPageVerify(body).then( /*#__PURE__*/function () {
|
|
22154
22172
|
var _ref14 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee10(data) {
|
|
@@ -22308,7 +22326,7 @@ var verify = /*#__PURE__*/function () {
|
|
|
22308
22326
|
});
|
|
22309
22327
|
}));
|
|
22310
22328
|
|
|
22311
|
-
case
|
|
22329
|
+
case 23:
|
|
22312
22330
|
case "end":
|
|
22313
22331
|
return _context11.stop();
|
|
22314
22332
|
}
|
|
@@ -39054,7 +39072,7 @@ function isImageFile(item) {
|
|
|
39054
39072
|
|
|
39055
39073
|
|
|
39056
39074
|
|
|
39057
|
-
var version = '1.
|
|
39075
|
+
var version = '1.9.1';
|
|
39058
39076
|
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];
|
|
39059
39077
|
|
|
39060
39078
|
var es_install = function install(Vue) {
|