游戏界面标题栏颜色改为黑色

This commit is contained in:
zhl 2019-03-21 17:40:25 +08:00
parent 77d5dd6d88
commit c7297d2025
2 changed files with 14 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export default class extends wepy.app {
super();
this.use('requestfix');
this.use('promisify');
(g.env === 'test') && hookConsoleLog();
// (g.env === 'test') && hookConsoleLog();
sdkManage.init();
sdkManage.Login(() => {
let account = wepy.getStorageSync('account');

View File

@ -1,4 +1,7 @@
<style lang="less">
.container{
background-color: #000000;
}
</style>
<template>
<view class="container">
@ -13,6 +16,13 @@
export default class GameWebPage extends wepy.page {
components = {};
config = {
// navigationStyle: 'custom'
navigationBarBackgroundColor: '#000',
navigationBarTextStyle: 'white',
backgroundColor: '#000',
backgroundColorTop: '#000',
};
data = {
link: '',
roomId: '',
@ -50,6 +60,9 @@
title: this.name
});
}
wepy.setNavigationBarTitle({
title: ''
});
this.share_image = decodeURIComponent(params.share_image);
this.$apply();
}