crh-jssdk 1.0.50 → 1.0.54

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.
@@ -155,7 +155,7 @@ exports.default = {
155
155
  case 5:
156
156
  console.log('---ios');
157
157
  if (!utils_1.ios) return [3 /*break*/, 6];
158
- window.location.href = "client://hxsecurity.frame.router/5032?url=".concat(url, "&rp_flag_push_to_stack_directly=1&isHiddenNavigationBar=1&isHiddenBottomBar=1&isNeedWtLogin=1");
158
+ window.location.href = "client://hxsecurity.frame.router/5032?url=".concat(encodeURIComponent(url), "&rp_flag_push_to_stack_directly=1&isHiddenNavigationBar=1&isHiddenBottomBar=1&isNeedWtLogin=1");
159
159
  return [2 /*return*/];
160
160
  case 6:
161
161
  gotoUrl = "client.html?action=ymtz^webid=9995^url=".concat(url, "^isHiddenNavigationBar=").concat(needTitle ? 1 : 0, "^isHiddenBottomBar=1^isNeedWtLogin=1");
@@ -113,8 +113,9 @@ exports.default = {
113
113
  */
114
114
  goWebview: function (p) {
115
115
  var params = {
116
- statusBarColor: '#FFFFFF',
117
- indexUrl: p.url
116
+ statusBarColor: '#ff6800',
117
+ indexUrl: p.url,
118
+ isNeedTitle: p.needTitle || '0',
118
119
  };
119
120
  console.log('2222+___==============', params, utils_1.ios);
120
121
  if (utils_1.ios) { // iphone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crh-jssdk",
3
- "version": "1.0.50",
3
+ "version": "1.0.54",
4
4
  "description": "crh-jssdk",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {