crh-jssdk 0.10.31 → 0.10.33
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.
|
@@ -305,6 +305,32 @@ exports.default = {
|
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
307
|
},
|
|
308
|
+
/**
|
|
309
|
+
* 下载pdf文件
|
|
310
|
+
*/
|
|
311
|
+
downloadPDFFile: function (url, title) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
313
|
+
var typeList, type, params;
|
|
314
|
+
return __generator(this, function (_a) {
|
|
315
|
+
console.log("HXDownloadFile title", title);
|
|
316
|
+
typeList = url.split(".");
|
|
317
|
+
type = "PDF";
|
|
318
|
+
params = {
|
|
319
|
+
url: url,
|
|
320
|
+
// filetype: type,
|
|
321
|
+
// title: title,
|
|
322
|
+
pdfFileName: title
|
|
323
|
+
};
|
|
324
|
+
console.log("HXDownloadFile", params);
|
|
325
|
+
utils_1.globalBridge.bridgeCallHandler("Promise", "HXDownloadFile", params).then(function () {
|
|
326
|
+
console.log("HXDownloadFile success");
|
|
327
|
+
}).catch(function (err) {
|
|
328
|
+
console.error("HXDownloadFile error", err);
|
|
329
|
+
});
|
|
330
|
+
return [2 /*return*/];
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
},
|
|
308
334
|
/**
|
|
309
335
|
* 获取Bridge实例(供其他模块使用)
|
|
310
336
|
*/
|
package/dist/business/index.js
CHANGED
|
@@ -318,6 +318,13 @@ var BUSINESS = /** @class */ (function () {
|
|
|
318
318
|
}
|
|
319
319
|
return this.sdkObj.followOfficialAccount(appid);
|
|
320
320
|
};
|
|
321
|
+
//下载pdf文件
|
|
322
|
+
BUSINESS.prototype.downloadPDFFile = function (url, title) {
|
|
323
|
+
if (!this.sdkObj.downloadPDFFile) {
|
|
324
|
+
return (0, utils_1.empty)("downloadPDFFile");
|
|
325
|
+
}
|
|
326
|
+
return this.sdkObj.downloadPDFFile(url, title);
|
|
327
|
+
};
|
|
321
328
|
return BUSINESS;
|
|
322
329
|
}());
|
|
323
330
|
exports.default = BUSINESS;
|
|
@@ -43,10 +43,9 @@ exports.default = {
|
|
|
43
43
|
* @param {string} callbackName 回调函数
|
|
44
44
|
*/
|
|
45
45
|
goBankTransfer: function () {
|
|
46
|
-
return __awaiter(this,
|
|
47
|
-
if (version === void 0) { version = "7.2.0"; }
|
|
46
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
47
|
return __generator(this, function (_a) {
|
|
49
|
-
|
|
48
|
+
location.href = "client://hxsecurity.frame.router/jiaoyi_dyh_yzzz_drcx";
|
|
50
49
|
return [2 /*return*/, false];
|
|
51
50
|
});
|
|
52
51
|
});
|