Commit 60ba0a8c authored by wildfirecode's avatar wildfirecode

1

parent c5f48176
...@@ -70,6 +70,7 @@ import getRedBombAward from "../../src/getRedBombAward"; ...@@ -70,6 +70,7 @@ import getRedBombAward from "../../src/getRedBombAward";
import BombTipsPanel from "../../src/panels/BombTipsPanel"; import BombTipsPanel from "../../src/panels/BombTipsPanel";
import RedBombRule from "../../src/panels/RedBombRule"; import RedBombRule from "../../src/panels/RedBombRule";
import RedBombAlertPanel from "../../src/panels/RedBombAlertPanel"; import RedBombAlertPanel from "../../src/panels/RedBombAlertPanel";
import { GFun } from "../tc/util/GFun";
export default class MainBase extends eui.UILayer { export default class MainBase extends eui.UILayer {
constructor() { constructor() {
...@@ -78,6 +79,29 @@ export default class MainBase extends eui.UILayer { ...@@ -78,6 +79,29 @@ export default class MainBase extends eui.UILayer {
Loading2.instace.loadImage(); Loading2.instace.loadImage();
DataManager.ins.customCfgData = window['CFG']; DataManager.ins.customCfgData = window['CFG'];
this.getData(); this.getData();
try {
if (GFun.isIOS) {
// 通过window.SNNativeClient. setNavigationHiden (0)调用客户端隐藏WebView原生导航栏
// 功能。
// 0:隐藏
// 1:不隐藏
window['SNNativeClient'].setNavigationHiden(0);
} else {
// 1.页面引入
// http://res.suning.cn/project/mvs/RES/common/script/android/sneapp.js
// 2.
// document.addEventListener("deviceready", function() {
// baseApi.enableTitleShow(false);
// }, false);
document.addEventListener("deviceready", () => {
window['baseApi'].enableTitleShow(false);
}, false);
}
} catch (error) {
console.log(error)
}
} }
protected registerModules() { protected registerModules() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment