crh-jssdk 0.10.8 → 0.10.10
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.
|
@@ -207,6 +207,7 @@ exports.default = {
|
|
|
207
207
|
"cfzqsdk",
|
|
208
208
|
"LeZhuan",
|
|
209
209
|
"LEZHUAN",
|
|
210
|
+
"lezhuan",
|
|
210
211
|
"Android_CFZQ_JUCAI",
|
|
211
212
|
"iOS_CFZQ_JUCAI",
|
|
212
213
|
];
|
|
@@ -344,29 +345,30 @@ exports.default = {
|
|
|
344
345
|
window.location.href = mregeUrl;
|
|
345
346
|
}
|
|
346
347
|
else if (webviewType.isNewJuCai) {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
348
|
+
if (urlParams.opentype) {
|
|
349
|
+
if (utils_1.ios) {
|
|
350
|
+
actionMap.setupWebViewJavascriptBridge(function (bridge) {
|
|
351
|
+
bridge.callHandler("gotoNextPage", {
|
|
352
|
+
needtitle: needTitle ? "1" : "0",
|
|
353
|
+
url: url,
|
|
354
|
+
}, function (data) {
|
|
355
|
+
console.log("goWebview:", data);
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
// {“pageId”: “2804”, “needLogin”: “true”, “title”: “网页标题”, “url”: “http://www.baidu.com”}
|
|
361
|
+
// pageId=2804表示跳转客户端默认webview,pageId=5002跳转客户端无标题webview;needLogin=1表示需要先登录委托,未登录委托情况下会先跳转客户端委托登录
|
|
362
|
+
actionMap.callJuCaiAction("goWebViewPage", {
|
|
363
|
+
pageId: needTitle ? "2804" : "5002",
|
|
364
|
+
url: url,
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
// 聚财新开webview体验有问题,因此统一走location.href
|
|
370
|
+
window.location.href = url;
|
|
371
|
+
}
|
|
370
372
|
}
|
|
371
373
|
else {
|
|
372
374
|
var paramsObj = {
|
|
@@ -171,6 +171,7 @@ export default {
|
|
|
171
171
|
"cfzqsdk",
|
|
172
172
|
"LeZhuan",
|
|
173
173
|
"LEZHUAN",
|
|
174
|
+
"lezhuan",
|
|
174
175
|
"Android_CFZQ_JUCAI",
|
|
175
176
|
"iOS_CFZQ_JUCAI",
|
|
176
177
|
];
|
|
@@ -314,29 +315,32 @@ export default {
|
|
|
314
315
|
if (webviewType.isNewLeZhuan) {
|
|
315
316
|
window.location.href = mregeUrl;
|
|
316
317
|
} else if (webviewType.isNewJuCai) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
318
|
+
if (urlParams.opentype) {
|
|
319
|
+
if (ios) {
|
|
320
|
+
actionMap.setupWebViewJavascriptBridge((bridge: any) => {
|
|
321
|
+
bridge.callHandler(
|
|
322
|
+
"gotoNextPage",
|
|
323
|
+
{
|
|
324
|
+
needtitle: needTitle ? "1" : "0",
|
|
325
|
+
url,
|
|
326
|
+
},
|
|
327
|
+
(data: any) => {
|
|
328
|
+
console.log("goWebview:", data);
|
|
329
|
+
}
|
|
330
|
+
);
|
|
331
|
+
});
|
|
332
|
+
} else {
|
|
333
|
+
// {“pageId”: “2804”, “needLogin”: “true”, “title”: “网页标题”, “url”: “http://www.baidu.com”}
|
|
334
|
+
// pageId=2804表示跳转客户端默认webview,pageId=5002跳转客户端无标题webview;needLogin=1表示需要先登录委托,未登录委托情况下会先跳转客户端委托登录
|
|
335
|
+
actionMap.callJuCaiAction("goWebViewPage", {
|
|
336
|
+
pageId: needTitle ? "2804" : "5002",
|
|
337
|
+
url,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
} else {
|
|
341
|
+
// 聚财新开webview体验有问题,因此统一走location.href
|
|
342
|
+
window.location.href = url;
|
|
343
|
+
}
|
|
340
344
|
} else {
|
|
341
345
|
let paramsObj: any = {
|
|
342
346
|
indexUrl: url,
|