mcrm-mobile 1.0.6 → 1.0.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/circle/index.js +9 -5
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +152 -147
- package/lib/circle/index.js +9 -5
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +162 -153
- package/lib/mcrm-mobile.min.js +1 -1
- package/lib/menu-jump/index.js +153 -147
- package/package.json +1 -1
- package/types/common.d.ts +6 -3
- package/vetur/attributes.json +32 -28
- package/vetur/tags.json +17 -16
- package/vetur/web-types.json +108 -98
package/es/circle/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { raf, cancel } from "../utils/dom/raf";
|
|
|
5
5
|
var PERIMETER = 3140;
|
|
6
6
|
var uid = 0;
|
|
7
7
|
|
|
8
|
-
function format(rate) {
|
|
9
|
-
return Math.min(Math.max(rate, 0),
|
|
8
|
+
function format(rate, total) {
|
|
9
|
+
return Math.min(Math.max(rate, 0), total);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function getPath(clockwise, viewBoxSize) {
|
|
@@ -94,6 +94,10 @@ export default create({
|
|
|
94
94
|
clockwise: {
|
|
95
95
|
type: Boolean,
|
|
96
96
|
default: true
|
|
97
|
+
},
|
|
98
|
+
total: {
|
|
99
|
+
type: [Number, String],
|
|
100
|
+
default: 100
|
|
97
101
|
}
|
|
98
102
|
},
|
|
99
103
|
beforeCreate: function beforeCreate() {
|
|
@@ -126,7 +130,7 @@ export default create({
|
|
|
126
130
|
};
|
|
127
131
|
},
|
|
128
132
|
hoverStyle: function hoverStyle() {
|
|
129
|
-
var offset = PERIMETER * this.value /
|
|
133
|
+
var offset = PERIMETER * this.value / this.total;
|
|
130
134
|
return {
|
|
131
135
|
stroke: "" + this.color,
|
|
132
136
|
strokeWidth: +this.strokeWidth + 1 + "px",
|
|
@@ -143,7 +147,7 @@ export default create({
|
|
|
143
147
|
handler: function handler(rate) {
|
|
144
148
|
this.startTime = Date.now();
|
|
145
149
|
this.startRate = this.value;
|
|
146
|
-
this.endRate = format(rate);
|
|
150
|
+
this.endRate = format(rate, this.total);
|
|
147
151
|
this.increase = this.endRate > this.startRate;
|
|
148
152
|
this.duration = Math.abs((this.startRate - this.endRate) * 1000 / this.speed);
|
|
149
153
|
|
|
@@ -162,7 +166,7 @@ export default create({
|
|
|
162
166
|
var now = Date.now();
|
|
163
167
|
var progress = Math.min((now - this.startTime) / this.duration, 1);
|
|
164
168
|
var rate = progress * (this.endRate - this.startRate) + this.startRate;
|
|
165
|
-
this.$emit("input", format(parseFloat(rate.toFixed(1))));
|
|
169
|
+
this.$emit("input", format(parseFloat(rate.toFixed(1)), this.total));
|
|
166
170
|
|
|
167
171
|
if (this.increase ? rate < this.endRate : rate > this.endRate) {
|
|
168
172
|
this.rafId = raf(this.animate);
|
package/es/index.js
CHANGED
|
@@ -90,7 +90,7 @@ import Tag from './tag';
|
|
|
90
90
|
import Toast from './toast';
|
|
91
91
|
import TreeSelect from './tree-select';
|
|
92
92
|
import Uploader from './uploader';
|
|
93
|
-
var version = '1.0.
|
|
93
|
+
var version = '1.0.7';
|
|
94
94
|
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, 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];
|
|
95
95
|
|
|
96
96
|
var install = function install(Vue) {
|
package/es/menu-jump/index.js
CHANGED
|
@@ -218,7 +218,7 @@ var getSerialNumNew = /*#__PURE__*/function () {
|
|
|
218
218
|
|
|
219
219
|
var spliceUrl = /*#__PURE__*/function () {
|
|
220
220
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data, menu, sybInfo, extraParams) {
|
|
221
|
-
var _yield$getExpInfo2, opPhone, opId, orgId, cityCode, loginName, areaCode, areaName, orgName, userName, envType, billId, broadBillId, imei, commBusId, kindId, campseg_id, stall_id, marketName, busiOppoId, addrId, contTel, showTab, campusCode, school_id, customerOrderId, busiFlowId, authenWorkNo, sysOpId, _data$pageInfo, pageInfo, _data$ticket, ticket, _data$sessId, sessId, _menu$menuCode, menuCode, verifySerial, opCheck, opVerifySerial, verifyType, funcType, powerType, longitude, latitude, serialNum, pageCode, menuName, sysCode, _pageInfo$params, params, otherParams, url, _pageInfo$paramsFixed, paramsFixed, token, userinfo, hideHeader, otherParamsObj, jikeParamsObj, paramsList, otherParamsList, context, _iterator, _step, value, _iterator2, _step2, _value, key;
|
|
221
|
+
var _yield$getExpInfo2, opPhone, opId, orgId, cityCode, loginName, areaCode, areaName, orgName, userName, envType, billId, broadBillId, imei, commBusId, kindId, campseg_id, stall_id, marketName, busiOppoId, addrId, contTel, showTab, campusCode, school_id, customerOrderId, busiFlowId, authenWorkNo, sysOpId, _data$pageInfo, pageInfo, _data$ticket, ticket, _data$sessId, sessId, _menu$menuCode, menuCode, allVerifySerial, verifySerial, opCheck, opVerifySerial, verifyType, funcType, powerType, longitude, latitude, serialNum, pageCode, menuName, sysCode, _pageInfo$params, params, otherParams, url, _pageInfo$paramsFixed, paramsFixed, token, userinfo, hideHeader, otherParamsObj, jikeParamsObj, paramsList, otherParamsList, context, _iterator, _step, value, _iterator2, _step2, _value, key;
|
|
222
222
|
|
|
223
223
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
224
224
|
while (1) {
|
|
@@ -242,7 +242,8 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
242
242
|
billId = sybInfo.billId, broadBillId = sybInfo.broadBillId, imei = sybInfo.imei, commBusId = sybInfo.commBusId, kindId = sybInfo.kindId, campseg_id = sybInfo.campseg_id, stall_id = sybInfo.stall_id, marketName = sybInfo.marketName, busiOppoId = sybInfo.busiOppoId, addrId = sybInfo.addrId, contTel = sybInfo.contTel, showTab = sybInfo.showTab, campusCode = sybInfo.campusCode, school_id = sybInfo.school_id, customerOrderId = sybInfo.customerOrderId, busiFlowId = sybInfo.busiFlowId, authenWorkNo = sybInfo.authenWorkNo, sysOpId = sybInfo.sysOpId;
|
|
243
243
|
_data$pageInfo = data.pageInfo, pageInfo = _data$pageInfo === void 0 ? {} : _data$pageInfo, _data$ticket = data.ticket, ticket = _data$ticket === void 0 ? "" : _data$ticket, _data$sessId = data.sessId, sessId = _data$sessId === void 0 ? "" : _data$sessId;
|
|
244
244
|
_menu$menuCode = menu.menuCode, menuCode = _menu$menuCode === void 0 ? "" : _menu$menuCode;
|
|
245
|
-
|
|
245
|
+
allVerifySerial = Session.get("allVerifySerial") || {};
|
|
246
|
+
verifySerial = allVerifySerial[billId] || "";
|
|
246
247
|
opCheck = Session.get("opCheck");
|
|
247
248
|
opVerifySerial = Session.get("opVerifySerial") || "";
|
|
248
249
|
verifyType = "0";
|
|
@@ -280,12 +281,12 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
280
281
|
url += "?" + paramsFixed;
|
|
281
282
|
|
|
282
283
|
if (!(pageCode === "hekehu_wangluotianxia")) {
|
|
283
|
-
_context2.next =
|
|
284
|
+
_context2.next = 38;
|
|
284
285
|
break;
|
|
285
286
|
}
|
|
286
287
|
|
|
287
288
|
context = "accessSource=zhejiang&billId=" + opPhone;
|
|
288
|
-
_context2.next =
|
|
289
|
+
_context2.next = 38;
|
|
289
290
|
return mcrm.util.common({
|
|
290
291
|
action: "AESEncrypt",
|
|
291
292
|
params: {
|
|
@@ -301,13 +302,13 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
301
302
|
}
|
|
302
303
|
});
|
|
303
304
|
|
|
304
|
-
case
|
|
305
|
+
case 38:
|
|
305
306
|
if (!(paramsList.indexOf("longitude") > -1)) {
|
|
306
|
-
_context2.next =
|
|
307
|
+
_context2.next = 41;
|
|
307
308
|
break;
|
|
308
309
|
}
|
|
309
310
|
|
|
310
|
-
_context2.next =
|
|
311
|
+
_context2.next = 41;
|
|
311
312
|
return mcrm.device.getLocation({
|
|
312
313
|
onSuccess: function onSuccess(res) {
|
|
313
314
|
longitude = res.longitude;
|
|
@@ -318,270 +319,270 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
318
319
|
}
|
|
319
320
|
});
|
|
320
321
|
|
|
321
|
-
case
|
|
322
|
+
case 41:
|
|
322
323
|
_iterator = _createForOfIteratorHelperLoose(paramsList);
|
|
323
324
|
|
|
324
|
-
case
|
|
325
|
+
case 42:
|
|
325
326
|
if ((_step = _iterator()).done) {
|
|
326
|
-
_context2.next =
|
|
327
|
+
_context2.next = 144;
|
|
327
328
|
break;
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
value = _step.value;
|
|
331
332
|
_context2.t0 = value;
|
|
332
|
-
_context2.next = _context2.t0 === "addrId" ?
|
|
333
|
+
_context2.next = _context2.t0 === "addrId" ? 47 : _context2.t0 === "appCode" ? 49 : _context2.t0 === "sys" ? 49 : _context2.t0 === "appkey" ? 51 : _context2.t0 === "authenWorkNo" ? 53 : _context2.t0 === "billId" ? 55 : _context2.t0 === "broadBillId" ? 57 : _context2.t0 === "busiFlowId" ? 59 : _context2.t0 === "busiOppoId" ? 61 : _context2.t0 === "campseg_id" ? 63 : _context2.t0 === "campusCode" ? 65 : _context2.t0 === "cityCode" ? 67 : _context2.t0 === "city_id" ? 67 : _context2.t0 === "commBusId" ? 69 : _context2.t0 === "countyCode" ? 71 : _context2.t0 === "countyName" ? 73 : _context2.t0 === "contTel" ? 75 : _context2.t0 === "customerOrderId" ? 77 : _context2.t0 === "funcId" ? 79 : _context2.t0 === "funcType" ? 81 : _context2.t0 === "imei" ? 83 : _context2.t0 === "kindId" ? 85 : _context2.t0 === "latitude" ? 87 : _context2.t0 === "longitude" ? 89 : _context2.t0 === "marketName" ? 91 : _context2.t0 === "mpType" ? 93 : _context2.t0 === "opCheck" ? 95 : _context2.t0 === "opId" ? 97 : _context2.t0 === "oper_id" ? 97 : _context2.t0 === "op_id" ? 97 : _context2.t0 === "SYS_OP_ID" ? 97 : _context2.t0 === "channelId" ? 97 : _context2.t0 === "sysOpId" ? 99 : _context2.t0 === "opVerifySerial" ? 101 : _context2.t0 === "orgId" ? 103 : _context2.t0 === "org_id" ? 103 : _context2.t0 === "storeCode" ? 103 : _context2.t0 === "orgIdName" ? 105 : _context2.t0 === "storeName" ? 105 : _context2.t0 === "powerType" ? 107 : _context2.t0 === "prodId" ? 109 : _context2.t0 === "prodType" ? 111 : _context2.t0 === "school_id" ? 113 : _context2.t0 === "serialNum" ? 115 : _context2.t0 === "sessId" ? 120 : _context2.t0 === "sessionId" ? 120 : _context2.t0 === "SESSID" ? 120 : _context2.t0 === "session_id" ? 120 : _context2.t0 === "showTab" ? 122 : _context2.t0 === "stall_id" ? 124 : _context2.t0 === "telNum" ? 126 : _context2.t0 === "product_no" ? 126 : _context2.t0 === "ticket" ? 128 : _context2.t0 === "timestamp" ? 130 : _context2.t0 === "userId" ? 132 : _context2.t0 === "loginName" ? 132 : _context2.t0 === "userName" ? 134 : _context2.t0 === "verifySerial" ? 136 : _context2.t0 === "verifyType" ? 138 : 140;
|
|
333
334
|
break;
|
|
334
335
|
|
|
335
|
-
case
|
|
336
|
+
case 47:
|
|
336
337
|
url += "&" + value + "=" + (isDef(addrId) ? addrId : "");
|
|
337
|
-
return _context2.abrupt("break",
|
|
338
|
+
return _context2.abrupt("break", 142);
|
|
338
339
|
|
|
339
|
-
case
|
|
340
|
+
case 49:
|
|
340
341
|
url += "&" + value + "=mcrm";
|
|
341
|
-
return _context2.abrupt("break",
|
|
342
|
+
return _context2.abrupt("break", 142);
|
|
342
343
|
|
|
343
|
-
case
|
|
344
|
+
case 51:
|
|
344
345
|
url += "&" + value + "=mobilecrm";
|
|
345
|
-
return _context2.abrupt("break",
|
|
346
|
+
return _context2.abrupt("break", 142);
|
|
346
347
|
|
|
347
|
-
case
|
|
348
|
+
case 53:
|
|
348
349
|
url += "&" + value + "=" + (isDef(authenWorkNo) ? authenWorkNo : "");
|
|
349
|
-
return _context2.abrupt("break",
|
|
350
|
+
return _context2.abrupt("break", 142);
|
|
350
351
|
|
|
351
|
-
case
|
|
352
|
+
case 55:
|
|
352
353
|
url += "&" + value + "=" + (isDef(billId) ? billId : "");
|
|
353
|
-
return _context2.abrupt("break",
|
|
354
|
+
return _context2.abrupt("break", 142);
|
|
354
355
|
|
|
355
|
-
case
|
|
356
|
+
case 57:
|
|
356
357
|
url += "&" + value + "=" + (isDef(broadBillId) ? broadBillId : "");
|
|
357
|
-
return _context2.abrupt("break",
|
|
358
|
+
return _context2.abrupt("break", 142);
|
|
358
359
|
|
|
359
|
-
case
|
|
360
|
+
case 59:
|
|
360
361
|
url += "&" + value + "=" + (isDef(busiFlowId) ? busiFlowId : "17000003");
|
|
361
|
-
return _context2.abrupt("break",
|
|
362
|
+
return _context2.abrupt("break", 142);
|
|
362
363
|
|
|
363
|
-
case
|
|
364
|
+
case 61:
|
|
364
365
|
url += "&" + value + "=" + (isDef(busiOppoId) ? busiOppoId : "");
|
|
365
|
-
return _context2.abrupt("break",
|
|
366
|
+
return _context2.abrupt("break", 142);
|
|
366
367
|
|
|
367
|
-
case
|
|
368
|
+
case 63:
|
|
368
369
|
url += "&" + value + "=" + (isDef(campseg_id) ? campseg_id : "");
|
|
369
|
-
return _context2.abrupt("break",
|
|
370
|
+
return _context2.abrupt("break", 142);
|
|
370
371
|
|
|
371
|
-
case
|
|
372
|
+
case 65:
|
|
372
373
|
url += "&" + value + "=" + (isDef(campusCode) ? campusCode : "");
|
|
373
|
-
return _context2.abrupt("break",
|
|
374
|
+
return _context2.abrupt("break", 142);
|
|
374
375
|
|
|
375
|
-
case
|
|
376
|
+
case 67:
|
|
376
377
|
url += "&" + value + "=" + (isDef(cityCode) ? cityCode : "");
|
|
377
|
-
return _context2.abrupt("break",
|
|
378
|
+
return _context2.abrupt("break", 142);
|
|
378
379
|
|
|
379
|
-
case
|
|
380
|
+
case 69:
|
|
380
381
|
url += "&" + value + "=" + (isDef(commBusId) ? commBusId : "") + "&isRecommEnd=false&bType=1";
|
|
381
|
-
return _context2.abrupt("break",
|
|
382
|
+
return _context2.abrupt("break", 142);
|
|
382
383
|
|
|
383
|
-
case
|
|
384
|
+
case 71:
|
|
384
385
|
url += "&" + value + "=" + (isDef(areaCode) ? areaCode : "");
|
|
385
|
-
return _context2.abrupt("break",
|
|
386
|
+
return _context2.abrupt("break", 142);
|
|
386
387
|
|
|
387
|
-
case
|
|
388
|
+
case 73:
|
|
388
389
|
url += "&" + value + "=" + (isDef(areaName) ? areaName : "");
|
|
389
|
-
return _context2.abrupt("break",
|
|
390
|
+
return _context2.abrupt("break", 142);
|
|
390
391
|
|
|
391
|
-
case
|
|
392
|
+
case 75:
|
|
392
393
|
url += "&" + value + "=" + (isDef(contTel) ? contTel : "");
|
|
393
|
-
return _context2.abrupt("break",
|
|
394
|
+
return _context2.abrupt("break", 142);
|
|
394
395
|
|
|
395
|
-
case
|
|
396
|
+
case 77:
|
|
396
397
|
url += "&" + value + "=" + (isDef(customerOrderId) ? customerOrderId : "");
|
|
397
|
-
return _context2.abrupt("break",
|
|
398
|
+
return _context2.abrupt("break", 142);
|
|
398
399
|
|
|
399
|
-
case
|
|
400
|
+
case 79:
|
|
400
401
|
url += "&" + value + "=" + (isDef(menuCode) ? menuCode : "");
|
|
401
|
-
return _context2.abrupt("break",
|
|
402
|
+
return _context2.abrupt("break", 142);
|
|
402
403
|
|
|
403
|
-
case
|
|
404
|
+
case 81:
|
|
404
405
|
url += "&" + value + "=" + (isDef(funcType) ? funcType : "");
|
|
405
|
-
return _context2.abrupt("break",
|
|
406
|
+
return _context2.abrupt("break", 142);
|
|
406
407
|
|
|
407
|
-
case
|
|
408
|
+
case 83:
|
|
408
409
|
url += "&" + value + "=" + (isDef(imei) ? imei : "");
|
|
409
|
-
return _context2.abrupt("break",
|
|
410
|
+
return _context2.abrupt("break", 142);
|
|
410
411
|
|
|
411
|
-
case
|
|
412
|
+
case 85:
|
|
412
413
|
url += "&" + value + "=" + (isDef(kindId) ? kindId : "");
|
|
413
|
-
return _context2.abrupt("break",
|
|
414
|
+
return _context2.abrupt("break", 142);
|
|
414
415
|
|
|
415
|
-
case
|
|
416
|
+
case 87:
|
|
416
417
|
url += "&" + value + "=" + (isDef(latitude) ? latitude : "");
|
|
417
|
-
return _context2.abrupt("break",
|
|
418
|
+
return _context2.abrupt("break", 142);
|
|
418
419
|
|
|
419
|
-
case
|
|
420
|
+
case 89:
|
|
420
421
|
url += "&" + value + "=" + (isDef(longitude) ? longitude : "");
|
|
421
|
-
return _context2.abrupt("break",
|
|
422
|
+
return _context2.abrupt("break", 142);
|
|
422
423
|
|
|
423
|
-
case
|
|
424
|
+
case 91:
|
|
424
425
|
url += "&" + value + "=" + (isDef(marketName) ? marketName : "");
|
|
425
|
-
return _context2.abrupt("break",
|
|
426
|
+
return _context2.abrupt("break", 142);
|
|
426
427
|
|
|
427
|
-
case
|
|
428
|
+
case 93:
|
|
428
429
|
url += "&" + value + "=";
|
|
429
|
-
return _context2.abrupt("break",
|
|
430
|
+
return _context2.abrupt("break", 142);
|
|
430
431
|
|
|
431
|
-
case
|
|
432
|
+
case 95:
|
|
432
433
|
url += "&" + value + "=" + (isDef(opCheck) ? opCheck : "");
|
|
433
|
-
return _context2.abrupt("break",
|
|
434
|
+
return _context2.abrupt("break", 142);
|
|
434
435
|
|
|
435
|
-
case
|
|
436
|
+
case 97:
|
|
436
437
|
url += "&" + value + "=" + (isDef(opId) ? opId : "");
|
|
437
|
-
return _context2.abrupt("break",
|
|
438
|
+
return _context2.abrupt("break", 142);
|
|
438
439
|
|
|
439
|
-
case
|
|
440
|
+
case 99:
|
|
440
441
|
url += "&" + value + "=" + (isDef(sysOpId) ? sysOpId : "");
|
|
441
|
-
return _context2.abrupt("break",
|
|
442
|
+
return _context2.abrupt("break", 142);
|
|
442
443
|
|
|
443
|
-
case
|
|
444
|
+
case 101:
|
|
444
445
|
url += "&" + value + "=" + (isDef(opVerifySerial) ? opVerifySerial : "");
|
|
445
|
-
return _context2.abrupt("break",
|
|
446
|
+
return _context2.abrupt("break", 142);
|
|
446
447
|
|
|
447
|
-
case
|
|
448
|
+
case 103:
|
|
448
449
|
url += "&" + value + "=" + (isDef(orgId) ? orgId : "");
|
|
449
|
-
return _context2.abrupt("break",
|
|
450
|
+
return _context2.abrupt("break", 142);
|
|
450
451
|
|
|
451
|
-
case
|
|
452
|
+
case 105:
|
|
452
453
|
url += "&" + value + "=" + (isDef(orgName) ? orgName : "");
|
|
453
|
-
return _context2.abrupt("break",
|
|
454
|
+
return _context2.abrupt("break", 142);
|
|
454
455
|
|
|
455
|
-
case
|
|
456
|
+
case 107:
|
|
456
457
|
url += "&" + value + "=" + (isDef(powerType) ? powerType : "");
|
|
457
|
-
return _context2.abrupt("break",
|
|
458
|
+
return _context2.abrupt("break", 142);
|
|
458
459
|
|
|
459
|
-
case
|
|
460
|
+
case 109:
|
|
460
461
|
url += "&" + value + "=";
|
|
461
|
-
return _context2.abrupt("break",
|
|
462
|
+
return _context2.abrupt("break", 142);
|
|
462
463
|
|
|
463
|
-
case
|
|
464
|
+
case 111:
|
|
464
465
|
url += "&" + value + "=";
|
|
465
|
-
return _context2.abrupt("break",
|
|
466
|
+
return _context2.abrupt("break", 142);
|
|
466
467
|
|
|
467
|
-
case
|
|
468
|
+
case 113:
|
|
468
469
|
url += "&" + value + "=" + (isDef(school_id) ? school_id : "");
|
|
469
|
-
return _context2.abrupt("break",
|
|
470
|
+
return _context2.abrupt("break", 142);
|
|
470
471
|
|
|
471
|
-
case
|
|
472
|
-
_context2.next =
|
|
472
|
+
case 115:
|
|
473
|
+
_context2.next = 117;
|
|
473
474
|
return getSerialNumNew(menu, sybInfo);
|
|
474
475
|
|
|
475
|
-
case
|
|
476
|
+
case 117:
|
|
476
477
|
serialNum = _context2.sent;
|
|
477
478
|
url += "&" + value + "=" + (isDef(serialNum) ? serialNum : "");
|
|
478
|
-
return _context2.abrupt("break",
|
|
479
|
+
return _context2.abrupt("break", 142);
|
|
479
480
|
|
|
480
|
-
case
|
|
481
|
+
case 120:
|
|
481
482
|
url += "&" + value + "=" + (isDef(sessId) ? sessId : "");
|
|
482
|
-
return _context2.abrupt("break",
|
|
483
|
+
return _context2.abrupt("break", 142);
|
|
483
484
|
|
|
484
|
-
case
|
|
485
|
+
case 122:
|
|
485
486
|
if (isDef(showTab)) {
|
|
486
487
|
url += "&" + value + "=" + showTab;
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
return _context2.abrupt("break",
|
|
490
|
+
return _context2.abrupt("break", 142);
|
|
490
491
|
|
|
491
|
-
case
|
|
492
|
+
case 124:
|
|
492
493
|
url += "&" + value + "=" + (isDef(stall_id) ? stall_id : "");
|
|
493
|
-
return _context2.abrupt("break",
|
|
494
|
+
return _context2.abrupt("break", 142);
|
|
494
495
|
|
|
495
|
-
case
|
|
496
|
+
case 126:
|
|
496
497
|
url += "&" + value + "=" + (isDef(opPhone) ? opPhone : "");
|
|
497
|
-
return _context2.abrupt("break",
|
|
498
|
+
return _context2.abrupt("break", 142);
|
|
498
499
|
|
|
499
|
-
case
|
|
500
|
+
case 128:
|
|
500
501
|
url += "&" + value + "=" + (isDef(ticket) ? ticket : "");
|
|
501
|
-
return _context2.abrupt("break",
|
|
502
|
+
return _context2.abrupt("break", 142);
|
|
502
503
|
|
|
503
|
-
case
|
|
504
|
+
case 130:
|
|
504
505
|
url += "&" + value + "=" + new Date().getTime();
|
|
505
|
-
return _context2.abrupt("break",
|
|
506
|
+
return _context2.abrupt("break", 142);
|
|
506
507
|
|
|
507
|
-
case
|
|
508
|
+
case 132:
|
|
508
509
|
url += "&" + value + "=" + (isDef(loginName) ? loginName : "");
|
|
509
|
-
return _context2.abrupt("break",
|
|
510
|
+
return _context2.abrupt("break", 142);
|
|
510
511
|
|
|
511
|
-
case
|
|
512
|
+
case 134:
|
|
512
513
|
url += "&" + value + "=" + (isDef(userName) ? userName : "");
|
|
513
|
-
return _context2.abrupt("break",
|
|
514
|
+
return _context2.abrupt("break", 142);
|
|
514
515
|
|
|
515
|
-
case
|
|
516
|
+
case 136:
|
|
516
517
|
url += "&" + value + "=" + (isDef(verifySerial) ? verifySerial : "");
|
|
517
|
-
return _context2.abrupt("break",
|
|
518
|
+
return _context2.abrupt("break", 142);
|
|
518
519
|
|
|
519
|
-
case
|
|
520
|
+
case 138:
|
|
520
521
|
url += "&" + value + "=" + (isDef(verifyType) ? verifyType : "");
|
|
521
|
-
return _context2.abrupt("break",
|
|
522
|
+
return _context2.abrupt("break", 142);
|
|
522
523
|
|
|
523
|
-
case
|
|
524
|
+
case 140:
|
|
524
525
|
console.error("Did not match " + value);
|
|
525
|
-
return _context2.abrupt("break",
|
|
526
|
+
return _context2.abrupt("break", 142);
|
|
526
527
|
|
|
527
|
-
case
|
|
528
|
-
_context2.next =
|
|
528
|
+
case 142:
|
|
529
|
+
_context2.next = 42;
|
|
529
530
|
break;
|
|
530
531
|
|
|
531
|
-
case
|
|
532
|
+
case 144:
|
|
532
533
|
_iterator2 = _createForOfIteratorHelperLoose(otherParamsList);
|
|
533
534
|
|
|
534
|
-
case
|
|
535
|
+
case 145:
|
|
535
536
|
if ((_step2 = _iterator2()).done) {
|
|
536
|
-
_context2.next =
|
|
537
|
+
_context2.next = 169;
|
|
537
538
|
break;
|
|
538
539
|
}
|
|
539
540
|
|
|
540
541
|
_value = _step2.value;
|
|
541
542
|
_context2.t1 = _value;
|
|
542
|
-
_context2.next = _context2.t1 === "opId" ?
|
|
543
|
+
_context2.next = _context2.t1 === "opId" ? 150 : _context2.t1 === "opName" ? 152 : _context2.t1 === "phone" ? 154 : _context2.t1 === "orgId" ? 156 : _context2.t1 === "orgName" ? 158 : _context2.t1 === "regionId" ? 160 : _context2.t1 === "countyId" ? 162 : _context2.t1 === "sessionId" ? 164 : 166;
|
|
543
544
|
break;
|
|
544
545
|
|
|
545
|
-
case
|
|
546
|
+
case 150:
|
|
546
547
|
otherParamsObj[_value] = isDef(opId) ? opId : "";
|
|
547
|
-
return _context2.abrupt("break",
|
|
548
|
+
return _context2.abrupt("break", 167);
|
|
548
549
|
|
|
549
|
-
case
|
|
550
|
+
case 152:
|
|
550
551
|
otherParamsObj[_value] = isDef(loginName) ? loginName : "";
|
|
551
|
-
return _context2.abrupt("break",
|
|
552
|
+
return _context2.abrupt("break", 167);
|
|
552
553
|
|
|
553
|
-
case
|
|
554
|
+
case 154:
|
|
554
555
|
otherParamsObj[_value] = isDef(opPhone) ? opPhone : "";
|
|
555
|
-
return _context2.abrupt("break",
|
|
556
|
+
return _context2.abrupt("break", 167);
|
|
556
557
|
|
|
557
|
-
case
|
|
558
|
+
case 156:
|
|
558
559
|
otherParamsObj[_value] = isDef(orgId) ? orgId : "";
|
|
559
|
-
return _context2.abrupt("break",
|
|
560
|
+
return _context2.abrupt("break", 167);
|
|
560
561
|
|
|
561
|
-
case
|
|
562
|
+
case 158:
|
|
562
563
|
otherParamsObj[_value] = isDef(orgName) ? orgName : "";
|
|
563
|
-
return _context2.abrupt("break",
|
|
564
|
+
return _context2.abrupt("break", 167);
|
|
564
565
|
|
|
565
|
-
case
|
|
566
|
+
case 160:
|
|
566
567
|
otherParamsObj[_value] = isDef(cityCode) ? cityCode : "";
|
|
567
|
-
return _context2.abrupt("break",
|
|
568
|
+
return _context2.abrupt("break", 167);
|
|
568
569
|
|
|
569
|
-
case
|
|
570
|
+
case 162:
|
|
570
571
|
otherParamsObj[_value] = isDef(areaCode) ? areaCode : "";
|
|
571
|
-
return _context2.abrupt("break",
|
|
572
|
+
return _context2.abrupt("break", 167);
|
|
572
573
|
|
|
573
|
-
case
|
|
574
|
+
case 164:
|
|
574
575
|
otherParamsObj[_value] = isDef(sessId) ? sessId : "";
|
|
575
|
-
return _context2.abrupt("break",
|
|
576
|
-
|
|
577
|
-
case 165:
|
|
578
|
-
return _context2.abrupt("break", 166);
|
|
576
|
+
return _context2.abrupt("break", 167);
|
|
579
577
|
|
|
580
578
|
case 166:
|
|
581
|
-
_context2.
|
|
579
|
+
return _context2.abrupt("break", 167);
|
|
580
|
+
|
|
581
|
+
case 167:
|
|
582
|
+
_context2.next = 145;
|
|
582
583
|
break;
|
|
583
584
|
|
|
584
|
-
case
|
|
585
|
+
case 169:
|
|
585
586
|
for (key in extraParams) {
|
|
586
587
|
if (url.indexOf("&" + key) < 0) {
|
|
587
588
|
url += "&" + key + "=" + extraParams[key];
|
|
@@ -600,7 +601,7 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
600
601
|
jikeParamsObj: jikeParamsObj
|
|
601
602
|
});
|
|
602
603
|
|
|
603
|
-
case
|
|
604
|
+
case 173:
|
|
604
605
|
case "end":
|
|
605
606
|
return _context2.stop();
|
|
606
607
|
}
|
|
@@ -623,7 +624,7 @@ var spliceUrl = /*#__PURE__*/function () {
|
|
|
623
624
|
|
|
624
625
|
var spliceParams = /*#__PURE__*/function () {
|
|
625
626
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, sybInfo, extraParams) {
|
|
626
|
-
var _data$pageInfo2, pageInfo, sessId, _pageInfo$paramsFixed2, paramsFixed, _pageInfo$params2, params, paramsFixedList, paramsList, paramsObj, _yield$getExpInfo3, uuid, deviceUniqueId, areaCode, loginName, orgName, qryType, loginWay, billId, isBroadbandPhone, verifySerial;
|
|
627
|
+
var _data$pageInfo2, pageInfo, sessId, _pageInfo$paramsFixed2, paramsFixed, _pageInfo$params2, params, paramsFixedList, paramsList, paramsObj, _yield$getExpInfo3, uuid, deviceUniqueId, areaCode, loginName, orgName, qryType, loginWay, billId, isBroadbandPhone, allVerifySerial, verifySerial;
|
|
627
628
|
|
|
628
629
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
629
630
|
while (1) {
|
|
@@ -645,7 +646,8 @@ var spliceParams = /*#__PURE__*/function () {
|
|
|
645
646
|
loginName = _yield$getExpInfo3.loginName;
|
|
646
647
|
orgName = _yield$getExpInfo3.orgName;
|
|
647
648
|
qryType = sybInfo.qryType, loginWay = sybInfo.loginWay, billId = sybInfo.billId, isBroadbandPhone = sybInfo.isBroadbandPhone;
|
|
648
|
-
|
|
649
|
+
allVerifySerial = Session.get("allVerifySerial") || {};
|
|
650
|
+
verifySerial = allVerifySerial[billId] || "";
|
|
649
651
|
paramsFixedList.forEach(function (value) {
|
|
650
652
|
var arr = value.split("=");
|
|
651
653
|
paramsObj[arr[0]] = arr[1];
|
|
@@ -703,7 +705,7 @@ var spliceParams = /*#__PURE__*/function () {
|
|
|
703
705
|
});
|
|
704
706
|
return _context3.abrupt("return", _extends(paramsObj, extraParams));
|
|
705
707
|
|
|
706
|
-
case
|
|
708
|
+
case 19:
|
|
707
709
|
case "end":
|
|
708
710
|
return _context3.stop();
|
|
709
711
|
}
|
|
@@ -829,13 +831,15 @@ var onAuth = function onAuth(menu, sybInfo) {
|
|
|
829
831
|
}
|
|
830
832
|
|
|
831
833
|
if (verifySerial) {
|
|
832
|
-
Session.
|
|
834
|
+
var allVerifySerial = Session.get("allVerifySerial") || {};
|
|
835
|
+
allVerifySerial[sybInfo.billId] = verifySerial;
|
|
836
|
+
Session.set("allVerifySerial", allVerifySerial);
|
|
833
837
|
mcrm.util.setCache({
|
|
834
|
-
cacheKey: "
|
|
838
|
+
cacheKey: "allVerifySerial",
|
|
835
839
|
// 必传
|
|
836
840
|
type: "1",
|
|
837
841
|
cacheValue: {
|
|
838
|
-
text:
|
|
842
|
+
text: allVerifySerial
|
|
839
843
|
} // 必传
|
|
840
844
|
|
|
841
845
|
});
|
|
@@ -1050,7 +1054,7 @@ var openPage = /*#__PURE__*/function () {
|
|
|
1050
1054
|
|
|
1051
1055
|
var verify = /*#__PURE__*/function () {
|
|
1052
1056
|
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(menu, sybInfo) {
|
|
1053
|
-
var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body;
|
|
1057
|
+
var _menu$menuCode2, menuCode, _sybInfo, _sybInfo$billId, billId, allVerifySerial, verifyLogId, opVerifyLogId, opSys, funcId, funcType, _yield$getExpInfo5, _yield$getExpInfo5$ap, appVersion, body;
|
|
1054
1058
|
|
|
1055
1059
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1056
1060
|
while (1) {
|
|
@@ -1062,15 +1066,16 @@ var verify = /*#__PURE__*/function () {
|
|
|
1062
1066
|
|
|
1063
1067
|
_menu$menuCode2 = menu.menuCode, menuCode = _menu$menuCode2 === void 0 ? "" : _menu$menuCode2;
|
|
1064
1068
|
_sybInfo = sybInfo, _sybInfo$billId = _sybInfo.billId, billId = _sybInfo$billId === void 0 ? "" : _sybInfo$billId;
|
|
1065
|
-
|
|
1069
|
+
allVerifySerial = Session.get("allVerifySerial") || {};
|
|
1070
|
+
verifyLogId = allVerifySerial[billId] || "";
|
|
1066
1071
|
opVerifyLogId = Session.get("opVerifySerial") || "";
|
|
1067
1072
|
opSys = CommonUtils.isIos() ? "ios" : "android";
|
|
1068
1073
|
funcId = menuCode;
|
|
1069
1074
|
funcType = "1";
|
|
1070
|
-
_context10.next =
|
|
1075
|
+
_context10.next = 11;
|
|
1071
1076
|
return getExpInfo();
|
|
1072
1077
|
|
|
1073
|
-
case
|
|
1078
|
+
case 11:
|
|
1074
1079
|
_yield$getExpInfo5 = _context10.sent;
|
|
1075
1080
|
_yield$getExpInfo5$ap = _yield$getExpInfo5.appVersion;
|
|
1076
1081
|
appVersion = _yield$getExpInfo5$ap === void 0 ? "" : _yield$getExpInfo5$ap;
|
|
@@ -1128,12 +1133,12 @@ var verify = /*#__PURE__*/function () {
|
|
|
1128
1133
|
isClear = authVerify.isClear, isOpVerify = authVerify.isOpVerify, isVerify = authVerify.isVerify;
|
|
1129
1134
|
|
|
1130
1135
|
if (isClear === "1") {
|
|
1131
|
-
Session.remove("
|
|
1136
|
+
Session.remove("allVerifySerial");
|
|
1132
1137
|
mcrm.util.setCache({
|
|
1133
|
-
cacheKey: "
|
|
1138
|
+
cacheKey: "allVerifySerial",
|
|
1134
1139
|
type: "1",
|
|
1135
1140
|
cacheValue: {
|
|
1136
|
-
text:
|
|
1141
|
+
text: {}
|
|
1137
1142
|
}
|
|
1138
1143
|
});
|
|
1139
1144
|
}
|
|
@@ -1213,7 +1218,7 @@ var verify = /*#__PURE__*/function () {
|
|
|
1213
1218
|
});
|
|
1214
1219
|
}));
|
|
1215
1220
|
|
|
1216
|
-
case
|
|
1221
|
+
case 16:
|
|
1217
1222
|
case "end":
|
|
1218
1223
|
return _context10.stop();
|
|
1219
1224
|
}
|