mcrm-mobile 1.7.8 → 1.7.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.
@@ -19,6 +19,10 @@ import CommonUtils from "../common-utils";
19
19
  import DataProcess from "../data-process";
20
20
  import Dialog from "../dialog";
21
21
  import { logMenusFilter, otherPageCode } from "../utils/filter";
22
+ var hkh = {
23
+ key: "d3d3LmCFzaWFpbmZvfLmNvbQ==",
24
+ iv: "YWlhaWiFpYWlhaWFpdYWlhaQ=="
25
+ };
22
26
  var notNeedAuthList = ["10012", "10079", "10080", "10047", "10077", "10067", "100108", "100109"];
23
27
  var viewObj = {
24
28
  2001511: "MARKETING_STAFF_VIEW",
@@ -39,22 +43,22 @@ var viewName = {
39
43
  2001522: "网格通-装维人员",
40
44
  2001521: "网格通-商客联盟"
41
45
  };
42
- /**
43
- * 加密
44
- * @param context
45
- * @param envType
46
- * @return {string} 返回的是base64格式的密文
46
+ /**
47
+ * 加密
48
+ * @param context
49
+ * @param envType
50
+ * @return {string} 返回的是base64格式的密文
47
51
  */
48
52
 
49
53
  var aesEncrypt = function aesEncrypt(context, envType) {
50
54
  var key = envType === "test" ? "6000001111737173" : "6000002087795174";
51
55
  return DataProcess.aesEncrypt(context, key, key);
52
56
  };
53
- /**
54
- * 获取SerialNum
55
- * @param menu 菜单信息
56
- * @param sybInfo 网格通信息
57
- * @returns {Promise<string>}
57
+ /**
58
+ * 获取SerialNum
59
+ * @param menu 菜单信息
60
+ * @param sybInfo 网格通信息
61
+ * @returns {Promise<string>}
58
62
  */
59
63
 
60
64
 
@@ -75,27 +79,27 @@ var getSerialNumNew = /*#__PURE__*/function () {
75
79
  orgId = _yield$getExpInfo.orgId;
76
80
  billId = sybInfo.billId;
77
81
  menuCode = menu.menuCode, menuPageCode = menu.menuPageCode;
78
- /*
79
- * 业务类型
80
- * 00:固话商机;
81
- * 01:营销案;
82
- * 02:终端;
83
- * 03:宽带新装;
84
- * 04:宽带续费;
85
- * 05:套卡;
86
- * 07:亲情网;
87
- * 08:虚拟网;
88
- * 09:融合业务专区;
89
- * 10:业务设置;
90
- * 11:政企号卡订单查询;
91
- * 12:统一支付;
92
- * 13:权益商城;
93
- * 14:营销案一键办理;
94
- * 15:套餐变更;
95
- * 16:业务大厅预约单详情;
96
- * 17:营销案(新);
97
- * 18:终端出库(新);
98
- * 99:通用宝码
82
+ /*
83
+ * 业务类型
84
+ * 00:固话商机;
85
+ * 01:营销案;
86
+ * 02:终端;
87
+ * 03:宽带新装;
88
+ * 04:宽带续费;
89
+ * 05:套卡;
90
+ * 07:亲情网;
91
+ * 08:虚拟网;
92
+ * 09:融合业务专区;
93
+ * 10:业务设置;
94
+ * 11:政企号卡订单查询;
95
+ * 12:统一支付;
96
+ * 13:权益商城;
97
+ * 14:营销案一键办理;
98
+ * 15:套餐变更;
99
+ * 16:业务大厅预约单详情;
100
+ * 17:营销案(新);
101
+ * 18:终端出库(新);
102
+ * 99:通用宝码
99
103
  * */
100
104
 
101
105
  _context.t0 = menuCode;
@@ -227,19 +231,19 @@ var getSerialNumNew = /*#__PURE__*/function () {
227
231
  return _ref.apply(this, arguments);
228
232
  };
229
233
  }();
230
- /**
231
- * spliceUrl 拼接url
232
- * @param data 接口返回数据
233
- * @param menu 菜单信息
234
- * @param sybInfo 网格通信息
235
- * @param extraParams 扩展参数
236
- * @returns {*} 拼接后的url
234
+ /**
235
+ * spliceUrl 拼接url
236
+ * @param data 接口返回数据
237
+ * @param menu 菜单信息
238
+ * @param sybInfo 网格通信息
239
+ * @param extraParams 扩展参数
240
+ * @returns {*} 拼接后的url
237
241
  */
238
242
 
239
243
 
240
244
  var spliceUrl = /*#__PURE__*/function () {
241
245
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data, menu, sybInfo, extraParams) {
242
- var _yield$getExpInfo2, opPhone, opId, orgId, cityCode, loginName, areaCode, areaName, orgName, userName, envType, view, billId, custUniqueId, broadBillId, imei, commBusId, kindId, campseg_id, stall_id, marketName, busiOppoId, addrId, contTel, showTab, campusCode, school_id, customerOrderId, busiFlowId, authenWorkNo, sysOpId, prodCatalog, regionCode, cartType, cartNum, funcId, _data$pageInfo, pageInfo, _data$urlParam, urlParam, _data$ticket, ticket, _data$sessId, sessId, _data$token, oToken, _data$header, header, _menu$menuCode, menuCode, _menu$isOutSys, isOutSys, _menu$variable, variable, allVerifySerial, custUniqueIdVerifySerial, verifySerial, opCheck, opVerifySerial, verifyType, funcType, powerType, longitude, latitude, serialNum, msg, pageCode, menuName, sysCode, syscode, _pageInfo$params, params, otherParams, url, _pageInfo$paramsFixed, paramsFixed, token, userinfo, hideHeader, otherParamsObj, jikeParamsObj, groupParamsObj, paramsList, otherParamsList, paramsObj, context, _iterator, _step, value, _iterator2, _step2, _value, keys, key, variableList, _key;
246
+ var _yield$getExpInfo2, opPhone, opId, orgId, cityCode, loginName, areaCode, areaName, orgName, userName, envType, view, billId, custUniqueId, broadBillId, imei, commBusId, kindId, campseg_id, stall_id, marketName, busiOppoId, addrId, contTel, showTab, campusCode, school_id, customerOrderId, busiFlowId, authenWorkNo, sysOpId, prodCatalog, regionCode, cartType, cartNum, funcId, _data$pageInfo, pageInfo, _data$urlParam, urlParam, _data$ticket, ticket, _data$sessId, sessId, _data$token, oToken, _data$header, header, _menu$menuCode, menuCode, _menu$isOutSys, isOutSys, _menu$variable, variable, allVerifySerial, custUniqueIdVerifySerial, verifySerial, opCheck, opVerifySerial, verifyType, funcType, powerType, longitude, latitude, serialNum, msg, pageCode, menuName, sysCode, syscode, _pageInfo$params, params, otherParams, url, _pageInfo$paramsFixed, paramsFixed, token, userinfo, hideHeader, otherParamsObj, jikeParamsObj, groupParamsObj, paramsList, otherParamsList, paramsObj, context, key, iv, _iterator, _step, value, _iterator2, _step2, _value, keys, _key, variableList, _key2;
243
247
 
244
248
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
245
249
  while (1) {
@@ -320,21 +324,23 @@ var spliceUrl = /*#__PURE__*/function () {
320
324
  url += "?";
321
325
 
322
326
  if (!(pageCode === "hekehu_wangluotianxia")) {
323
- _context2.next = 50;
327
+ _context2.next = 52;
324
328
  break;
325
329
  }
326
330
 
327
331
  context = "accessSource=zhejiang&billId=" + opPhone;
328
- _context2.prev = 42;
329
- _context2.next = 45;
332
+ key = DataProcess.arkDecrypt(hkh.key);
333
+ iv = DataProcess.arkDecrypt(hkh.iv);
334
+ _context2.prev = 44;
335
+ _context2.next = 47;
330
336
  return mcrm.util.common({
331
337
  action: "AESEncrypt",
332
338
  params: {
333
339
  context: context,
334
340
  // 加密文本
335
- key: "www.asiainfo.com",
341
+ key: key,
336
342
  // 加密秘钥
337
- iv: "aiaiaiaiaiaiaiai" // 偏移量
343
+ iv: iv // 偏移量
338
344
 
339
345
  },
340
346
  onSuccess: function onSuccess(res) {
@@ -351,23 +357,23 @@ var spliceUrl = /*#__PURE__*/function () {
351
357
  }
352
358
  });
353
359
 
354
- case 45:
355
- _context2.next = 50;
360
+ case 47:
361
+ _context2.next = 52;
356
362
  break;
357
363
 
358
- case 47:
359
- _context2.prev = 47;
360
- _context2.t0 = _context2["catch"](42);
364
+ case 49:
365
+ _context2.prev = 49;
366
+ _context2.t0 = _context2["catch"](44);
361
367
  console.error(_context2.t0);
362
368
 
363
- case 50:
369
+ case 52:
364
370
  if (!(paramsList.indexOf("longitude") > -1)) {
365
- _context2.next = 59;
371
+ _context2.next = 61;
366
372
  break;
367
373
  }
368
374
 
369
- _context2.prev = 51;
370
- _context2.next = 54;
375
+ _context2.prev = 53;
376
+ _context2.next = 56;
371
377
  return mcrm.device.getLocation({
372
378
  onSuccess: function onSuccess(res) {
373
379
  longitude = res.longitude;
@@ -384,335 +390,335 @@ var spliceUrl = /*#__PURE__*/function () {
384
390
  }
385
391
  });
386
392
 
387
- case 54:
388
- _context2.next = 59;
393
+ case 56:
394
+ _context2.next = 61;
389
395
  break;
390
396
 
391
- case 56:
392
- _context2.prev = 56;
393
- _context2.t1 = _context2["catch"](51);
397
+ case 58:
398
+ _context2.prev = 58;
399
+ _context2.t1 = _context2["catch"](53);
394
400
  console.error(_context2.t1);
395
401
 
396
- case 59:
402
+ case 61:
397
403
  _iterator = _createForOfIteratorHelperLoose(paramsList);
398
404
 
399
- case 60:
405
+ case 62:
400
406
  if ((_step = _iterator()).done) {
401
- _context2.next = 180;
407
+ _context2.next = 182;
402
408
  break;
403
409
  }
404
410
 
405
411
  value = _step.value;
406
412
  _context2.t2 = value;
407
- _context2.next = _context2.t2 === "addrId" ? 65 : _context2.t2 === "appCode" ? 67 : _context2.t2 === "sys" ? 67 : _context2.t2 === "appkey" ? 69 : _context2.t2 === "authenWorkNo" ? 71 : _context2.t2 === "billId" ? 73 : _context2.t2 === "broadBillId" ? 75 : _context2.t2 === "busiFlowId" ? 77 : _context2.t2 === "busiOppoId" ? 79 : _context2.t2 === "campseg_id" ? 81 : _context2.t2 === "campusCode" ? 83 : _context2.t2 === "custUniqueId" ? 85 : _context2.t2 === "cityCode" ? 87 : _context2.t2 === "city_id" ? 87 : _context2.t2 === "commBusId" ? 89 : _context2.t2 === "countyCode" ? 93 : _context2.t2 === "countyName" ? 95 : _context2.t2 === "contTel" ? 97 : _context2.t2 === "customerOrderId" ? 99 : _context2.t2 === "funcId" ? 101 : _context2.t2 === "funcType" ? 103 : _context2.t2 === "imei" ? 105 : _context2.t2 === "kindId" ? 107 : _context2.t2 === "latitude" ? 109 : _context2.t2 === "longitude" ? 111 : _context2.t2 === "marketName" ? 113 : _context2.t2 === "mpType" ? 115 : _context2.t2 === "opCheck" ? 117 : _context2.t2 === "opId" ? 119 : _context2.t2 === "oper_id" ? 119 : _context2.t2 === "op_id" ? 119 : _context2.t2 === "SYS_OP_ID" ? 119 : _context2.t2 === "channelId" ? 119 : _context2.t2 === "sysOpId" ? 121 : _context2.t2 === "opVerifySerial" ? 123 : _context2.t2 === "orgId" ? 125 : _context2.t2 === "org_id" ? 125 : _context2.t2 === "storeCode" ? 125 : _context2.t2 === "orgIdName" ? 127 : _context2.t2 === "storeName" ? 127 : _context2.t2 === "parameter" ? 129 : _context2.t2 === "powerType" ? 131 : _context2.t2 === "prodId" ? 133 : _context2.t2 === "prodType" ? 135 : _context2.t2 === "school_id" ? 137 : _context2.t2 === "serialNum" ? 139 : _context2.t2 === "sessId" ? 144 : _context2.t2 === "sessionId" ? 144 : _context2.t2 === "SESSID" ? 144 : _context2.t2 === "session_id" ? 144 : _context2.t2 === "showTab" ? 146 : _context2.t2 === "stall_id" ? 148 : _context2.t2 === "telNum" ? 150 : _context2.t2 === "product_no" ? 150 : _context2.t2 === "ticket" ? 152 : _context2.t2 === "timestamp" ? 154 : _context2.t2 === "userId" ? 156 : _context2.t2 === "loginName" ? 156 : _context2.t2 === "userName" ? 158 : _context2.t2 === "verifySerial" ? 160 : _context2.t2 === "verifyType" ? 162 : _context2.t2 === "idCode" ? 164 : _context2.t2 === "userCityId" ? 166 : _context2.t2 === "regionId" ? 168 : _context2.t2 === "cartType" ? 170 : _context2.t2 === "cartNum" ? 172 : _context2.t2 === "view" ? 174 : 176;
413
+ _context2.next = _context2.t2 === "addrId" ? 67 : _context2.t2 === "appCode" ? 69 : _context2.t2 === "sys" ? 69 : _context2.t2 === "appkey" ? 71 : _context2.t2 === "authenWorkNo" ? 73 : _context2.t2 === "billId" ? 75 : _context2.t2 === "broadBillId" ? 77 : _context2.t2 === "busiFlowId" ? 79 : _context2.t2 === "busiOppoId" ? 81 : _context2.t2 === "campseg_id" ? 83 : _context2.t2 === "campusCode" ? 85 : _context2.t2 === "custUniqueId" ? 87 : _context2.t2 === "cityCode" ? 89 : _context2.t2 === "city_id" ? 89 : _context2.t2 === "commBusId" ? 91 : _context2.t2 === "countyCode" ? 95 : _context2.t2 === "countyName" ? 97 : _context2.t2 === "contTel" ? 99 : _context2.t2 === "customerOrderId" ? 101 : _context2.t2 === "funcId" ? 103 : _context2.t2 === "funcType" ? 105 : _context2.t2 === "imei" ? 107 : _context2.t2 === "kindId" ? 109 : _context2.t2 === "latitude" ? 111 : _context2.t2 === "longitude" ? 113 : _context2.t2 === "marketName" ? 115 : _context2.t2 === "mpType" ? 117 : _context2.t2 === "opCheck" ? 119 : _context2.t2 === "opId" ? 121 : _context2.t2 === "oper_id" ? 121 : _context2.t2 === "op_id" ? 121 : _context2.t2 === "SYS_OP_ID" ? 121 : _context2.t2 === "channelId" ? 121 : _context2.t2 === "sysOpId" ? 123 : _context2.t2 === "opVerifySerial" ? 125 : _context2.t2 === "orgId" ? 127 : _context2.t2 === "org_id" ? 127 : _context2.t2 === "storeCode" ? 127 : _context2.t2 === "orgIdName" ? 129 : _context2.t2 === "storeName" ? 129 : _context2.t2 === "parameter" ? 131 : _context2.t2 === "powerType" ? 133 : _context2.t2 === "prodId" ? 135 : _context2.t2 === "prodType" ? 137 : _context2.t2 === "school_id" ? 139 : _context2.t2 === "serialNum" ? 141 : _context2.t2 === "sessId" ? 146 : _context2.t2 === "sessionId" ? 146 : _context2.t2 === "SESSID" ? 146 : _context2.t2 === "session_id" ? 146 : _context2.t2 === "showTab" ? 148 : _context2.t2 === "stall_id" ? 150 : _context2.t2 === "telNum" ? 152 : _context2.t2 === "product_no" ? 152 : _context2.t2 === "ticket" ? 154 : _context2.t2 === "timestamp" ? 156 : _context2.t2 === "userId" ? 158 : _context2.t2 === "loginName" ? 158 : _context2.t2 === "userName" ? 160 : _context2.t2 === "verifySerial" ? 162 : _context2.t2 === "verifyType" ? 164 : _context2.t2 === "idCode" ? 166 : _context2.t2 === "userCityId" ? 168 : _context2.t2 === "regionId" ? 170 : _context2.t2 === "cartType" ? 172 : _context2.t2 === "cartNum" ? 174 : _context2.t2 === "view" ? 176 : 178;
408
414
  break;
409
415
 
410
- case 65:
416
+ case 67:
411
417
  paramsObj[value] = isDef(addrId) ? addrId : "";
412
- return _context2.abrupt("break", 178);
418
+ return _context2.abrupt("break", 180);
413
419
 
414
- case 67:
420
+ case 69:
415
421
  paramsObj[value] = "mcrm";
416
- return _context2.abrupt("break", 178);
422
+ return _context2.abrupt("break", 180);
417
423
 
418
- case 69:
424
+ case 71:
419
425
  paramsObj[value] = "mobilecrm";
420
- return _context2.abrupt("break", 178);
426
+ return _context2.abrupt("break", 180);
421
427
 
422
- case 71:
428
+ case 73:
423
429
  paramsObj[value] = isDef(authenWorkNo) ? authenWorkNo : "";
424
- return _context2.abrupt("break", 178);
430
+ return _context2.abrupt("break", 180);
425
431
 
426
- case 73:
432
+ case 75:
427
433
  paramsObj[value] = isDef(billId) ? data.secretKey ? DataProcess.aesEncryptBusiness(billId, data.secretKey) + "&isSecrect=1" : billId : "";
428
- return _context2.abrupt("break", 178);
434
+ return _context2.abrupt("break", 180);
429
435
 
430
- case 75:
436
+ case 77:
431
437
  paramsObj[value] = isDef(broadBillId) ? data.secretKey ? DataProcess.aesEncryptBusiness(broadBillId, data.secretKey) + "&isSecrect=1" : broadBillId : "";
432
- return _context2.abrupt("break", 178);
438
+ return _context2.abrupt("break", 180);
433
439
 
434
- case 77:
440
+ case 79:
435
441
  paramsObj[value] = isDef(busiFlowId) ? busiFlowId : "17000003";
436
- return _context2.abrupt("break", 178);
442
+ return _context2.abrupt("break", 180);
437
443
 
438
- case 79:
444
+ case 81:
439
445
  paramsObj[value] = isDef(busiOppoId) ? busiOppoId : "";
440
- return _context2.abrupt("break", 178);
446
+ return _context2.abrupt("break", 180);
441
447
 
442
- case 81:
448
+ case 83:
443
449
  paramsObj[value] = isDef(campseg_id) ? campseg_id : "";
444
- return _context2.abrupt("break", 178);
450
+ return _context2.abrupt("break", 180);
445
451
 
446
- case 83:
452
+ case 85:
447
453
  paramsObj[value] = isDef(campusCode) ? campusCode : "";
448
- return _context2.abrupt("break", 178);
454
+ return _context2.abrupt("break", 180);
449
455
 
450
- case 85:
456
+ case 87:
451
457
  paramsObj[value] = isDef(custUniqueId) ? custUniqueId : "";
452
- return _context2.abrupt("break", 178);
458
+ return _context2.abrupt("break", 180);
453
459
 
454
- case 87:
460
+ case 89:
455
461
  paramsObj[value] = isDef(cityCode) ? cityCode : "";
456
- return _context2.abrupt("break", 178);
462
+ return _context2.abrupt("break", 180);
457
463
 
458
- case 89:
464
+ case 91:
459
465
  paramsObj[value] = isDef(commBusId) ? commBusId : "";
460
466
  paramsObj["isRecommEnd"] = "false";
461
467
  paramsObj["bType"] = "1";
462
- return _context2.abrupt("break", 178);
468
+ return _context2.abrupt("break", 180);
463
469
 
464
- case 93:
470
+ case 95:
465
471
  paramsObj[value] = isDef(areaCode) ? areaCode : "";
466
- return _context2.abrupt("break", 178);
472
+ return _context2.abrupt("break", 180);
467
473
 
468
- case 95:
474
+ case 97:
469
475
  paramsObj[value] = isDef(areaName) ? areaName : "";
470
- return _context2.abrupt("break", 178);
476
+ return _context2.abrupt("break", 180);
471
477
 
472
- case 97:
478
+ case 99:
473
479
  paramsObj[value] = isDef(contTel) ? contTel : "";
474
- return _context2.abrupt("break", 178);
480
+ return _context2.abrupt("break", 180);
475
481
 
476
- case 99:
482
+ case 101:
477
483
  paramsObj[value] = isDef(customerOrderId) ? customerOrderId : "";
478
- return _context2.abrupt("break", 178);
484
+ return _context2.abrupt("break", 180);
479
485
 
480
- case 101:
486
+ case 103:
481
487
  paramsObj[value] = isDef(funcId) ? funcId : isDef(menuCode) ? menuCode : "";
482
- return _context2.abrupt("break", 178);
488
+ return _context2.abrupt("break", 180);
483
489
 
484
- case 103:
490
+ case 105:
485
491
  paramsObj[value] = isDef(funcType) ? funcType : "";
486
- return _context2.abrupt("break", 178);
492
+ return _context2.abrupt("break", 180);
487
493
 
488
- case 105:
494
+ case 107:
489
495
  paramsObj[value] = isDef(imei) ? imei : "";
490
- return _context2.abrupt("break", 178);
496
+ return _context2.abrupt("break", 180);
491
497
 
492
- case 107:
498
+ case 109:
493
499
  paramsObj[value] = isDef(kindId) ? kindId : "";
494
- return _context2.abrupt("break", 178);
500
+ return _context2.abrupt("break", 180);
495
501
 
496
- case 109:
502
+ case 111:
497
503
  paramsObj[value] = isDef(latitude) ? latitude : "";
498
- return _context2.abrupt("break", 178);
504
+ return _context2.abrupt("break", 180);
499
505
 
500
- case 111:
506
+ case 113:
501
507
  paramsObj[value] = isDef(longitude) ? longitude : "";
502
- return _context2.abrupt("break", 178);
508
+ return _context2.abrupt("break", 180);
503
509
 
504
- case 113:
510
+ case 115:
505
511
  paramsObj[value] = isDef(marketName) ? marketName : "";
506
- return _context2.abrupt("break", 178);
512
+ return _context2.abrupt("break", 180);
507
513
 
508
- case 115:
514
+ case 117:
509
515
  paramsObj[value] = "";
510
- return _context2.abrupt("break", 178);
516
+ return _context2.abrupt("break", 180);
511
517
 
512
- case 117:
518
+ case 119:
513
519
  if (opCheck !== undefined) {
514
520
  paramsObj[value] = isDef(opCheck) ? opCheck : "";
515
521
  }
516
522
 
517
- return _context2.abrupt("break", 178);
518
-
519
- case 119:
520
- paramsObj[value] = isDef(opId) ? opId : "";
521
- return _context2.abrupt("break", 178);
523
+ return _context2.abrupt("break", 180);
522
524
 
523
525
  case 121:
524
- paramsObj[value] = isDef(sysOpId) ? sysOpId : "";
525
- return _context2.abrupt("break", 178);
526
+ paramsObj[value] = isDef(opId) ? opId : "";
527
+ return _context2.abrupt("break", 180);
526
528
 
527
529
  case 123:
528
- paramsObj[value] = isDef(opVerifySerial) ? opVerifySerial : "";
529
- return _context2.abrupt("break", 178);
530
+ paramsObj[value] = isDef(sysOpId) ? sysOpId : "";
531
+ return _context2.abrupt("break", 180);
530
532
 
531
533
  case 125:
532
- paramsObj[value] = isDef(orgId) ? orgId : "";
533
- return _context2.abrupt("break", 178);
534
+ paramsObj[value] = isDef(opVerifySerial) ? opVerifySerial : "";
535
+ return _context2.abrupt("break", 180);
534
536
 
535
537
  case 127:
536
- paramsObj[value] = isDef(orgName) ? orgName : "";
537
- return _context2.abrupt("break", 178);
538
+ paramsObj[value] = isDef(orgId) ? orgId : "";
539
+ return _context2.abrupt("break", 180);
538
540
 
539
541
  case 129:
540
- paramsObj[value] = isDef(oToken) ? oToken : "";
541
- return _context2.abrupt("break", 178);
542
+ paramsObj[value] = isDef(orgName) ? orgName : "";
543
+ return _context2.abrupt("break", 180);
542
544
 
543
545
  case 131:
544
- paramsObj[value] = isDef(powerType) ? powerType : "";
545
- return _context2.abrupt("break", 178);
546
+ paramsObj[value] = isDef(oToken) ? oToken : "";
547
+ return _context2.abrupt("break", 180);
546
548
 
547
549
  case 133:
548
- paramsObj[value] = "";
549
- return _context2.abrupt("break", 178);
550
+ paramsObj[value] = isDef(powerType) ? powerType : "";
551
+ return _context2.abrupt("break", 180);
550
552
 
551
553
  case 135:
552
554
  paramsObj[value] = "";
553
- return _context2.abrupt("break", 178);
555
+ return _context2.abrupt("break", 180);
554
556
 
555
557
  case 137:
556
- paramsObj[value] = isDef(school_id) ? school_id : "";
557
- return _context2.abrupt("break", 178);
558
+ paramsObj[value] = "";
559
+ return _context2.abrupt("break", 180);
558
560
 
559
561
  case 139:
560
- _context2.next = 141;
561
- return getSerialNumNew(menu, sybInfo);
562
+ paramsObj[value] = isDef(school_id) ? school_id : "";
563
+ return _context2.abrupt("break", 180);
562
564
 
563
565
  case 141:
566
+ _context2.next = 143;
567
+ return getSerialNumNew(menu, sybInfo);
568
+
569
+ case 143:
564
570
  serialNum = _context2.sent;
565
571
  paramsObj[value] = isDef(serialNum) ? serialNum : "";
566
- return _context2.abrupt("break", 178);
572
+ return _context2.abrupt("break", 180);
567
573
 
568
- case 144:
574
+ case 146:
569
575
  paramsObj[value] = isDef(sessId) ? sessId : "";
570
- return _context2.abrupt("break", 178);
576
+ return _context2.abrupt("break", 180);
571
577
 
572
- case 146:
578
+ case 148:
573
579
  if (isDef(showTab)) {
574
580
  paramsObj[value] = showTab;
575
581
  }
576
582
 
577
- return _context2.abrupt("break", 178);
578
-
579
- case 148:
580
- paramsObj[value] = isDef(stall_id) ? stall_id : "";
581
- return _context2.abrupt("break", 178);
583
+ return _context2.abrupt("break", 180);
582
584
 
583
585
  case 150:
584
- paramsObj[value] = isDef(opPhone) ? opPhone : "";
585
- return _context2.abrupt("break", 178);
586
+ paramsObj[value] = isDef(stall_id) ? stall_id : "";
587
+ return _context2.abrupt("break", 180);
586
588
 
587
589
  case 152:
588
- paramsObj[value] = isDef(ticket) ? ticket : "";
589
- return _context2.abrupt("break", 178);
590
+ paramsObj[value] = isDef(opPhone) ? opPhone : "";
591
+ return _context2.abrupt("break", 180);
590
592
 
591
593
  case 154:
592
- paramsObj[value] = new Date().getTime();
593
- return _context2.abrupt("break", 178);
594
+ paramsObj[value] = isDef(ticket) ? ticket : "";
595
+ return _context2.abrupt("break", 180);
594
596
 
595
597
  case 156:
596
- paramsObj[value] = isDef(loginName) ? loginName : "";
597
- return _context2.abrupt("break", 178);
598
+ paramsObj[value] = new Date().getTime();
599
+ return _context2.abrupt("break", 180);
598
600
 
599
601
  case 158:
600
- paramsObj[value] = isDef(userName) ? userName : "";
601
- return _context2.abrupt("break", 178);
602
+ paramsObj[value] = isDef(loginName) ? loginName : "";
603
+ return _context2.abrupt("break", 180);
602
604
 
603
605
  case 160:
604
- paramsObj[value] = isDef(verifySerial) ? verifySerial : "";
605
- return _context2.abrupt("break", 178);
606
+ paramsObj[value] = isDef(userName) ? userName : "";
607
+ return _context2.abrupt("break", 180);
606
608
 
607
609
  case 162:
608
- paramsObj[value] = isDef(verifyType) ? verifyType : "";
609
- return _context2.abrupt("break", 178);
610
+ paramsObj[value] = isDef(verifySerial) ? verifySerial : "";
611
+ return _context2.abrupt("break", 180);
610
612
 
611
613
  case 164:
612
- paramsObj[value] = isDef(prodCatalog) ? prodCatalog : "";
613
- return _context2.abrupt("break", 178);
614
+ paramsObj[value] = isDef(verifyType) ? verifyType : "";
615
+ return _context2.abrupt("break", 180);
614
616
 
615
617
  case 166:
616
- paramsObj[value] = isDef(regionCode) ? regionCode : "";
617
- return _context2.abrupt("break", 178);
618
+ paramsObj[value] = isDef(prodCatalog) ? prodCatalog : "";
619
+ return _context2.abrupt("break", 180);
618
620
 
619
621
  case 168:
620
622
  paramsObj[value] = isDef(regionCode) ? regionCode : "";
621
- return _context2.abrupt("break", 178);
623
+ return _context2.abrupt("break", 180);
622
624
 
623
625
  case 170:
624
- paramsObj[value] = isDef(cartType) ? cartType : "";
625
- return _context2.abrupt("break", 178);
626
+ paramsObj[value] = isDef(regionCode) ? regionCode : "";
627
+ return _context2.abrupt("break", 180);
626
628
 
627
629
  case 172:
628
- paramsObj[value] = isDef(cartNum) ? cartNum : "";
629
- return _context2.abrupt("break", 178);
630
+ paramsObj[value] = isDef(cartType) ? cartType : "";
631
+ return _context2.abrupt("break", 180);
630
632
 
631
633
  case 174:
632
- paramsObj[value] = isDef(view) ? viewObj[view] : "";
633
- return _context2.abrupt("break", 178);
634
+ paramsObj[value] = isDef(cartNum) ? cartNum : "";
635
+ return _context2.abrupt("break", 180);
634
636
 
635
637
  case 176:
638
+ paramsObj[value] = isDef(view) ? viewObj[view] : "";
639
+ return _context2.abrupt("break", 180);
640
+
641
+ case 178:
636
642
  if (isDef(sybInfo[value]) || isDef(urlParam[value])) {
637
643
  paramsObj[value] = sybInfo[value] || urlParam[value];
638
644
  } else {
639
645
  console.error("Did not match " + value);
640
646
  }
641
647
 
642
- return _context2.abrupt("break", 178);
648
+ return _context2.abrupt("break", 180);
643
649
 
644
- case 178:
645
- _context2.next = 60;
650
+ case 180:
651
+ _context2.next = 62;
646
652
  break;
647
653
 
648
- case 180:
654
+ case 182:
649
655
  _iterator2 = _createForOfIteratorHelperLoose(otherParamsList);
650
656
 
651
- case 181:
657
+ case 183:
652
658
  if ((_step2 = _iterator2()).done) {
653
- _context2.next = 205;
659
+ _context2.next = 207;
654
660
  break;
655
661
  }
656
662
 
657
663
  _value = _step2.value;
658
664
  _context2.t3 = _value;
659
- _context2.next = _context2.t3 === "opId" ? 186 : _context2.t3 === "opName" ? 188 : _context2.t3 === "phone" ? 190 : _context2.t3 === "orgId" ? 192 : _context2.t3 === "orgName" ? 194 : _context2.t3 === "regionId" ? 196 : _context2.t3 === "countyId" ? 198 : _context2.t3 === "sessionId" ? 200 : 202;
665
+ _context2.next = _context2.t3 === "opId" ? 188 : _context2.t3 === "opName" ? 190 : _context2.t3 === "phone" ? 192 : _context2.t3 === "orgId" ? 194 : _context2.t3 === "orgName" ? 196 : _context2.t3 === "regionId" ? 198 : _context2.t3 === "countyId" ? 200 : _context2.t3 === "sessionId" ? 202 : 204;
660
666
  break;
661
667
 
662
- case 186:
668
+ case 188:
663
669
  otherParamsObj[_value] = isDef(opId) ? opId : "";
664
- return _context2.abrupt("break", 203);
670
+ return _context2.abrupt("break", 205);
665
671
 
666
- case 188:
672
+ case 190:
667
673
  otherParamsObj[_value] = isDef(loginName) ? loginName : "";
668
- return _context2.abrupt("break", 203);
674
+ return _context2.abrupt("break", 205);
669
675
 
670
- case 190:
676
+ case 192:
671
677
  otherParamsObj[_value] = isDef(opPhone) ? opPhone : "";
672
- return _context2.abrupt("break", 203);
678
+ return _context2.abrupt("break", 205);
673
679
 
674
- case 192:
680
+ case 194:
675
681
  otherParamsObj[_value] = isDef(orgId) ? orgId : "";
676
- return _context2.abrupt("break", 203);
682
+ return _context2.abrupt("break", 205);
677
683
 
678
- case 194:
684
+ case 196:
679
685
  otherParamsObj[_value] = isDef(orgName) ? orgName : "";
680
- return _context2.abrupt("break", 203);
686
+ return _context2.abrupt("break", 205);
681
687
 
682
- case 196:
688
+ case 198:
683
689
  otherParamsObj[_value] = isDef(cityCode) ? cityCode : "";
684
- return _context2.abrupt("break", 203);
690
+ return _context2.abrupt("break", 205);
685
691
 
686
- case 198:
692
+ case 200:
687
693
  otherParamsObj[_value] = isDef(areaCode) ? areaCode : "";
688
- return _context2.abrupt("break", 203);
694
+ return _context2.abrupt("break", 205);
689
695
 
690
- case 200:
696
+ case 202:
691
697
  otherParamsObj[_value] = isDef(sessId) ? sessId : "";
692
- return _context2.abrupt("break", 203);
698
+ return _context2.abrupt("break", 205);
693
699
 
694
- case 202:
695
- return _context2.abrupt("break", 203);
700
+ case 204:
701
+ return _context2.abrupt("break", 205);
696
702
 
697
- case 203:
698
- _context2.next = 181;
703
+ case 205:
704
+ _context2.next = 183;
699
705
  break;
700
706
 
701
- case 205:
707
+ case 207:
702
708
  keys = Object.keys(paramsObj);
703
709
 
704
- for (key in extraParams) {
705
- if (!keys.includes(key)) {
706
- paramsObj[key] = extraParams[key];
710
+ for (_key in extraParams) {
711
+ if (!keys.includes(_key)) {
712
+ paramsObj[_key] = extraParams[_key];
707
713
  } else {
708
714
  if (isOutSys) {
709
715
  variableList = variable.split(",");
710
716
 
711
- if (variableList.includes(key)) {
712
- if (key === "billId" || key === "broadBillId") {
713
- paramsObj[key] = data.secretKey ? DataProcess.aesEncryptBusiness(extraParams[key], data.secretKey) + "&isSecrect=1" : extraParams[key];
717
+ if (variableList.includes(_key)) {
718
+ if (_key === "billId" || _key === "broadBillId") {
719
+ paramsObj[_key] = data.secretKey ? DataProcess.aesEncryptBusiness(extraParams[_key], data.secretKey) + "&isSecrect=1" : extraParams[_key];
714
720
  } else {
715
- paramsObj[key] = extraParams[key];
721
+ paramsObj[_key] = extraParams[_key];
716
722
  }
717
723
  }
718
724
  }
@@ -723,8 +729,8 @@ var spliceUrl = /*#__PURE__*/function () {
723
729
  paramsObj["verifySerial"] = isDef(verifySerial) ? verifySerial : "";
724
730
  }
725
731
 
726
- for (_key in paramsObj) {
727
- url += "&" + _key + "=" + paramsObj[_key];
732
+ for (_key2 in paramsObj) {
733
+ url += "&" + _key2 + "=" + paramsObj[_key2];
728
734
  }
729
735
 
730
736
  url = url.replace("?&", "?");
@@ -737,25 +743,25 @@ var spliceUrl = /*#__PURE__*/function () {
737
743
  msg: msg
738
744
  });
739
745
 
740
- case 211:
746
+ case 213:
741
747
  case "end":
742
748
  return _context2.stop();
743
749
  }
744
750
  }
745
- }, _callee2, null, [[42, 47], [51, 56]]);
751
+ }, _callee2, null, [[44, 49], [53, 58]]);
746
752
  }));
747
753
 
748
754
  return function spliceUrl(_x3, _x4, _x5, _x6) {
749
755
  return _ref2.apply(this, arguments);
750
756
  };
751
757
  }();
752
- /**
753
- * 拼接原生入参
754
- * @param menu 菜单信息
755
- * @param data 接口返回的信息
756
- * @param sybInfo 网格通信息
757
- * @param extraParams 额外信息
758
- * @returns {{}}
758
+ /**
759
+ * 拼接原生入参
760
+ * @param menu 菜单信息
761
+ * @param data 接口返回的信息
762
+ * @param sybInfo 网格通信息
763
+ * @param extraParams 额外信息
764
+ * @returns {{}}
759
765
  */
760
766
 
761
767
 
@@ -872,8 +878,8 @@ var spliceParams = /*#__PURE__*/function () {
872
878
  return _ref5.apply(this, arguments);
873
879
  };
874
880
  }();
875
- /**
876
- * 整合操作日志数据
881
+ /**
882
+ * 整合操作日志数据
877
883
  */
878
884
 
879
885
 
@@ -946,16 +952,16 @@ var operLogData = /*#__PURE__*/function () {
946
952
  return _ref6.apply(this, arguments);
947
953
  };
948
954
  }();
