mcrm-mobile 1.9.5 → 1.9.7

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/http/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
 
4
- /**
5
- * Created by Heath on 2019/11/21.
4
+ /**
5
+ * Created by Heath on 2019/11/21.
6
6
  */
7
7
  import Vue from "vue";
8
8
  import { post } from "../utils/http";
@@ -10,33 +10,33 @@ import { json } from "../utils/create-request-body/json";
10
10
  import mcrm from "mcrm-jsapi";
11
11
  import Session from "../session";
12
12
  import { customerTypeFilter } from "../utils/filter/index";
13
- /**
14
- * 创建外部订单流水入参
15
- * @typedef AddOutFormParams
16
- * @property {string} billId 用户手机号
17
- * @property {string} syscode 系统编号
18
- * @property {string} sysName 系统名称
19
- * @property {string} ordertype 业务类型 00 - 自助受理;01 - 营销案;02 - 终端;03 - 宽带新装;04 - 宽带续费;05 - 套卡激活
20
- * @property {string} publishType 推送类型 0:不推送;1:按操作员推送;2.按组织推送;3:推送至客户
21
- * @property {string} title 标题
22
- * @property {string} content 内容
23
- * @property {string} outOrderId 外部订单号 第三方传入的流水号
24
- * @property {string} qrId 二维码 id
25
- * @property {string} sourceCode 来源编码 生成规则:发起调用方的 pageCode + "_" + 要打开页面的 pageCode
26
- * @property {OrderInfo} orderInfo 订单信息
13
+ /**
14
+ * 创建外部订单流水入参
15
+ * @typedef AddOutFormParams
16
+ * @property {string} billId 用户手机号
17
+ * @property {string} syscode 系统编号
18
+ * @property {string} sysName 系统名称
19
+ * @property {string} ordertype 业务类型 00 - 自助受理;01 - 营销案;02 - 终端;03 - 宽带新装;04 - 宽带续费;05 - 套卡激活
20
+ * @property {string} publishType 推送类型 0:不推送;1:按操作员推送;2.按组织推送;3:推送至客户
21
+ * @property {string} title 标题
22
+ * @property {string} content 内容
23
+ * @property {string} outOrderId 外部订单号 第三方传入的流水号
24
+ * @property {string} qrId 二维码 id
25
+ * @property {string} sourceCode 来源编码 生成规则:发起调用方的 pageCode + "_" + 要打开页面的 pageCode
26
+ * @property {OrderInfo} orderInfo 订单信息
27
27
  */
28
28
 
29
- /**
30
- * @typedef OrderInfo
31
- * @property {string} kindId 档次 ID
32
- * @property {string} verifyLogId 认证流水 认证流水号
33
- * @property {string} printId 无纸化单号 无纸化单号
34
- * @property {string} infoNo 免填单号 免填单号
29
+ /**
30
+ * @typedef OrderInfo
31
+ * @property {string} kindId 档次 ID
32
+ * @property {string} verifyLogId 认证流水 认证流水号
33
+ * @property {string} printId 无纸化单号 无纸化单号
34
+ * @property {string} infoNo 免填单号 免填单号
35
35
  */
36
36
 
37
- /**
38
- * 创建外部订单流水
39
- * @param {AddOutFormParams} body 入参
37
+ /**
38
+ * 创建外部订单流水
39
+ * @param {AddOutFormParams} body 入参
40
40
  */
41
41
 
42
42
  var addOutForm = /*#__PURE__*/function () {
@@ -65,24 +65,24 @@ var addOutForm = /*#__PURE__*/function () {
65
65
  return _ref.apply(this, arguments);
66
66
  };
67
67
  }();
