@conecli/cone-render 0.9.1-shop2.2 → 0.9.1-shop2.20
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/api/index.ts +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/common/environmentType.ts +1 -0
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/jdplayerSdk.ts +1 -0
- package/dist/common/jssdk.ts +1 -0
- package/dist/common/pageType.ts +1 -0
- package/dist/common/sgmCustomCode.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/token/token.ts +1 -1
- package/dist/common/wxappApi.jd.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.module.scss +7 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +5 -0
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +23 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +7 -0
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/interface/utils.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.jd.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.jdb.ts +1 -1
- package/dist/jumpEventReport/web.jdjch.ts +1 -1
- package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
- package/dist/jumpEventReport/web.tjapp.ts +1 -0
- package/dist/jumpEventReport/web.tjm.ts +1 -0
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/modules/ContainerFloorList/index.h5.module.scss +18 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/open/api/jump copy.ts +1 -1
- package/dist/open/api/request.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/sass/app.h5.scss +49 -3
- package/dist/sass/base.scss +57 -0
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/draExceptionAndProfile.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/jm-common.js +1 -1
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import global from '../common'
|
|
2
|
BUSINESS_TYPE,
|
|
1
3
|
objectToUrlEncode,
|
|
2
4
|
parseQueryUrlString,
|
|
3
5
|
isTjScence,
|
|
4
6
|
isTjM,
|
|
5
7
|
isTjJxM,
|
|
6
8
|
isH5AdnJxMini,
|
|
7
9
|
tjChannel,
|
|
8
10
|
public logPageId: string
|
|
9
11
|
public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
|
|
10
12
|
constructor(opt) {
|
|
11
13
|
super(opt)
|
|
12
14
|
this.getConfig(opt)
|
|
13
15
|
console.log('加载特价/京喜m的跳转js文件....')
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
getTjShopParam () {
|
|
17
19
|
const { tjshop } = global.info.queryInfo
|
|
18
20
|
const tjshopParam = tjshop ? `&tjshop=${tjshop}` : ''
|
|
19
21
|
const tjChannelStr = tjChannel ? `&tjChannel=${tjChannel}` : ''
|
|
20
22
|
return `${tjshopParam}${tjChannelStr}`
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
24
26
|
skuIds = skuIds.toString().trim()
|
|
25
27
|
const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
|
|
26
28
|
const { jingxiSdx, ...otherLogInfo } = logEventInfo
|
|
27
29
|
let url = `${this.jumpWebUrl.detail}${getSkuId}.html`
|
|
28
30
|
if (isTjScence) {
|
|
29
31
|
if (isTjM) {
|
|
30
32
|
url = `${this.jumpWebUrl.tjDetail}?wareId=${getSkuId}`
|
|
31
33
|
} else if (isTjJxM) {
|
|
32
34
|
const { _fd } = global.info.queryInfo
|
|
33
35
|
const fd = _fd ? `&_fd=${_fd}` : ''
|
|
34
36
|
url = `${this.jumpWebUrl.jxDetail}?sku=${getSkuId}${fd}`
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
if(jingxiSdx){
|
|
38
40
|
this.jdNavigateToNative(
|
|
39
41
|
`${url}?sdx=${jingxiSdx}`,
|
|
40
42
|
otherLogInfo,
|
|
41
43
|
)
|
|
42
44
|
}else {
|
|
43
45
|
this.jdNavigateToNative(
|
|
44
46
|
url,
|
|
45
47
|
logEventInfo,
|
|
46
48
|
)
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
|
|
51
53
|
const getInfo = Object.assign(
|
|
52
54
|
{},
|
|
53
55
|
{
|
|
54
56
|
shopId: global.info.queryInfo.shopId,
|
|
55
57
|
venderId: global.info.queryInfo.venderId,
|
|
56
58
|
},
|
|
57
59
|
shopInfo,
|
|
58
60
|
)
|
|
59
61
|
this.jdNavigateToNative(
|
|
60
62
|
`${this.jumpWebUrl.mshop}?${objectToUrlEncode(
|
|
61
63
|
this.getShopIdOrVenderIdParams(getInfo),
|
|
62
64
|
)}${this.getTjShopParam()}`,
|
|
63
65
|
{
|
|
64
66
|
...getInfo,
|
|
65
67
|
},
|
|
66
68
|
)
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
jdJumpToWeb(
|
|
70
72
|
url,
|
|
71
73
|
logEventInfo,
|
|
72
74
|
successBack?: Function | undefined,
|
|
73
75
|
failBack?: Function | undefined,
|
|
74
76
|
) {
|
|
75
77
|
console.log('web.tjm.ts - jdJumpToWeb')
|
|
76
78
|
if(url.indexOf('tjshop') == -1) {
|
|
77
79
|
url = url + this.getTjShopParam()
|
|
78
80
|
}
|
|
79
81
|
this.jdNavigateToNative(
|
|
80
82
|
url,
|
|
81
83
|
{
|
|
82
84
|
...logEventInfo,
|
|
83
85
|
},
|
|
84
86
|
successBack,
|
|
85
87
|
failBack,
|
|
86
88
|
)
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
jdJumpConfigUrl(detail, logEventInfo = {}) {
|
|
90
92
|
const { configDataType, configDataValue } = detail
|
|
91
93
|
console.log(
|
|
92
94
|
'jdJumpConfigUrl web.tj.base configDataType:',
|
|
93
95
|
configDataType,
|
|
94
96
|
configDataValue,
|
|
95
97
|
)
|
|
96
98
|
switch (configDataType) {
|
|
97
99
|
case LinkConfigType.CONFIG_TYPE_SKU_LIST:
|
|
98
100
|
if(logEventInfo?.jsonParam?.logBaseInfo?.mInfo){
|
|
99
101
|
logEventInfo.jsonParam.logBaseInfo.mInfo.skuid = configDataValue.skuIds
|
|
100
102
|
}
|
|
101
103
|
this.jdJumpToProduct(configDataValue.skuIds, logEventInfo)
|
|
102
104
|
break
|
|
103
105
|
case LinkConfigType.CONFIG_TYPE_COUPON_LIST:
|
|
104
106
|
this.jdJumpToWeb(
|
|
105
107
|
`${this.jumpWebUrl.shopCoupon}?couponType=1&shopId=${global.info.queryInfo.shopId}&venderId=${global.info.queryInfo.venderId}`,
|
|
106
108
|
{},
|
|
107
109
|
)
|
|
108
110
|
break
|
|
109
111
|
case LinkConfigType.CONFIG_TYPE_CATEGORY:
|
|
110
112
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
111
113
|
const getShopSearchParams = this.jdOpenAppParams(
|
|
112
114
|
configDataValue.clickUrl,
|
|
113
115
|
)
|
|
114
116
|
getShopSearchParams &&
|
|
115
117
|
this.jdJumpToShopSearch(
|
|
116
118
|
Object.assign({}, getShopSearchParams, {
|
|
117
119
|
logEventInfo,
|
|
118
120
|
}),
|
|
119
121
|
)
|
|
120
122
|
} else {
|
|
121
123
|
this.jdJumpToShopSearch(
|
|
122
124
|
configDataValue['cid']
|
|
123
125
|
? Object.assign(
|
|
124
126
|
{},
|
|
125
127
|
{
|
|
126
128
|
shopId: global.info.queryInfo.shopId,
|
|
127
129
|
categoryId: configDataValue.cid,
|
|
128
130
|
...configDataValue,
|
|
129
131
|
logEventInfo,
|
|
130
132
|
},
|
|
131
133
|
)
|
|
132
134
|
: {
|
|
133
135
|
shopId: global.info.queryInfo.shopId,
|
|
134
136
|
logEventInfo,
|
|
135
137
|
},
|
|
136
138
|
)
|
|
137
139
|
}
|
|
138
140
|
break
|
|
139
141
|
case LinkConfigType.CONFIG_TYPE_CATEGORY_PAGE:
|
|
140
142
|
this.jdJumpToShopCategory({
|
|
141
143
|
...configDataValue,
|
|
142
144
|
logEventInfo,
|
|
143
145
|
})
|
|
144
146
|
break
|
|
145
147
|
case LinkConfigType.CONFIG_TYPE_MEMBER:
|
|
146
148
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
147
149
|
const getShopMemberParams = this.jdOpenAppParams(
|
|
148
150
|
configDataValue.clickUrl,
|
|
149
151
|
)
|
|
150
152
|
getShopMemberParams &&
|
|
151
153
|
this.jdJumpToShopMember(
|
|
152
154
|
Object.assign({}, getShopMemberParams, {
|
|
153
155
|
logEventInfo,
|
|
154
156
|
}),
|
|
155
157
|
)
|
|
156
158
|
} else {
|
|
157
159
|
this.jdJumpToShopMember({
|
|
158
160
|
shopId: global.info.queryInfo.shopId,
|
|
159
161
|
venderId: configDataValue.shopDetail,
|
|
160
162
|
logEventInfo,
|
|
161
163
|
})
|
|
162
164
|
}
|
|
163
165
|
break
|
|
164
166
|
case LinkConfigType.CONFIG_TYPE_SHOP_ACTIVITY:
|
|
165
167
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
166
168
|
const getShopActivityParams = this.jdOpenAppParams(
|
|
167
169
|
configDataValue.clickUrl,
|
|
168
170
|
)
|
|
169
171
|
if (
|
|
170
172
|
getShopActivityParams &&
|
|
171
173
|
getShopActivityParams['des'] == 'jshopActivity'
|
|
172
174
|
) {
|
|
173
175
|
this.jdJumpToShopActivity({
|
|
174
176
|
projectId: configDataValue['projectId'],
|
|
175
177
|
configDataValue,
|
|
176
178
|
logEventInfo,
|
|
177
179
|
})
|
|
178
180
|
}
|
|
179
181
|
} else if (configDataValue['projectId']) {
|
|
180
182
|
this.jdJumpToShopActivity({
|
|
181
183
|
projectId: configDataValue['projectId'],
|
|
182
184
|
configDataValue,
|
|
183
185
|
logEventInfo,
|
|
184
186
|
})
|
|
185
187
|
}
|
|
186
188
|
break
|
|
187
189
|
case LinkConfigType.CONFIG_TYPE_CUSTOM_LINK:
|
|
188
190
|
case LinkConfigType.CONFIG_TYPE_FINANCE_COUPON:
|
|
189
191
|
let _url = configDataValue.linkUrl
|
|
190
192
|
const isProductM = /item\.m\.jd\.com/.test(_url)
|
|
191
193
|
const isProductPC = /item\.jd\.com/.test(_url)
|
|
192
194
|
if (isTjScence) {
|
|
193
195
|
const { appCode } = global.info.queryInfo
|
|
194
196
|
|
|
195
197
|
if (/(pro|prodev)\.jd\.com(\/mall\/)/.test(_url)) {
|
|
196
198
|
if (isH5AdnJxMini) {
|
|
197
199
|
_url = _url.replace(
|
|
198
200
|
/([prodev]|[pro])(\.jd\.com)(\/mall)/,
|
|
199
201
|
"$1.m$2/mini"
|
|
200
202
|
) + `appCode=${appCode}&wxAppName=jx`
|
|
201
203
|
} else {
|
|
202
204
|
_url = _url.replace(
|
|
203
205
|
/([prodev]|[pro])(\.jd\.com)(\/mall)/,
|
|
204
206
|
"$1.m$2/jdlite"
|
|
205
207
|
)
|
|
206
208
|
}
|
|
207
209
|
} else if (/(pro|prodev)\.(m\.jd|jd)\.com(\/mall\/)/.test(_url)) {
|
|
208
210
|
if (isH5AdnJxMini) {
|
|
209
211
|
_url = _url.replace(
|
|
210
212
|
/([prodev]|[pro])(\.m\.jd\.com)(\/mall)/,
|
|
211
213
|
"$1$2/mini"
|
|
212
214
|
) + `appCode=${appCode}&wxAppName=jx`
|
|
213
215
|
} else {
|
|
214
216
|
_url = _url.replace(
|
|
215
217
|
/([prodev]|[pro])(\.m\.jd\.com)(\/mall)/,
|
|
216
218
|
"$1$2/jdlite"
|
|
217
219
|
)
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
if (
|
|
222
224
|
_url.indexOf('to=') === -1 &&
|
|
223
225
|
_url.indexOf(`${domain.mshop.replace(/https?:/, '')}/?shopId=`) !== -1
|
|
224
226
|
) {
|
|
225
227
|
const _shopId = _url.match(/\d+/g)[0]
|
|
226
228
|
this.jdJumpToShopHome({
|
|
227
229
|
shopId: `${_shopId}`,
|
|
228
230
|
logEventInfo,
|
|
229
231
|
})
|
|
230
232
|
} else if (this.isOpenJdAppUrl(_url)) {
|
|
231
233
|
const getOpenAppParams: any = this.jdOpenAppParams(_url)
|
|
232
234
|
if (getOpenAppParams) {
|
|
233
235
|
if (getOpenAppParams.jumpTab == 'allProduct') {
|
|
234
236
|
this.jdJumpToTabAllProduct(
|
|
235
237
|
global.info.queryInfo.shopId,
|
|
236
238
|
global.info.queryInfo.venderId,
|
|
237
239
|
)
|
|
238
240
|
} else if (
|
|
239
241
|
getOpenAppParams.des == 'productList' &&
|
|
240
242
|
getOpenAppParams.from == 'couponBatch'
|
|
241
243
|
) {
|
|
242
244
|
this.jdJumpToCouponSearchProductList(getOpenAppParams?.couponId)
|
|
243
245
|
} else if (getOpenAppParams.des == 'vapp') {
|
|
244
246
|
this.jdJumpToWeb(
|
|
245
247
|
`https://conecli.com/apps/mpshare/index.html?category=${
|
|
246
248
|
getOpenAppParams.category
|
|
247
249
|
}&des=${getOpenAppParams.des}&vapptype=${
|
|
248
250
|
getOpenAppParams.vapptype
|
|
249
251
|
}&appId=${getOpenAppParams.appId}&path=${
|
|
250
252
|
getOpenAppParams.path
|
|
251
253
|
}¶m=${encodeURI(JSON.stringify(getOpenAppParams.param))}`,
|
|
252
254
|
logEventInfo,
|
|
253
255
|
)
|
|
254
256
|
} else {
|
|
255
257
|
this.jdNavigateToNative(
|
|
256
258
|
'',
|
|
257
259
|
Object.assign({}, getOpenAppParams, {
|
|
258
260
|
logEventInfo,
|
|
259
261
|
}),
|
|
260
262
|
)
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
} else if (isProductM || isProductPC) {
|
|
264
266
|
const skuid = _url.match(/\d+/g)[0]
|
|
265
267
|
if (skuid) {
|
|
266
268
|
this.jdJumpToProduct(skuid, logEventInfo)
|
|
267
269
|
}
|
|
268
270
|
} else {
|
|
269
271
|
this.jdJumpToWeb(_url, logEventInfo)
|
|
270
272
|
}
|
|
271
273
|
break
|
|
272
274
|
case LinkConfigType.CONFIG_TYPE_JSHOP_DETAIL:
|
|
273
275
|
this.jdJumpToShopDetail({
|
|
274
276
|
venderId: global.info.queryInfo.venderId,
|
|
275
277
|
shopId: global.info.queryInfo.shopId,
|
|
276
278
|
logEventInfo,
|
|
277
279
|
})
|
|
278
280
|
break
|
|
279
281
|
case LinkConfigType.CONFIG_TYPE_SHOP_HOME:
|
|
280
282
|
this.jdJumpToShopHome({
|
|
281
283
|
...configDataValue,
|
|
282
284
|
logEventInfo,
|
|
283
285
|
})
|
|
284
286
|
break
|
|
285
287
|
case LinkConfigType.CONFIG_TYPE_ANCHOR_POINT:
|
|
286
288
|
break
|
|
287
289
|
case LinkConfigType.CONFIG_TYPE_SHOPPING_GUIDE:
|
|
288
290
|
if (this.isOpenJdAppUrl(configDataValue.clickUrl)) {
|
|
289
291
|
const getShoppingGuideParams = this.jdOpenAppParams(
|
|
290
292
|
configDataValue.clickUrl,
|
|
291
293
|
)
|
|
292
294
|
getShoppingGuideParams &&
|
|
293
295
|
this.jdJumpToShopActivity(
|
|
294
296
|
Object.assign({}, getShoppingGuideParams, {
|
|
295
297
|
logEventInfo,
|
|
296
298
|
}),
|
|
297
299
|
)
|
|
298
300
|
}
|
|
299
301
|
break
|
|
300
302
|
case LinkConfigType.CONFIG_TYPE_MINI_PROGRAM: {
|
|
301
303
|
const linkUrl = decodeURIComponent(configDataValue?.linkUrl || '')
|
|
302
304
|
const search = linkUrl.match(/\?.+/)
|
|
303
305
|
if (search) {
|
|
304
306
|
const miniQueryData: JumpEventReportInterFace.LinkMiniParams =
|
|
305
307
|
parseQueryUrlString(linkUrl)
|
|
306
308
|
try {
|
|
307
309
|
miniQueryData.param = JSON.parse(<string>miniQueryData?.param)
|
|
308
310
|
} catch (e) {
|
|
309
311
|
console.warn('解析小程序 param 错误:', miniQueryData.param)
|
|
310
312
|
}
|
|
311
313
|
this.jdJumpToMiniProgram(miniQueryData)
|
|
312
314
|
} else {
|
|
313
315
|
console.warn('小程序地址错误:', linkUrl)
|
|
314
316
|
}
|
|
315
317
|
break
|
|
316
318
|
}
|
|
317
319
|
default:
|
|
318
320
|
}
|
|
319
321
|
}
|
|
320
322
|
|
|
321
323
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
322
324
|
if(isTjM) return
|
|
323
325
|
let batchParam = isTjScence ? `coupon_batch=${couponId}` : `couponbatch=${couponId}`
|
|
324
326
|
this.jdJumpToWeb(
|
|
325
327
|
`${this.jumpWebUrl.jxCouponSearch}?${batchParam}`,
|
|
326
328
|
logEventInfo,
|
|
327
329
|
)
|
|
328
330
|
}
|
|
329
331
|
|
|
330
332
|
jdNavigateToNative(
|
|
331
333
|
url: string,
|
|
332
334
|
params: {
|
|
333
335
|
logEventInfo?: object
|
|
334
336
|
} = {},
|
|
335
337
|
successBack?: Function | undefined,
|
|
336
338
|
failBack?: Function | undefined,
|
|
337
339
|
) {
|
|
338
340
|
const { logEventInfo } = params
|
|
339
341
|
const getEparam = logEventInfo || params
|
|
340
342
|
if(url.indexOf('tjshop') == -1) {
|
|
341
343
|
url = url + this.getTjShopParam()
|
|
342
344
|
}
|
|
343
345
|
console.log(`url:::::::${url}`)
|
|
344
346
|
global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
|
|
345
347
|
this.clickEventLog(getEparam)
|
|
346
348
|
.then(() => {
|
|
347
349
|
typeof successBack == 'function'
|
|
348
350
|
? successBack(url)
|
|
349
351
|
: (window.location.href = url)
|
|
350
352
|
})
|
|
351
353
|
.catch(() => {
|
|
352
354
|
typeof failBack == 'function' && failBack(url)
|
|
353
355
|
})
|
|
354
356
|
}
|