crh-jssdk 0.10.5 → 0.10.6

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/business/index.js CHANGED
@@ -217,11 +217,11 @@ var BUSINESS = /** @class */ (function () {
217
217
  return this.sdkObj.getVersion();
218
218
  };
219
219
  //设置原生状态栏颜色(乐赚客户端)
220
- BUSINESS.prototype.setStatusBar = function () {
220
+ BUSINESS.prototype.setStatusBar = function (params) {
221
221
  if (!this.sdkObj.setStatusBar) {
222
222
  return (0, utils_1.empty)("setStatusBar");
223
223
  }
224
- return this.sdkObj.setStatusBar();
224
+ return this.sdkObj.setStatusBar(params);
225
225
  };
226
226
  //产品自选
227
227
  BUSINESS.prototype.setCollect = function (params) {
package/business/index.ts CHANGED
@@ -148,11 +148,11 @@ export default class BUSINESS {
148
148
  }
149
149
 
150
150
  //设置原生状态栏颜色(乐赚客户端)
151
- public setStatusBar() {
151
+ public setStatusBar(params: any) {
152
152
  if (!this.sdkObj.setStatusBar) {
153
153
  return empty("setStatusBar");
154
154
  }
155
- return this.sdkObj.setStatusBar();
155
+ return this.sdkObj.setStatusBar(params);
156
156
  }
157
157
 
158
158
  //产品自选
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var utils_1 = require("../utils");
4
4
  exports.default = {
5
- // 爱建统一登录
6
- newLogic: function (wtApp, APP_params, xyServerUrl, token_500041, oldLogic) {
5
+ // 新意统一登录
6
+ newLogic: function (wtApp, APP_params, xyServerUrl, token_500041, oldLogic, callback) {
7
7
  var _a, _b, _c;
8
8
  var subData = {
9
9
  contractTime: (0, utils_1.getContractTime)(),
@@ -14,6 +14,7 @@ exports.default = {
14
14
  checkCode: token_500041,
15
15
  callback: "SignatureCall",
16
16
  };
17
+ window.SignatureCall = callback;
17
18
  (_a = wtApp === null || wtApp === void 0 ? void 0 : wtApp.showPreloader) === null || _a === void 0 ? void 0 : _a.call(wtApp);
18
19
  if (utils_1.ios) {
19
20
  console.info("use iphone");
@@ -1,7 +1,7 @@
1
1
  import { ios, checkIsHarmonyOS, getContractTime } from "../utils";
2
2
 
3
3
  export default {
4
- // 爱建统一登录
4
+ // 新意统一登录
5
5
  newLogic(
6
6
  wtApp: any,
7
7
  APP_params: {
@@ -9,7 +9,8 @@ export default {
9
9
  },
10
10
  xyServerUrl: string,
11
11
  token_500041: string,
12
- oldLogic: Function
12
+ oldLogic: Function,
13
+ callback: Function
13
14
  ) {
14
15
  let subData = {
15
16
  contractTime: getContractTime(),
@@ -21,6 +22,9 @@ export default {
21
22
  checkCode: token_500041,
22
23
  callback: "SignatureCall",
23
24
  };
25
+
26
+ window.SignatureCall = callback
27
+
24
28
  wtApp?.showPreloader?.();
25
29
  if (ios) {
26
30
  console.info("use iphone");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crh-jssdk",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "crh-jssdk",
5
5
  "main": "index.js",
6
6
  "scripts": {