68
- /**
69
- * 菜单页面打开接口Body参数
70
- * @typedef MenuPageOpenBody
71
- * @property {string} funcId 认证编号
72
- * @property {string} funcType 认证类型
73
- * @property {string} verifyLogId 认证流水号
74
- * @property {string} billId 用户号码
75
- * @property {string} opVerifyLogId 操作员认证流水
76
- * @property {string} opSys 操作系统 引流使用字段
77
- * @property {string} appVersion APP版本号 引流使用字段
78
- * @property {string} menuCode 菜单编号 地市专区不用传
79
- * @property {string} pageCode 页面编号
80
- * @property {string} pageType 页面类型 不传默认是外部页面,传cityZone是地市专区
68
+ /**
69
+ * 菜单页面打开接口Body参数
70
+ * @typedef MenuPageOpenBody
71
+ * @property {string} funcId 认证编号
72
+ * @property {string} funcType 认证类型
73
+ * @property {string} verifyLogId 认证流水号
74
+ * @property {string} billId 用户号码
75
+ * @property {string} opVerifyLogId 操作员认证流水
76
+ * @property {string} opSys 操作系统 引流使用字段
77
+ * @property {string} appVersion APP版本号 引流使用字段
78
+ * @property {string} menuCode 菜单编号 地市专区不用传
79
+ * @property {string} pageCode 页面编号
80
+ * @property {string} pageType 页面类型 不传默认是外部页面,传cityZone是地市专区
81
81
  */
82
82
 
83
- /**
84
- * 菜单页面打开接口
85
- * @param {MenuPageOpenBody} body 入参
83
+ /**
84
+ * 菜单页面打开接口
85
+ * @param {MenuPageOpenBody} body 入参
86
86
  */
87
87
 
88
88
 
@@ -112,10 +112,10 @@ var menuPageOpen = /*#__PURE__*/function () {
112
112
  return _ref2.apply(this, arguments);
113
113
  };
114
114
  }();
115
- /**
116
- * 菜单页面查询接口
117
- * @param {string} pageCode 页面编号
118
- * @param {string} pageType 页面类型
115
+ /**
116
+ * 菜单页面查询接口
117
+ * @param {string} pageCode 页面编号
118
+ * @param {string} pageType 页面类型
119
119
  */
120
120
 
121
121
 
@@ -148,10 +148,10 @@ var menuPageQuery = /*#__PURE__*/function () {
148
148
  return _ref3.apply(this, arguments);
149
149
  };
150
150
  }();
151
- /**
152
- * 登录前菜单页面查询接口
153
- * @param {string} pageCode 页面编号
154
- * @param {string} pageType 页面类型
151
+ /**
152
+ * 登录前菜单页面查询接口
153
+ * @param {string} pageCode 页面编号
154
+ * @param {string} pageType 页面类型
155
155
  */
156
156
 
157
157
 
@@ -184,9 +184,9 @@ var authMenuPageQuery = /*#__PURE__*/function () {
184
184
  return _ref4.apply(this, arguments);
185
185
  };
186
186
  }();
187
- /**
188
- * 登录前菜单页面查询接口
189
- * @param {string} menuCode 页面编号
187
+ /**
188
+ * 登录前菜单页面查询接口
189
+ * @param {string} menuCode 页面编号
190
190
  */
191
191
 
192
192
 
@@ -218,23 +218,23 @@ var menuPositionCheck = /*#__PURE__*/function () {
218
218
  return _ref5.apply(this, arguments);
219
219
  };
220
220
  }();
221
- /**
222
- * 菜单权限校验接口Body参数
223
- * @typedef MenuPageVerifyBody
224
- * @property {string} funcId 认证编号
225
- * @property {string} funcType 认证类型
226
- * @property {string} verifyLogId 认证流水号
227
- * @property {string} custUniqueId 客户唯一标识
228
- * @property {string} billId 用户号码
229
- * @property {string} opVerifyLogId 操作员认证流水
230
- * @property {string} opSys 操作系统 引流使用字段
231
- * @property {string} appVersion APP版本号 引流使用字段
232
- * @property {string} menuCode 菜单编号 地市专区不用传
221
+ /**
222
+ * 菜单权限校验接口Body参数
223
+ * @typedef MenuPageVerifyBody
224
+ * @property {string} funcId 认证编号
225
+ * @property {string} funcType 认证类型
226
+ * @property {string} verifyLogId 认证流水号
227
+ * @property {string} custUniqueId 客户唯一标识
228
+ * @property {string} billId 用户号码
229
+ * @property {string} opVerifyLogId 操作员认证流水
230
+ * @property {string} opSys 操作系统 引流使用字段
231
+ * @property {string} appVersion APP版本号 引流使用字段
232
+ * @property {string} menuCode 菜单编号 地市专区不用传
233
233
  */
234
234
 
235
- /**
236
- * 菜单权限校验接口
237
- * @param {MenuPageVerifyBody} body 菜单权限校验接口Body参数
235
+ /**
236
+ * 菜单权限校验接口
237
+ * @param {MenuPageVerifyBody} body 菜单权限校验接口Body参数
238
238
  */
239
239
 
240
240
 
@@ -264,10 +264,10 @@ var menuPageVerify = /*#__PURE__*/function () {
264
264
  return _ref6.apply(this, arguments);
265
265
  };
266
266
  }();
267
- /**
268
- * 引流菜单校验接口
269
- * @param {string} menuCode 菜单编号
270
- * @param {string} sourceSyscode 系统编号
267
+ /**
268
+ * 引流菜单校验接口
269
+ * @param {string} menuCode 菜单编号
270
+ * @param {string} sourceSyscode 系统编号
271
271
  */
272
272
 
273
273
 
@@ -300,11 +300,11 @@ var menuCanaryRedirect = /*#__PURE__*/function () {
300
300
  return _ref7.apply(this, arguments);
301
301
  };
302
302
  }();
303
- /**
304
- * 引流地址查询接口
305
- * @param {string} envTag 环境标识
306
- * @param {string} opSys 操作系统
307
- * @param {string} appVersion 应用版本号
303
+ /**
304
+ * 引流地址查询接口
305
+ * @param {string} envTag 环境标识
306
+ * @param {string} opSys 操作系统
307
+ * @param {string} appVersion 应用版本号
308
308
  */
309
309
 
310
310
 
@@ -338,36 +338,36 @@ var coreCanaryRedirect = /*#__PURE__*/function () {
338
338
  return _ref8.apply(this, arguments);
339
339
  };
340
340
  }();
341
- /**
342
- * @typedef BuryingSaveLogBody 埋点日志接口body参数
343
- * @property {string} appVersion App版本
344
- * @property {string} areaCode 地区编码
345
- * @property {string} cityCode 地市编码
346
- * @property {string} internetState 手机所用网络
347
- * @property {string} loginSessionId 登入session
348
- * @property {string} opName 操作人
349
- * @property {string} pageDesc 页面描述
350
- * @property {string} pageID 页面ID
351
- * @property {string} pagePath 页面路径
352
- * @property {string} phoneKernel 手机内核
353
- * @property {string} phoneOpVersion 手机操作系统版本
354
- * @property {string} phonePlatformVersion 手机平台版本
355
- * @property {string} phoneSwitched 设备名称
356
- * @property {string} menuCode 菜单编码
357
- * @property {string} date 时间戳
358
- * @property {string} year 日期--年份
359
- * @property {string} month 日期--月份
360
- * @property {string} day 日期--天
361
- * @property {string} source 数据来源
362
- * @property {string} type 数据类型
363
- * @property {string} serviceName 业务名称
364
- * @property {string} yddStatus 移动盾连接状态
365
- * @property {string} fivegStatus 5g网络状态
341
+ /**
342
+ * @typedef BuryingSaveLogBody 埋点日志接口body参数
343
+ * @property {string} appVersion App版本
344
+ * @property {string} areaCode 地区编码
345
+ * @property {string} cityCode 地市编码
346
+ * @property {string} internetState 手机所用网络
347
+ * @property {string} loginSessionId 登入session
348
+ * @property {string} opName 操作人
349
+ * @property {string} pageDesc 页面描述
350
+ * @property {string} pageID 页面ID
351
+ * @property {string} pagePath 页面路径
352
+ * @property {string} phoneKernel 手机内核
353
+ * @property {string} phoneOpVersion 手机操作系统版本
354
+ * @property {string} phonePlatformVersion 手机平台版本
355
+ * @property {string} phoneSwitched 设备名称
356
+ * @property {string} menuCode 菜单编码
357
+ * @property {string} date 时间戳
358
+ * @property {string} year 日期--年份
359
+ * @property {string} month 日期--月份
360
+ * @property {string} day 日期--天
361
+ * @property {string} source 数据来源
362
+ * @property {string} type 数据类型
363
+ * @property {string} serviceName 业务名称
364
+ * @property {string} yddStatus 移动盾连接状态
365
+ * @property {string} fivegStatus 5g网络状态
366
366
  */
