@conecli/cone-render 0.10.1-shop3.21 → 0.10.1-shop3.22
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/README.md +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare namespace JumpEventReportInterFace {
|
|
2
1
|
export interface ShopIdsInfo {
|
|
3
2
|
shopId?: number | string;
|
|
4
3
|
venderId?: number | string;
|
|
5
4
|
logEventInfo?: object;
|
|
6
5
|
type?: string;
|
|
7
6
|
}
|
|
8
7
|
export interface RouterInfo {
|
|
9
8
|
params: any;
|
|
10
9
|
pageParamStr?: string;
|
|
11
10
|
[key: string]: any;
|
|
12
11
|
}
|
|
13
12
|
export interface JumpMiniPath {
|
|
14
13
|
shop: string;
|
|
15
14
|
shopx: string;
|
|
16
15
|
detail: string;
|
|
17
16
|
searchCoupon: string;
|
|
18
17
|
h5: string;
|
|
19
18
|
jingGouHome: string;
|
|
20
19
|
shopFans: string;
|
|
21
20
|
shopLight: string;
|
|
22
21
|
couponSearch: string;
|
|
23
22
|
shopSearch: string;
|
|
24
23
|
jxCouponSearch: string;
|
|
25
24
|
jxDetail: string;
|
|
26
25
|
jdLive: string;
|
|
27
26
|
}
|
|
28
27
|
export interface jumpWebUrl {
|
|
29
28
|
mshop: string;
|
|
30
29
|
pages: string;
|
|
31
30
|
pcCoupon: string;
|
|
32
31
|
couponSearch: string;
|
|
33
32
|
jxCouponSearch: string;
|
|
34
33
|
pcCouponSearch: string;
|
|
35
34
|
shopSecondActivity: string;
|
|
36
35
|
shopLight: string;
|
|
37
36
|
detail: string;
|
|
38
37
|
jxDetail: string;
|
|
39
38
|
tjDetail: string;
|
|
40
39
|
pcDetail: string;
|
|
41
40
|
mobileHome: string;
|
|
42
41
|
rank: string;
|
|
43
42
|
wqShopMember: string;
|
|
44
43
|
wqShopDetail: string;
|
|
45
44
|
wqShopSearch: string;
|
|
46
45
|
myCouponList: string;
|
|
47
46
|
myRedPacketList: string;
|
|
48
47
|
memberHome: string;
|
|
49
48
|
memberCard: string;
|
|
50
49
|
memberPoints: string;
|
|
51
50
|
memberBenefit: string;
|
|
52
51
|
memberScores: string;
|
|
53
52
|
memberScoreRule: string;
|
|
54
53
|
memberProduct: string;
|
|
55
54
|
shopMember: string;
|
|
56
55
|
shopMemberPointDetail: string;
|
|
57
56
|
shopMemberBenefit: string;
|
|
58
57
|
shopMemberRule: string;
|
|
59
58
|
shopMemberCloseAccount: string;
|
|
60
59
|
shopMemberPointExchange: string;
|
|
61
60
|
shopMemberBonusPurchase: string;
|
|
62
61
|
shopMemberGood: string;
|
|
63
62
|
beanDetail: string;
|
|
64
63
|
totalPromotion: string;
|
|
65
64
|
mLive: string;
|
|
66
65
|
shopHome: string;
|
|
67
66
|
shopIntroduce: string;
|
|
68
67
|
shopSearch: string;
|
|
69
68
|
shopLottery: string;
|
|
70
69
|
shopCoupon: string;
|
|
71
70
|
shopWares: string;
|
|
72
71
|
shopFastShopping: string;
|
|
73
72
|
shopSpeciSeckill: string;
|
|
74
73
|
shopVideos: string;
|
|
75
74
|
shopMoreGoods: string;
|
|
76
75
|
shopUseShareOrderUgcContent: string;
|
|
77
76
|
dongDongChat: string;
|
|
78
77
|
samCenter: string;
|
|
79
78
|
samCard: string;
|
|
80
79
|
shopH5MemberCardAPP: string;
|
|
81
80
|
shopH5MemberCardM: string;
|
|
82
81
|
sageAuthorHome: string;
|
|
83
82
|
}
|
|
84
83
|
export interface EventReportConfig {
|
|
85
84
|
routerInfo: RouterInfo;
|
|
86
85
|
nativeEvent: any;
|
|
87
86
|
}
|
|
88
87
|
export interface OptEventLogParams {
|
|
89
88
|
eventId?: string;
|
|
90
89
|
eventParam?: string | object;
|
|
91
90
|
pTag?: string;
|
|
92
91
|
jsonParam?: {
|
|
93
92
|
[key: string]: any;
|
|
94
93
|
};
|
|
95
94
|
skuId?: string | number;
|
|
96
95
|
eventLevel?: string;
|
|
97
96
|
exposureState?: boolean;
|
|
98
97
|
otherParams?: object;
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
export interface JumpH5ReportConfig {
|
|
102
101
|
shopId?: number | string;
|
|
103
102
|
venderId?: number | string;
|
|
104
103
|
sourceValue?: string;
|
|
105
104
|
sourceType?: string;
|
|
106
105
|
}
|
|
107
106
|
export interface JumpEventReportInit extends EventReportConfig {
|
|
108
107
|
getConfig(opt): EventReportConfig;
|
|
109
108
|
updateInfo(routerInfo, logPname): void;
|
|
110
109
|
}
|
|
111
110
|
export interface CouponUrlParams {
|
|
112
111
|
batchId: number;
|
|
113
112
|
bindType: number;
|
|
114
113
|
startTime?: number;
|
|
115
114
|
endTime?: number;
|
|
116
115
|
quangoufrom?: number;
|
|
117
116
|
sceneId?: number;
|
|
118
117
|
}
|
|
119
118
|
export interface JdMiniJumpParams {
|
|
120
119
|
param: string | object;
|
|
121
120
|
sourceValue?: string;
|
|
122
121
|
sourceType?: string;
|
|
123
122
|
des?: any;
|
|
124
123
|
logEventInfo?: object;
|
|
125
124
|
}
|
|
126
125
|
export interface LinkMiniParams {
|
|
127
126
|
param?: {
|
|
128
127
|
pageType?: string;
|
|
129
128
|
};
|
|
130
129
|
appId?: string | number;
|
|
131
130
|
path?: string;
|
|
132
131
|
}
|
|
133
132
|
export interface JdJumpWxappReportConfig {
|
|
134
133
|
wxApiVersion: string;
|
|
135
134
|
wxApiUrl: string;
|
|
136
135
|
wqReportUrl: string;
|
|
137
136
|
}
|
|
137
|
+
export declare namespace JumpEventReportInterFace {
|
|
138
138
|
export interface ShopIdsInfo {
|
|
139
139
|
shopId?: number | string;
|
|
140
140
|
venderId?: number | string;
|
|
141
141
|
logEventInfo?: object;
|
|
142
142
|
type?: string;
|
|
143
143
|
}
|
|
144
144
|
export interface RouterInfo {
|
|
145
145
|
params: any;
|
|
146
146
|
pageParamStr?: string;
|
|
147
147
|
[key: string]: any;
|
|
148
148
|
}
|
|
149
149
|
export interface JumpMiniPath {
|
|
150
150
|
shop: string;
|
|
151
151
|
shopx: string;
|
|
152
152
|
detail: string;
|
|
153
153
|
searchCoupon: string;
|
|
154
154
|
h5: string;
|
|
155
155
|
jingGouHome: string;
|
|
156
156
|
shopFans: string;
|
|
157
157
|
shopLight: string;
|
|
158
158
|
couponSearch: string;
|
|
159
159
|
shopSearch: string;
|
|
160
160
|
jxCouponSearch: string;
|
|
161
161
|
jxDetail: string;
|
|
162
162
|
jdLive: string;
|
|
163
163
|
}
|
|
164
164
|
export interface jumpWebUrl {
|
|
165
165
|
mshop: string;
|
|
166
166
|
pages: string;
|
|
167
167
|
pcCoupon: string;
|
|
168
168
|
couponSearch: string;
|
|
169
169
|
jxCouponSearch: string;
|
|
170
170
|
pcCouponSearch: string;
|
|
171
171
|
shopSecondActivity: string;
|
|
172
172
|
shopLight: string;
|
|
173
173
|
detail: string;
|
|
174
174
|
jxDetail: string;
|
|
175
175
|
tjDetail: string;
|
|
176
176
|
pcDetail: string;
|
|
177
177
|
mobileHome: string;
|
|
178
178
|
rank: string;
|
|
179
179
|
wqShopMember: string;
|
|
180
180
|
wqShopDetail: string;
|
|
181
181
|
wqShopSearch: string;
|
|
182
182
|
myCouponList: string;
|
|
183
183
|
myRedPacketList: string;
|
|
184
184
|
memberHome: string;
|
|
185
185
|
memberCard: string;
|
|
186
186
|
memberPoints: string;
|
|
187
187
|
memberBenefit: string;
|
|
188
188
|
memberScores: string;
|
|
189
189
|
memberScoreRule: string;
|
|
190
190
|
memberProduct: string;
|
|
191
191
|
shopMember: string;
|
|
192
192
|
shopMemberPointDetail: string;
|
|
193
193
|
shopMemberBenefit: string;
|
|
194
194
|
shopMemberRule: string;
|
|
195
195
|
shopMemberCloseAccount: string;
|
|
196
196
|
shopMemberPointExchange: string;
|
|
197
197
|
shopMemberBonusPurchase: string;
|
|
198
198
|
shopMemberGood: string;
|
|
199
199
|
beanDetail: string;
|
|
200
200
|
totalPromotion: string;
|
|
201
201
|
mLive: string;
|
|
202
202
|
shopHome: string;
|
|
203
203
|
shopIntroduce: string;
|
|
204
204
|
shopSearch: string;
|
|
205
205
|
shopLottery: string;
|
|
206
206
|
shopCoupon: string;
|
|
207
207
|
shopWares: string;
|
|
208
208
|
shopFastShopping: string;
|
|
209
209
|
shopSpeciSeckill: string;
|
|
210
210
|
shopVideos: string;
|
|
211
211
|
shopMoreGoods: string;
|
|
212
212
|
shopUseShareOrderUgcContent: string;
|
|
213
213
|
dongDongChat: string;
|
|
214
214
|
samCenter: string;
|
|
215
215
|
samCard: string;
|
|
216
216
|
shopH5MemberCardAPP: string;
|
|
217
217
|
shopH5MemberCardM: string;
|
|
218
218
|
sageAuthorHome: string;
|
|
219
219
|
shopMemberInfoEdit: string;
|
|
220
220
|
}
|
|
221
221
|
export interface EventReportConfig {
|
|
222
222
|
routerInfo: RouterInfo;
|
|
223
223
|
nativeEvent: any;
|
|
224
224
|
}
|
|
225
225
|
export interface OptEventLogParams {
|
|
226
226
|
eventId?: string;
|
|
227
227
|
eventParam?: string | object;
|
|
228
228
|
pTag?: string;
|
|
229
229
|
jsonParam?: {
|
|
230
230
|
[key: string]: any;
|
|
231
231
|
};
|
|
232
232
|
skuId?: string | number;
|
|
233
233
|
eventLevel?: string;
|
|
234
234
|
exposureState?: boolean;
|
|
235
235
|
otherParams?: object;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
export interface JumpH5ReportConfig {
|
|
239
239
|
shopId?: number | string;
|
|
240
240
|
venderId?: number | string;
|
|
241
241
|
sourceValue?: string;
|
|
242
242
|
sourceType?: string;
|
|
243
243
|
}
|
|
244
244
|
export interface JumpEventReportInit extends EventReportConfig {
|
|
245
245
|
getConfig(opt): EventReportConfig;
|
|
246
246
|
updateInfo(routerInfo, logPname): void;
|
|
247
247
|
}
|
|
248
248
|
export interface CouponUrlParams {
|
|
249
249
|
batchId: number;
|
|
250
250
|
bindType: number;
|
|
251
251
|
startTime?: number;
|
|
252
252
|
endTime?: number;
|
|
253
253
|
quangoufrom?: number;
|
|
254
254
|
sceneId?: number;
|
|
255
255
|
}
|
|
256
256
|
export interface JdMiniJumpParams {
|
|
257
257
|
param: string | object;
|
|
258
258
|
sourceValue?: string;
|
|
259
259
|
sourceType?: string;
|
|
260
260
|
des?: any;
|
|
261
261
|
logEventInfo?: object;
|
|
262
262
|
}
|
|
263
263
|
export interface LinkMiniParams {
|
|
264
264
|
param?: {
|
|
265
265
|
pageType?: string;
|
|
266
266
|
};
|
|
267
267
|
appId?: string | number;
|
|
268
268
|
path?: string;
|
|
269
269
|
}
|
|
270
270
|
export interface JdJumpWxappReportConfig {
|
|
271
271
|
wxApiVersion: string;
|
|
272
272
|
wxApiUrl: string;
|
|
273
273
|
wqReportUrl: string;
|
|
274
274
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isH5, isWxMinAndWxapp } from '../utils'
|
|
2
1
|
? 'Terminator_New_Mobile_Shop'
|
|
3
2
|
: 'W_jdgwxcx_shop'
|
|
4
3
|
CONFIG_TYPE_NO_LINK = 0,
|
|
5
4
|
CONFIG_TYPE_SKU_LIST = 1,
|
|
6
5
|
CONFIG_TYPE_COUPON_LIST = 2,
|
|
7
6
|
CONFIG_TYPE_CATEGORY = 3,
|
|
8
7
|
CONFIG_TYPE_JSHOP_MOBILE = 4,
|
|
9
8
|
CONFIG_TYPE_JSHOP_PC = 5,
|
|
10
9
|
CONFIG_TYPE_JSHOP_DETAIL = 6,
|
|
11
10
|
CONFIG_TYPE_CUSTOM_LINK = 7,
|
|
12
11
|
CONFIG_TYPE_MEMBER = 9,
|
|
13
12
|
CONFIG_TYPE_SHOP_ACTIVITY = 10,
|
|
14
13
|
CONFIG_TYPE_SHOP_HOME = 12,
|
|
15
14
|
CONFIG_TYPE_ANCHOR_POINT = 13,
|
|
16
15
|
CONFIG_TYPE_SHOPPING_GUIDE = 17,
|
|
17
16
|
CONFIG_TYPE_MINI_PROGRAM = 18,
|
|
18
17
|
CONFIG_TYPE_FINANCE_COUPON = 22,
|
|
19
18
|
CONFIG_TYPE_CATEGORY_PAGE = 25,
|
|
20
19
|
CONFIG_TYPE_SHOP_SEARCH = 31,
|
|
20
|
+
import { isH5, isWxMinAndWxapp } from '../utils'
|
|
21
21
|
? 'Terminator_New_Mobile_Shop'
|
|
22
22
|
: 'W_jdgwxcx_shop'
|
|
23
23
|
CONFIG_TYPE_NO_LINK = 0,
|
|
24
24
|
CONFIG_TYPE_SKU_LIST = 1,
|
|
25
25
|
CONFIG_TYPE_COUPON_LIST = 2,
|
|
26
26
|
CONFIG_TYPE_CATEGORY = 3,
|
|
27
27
|
CONFIG_TYPE_JSHOP_MOBILE = 4,
|
|
28
28
|
CONFIG_TYPE_JSHOP_PC = 5,
|
|
29
29
|
CONFIG_TYPE_JSHOP_DETAIL = 6,
|
|
30
30
|
CONFIG_TYPE_CUSTOM_LINK = 7,
|
|
31
31
|
CONFIG_TYPE_MEMBER = 9,
|
|
32
32
|
CONFIG_TYPE_SHOP_ACTIVITY = 10,
|
|
33
33
|
CONFIG_TYPE_SHOP_HOME = 12,
|
|
34
34
|
CONFIG_TYPE_ANCHOR_POINT = 13,
|
|
35
35
|
CONFIG_TYPE_SHOPPING_GUIDE = 17,
|
|
36
36
|
CONFIG_TYPE_MINI_PROGRAM = 18,
|
|
37
37
|
CONFIG_TYPE_FINANCE_COUPON = 22,
|
|
38
38
|
CONFIG_TYPE_CATEGORY_PAGE = 25,
|
|
39
39
|
CONFIG_TYPE_SHOP_SEARCH = 31,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isApp, getUrlQuery } from '../utils/jm-common';
|
|
2
1
|
console.log('h5', isReflexToH5, getUrlQuery(window.location.href, 'reflex'));
|
|
3
2
|
return new Promise((resolve, reject) => {
|
|
4
3
|
if (isReflexToH5) {
|
|
5
4
|
import('./web.base')
|
|
6
5
|
.then(({ JumpEventWebReport }) => {
|
|
7
6
|
if (JumpEventWebReport) {
|
|
8
7
|
console.log('加载普通浏览器h5相关跳转事件js');
|
|
9
8
|
JumpEventReport = new JumpEventWebReport({});
|
|
10
9
|
resolve(JumpEventReport);
|
|
11
10
|
}
|
|
12
11
|
})
|
|
13
12
|
.catch((err) => {
|
|
14
13
|
reject(err);
|
|
15
14
|
});
|
|
16
15
|
} else {
|
|
17
16
|
if (isApp('wx') && isApp('mp') && isH5AdnJxMini) {
|
|
18
17
|
import('./web.jxwxapp')
|
|
19
18
|
.then(({ JdJumpWebToJxWxapp }) => {
|
|
20
19
|
if (JdJumpWebToJxWxapp) {
|
|
21
20
|
JumpEventReport = new JdJumpWebToJxWxapp({});
|
|
22
21
|
resolve(JumpEventReport);
|
|
23
22
|
}
|
|
24
23
|
})
|
|
25
24
|
.catch((err) => {
|
|
26
25
|
reject(err);
|
|
27
26
|
});
|
|
28
27
|
} else if (isApp('wx') && isApp('mp')) {
|
|
29
28
|
import('./web.wxapp')
|
|
30
29
|
.then(({ JdJumpWebToWxapp }) => {
|
|
31
30
|
if (JdJumpWebToWxapp) {
|
|
32
31
|
JumpEventReport = new JdJumpWebToWxapp({});
|
|
33
32
|
resolve(JumpEventReport);
|
|
34
33
|
}
|
|
35
34
|
})
|
|
36
35
|
.catch((err) => {
|
|
37
36
|
reject(err);
|
|
38
37
|
});
|
|
39
38
|
} else if (
|
|
40
39
|
isApp('jd') &&
|
|
41
40
|
(!isApp('jdharmony') || (isApp('jdharmony') && getPageType() === 'member-fast-card'))
|
|
42
41
|
) {
|
|
43
42
|
import('./web.jd')
|
|
44
43
|
.then(({ JdJumpWebToJdApp }) => {
|
|
45
44
|
if (JdJumpWebToJdApp) {
|
|
46
45
|
JumpEventReport = new JdJumpWebToJdApp({});
|
|
47
46
|
resolve(JumpEventReport);
|
|
48
47
|
}
|
|
49
48
|
})
|
|
50
49
|
.catch((err) => {
|
|
51
50
|
reject(err);
|
|
52
51
|
});
|
|
53
52
|
} else if (isApp('jdb')) {
|
|
54
53
|
import('./web.jdb')
|
|
55
54
|
.then(({ JdbJumpWebToJdbApp }) => {
|
|
56
55
|
if (JdbJumpWebToJdbApp) {
|
|
57
56
|
JumpEventReport = new JdbJumpWebToJdbApp({});
|
|
58
57
|
resolve(JumpEventReport);
|
|
59
58
|
}
|
|
60
59
|
})
|
|
61
60
|
.catch((err) => {
|
|
62
61
|
reject(err);
|
|
63
62
|
});
|
|
64
63
|
} else if (isApp('jdjch')) {
|
|
65
64
|
import('./web.jdjch')
|
|
66
65
|
.then(({ JdbJumpWebToJdbApp }) => {
|
|
67
66
|
if (JdbJumpWebToJdbApp) {
|
|
68
67
|
JumpEventReport = new JdbJumpWebToJdbApp({});
|
|
69
68
|
resolve(JumpEventReport);
|
|
70
69
|
}
|
|
71
70
|
})
|
|
72
71
|
.catch((err) => {
|
|
73
72
|
reject(err);
|
|
74
73
|
});
|
|
75
74
|
} else if (isApp('tjapp')) {
|
|
76
75
|
import('./web.tjapp')
|
|
77
76
|
.then(({ tjJumpWebTotjApp }) => {
|
|
78
77
|
if (tjJumpWebTotjApp) {
|
|
79
78
|
console.log('加载特价app内h5相关跳转事件js');
|
|
80
79
|
JumpEventReport = new tjJumpWebTotjApp({});
|
|
81
80
|
resolve(JumpEventReport);
|
|
82
81
|
}
|
|
83
82
|
})
|
|
84
83
|
.catch((err) => {
|
|
85
84
|
reject(err);
|
|
86
85
|
});
|
|
87
86
|
} else if (isPc) {
|
|
88
87
|
import('./web.pc')
|
|
89
88
|
.then(({ JumpEventWebReport }) => {
|
|
90
89
|
if (JumpEventWebReport) {
|
|
91
90
|
JumpEventReport = new JumpEventWebReport({});
|
|
92
91
|
resolve(JumpEventReport);
|
|
93
92
|
}
|
|
94
93
|
})
|
|
95
94
|
.catch((err) => {
|
|
96
95
|
reject(err);
|
|
97
96
|
});
|
|
98
97
|
} else if (isTjJxM || isTjM) {
|
|
99
98
|
import('./web.tjm')
|
|
100
99
|
.then(({ JumpEventTJWebReport }) => {
|
|
101
100
|
if (JumpEventTJWebReport) {
|
|
102
101
|
JumpEventReport = new JumpEventTJWebReport({});
|
|
103
102
|
resolve(JumpEventReport);
|
|
104
103
|
}
|
|
105
104
|
})
|
|
106
105
|
.catch((err) => {
|
|
107
106
|
reject(err);
|
|
108
107
|
});
|
|
109
108
|
} else {
|
|
110
109
|
import('./web.base')
|
|
111
110
|
.then(({ JumpEventWebReport }) => {
|
|
112
111
|
if (JumpEventWebReport) {
|
|
113
112
|
JumpEventReport = new JumpEventWebReport({});
|
|
114
113
|
resolve(JumpEventReport);
|
|
115
114
|
}
|
|
116
115
|
})
|
|
117
116
|
.catch((err) => {
|
|
118
117
|
reject(err);
|
|
119
118
|
});
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
});
|
|
122
|
+
import { isApp, getUrlQuery } from '../utils/jm-common';
|
|
123
123
|
console.log('h5', isReflexToH5, getUrlQuery(window.location.href, 'reflex'));
|
|
124
124
|
return new Promise((resolve, reject) => {
|
|
125
125
|
if (isReflexToH5) {
|
|
126
126
|
import('./web.base')
|
|
127
127
|
.then(({ JumpEventWebReport }) => {
|
|
128
128
|
if (JumpEventWebReport) {
|
|
129
129
|
console.log('加载普通浏览器h5相关跳转事件js');
|
|
130
130
|
JumpEventReport = new JumpEventWebReport({});
|
|
131
131
|
resolve(JumpEventReport);
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
134
|
.catch((err) => {
|
|
135
135
|
reject(err);
|
|
136
136
|
});
|
|
137
137
|
} else {
|
|
138
138
|
if (isApp('wx') && isApp('mp') && isH5AdnJxMini) {
|
|
139
139
|
import('./web.jxwxapp')
|
|
140
140
|
.then(({ JdJumpWebToJxWxapp }) => {
|
|
141
141
|
if (JdJumpWebToJxWxapp) {
|
|
142
142
|
JumpEventReport = new JdJumpWebToJxWxapp({});
|
|
143
143
|
resolve(JumpEventReport);
|
|
144
144
|
}
|
|
145
145
|
})
|
|
146
146
|
.catch((err) => {
|
|
147
147
|
reject(err);
|
|
148
148
|
});
|
|
149
149
|
} else if (isApp('wx') && isApp('mp')) {
|
|
150
150
|
import('./web.wxapp')
|
|
151
151
|
.then(({ JdJumpWebToWxapp }) => {
|
|
152
152
|
if (JdJumpWebToWxapp) {
|
|
153
153
|
JumpEventReport = new JdJumpWebToWxapp({});
|
|
154
154
|
resolve(JumpEventReport);
|
|
155
155
|
}
|
|
156
156
|
})
|
|
157
157
|
.catch((err) => {
|
|
158
158
|
reject(err);
|
|
159
159
|
});
|
|
160
160
|
} else if (
|
|
161
161
|
isApp('jd') &&
|
|
162
162
|
(isNewHarmonyShop || !isApp('jdharmony') || (isApp('jdharmony') && getPageType() === 'member-fast-card'))
|
|
163
163
|
) {
|
|
164
164
|
import('./web.jd')
|
|
165
165
|
.then(({ JdJumpWebToJdApp }) => {
|
|
166
166
|
if (JdJumpWebToJdApp) {
|
|
167
167
|
JumpEventReport = new JdJumpWebToJdApp({});
|
|
168
168
|
resolve(JumpEventReport);
|
|
169
169
|
}
|
|
170
170
|
})
|
|
171
171
|
.catch((err) => {
|
|
172
172
|
reject(err);
|
|
173
173
|
});
|
|
174
174
|
} else if (isApp('jdb')) {
|
|
175
175
|
import('./web.jdb')
|
|
176
176
|
.then(({ JdbJumpWebToJdbApp }) => {
|
|
177
177
|
if (JdbJumpWebToJdbApp) {
|
|
178
178
|
JumpEventReport = new JdbJumpWebToJdbApp({});
|
|
179
179
|
resolve(JumpEventReport);
|
|
180
180
|
}
|
|
181
181
|
})
|
|
182
182
|
.catch((err) => {
|
|
183
183
|
reject(err);
|
|
184
184
|
});
|
|
185
185
|
} else if (isApp('jdjch')) {
|
|
186
186
|
import('./web.jdjch')
|
|
187
187
|
.then(({ JdbJumpWebToJdbApp }) => {
|
|
188
188
|
if (JdbJumpWebToJdbApp) {
|
|
189
189
|
JumpEventReport = new JdbJumpWebToJdbApp({});
|
|
190
190
|
resolve(JumpEventReport);
|
|
191
191
|
}
|
|
192
192
|
})
|
|
193
193
|
.catch((err) => {
|
|
194
194
|
reject(err);
|
|
195
195
|
});
|
|
196
196
|
} else if (isApp('tjapp')) {
|
|
197
197
|
import('./web.tjapp')
|
|
198
198
|
.then(({ tjJumpWebTotjApp }) => {
|
|
199
199
|
if (tjJumpWebTotjApp) {
|
|
200
200
|
console.log('加载特价app内h5相关跳转事件js');
|
|
201
201
|
JumpEventReport = new tjJumpWebTotjApp({});
|
|
202
202
|
resolve(JumpEventReport);
|
|
203
203
|
}
|
|
204
204
|
})
|
|
205
205
|
.catch((err) => {
|
|
206
206
|
reject(err);
|
|
207
207
|
});
|
|
208
208
|
} else if (isPc) {
|
|
209
209
|
import('./web.pc')
|
|
210
210
|
.then(({ JumpEventWebReport }) => {
|
|
211
211
|
if (JumpEventWebReport) {
|
|
212
212
|
JumpEventReport = new JumpEventWebReport({});
|
|
213
213
|
resolve(JumpEventReport);
|
|
214
214
|
}
|
|
215
215
|
})
|
|
216
216
|
.catch((err) => {
|
|
217
217
|
reject(err);
|
|
218
218
|
});
|
|
219
219
|
} else if (isTjJxM || isTjM) {
|
|
220
220
|
import('./web.tjm')
|
|
221
221
|
.then(({ JumpEventTJWebReport }) => {
|
|
222
222
|
if (JumpEventTJWebReport) {
|
|
223
223
|
JumpEventReport = new JumpEventTJWebReport({});
|
|
224
224
|
resolve(JumpEventReport);
|
|
225
225
|
}
|
|
226
226
|
})
|
|
227
227
|
.catch((err) => {
|
|
228
228
|
reject(err);
|
|
229
229
|
});
|
|
230
230
|
} else {
|
|
231
231
|
import('./web.base')
|
|
232
232
|
.then(({ JumpEventWebReport }) => {
|
|
233
233
|
if (JumpEventWebReport) {
|
|
234
234
|
JumpEventReport = new JumpEventWebReport({});
|
|
235
235
|
resolve(JumpEventReport);
|
|
236
236
|
}
|
|
237
237
|
})
|
|
238
238
|
.catch((err) => {
|
|
239
239
|
reject(err);
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
});
|