dolphin-weex-bc 0.0.50 → 0.0.52
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/CHANGELOG.md +8 -1
- package/dist/index.native.js +88 -55
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +90 -57
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/material-event/index.js +24 -10
package/CHANGELOG.md
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -3393,7 +3393,7 @@ var MaterialEvent = {
|
|
|
3393
3393
|
var _this13 = this;
|
|
3394
3394
|
|
|
3395
3395
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
3396
|
-
var applianceCodeArr, deviceForApplianceCode, groupNum, index,
|
|
3396
|
+
var applianceCodeArr, deviceForApplianceCode, groupNum, tasks, index, resList;
|
|
3397
3397
|
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
3398
3398
|
while (1) {
|
|
3399
3399
|
switch (_context11.prev = _context11.next) {
|
|
@@ -3406,68 +3406,52 @@ var MaterialEvent = {
|
|
|
3406
3406
|
deviceForApplianceCode = [];
|
|
3407
3407
|
|
|
3408
3408
|
if (!(applianceCodeArr && applianceCodeArr.length > 20)) {
|
|
3409
|
-
_context11.next =
|
|
3409
|
+
_context11.next = 13;
|
|
3410
3410
|
break;
|
|
3411
3411
|
}
|
|
3412
3412
|
|
|
3413
3413
|
groupNum = Math.ceil(applianceCodeArr.length / 20);
|
|
3414
|
-
|
|
3414
|
+
tasks = [];
|
|
3415
3415
|
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
_context11.next = 20;
|
|
3419
|
-
break;
|
|
3416
|
+
for (index = 0; index < groupNum; index++) {
|
|
3417
|
+
tasks.push(_this13.getDeviceListFromApplianceCode(applianceCodeArr.slice(index * 20, (index + 1) * 20)));
|
|
3420
3418
|
}
|
|
3419
|
+
_context11.next = 9;
|
|
3420
|
+
return Promise.all(tasks);
|
|
3421
3421
|
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
return _this13.getDeviceListFromApplianceCode(applianceCodeArr.slice(index * 20, (index + 1) * 20));
|
|
3425
|
-
|
|
3426
|
-
case 10:
|
|
3427
|
-
resDeviceList = _context11.sent;
|
|
3428
|
-
|
|
3429
|
-
deviceForApplianceCode = deviceForApplianceCode.concat(resDeviceList);
|
|
3430
|
-
_context11.next = 17;
|
|
3431
|
-
break;
|
|
3432
|
-
|
|
3433
|
-
case 14:
|
|
3434
|
-
_context11.prev = 14;
|
|
3435
|
-
_context11.t0 = _context11['catch'](7);
|
|
3436
|
-
throw _context11.t0;
|
|
3437
|
-
|
|
3438
|
-
case 17:
|
|
3439
|
-
index++;
|
|
3440
|
-
_context11.next = 6;
|
|
3441
|
-
break;
|
|
3422
|
+
case 9:
|
|
3423
|
+
resList = _context11.sent;
|
|
3442
3424
|
|
|
3443
|
-
|
|
3444
|
-
|
|
3425
|
+
resList.forEach(function (res) {
|
|
3426
|
+
deviceForApplianceCode = deviceForApplianceCode.concat(res);
|
|
3427
|
+
});
|
|
3428
|
+
_context11.next = 22;
|
|
3445
3429
|
break;
|
|
3446
3430
|
|
|
3447
|
-
case
|
|
3448
|
-
_context11.prev =
|
|
3449
|
-
_context11.next =
|
|
3431
|
+
case 13:
|
|
3432
|
+
_context11.prev = 13;
|
|
3433
|
+
_context11.next = 16;
|
|
3450
3434
|
return _this13.getDeviceListFromApplianceCode(applianceCodeArr);
|
|
3451
3435
|
|
|
3452
|
-
case
|
|
3436
|
+
case 16:
|
|
3453
3437
|
deviceForApplianceCode = _context11.sent;
|
|
3454
|
-
_context11.next =
|
|
3438
|
+
_context11.next = 22;
|
|
3455
3439
|
break;
|
|
3456
3440
|
|
|
3457
|
-
case
|
|
3458
|
-
_context11.prev =
|
|
3459
|
-
_context11.
|
|
3460
|
-
throw _context11.
|
|
3441
|
+
case 19:
|
|
3442
|
+
_context11.prev = 19;
|
|
3443
|
+
_context11.t0 = _context11['catch'](13);
|
|
3444
|
+
throw _context11.t0;
|
|
3461
3445
|
|
|
3462
|
-
case
|
|
3446
|
+
case 22:
|
|
3463
3447
|
return _context11.abrupt('return', deviceForApplianceCode);
|
|
3464
3448
|
|
|
3465
|
-
case
|
|
3449
|
+
case 23:
|
|
3466
3450
|
case 'end':
|
|
3467
3451
|
return _context11.stop();
|
|
3468
3452
|
}
|
|
3469
3453
|
}
|
|
3470
|
-
}, _callee11, _this13, [[
|
|
3454
|
+
}, _callee11, _this13, [[13, 19]]);
|
|
3471
3455
|
}))();
|
|
3472
3456
|
},
|
|
3473
3457
|
getDeviceListFromApplianceCode: function getDeviceListFromApplianceCode(applianceCodeArr) {
|
|
@@ -3612,7 +3596,7 @@ var MaterialEvent = {
|
|
|
3612
3596
|
var _this16 = this;
|
|
3613
3597
|
|
|
3614
3598
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
3615
|
-
var codeList, skuinfolist, groupNum, index, resSuccessMap, _resSuccessMap, tmpskuIdlist, params, allGoodInfo;
|
|
3599
|
+
var codeList, skuinfolist, groupNum, index, resSuccessMap, _resSuccessMap, tmpskuIdlist, params, allGoodInfo, paramsNum, _index, _allGoodInfo, resAllGoodInfo;
|
|
3616
3600
|
|
|
3617
3601
|
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
3618
3602
|
while (1) {
|
|
@@ -3704,43 +3688,91 @@ var MaterialEvent = {
|
|
|
3704
3688
|
_context14.prev = 39;
|
|
3705
3689
|
|
|
3706
3690
|
if (!(params.length > 0)) {
|
|
3707
|
-
_context14.next =
|
|
3691
|
+
_context14.next = 69;
|
|
3692
|
+
break;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
if (!(params && params.length > 40)) {
|
|
3696
|
+
_context14.next = 60;
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
paramsNum = Math.ceil(params.length / 40);
|
|
3701
|
+
_index = 0;
|
|
3702
|
+
|
|
3703
|
+
case 44:
|
|
3704
|
+
if (!(_index < paramsNum)) {
|
|
3705
|
+
_context14.next = 58;
|
|
3708
3706
|
break;
|
|
3709
3707
|
}
|
|
3710
3708
|
|
|
3711
|
-
_context14.
|
|
3709
|
+
_context14.prev = 45;
|
|
3710
|
+
_context14.next = 48;
|
|
3711
|
+
return _this16.handleSkuDetailListInfo(params.slice(_index * 40, (_index + 1) * 40));
|
|
3712
|
+
|
|
3713
|
+
case 48:
|
|
3714
|
+
resAllGoodInfo = _context14.sent;
|
|
3715
|
+
|
|
3716
|
+
(_allGoodInfo = allGoodInfo).push.apply(_allGoodInfo, _toConsumableArray(resAllGoodInfo));
|
|
3717
|
+
_context14.next = 55;
|
|
3718
|
+
break;
|
|
3719
|
+
|
|
3720
|
+
case 52:
|
|
3721
|
+
_context14.prev = 52;
|
|
3722
|
+
_context14.t2 = _context14['catch'](45);
|
|
3723
|
+
return _context14.abrupt('continue', 55);
|
|
3724
|
+
|
|
3725
|
+
case 55:
|
|
3726
|
+
_index++;
|
|
3727
|
+
_context14.next = 44;
|
|
3728
|
+
break;
|
|
3729
|
+
|
|
3730
|
+
case 58:
|
|
3731
|
+
_context14.next = 68;
|
|
3732
|
+
break;
|
|
3733
|
+
|
|
3734
|
+
case 60:
|
|
3735
|
+
_context14.prev = 60;
|
|
3736
|
+
_context14.next = 63;
|
|
3712
3737
|
return _this16.handleSkuDetailListInfo(params);
|
|
3713
3738
|
|
|
3714
|
-
case
|
|
3739
|
+
case 63:
|
|
3715
3740
|
allGoodInfo = _context14.sent;
|
|
3741
|
+
_context14.next = 68;
|
|
3742
|
+
break;
|
|
3743
|
+
|
|
3744
|
+
case 66:
|
|
3745
|
+
_context14.prev = 66;
|
|
3746
|
+
_context14.t3 = _context14['catch'](60);
|
|
3716
3747
|
|
|
3748
|
+
case 68:
|
|
3717
3749
|
console.log('获取到的全部商品信息1:' + JSON.stringify(allGoodInfo));
|
|
3718
3750
|
|
|
3719
|
-
case
|
|
3720
|
-
_context14.next =
|
|
3751
|
+
case 69:
|
|
3752
|
+
_context14.next = 73;
|
|
3721
3753
|
break;
|
|
3722
3754
|
|
|
3723
|
-
case
|
|
3724
|
-
_context14.prev =
|
|
3725
|
-
_context14.
|
|
3755
|
+
case 71:
|
|
3756
|
+
_context14.prev = 71;
|
|
3757
|
+
_context14.t4 = _context14['catch'](39);
|
|
3726
3758
|
|
|
3727
|
-
case
|
|
3759
|
+
case 73:
|
|
3728
3760
|
if (!(allGoodInfo.length > 0)) {
|
|
3729
|
-
_context14.next =
|
|
3761
|
+
_context14.next = 77;
|
|
3730
3762
|
break;
|
|
3731
3763
|
}
|
|
3732
3764
|
|
|
3733
3765
|
return _context14.abrupt('return', _this16.setMaterialGoodInfo(allGoodInfo));
|
|
3734
3766
|
|
|
3735
|
-
case
|
|
3767
|
+
case 77:
|
|
3736
3768
|
return _context14.abrupt('return', _this16.handleMaterialSeviceType());
|
|
3737
3769
|
|
|
3738
|
-
case
|
|
3770
|
+
case 78:
|
|
3739
3771
|
case 'end':
|
|
3740
3772
|
return _context14.stop();
|
|
3741
3773
|
}
|
|
3742
3774
|
}
|
|
3743
|
-
}, _callee14, _this16, [[9, 16], [24, 31], [39,
|
|
3775
|
+
}, _callee14, _this16, [[9, 16], [24, 31], [39, 71], [45, 52], [60, 66]]);
|
|
3744
3776
|
}))();
|
|
3745
3777
|
},
|
|
3746
3778
|
|
|
@@ -3970,6 +4002,7 @@ var MaterialEvent = {
|
|
|
3970
4002
|
_context20.next = 7;
|
|
3971
4003
|
return _this20.sendMideaCloundSaleRequest(serviceList.queryBySkuIdList, {
|
|
3972
4004
|
headParams: {
|
|
4005
|
+
originSystem: "WXApp-meiju",
|
|
3973
4006
|
userKey: ucAccessToken
|
|
3974
4007
|
},
|
|
3975
4008
|
restParams: {
|