367
367
 
368
- /**
369
- * 埋点日志接口
370
- * @param {BuryingSaveLogBody} body 埋点日志接口body参数
368
+ /**
369
+ * 埋点日志接口
370
+ * @param {BuryingSaveLogBody} body 埋点日志接口body参数
371
371
  */
372
372
 
373
373
 
@@ -543,25 +543,25 @@ var operationSaveLog = /*#__PURE__*/function () {
543
543
  return _ref10.apply(this, arguments);
544
544
  };
545
545
  }();
546
- /**
547
- * @typedef GroupBusinessPointBody 数字员工日志接口参数
548
- * @property {string} uniqueId 业务办理ID
549
- * @property {string} operType 操作类型
550
- * @property {string} operDesc 操作描述
551
- * @property {string} menuCode 菜单编号
552
- * @property {string} menuName 菜单名称
553
- * @property {string} moduleName 菜单二级页面
554
- * @property {string} funcName 功能名称
555
- * @property {string} subFuncName 子功能名称
556
- * @property {string} appVersion 网格通APP版本
557
- * @property {string} isDigitalEmployee 是否可定义为数字员工功能
558
- * @property {string} digitalEmployeeCategoryCode 数字员工分类编码
559
- * @property {number} operTime 时间戳
546
+ /**
547
+ * @typedef GroupBusinessPointBody 数字员工日志接口参数
548
+ * @property {string} uniqueId 业务办理ID
549
+ * @property {string} operType 操作类型
550
+ * @property {string} operDesc 操作描述
551
+ * @property {string} menuCode 菜单编号
552
+ * @property {string} menuName 菜单名称
553
+ * @property {string} moduleName 菜单二级页面
554
+ * @property {string} funcName 功能名称
555
+ * @property {string} subFuncName 子功能名称
556
+ * @property {string} appVersion 网格通APP版本
557
+ * @property {string} isDigitalEmployee 是否可定义为数字员工功能
558
+ * @property {string} digitalEmployeeCategoryCode 数字员工分类编码
559
+ * @property {number} operTime 时间戳
560
560
  */
561
561
 
562
- /**
563
- * 数字员工添加日志
564
- * @param {GroupBusinessPointBody} body 数字员工日志接口参数
562
+ /**
563
+ * 数字员工添加日志
564
+ * @param {GroupBusinessPointBody} body 数字员工日志接口参数
565
565
  */
566
566
 
567
567
 
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.7';
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) {
@@ -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
 
@@ -1267,15 +1267,15 @@ var onAuth = function onAuth(menu, sybInfo) {
1267
1267
  });
1268
1268
  });
1269
1269
  };
