@extscreen/es-core 2.2.46 → 2.2.49
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/dist/index.js +121 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -200,7 +200,7 @@ var ESDeviceModule$1 = new ESDeviceModule();
|
|
200
200
|
*
|
201
201
|
*/
|
202
202
|
|
203
|
-
const TAG$
|
203
|
+
const TAG$9 = 'ESDeviceManager';
|
204
204
|
|
205
205
|
class ESDeviceManager {
|
206
206
|
|
@@ -259,7 +259,7 @@ class ESDeviceManager {
|
|
259
259
|
ESDeviceModule$1.getDevice().then(
|
260
260
|
(device) => {
|
261
261
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
262
|
-
ESLog.d(TAG$
|
262
|
+
ESLog.d(TAG$9, '#----------init---------->>>>>' + JSON.stringify(device));
|
263
263
|
}
|
264
264
|
this._device = device;
|
265
265
|
|
@@ -312,7 +312,7 @@ class ESDeviceManager {
|
|
312
312
|
}
|
313
313
|
} catch (e) {
|
314
314
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
315
|
-
ESLog.d(TAG$
|
315
|
+
ESLog.d(TAG$9, '#----------init---解析--error----->>>>>' + e);
|
316
316
|
}
|
317
317
|
}
|
318
318
|
resolve(device);
|
@@ -320,7 +320,7 @@ class ESDeviceManager {
|
|
320
320
|
//
|
321
321
|
error => {
|
322
322
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
323
|
-
ESLog.d(TAG$
|
323
|
+
ESLog.d(TAG$9, '#----------init-----error----->>>>>' + error);
|
324
324
|
}
|
325
325
|
resolve(error);
|
326
326
|
}
|
@@ -822,7 +822,7 @@ var ESAudioModule$1 = new ESAudioModule();
|
|
822
822
|
*
|
823
823
|
*/
|
824
824
|
|
825
|
-
const TAG$
|
825
|
+
const TAG$8 = 'ESAudioManager';
|
826
826
|
|
827
827
|
class ESAudioManager {
|
828
828
|
|
@@ -848,7 +848,7 @@ class ESAudioManager {
|
|
848
848
|
initPromise() {
|
849
849
|
return new Promise((resolve, reject) => {
|
850
850
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
851
|
-
ESLog.d(TAG$
|
851
|
+
ESLog.d(TAG$8, '------------init----start----->>>>');
|
852
852
|
}
|
853
853
|
this.getStreamSystemMaxVolume();
|
854
854
|
this.getStreamSystemVolume();
|
@@ -863,7 +863,7 @@ class ESAudioManager {
|
|
863
863
|
ESAudioModule$1.getStreamVoiceCallMaxVolume()
|
864
864
|
.then((volume) => {
|
865
865
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
866
|
-
ESLog.d(TAG$
|
866
|
+
ESLog.d(TAG$8, '-----getStreamVoiceCallMaxVolume--->>>>' + volume);
|
867
867
|
}
|
868
868
|
this._voiceCallMaxVolume = volume;
|
869
869
|
});
|
@@ -877,7 +877,7 @@ class ESAudioManager {
|
|
877
877
|
ESAudioModule$1.getStreamVoiceCallVolume()
|
878
878
|
.then((volume) => {
|
879
879
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
880
|
-
ESLog.d(TAG$
|
880
|
+
ESLog.d(TAG$8, '-----getStreamVoiceCallVolume--->>>>' + volume);
|
881
881
|
}
|
882
882
|
this._voiceCallVolume = volume;
|
883
883
|
});
|
@@ -892,7 +892,7 @@ class ESAudioManager {
|
|
892
892
|
ESAudioModule$1.getStreamSystemMaxVolume()
|
893
893
|
.then((volume) => {
|
894
894
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
895
|
-
ESLog.d(TAG$
|
895
|
+
ESLog.d(TAG$8, '-----getStreamSystemMaxVolume--->>>>' + volume);
|
896
896
|
}
|
897
897
|
this._systemMaxVolume = volume;
|
898
898
|
});
|
@@ -906,7 +906,7 @@ class ESAudioManager {
|
|
906
906
|
ESAudioModule$1.getStreamSystemVolume()
|
907
907
|
.then((volume) => {
|
908
908
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
909
|
-
ESLog.d(TAG$
|
909
|
+
ESLog.d(TAG$8, '-----getStreamSystemVolume--->>>>' + volume);
|
910
910
|
}
|
911
911
|
this._systemVolume = volume;
|
912
912
|
});
|
@@ -921,7 +921,7 @@ class ESAudioManager {
|
|
921
921
|
ESAudioModule$1.getStreamRingMaxVolume()
|
922
922
|
.then((volume) => {
|
923
923
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
924
|
-
ESLog.d(TAG$
|
924
|
+
ESLog.d(TAG$8, '-----getStreamRingMaxVolume--->>>>' + volume);
|
925
925
|
}
|
926
926
|
this._ringMaxVolume = volume;
|
927
927
|
});
|
@@ -935,7 +935,7 @@ class ESAudioManager {
|
|
935
935
|
ESAudioModule$1.getStreamRingVolume()
|
936
936
|
.then((volume) => {
|
937
937
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
938
|
-
ESLog.d(TAG$
|
938
|
+
ESLog.d(TAG$8, '-----getStreamRingVolume--->>>>' + volume);
|
939
939
|
}
|
940
940
|
this._ringVolume = volume;
|
941
941
|
});
|
@@ -950,7 +950,7 @@ class ESAudioManager {
|
|
950
950
|
ESAudioModule$1.getStreamMusicMaxVolume()
|
951
951
|
.then((volume) => {
|
952
952
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
953
|
-
ESLog.d(TAG$
|
953
|
+
ESLog.d(TAG$8, '-----getStreamMusicMaxVolume--->>>>' + volume);
|
954
954
|
}
|
955
955
|
this._musicMaxVolume = volume;
|
956
956
|
});
|
@@ -964,7 +964,7 @@ class ESAudioManager {
|
|
964
964
|
ESAudioModule$1.getStreamMusicVolume()
|
965
965
|
.then((volume) => {
|
966
966
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
967
|
-
ESLog.d(TAG$
|
967
|
+
ESLog.d(TAG$8, '-----getStreamMusicVolume--->>>>' + volume);
|
968
968
|
}
|
969
969
|
this._musicVolume = volume;
|
970
970
|
});
|
@@ -979,7 +979,7 @@ class ESAudioManager {
|
|
979
979
|
ESAudioModule$1.getStreamAlarmMaxVolume()
|
980
980
|
.then((volume) => {
|
981
981
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
982
|
-
ESLog.d(TAG$
|
982
|
+
ESLog.d(TAG$8, '-----getStreamAlarmMaxVolume--->>>>' + volume);
|
983
983
|
}
|
984
984
|
this._alarmMaxVolume = volume;
|
985
985
|
});
|
@@ -993,7 +993,7 @@ class ESAudioManager {
|
|
993
993
|
ESAudioModule$1.getStreamAlarmVolume()
|
994
994
|
.then((volume) => {
|
995
995
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
996
|
-
ESLog.d(TAG$
|
996
|
+
ESLog.d(TAG$8, '-----getStreamAlarmVolume--->>>>' + volume);
|
997
997
|
}
|
998
998
|
this._alarmVolume = volume;
|
999
999
|
});
|
@@ -1008,7 +1008,7 @@ class ESAudioManager {
|
|
1008
1008
|
ESAudioModule$1.getStreamMaxVolume(streamType)
|
1009
1009
|
.then((volume) => {
|
1010
1010
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1011
|
-
ESLog.d(TAG$
|
1011
|
+
ESLog.d(TAG$8, streamType + '-----getStreamMaxVolume--->>>>' + volume);
|
1012
1012
|
}
|
1013
1013
|
});
|
1014
1014
|
}
|
@@ -1017,7 +1017,7 @@ class ESAudioManager {
|
|
1017
1017
|
ESAudioModule$1.getStreamVolume(streamType)
|
1018
1018
|
.then((volume) => {
|
1019
1019
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1020
|
-
ESLog.d(TAG$
|
1020
|
+
ESLog.d(TAG$8, streamType + '-----getStreamVolume--->>>>' + volume);
|
1021
1021
|
}
|
1022
1022
|
});
|
1023
1023
|
}
|
@@ -2590,6 +2590,8 @@ var ESBroadcastModule$1 = new ESBroadcastModule();
|
|
2590
2590
|
|
2591
2591
|
class ESBroadcastManager {
|
2592
2592
|
|
2593
|
+
__broadcastReceiverSet = new Map();
|
2594
|
+
|
2593
2595
|
init() {
|
2594
2596
|
return Promise.resolve();
|
2595
2597
|
}
|
@@ -2599,20 +2601,45 @@ class ESBroadcastManager {
|
|
2599
2601
|
}
|
2600
2602
|
|
2601
2603
|
registerReceiver(receiver, paramsArray) {
|
2602
|
-
|
2603
|
-
|
2604
|
+
let has = this.__broadcastReceiverSet.has(paramsArray);
|
2605
|
+
if (has) {
|
2606
|
+
return Promise.resolve();
|
2604
2607
|
}
|
2605
|
-
return ESBroadcastModule$1.registerReceiver(paramsArray)
|
2608
|
+
return ESBroadcastModule$1.registerReceiver(paramsArray)
|
2609
|
+
.then((receiverId) => {
|
2610
|
+
if (receiverId >= 0) {
|
2611
|
+
if (receiver && receiver.__registerReceiver) {
|
2612
|
+
receiver.__registerReceiver(paramsArray, receiverId);
|
2613
|
+
}
|
2614
|
+
this.__broadcastReceiverSet.set(paramsArray, receiverId);
|
2615
|
+
return Promise.resolve();
|
2616
|
+
}
|
2617
|
+
return Promise.reject();
|
2618
|
+
});
|
2606
2619
|
}
|
2607
2620
|
|
2608
|
-
unregisterReceiver(
|
2609
|
-
|
2621
|
+
unregisterReceiver(receiver, paramsArray) {
|
2622
|
+
let receiverId = this.__broadcastReceiverSet.get(paramsArray);
|
2623
|
+
if (receiverId < 0) {
|
2624
|
+
return Promise.reject();
|
2625
|
+
}
|
2626
|
+
return ESBroadcastModule$1.unregisterReceiver(receiverId)
|
2627
|
+
.then((receiverId) => {
|
2628
|
+
if (receiverId >= 0) {
|
2629
|
+
if (receiver && receiver.__unregisterReceiver) {
|
2630
|
+
receiver.__unregisterReceiver(paramsArray);
|
2631
|
+
}
|
2632
|
+
this.__broadcastReceiverSet.delete(paramsArray);
|
2633
|
+
return Promise.resolve();
|
2634
|
+
}
|
2635
|
+
return Promise.reject();
|
2636
|
+
});
|
2610
2637
|
}
|
2611
2638
|
}
|
2612
2639
|
|
2613
2640
|
var ESBroadcastManager$1 = new ESBroadcastManager();
|
2614
2641
|
|
2615
|
-
const TAG$
|
2642
|
+
const TAG$7 = "ESBroadcast";
|
2616
2643
|
|
2617
2644
|
var ESBroadcast = {
|
2618
2645
|
mounted() {
|
@@ -2620,36 +2647,63 @@ var ESBroadcast = {
|
|
2620
2647
|
},
|
2621
2648
|
data() {
|
2622
2649
|
return {
|
2623
|
-
|
2650
|
+
broadcastReceiverSet: new Map()
|
2624
2651
|
}
|
2625
2652
|
},
|
2626
2653
|
beforeDestroy() {
|
2627
2654
|
ESApp.$off('onESBroadcastReceive', this.__onBroadcastReceive);
|
2628
2655
|
},
|
2629
2656
|
methods: {
|
2657
|
+
__registerReceiver(paramsArray, receiverId) {
|
2658
|
+
this.broadcastReceiverSet.set(paramsArray, receiverId);
|
2659
|
+
this.__traceBroadcastReceiverList();
|
2660
|
+
},
|
2661
|
+
__unregisterReceiver(paramsArray) {
|
2662
|
+
this.broadcastReceiverSet.delete(paramsArray);
|
2663
|
+
this.__traceBroadcastReceiverList();
|
2664
|
+
},
|
2665
|
+
__traceBroadcastReceiverList() {
|
2666
|
+
if (this.broadcastReceiverSet) {
|
2667
|
+
this.broadcastReceiverSet.forEach(function (value, key) {
|
2668
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2669
|
+
ESLog.d(TAG$7, key + '#-------TraceAction--->>>>>' + value);
|
2670
|
+
}
|
2671
|
+
});
|
2672
|
+
}
|
2673
|
+
},
|
2630
2674
|
__onBroadcastReceive(intent) {
|
2631
2675
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2632
|
-
ESLog.d(TAG$
|
2676
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive----->>>>>' + JSON.stringify(intent));
|
2633
2677
|
}
|
2634
|
-
if (!this.
|
2635
|
-
|| this.broadcastReceiverActionArray.length <= 0) {
|
2678
|
+
if (!this.broadcastReceiverSet || this.broadcastReceiverSet.size <= 0) {
|
2636
2679
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2637
|
-
ESLog.d(TAG$
|
2680
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet为空-->>>>>');
|
2638
2681
|
}
|
2639
2682
|
return;
|
2640
2683
|
}
|
2641
|
-
|
2684
|
+
//
|
2685
|
+
else {
|
2686
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2687
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---broadcastReceiverSet不为空-->>>>>');
|
2688
|
+
}
|
2689
|
+
}
|
2642
2690
|
let action = intent.action;
|
2643
2691
|
let enable = false;
|
2644
|
-
|
2645
|
-
|
2646
|
-
if (
|
2647
|
-
|
2692
|
+
|
2693
|
+
this.broadcastReceiverSet.forEach(function (value, key) {
|
2694
|
+
if (key && key.length > 0) {
|
2695
|
+
for (let i = 0; i < key.length; i++) {
|
2696
|
+
let ba = key[i];
|
2697
|
+
if (ba === action) {
|
2698
|
+
enable = true;
|
2699
|
+
}
|
2700
|
+
}
|
2648
2701
|
}
|
2649
|
-
}
|
2702
|
+
});
|
2703
|
+
|
2650
2704
|
if (!enable) {
|
2651
2705
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2652
|
-
ESLog.d(TAG$
|
2706
|
+
ESLog.d(TAG$7, '#-------onBroadcastReceive---disable-->>>>>');
|
2653
2707
|
}
|
2654
2708
|
return;
|
2655
2709
|
}
|
@@ -2662,7 +2716,7 @@ var ESBroadcast = {
|
|
2662
2716
|
},
|
2663
2717
|
};
|
2664
2718
|
|
2665
|
-
const TAG$
|
2719
|
+
const TAG$6 = "ESRouter";
|
2666
2720
|
|
2667
2721
|
/**
|
2668
2722
|
* router按键管理
|
@@ -2692,12 +2746,12 @@ class ESRouterKeyManager {
|
|
2692
2746
|
if (keyEvent && keyEvent.action === 0) {
|
2693
2747
|
if (this.isFunction(componentInstance.onKeyDown)) {
|
2694
2748
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2695
|
-
ESLog.d(TAG$
|
2749
|
+
ESLog.d(TAG$6, '#-------onKeyDown---success------>>>>>');
|
2696
2750
|
}
|
2697
2751
|
componentInstance.onKeyDown(keyEvent);
|
2698
2752
|
} else {
|
2699
2753
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2700
|
-
ESLog.d(TAG$
|
2754
|
+
ESLog.d(TAG$6, '#-------onKeyDown---error------>>>>>');
|
2701
2755
|
}
|
2702
2756
|
}
|
2703
2757
|
}
|
@@ -2705,19 +2759,19 @@ class ESRouterKeyManager {
|
|
2705
2759
|
else if (keyEvent && keyEvent.action === 1) {
|
2706
2760
|
if (this.isFunction(componentInstance.onKeyUp)) {
|
2707
2761
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2708
|
-
ESLog.d(TAG$
|
2762
|
+
ESLog.d(TAG$6, '#-------onKeyUp---success------>>>>>');
|
2709
2763
|
}
|
2710
2764
|
componentInstance.onKeyUp(keyEvent);
|
2711
2765
|
} else {
|
2712
2766
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2713
|
-
ESLog.d(TAG$
|
2767
|
+
ESLog.d(TAG$6, '#-------onKeyUp---error------>>>>>');
|
2714
2768
|
}
|
2715
2769
|
}
|
2716
2770
|
}
|
2717
2771
|
}
|
2718
2772
|
} else {
|
2719
2773
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2720
|
-
ESLog.d(TAG$
|
2774
|
+
ESLog.d(TAG$6, '#-------dispatchInstanceKeyEvent-----实例对象为空------>>>>>');
|
2721
2775
|
}
|
2722
2776
|
}
|
2723
2777
|
}
|
@@ -2732,17 +2786,17 @@ class ESRouterKeyManager {
|
|
2732
2786
|
if (componentInstance) {
|
2733
2787
|
if (this.isFunction(componentInstance.onBackPressed)) {
|
2734
2788
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2735
|
-
ESLog.d(TAG$
|
2789
|
+
ESLog.d(TAG$6, '#-------onBackPressed---success------>>>>>');
|
2736
2790
|
}
|
2737
2791
|
componentInstance.onBackPressed();
|
2738
2792
|
} else {
|
2739
2793
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2740
|
-
ESLog.d(TAG$
|
2794
|
+
ESLog.d(TAG$6, '#-------onBackPressed---error------>>>>>');
|
2741
2795
|
}
|
2742
2796
|
}
|
2743
2797
|
} else {
|
2744
2798
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2745
|
-
ESLog.d(TAG$
|
2799
|
+
ESLog.d(TAG$6, '#-------dispatchInstanceBackPressed-----实例对象为空------>>>>>');
|
2746
2800
|
}
|
2747
2801
|
}
|
2748
2802
|
}
|
@@ -2767,7 +2821,7 @@ const ES_LIFECYCLE_ON_STOP = 7;
|
|
2767
2821
|
const ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE = 8;
|
2768
2822
|
const ES_LIFECYCLE_ON_DESTROY = 9;
|
2769
2823
|
|
2770
|
-
const TAG$
|
2824
|
+
const TAG$5 = "ESRouter";
|
2771
2825
|
|
2772
2826
|
/**
|
2773
2827
|
* router生命周期管理
|
@@ -2845,7 +2899,7 @@ class ESRouterLifecycleManager {
|
|
2845
2899
|
}
|
2846
2900
|
} else {
|
2847
2901
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2848
|
-
ESLog.d(TAG$
|
2902
|
+
ESLog.d(TAG$5, '#-------onESRouterLifecycleChanged-----实例对象为空------>>>>>');
|
2849
2903
|
}
|
2850
2904
|
}
|
2851
2905
|
}
|
@@ -2862,7 +2916,7 @@ class ESRouterLifecycleManager {
|
|
2862
2916
|
componentInstance.onESNewIntent(params);
|
2863
2917
|
} else {
|
2864
2918
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2865
|
-
ESLog.d(TAG$
|
2919
|
+
ESLog.d(TAG$5, '#-------onESRouterLifecycleNewIntent-----实例对象为空------>>>>>');
|
2866
2920
|
}
|
2867
2921
|
}
|
2868
2922
|
}
|
@@ -2874,7 +2928,7 @@ class ESRouterLifecycleManager {
|
|
2874
2928
|
|
2875
2929
|
var ESRouterLifecycleManager$1 = new ESRouterLifecycleManager();
|
2876
2930
|
|
2877
|
-
const TAG$
|
2931
|
+
const TAG$4 = "ESRouter";
|
2878
2932
|
|
2879
2933
|
var ESRouter = {
|
2880
2934
|
|
@@ -2896,7 +2950,7 @@ var ESRouter = {
|
|
2896
2950
|
//---------------------------返回键--------------------------------
|
2897
2951
|
onESRouterBackPressed() {
|
2898
2952
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2899
|
-
ESLog.d(TAG$
|
2953
|
+
ESLog.d(TAG$4, '#-------onESRouterBackPressed----->>>>>');
|
2900
2954
|
}
|
2901
2955
|
let router = this.$router;
|
2902
2956
|
if (router) {
|
@@ -2907,7 +2961,7 @@ var ESRouter = {
|
|
2907
2961
|
//----------------------------按键-------------------------------
|
2908
2962
|
onESRouterDispatchKeyEvent(keyEvent) {
|
2909
2963
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2910
|
-
ESLog.d(TAG$
|
2964
|
+
ESLog.d(TAG$4, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
|
2911
2965
|
}
|
2912
2966
|
let router = this.$router;
|
2913
2967
|
if (router) {
|
@@ -2919,7 +2973,7 @@ var ESRouter = {
|
|
2919
2973
|
//---------------------------生命周期--------------------------------
|
2920
2974
|
onESRouterLifecycleChanged(event) {
|
2921
2975
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2922
|
-
ESLog.d(TAG$
|
2976
|
+
ESLog.d(TAG$4, '#-------onESRouterLifecycleChanged----->>>>>' + event);
|
2923
2977
|
}
|
2924
2978
|
let router = this.$router;
|
2925
2979
|
if (router) {
|
@@ -2931,7 +2985,7 @@ var ESRouter = {
|
|
2931
2985
|
//---------------------------onNewIntent--------------------------------
|
2932
2986
|
onESRouterLifecycleNewIntent(intent) {
|
2933
2987
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2934
|
-
ESLog.d(TAG$
|
2988
|
+
ESLog.d(TAG$4, '#-------onESRouterLifecycleNewIntent----->>>>>' + intent);
|
2935
2989
|
}
|
2936
2990
|
let router = this.$router;
|
2937
2991
|
if (router) {
|
@@ -3135,7 +3189,6 @@ var ESPage = {
|
|
3135
3189
|
onESRestoreInstanceState(savedInstanceState) {
|
3136
3190
|
|
3137
3191
|
},
|
3138
|
-
|
3139
3192
|
//--------------------------------------------
|
3140
3193
|
startNativePage(intent) {
|
3141
3194
|
ESLaunchManager$1.launchNativePage(intent);
|
@@ -3149,6 +3202,7 @@ var ESPage = {
|
|
3149
3202
|
startAfterFinishESPage(intent) {
|
3150
3203
|
ESLaunchManager$1.startAfterFinishESPage(intent);
|
3151
3204
|
},
|
3205
|
+
//--------------------------------------------
|
3152
3206
|
},
|
3153
3207
|
};
|
3154
3208
|
|
@@ -3288,13 +3342,24 @@ class ES {
|
|
3288
3342
|
|
3289
3343
|
var ES$1 = new ES();
|
3290
3344
|
|
3345
|
+
const TAG$3 = "ESPlugin";
|
3346
|
+
|
3291
3347
|
var ESPlugin = {
|
3292
3348
|
mounted() {
|
3293
|
-
|
3349
|
+
this.onESEventPlugin();
|
3294
3350
|
},
|
3295
3351
|
|
3296
3352
|
methods: {
|
3353
|
+
onESEventPlugin() {
|
3354
|
+
ESApp.$on('onESPluginStateChanged', this.onESPluginStateChanged);
|
3355
|
+
},
|
3356
|
+
offESEventPlugin() {
|
3357
|
+
ESApp.$off('onESPluginStateChanged', this.onESPluginStateChanged);
|
3358
|
+
},
|
3297
3359
|
onESPluginStateChanged(status) {
|
3360
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3361
|
+
ESLog.d(TAG$3, "--------onESPluginStateChanged------>>>>>" + JSON.stringify(status));
|
3362
|
+
}
|
3298
3363
|
if (status.success) {
|
3299
3364
|
if (status.status === 1002) {
|
3300
3365
|
this.onESPluginInstallProgress(status.pkg, status.status, status.current, status.total);
|
@@ -3316,7 +3381,7 @@ var ESPlugin = {
|
|
3316
3381
|
},
|
3317
3382
|
|
3318
3383
|
beforeDestroy() {
|
3319
|
-
|
3384
|
+
this.offESEventPlugin();
|
3320
3385
|
},
|
3321
3386
|
};
|
3322
3387
|
|