crh-jssdk 1.0.12 → 1.0.13
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.
|
@@ -133,23 +133,27 @@ exports.default = {
|
|
|
133
133
|
*/
|
|
134
134
|
goWebview: function (params) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
-
var url, _a, needTitle, pageId, gotoUrl, error_3;
|
|
137
|
-
return __generator(this, function (
|
|
138
|
-
switch (
|
|
136
|
+
var url, _a, needTitle, _b, isWt, pageId, gotoUrl, error_3;
|
|
137
|
+
return __generator(this, function (_c) {
|
|
138
|
+
switch (_c.label) {
|
|
139
139
|
case 0:
|
|
140
|
-
url = params.url, _a = params.needTitle, needTitle = _a === void 0 ? true : _a;
|
|
141
|
-
|
|
140
|
+
url = params.url, _a = params.needTitle, needTitle = _a === void 0 ? true : _a, _b = params.isWt, isWt = _b === void 0 ? false : _b;
|
|
141
|
+
_c.label = 1;
|
|
142
142
|
case 1:
|
|
143
|
-
|
|
143
|
+
_c.trys.push([1, 3, , 4]);
|
|
144
144
|
pageId = utils_1.ios ? "5032" : "2804";
|
|
145
145
|
gotoUrl = "client.html?action=ymtz^webid=".concat(pageId, "^url=").concat(url, "^isHiddenNavigationBar=").concat(needTitle ? 1 : 0, "^isHiddenBottomBar=1^isNeedWtLogin=1");
|
|
146
|
+
if (isWt) {
|
|
147
|
+
gotoUrl = url;
|
|
148
|
+
}
|
|
149
|
+
console.log("goWebview入参", params);
|
|
146
150
|
console.log("金圆统一调用gotoNextPage,参数:", gotoUrl);
|
|
147
151
|
return [4 /*yield*/, utils_1.jyBridge.bridgeCallHandler("Promise", "gotoNextPage", {
|
|
148
152
|
url: gotoUrl,
|
|
149
153
|
})];
|
|
150
|
-
case 2: return [2 /*return*/,
|
|
154
|
+
case 2: return [2 /*return*/, _c.sent()];
|
|
151
155
|
case 3:
|
|
152
|
-
error_3 =
|
|
156
|
+
error_3 = _c.sent();
|
|
153
157
|
console.error("金圆统一跳转客户端页面失败:", error_3);
|
|
154
158
|
// 降级方案:使用 goWebview
|
|
155
159
|
return [2 /*return*/, { success: false }];
|