修改样式
This commit is contained in:
@@ -10,15 +10,12 @@ onLaunch(initConfig);
|
||||
|
||||
onShow(() => {
|
||||
console.log('%c外卖用户端--用户端', 'background: #00A76D; color: white; padding: 3px; border-radius: 2px;');
|
||||
console.log("App Show");
|
||||
});
|
||||
|
||||
onHide(() => {
|
||||
console.log("App Hide");
|
||||
});
|
||||
|
||||
onError((error: string) => {
|
||||
console.log('App Error', error)
|
||||
})
|
||||
|
||||
|
||||
@@ -29,12 +26,9 @@ function initApp() {
|
||||
const color = plus.android.newObject("android.graphics.Color");
|
||||
const ac = plus.android.runtimeMainActivity();
|
||||
const c2int = plus.android.invoke(color, "parseColor", "#FFFFFF");
|
||||
console.log("c2int===" + JSON.stringify(c2int))
|
||||
const win = plus.android.invoke(ac, "getWindow");
|
||||
console.log("win===" + JSON.stringify(win))
|
||||
plus.android.invoke(win, "setNavigationBarColor", c2int);
|
||||
} catch (e) {
|
||||
console.log('error', e)
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
@@ -87,12 +81,10 @@ function initConfig() {
|
||||
}
|
||||
|
||||
if(!configStore.isShowedLanguageSelectPage) {
|
||||
console.log('未展示过语言选择页面,导航到语言选择页面')
|
||||
uni.navigateTo({
|
||||
url: '/pages-login/pages/choose-language/index',
|
||||
success() {
|
||||
configStore.isShowedLanguageSelectPage = true
|
||||
console.log('导航到语言选择页面成功')
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user