949
- /**
950
- * 根据url打开页面
951
- * @param data 接口响应数据
952
- * @param menu 菜单信息
953
- * @param sybInfo 网格通信息
954
- * @param extraParams 额外参数
955
- * @param openParams 打开页面通过原生传递的参数
956
- * @param onClose 页面关闭时,回调函数
957
- * @param onSuccess 页面打开成功时,回调函数
958
- * @param onFail 页面打开失败时,回调函数
955
+ /**
956
+ * 根据url打开页面
957
+ * @param data 接口响应数据
958
+ * @param menu 菜单信息
959
+ * @param sybInfo 网格通信息
960
+ * @param extraParams 额外参数
961
+ * @param openParams 打开页面通过原生传递的参数
962
+ * @param onClose 页面关闭时,回调函数
963
+ * @param onSuccess 页面打开成功时,回调函数
964
+ * @param onFail 页面打开失败时,回调函数
959
965
  */
960
966
 
961
967
 
@@ -1167,15 +1173,15 @@ var onAuth = function onAuth(menu, sybInfo) {
1167
1173
  });
1168
1174
  });
1169
1175
  };
1170
- /**
1171
- * 打开网格通自己开发的页面
1172
- * @param menu 菜单信息
1173
- * @param data 接口响应数据
1174
- * @param sybInfo {Object} 网格通信息
1175
- * @param extraParams {Object} 额外参数
1176
- * @param onClose {Function} 页面关闭时,回调函数
1177
- * @param onSuccess {Function} 页面打开成功时,回调函数
1178
- * @param onFail {Function} 页面打开失败时,回调函数
1176
+ /**
1177
+ * 打开网格通自己开发的页面
1178
+ * @param menu 菜单信息
1179
+ * @param data 接口响应数据
1180
+ * @param sybInfo {Object} 网格通信息
1181
+ * @param extraParams {Object} 额外参数
1182
+ * @param onClose {Function} 页面关闭时,回调函数
1183
+ * @param onSuccess {Function} 页面打开成功时,回调函数
1184
+ * @param onFail {Function} 页面打开失败时,回调函数
1179
1185
  */
1180
1186
 
1181
1187