1270
- /**
1271
- * 打开网格通自己开发的页面
1272
- * @param menu 菜单信息
1273
- * @param data 接口响应数据
1274
- * @param sybInfo {Object} 网格通信息
1275
- * @param extraParams {Object} 额外参数
1276
- * @param onClose {Function} 页面关闭时,回调函数
1277
- * @param onSuccess {Function} 页面打开成功时,回调函数
1278
- * @param onFail {Function} 页面打开失败时,回调函数
1270
+ /**
1271
+ * 打开网格通自己开发的页面
1272
+ * @param menu 菜单信息
1273
+ * @param data 接口响应数据
1274
+ * @param sybInfo {Object} 网格通信息
1275
+ * @param extraParams {Object} 额外参数
1276
+ * @param onClose {Function} 页面关闭时,回调函数
1277
+ * @param onSuccess {Function} 页面打开成功时,回调函数
1278
+ * @param onFail {Function} 页面打开失败时,回调函数
1279
1279
  */
1280
1280
 
1281
1281
 
@@ -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,31 +1618,43 @@ 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
 
1639
1649
  getLocationPromise = new Promise(function (resolve) {
1640
1650
  mcrm.device.getLocation({
1641
1651
  isRealTime: true,
1642
- onlyCoordinates: true,
1643
1652
  onSuccess: function onSuccess(res) {
1644
1653
  body.longitude = res.longitude;
1645
1654
  body.latitude = res.latitude;
1655
+ body.mapCityName = res.cityName || "";
1656
+ body.mapProvinceName = res.provinceName || "";
1657
+ body.mapAddress = res.address || "";
1646
1658
  resolve(); // 成功时resolve
1647
1659
  },
1648
1660
  onFail: function onFail(res) {
@@ -1658,10 +1670,10 @@ var verify = /*#__PURE__*/function () {
1658
1670
  }, 1500);
1659
1671
  }); // 使用Promise.race实现超时控制
1660
1672
 
1661
- _context11.next = 28;
1673
+ _context11.next = 34;
1662
1674
  return Promise.race([getLocationPromise, timeoutPromise]);
1663
1675
 
1664
- case 28:
1676
+ case 34:
1665
1677
  return _context11.abrupt("return", new Promise(function (resolve, reject) {
1666
1678
  Http.menuPageVerify(body).then( /*#__PURE__*/function () {
1667
1679
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(data) {
@@ -1821,12 +1833,12 @@ var verify = /*#__PURE__*/function () {
1821
1833
  });
1822
1834
  }));
1823
1835
 
1824
- case 29:
1836
+ case 35:
1825
1837
  case "end":
1826
1838
  return _context11.stop();
1827
1839
  }
1828
1840
  }
1829
- }, _callee11);
1841
+ }, _callee11, null, [[19, 26]]);
1830
1842
  }));
1831
1843
 
1832
1844
  return function verify(_x38, _x39, _x40) {
package/es/tab/index.less CHANGED
@@ -1,25 +1,25 @@
1
- @import "../style/theme";
2
-
3
- .mm-tab {
4
- &-pane {
5
- &,
6
- &-wrapper {
7
- flex-shrink: 0;
8
- box-sizing: border-box;
9
- width: 100%;
10
- }
11
-
12
- &-wrapper-inactive {
13
- height: 0;
14
- overflow: visible;
15
- }
16
-
17
- &-title {
18
- font-size: 16px;
19
- font-weight: 500;
20
- color: #333;
21
- line-height: 16px;
22
- padding: 16px 0;
23
- }
24
- }
25
- }
1
+ @import "../style/theme";
2
+
3
+ .mm-tab {
4
+ &-pane {
5
+ &,
6
+ &-wrapper {
7
+ flex-shrink: 0;
8
+ box-sizing: border-box;
9
+ width: 100%;
10
+ }
11
+
12
+ &-wrapper-inactive {
13
+ height: 0;
14
+ overflow: visible;
15
+ }
16
+
17
+ &-title {
18
+ font-size: 16px;
19
+ font-weight: 500;
20
+ color: #333;
21
+ line-height: 16px;
22
+ padding: 16px 0;
23
+ }
24
+ }
25
+ }