diff --git a/components/diy/video.vue b/components/diy/video.vue
index 21da7142..36d12af9 100644
--- a/components/diy/video.vue
+++ b/components/diy/video.vue
@@ -10,7 +10,7 @@
@@ -32,10 +36,6 @@
/* @/static/icon/ */
@import url('@/static/icon/iconfont.css');
/* @import url('https://at.alicdn.com/t/c/font_4227145_kbr2f9jt68b.css'); */
-
- .iconfont-container {
- display: inline-block;
- }
.iconfont {
display: flex;
font-size: inherit;
diff --git a/pages/diy/diy.vue b/pages/diy/diy.vue
index f4ee66d1..93c21202 100644
--- a/pages/diy/diy.vue
+++ b/pages/diy/diy.vue
@@ -67,7 +67,7 @@
}
// 设置顶部导航的默认颜色
- app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
+ this.set_navigation_bar_color();
},
// 下拉刷新
@@ -89,6 +89,9 @@
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
params['is_cache'] = 0;
+
+ // 设置顶部导航的默认颜色
+ this.set_navigation_bar_color();
}
} else {
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
@@ -134,6 +137,9 @@
uni.setNavigationBarTitle({
title: this.data.name
});
+
+ // 设置顶部导航的默认颜色
+ this.set_navigation_bar_color();
}
// 分享菜单处理
@@ -163,6 +169,11 @@
});
}
},
+
+ // 状态栏设置
+ set_navigation_bar_color() {
+ app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
+ }
};
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e90679ae..47ad868e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -452,9 +452,7 @@
}
// 设置顶部导航的默认颜色
- if(this.data_mode == 3) {
- app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data_list, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
- }
+ this.set_navigation_bar_color();
},
// 下拉刷新
@@ -500,6 +498,9 @@
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
params['is_cache'] = 0;
+
+ // 设置顶部导航的默认颜色
+ this.set_navigation_bar_color();
}
} else {
// 已有本地缓存则直接取远程有效数据(默认首次取的是远程缓存数据)
@@ -565,6 +566,9 @@
// 存储缓存
uni.setStorageSync(cache_key, upd_data);
+ // 设置顶部导航的默认颜色
+ this.set_navigation_bar_color();
+
// 弹屏广告插件处理
this.plugins_popupscreen_handle();
@@ -606,6 +610,13 @@
});
},
+ // 设置顶部导航的默认颜色
+ set_navigation_bar_color() {
+ if(this.data_mode == 3) {
+ app.globalData.set_navigation_bar_color(parseInt(app.globalData.get_key_data(this.data_list, 'config.header.com_data.style.function_buttons_type', 0)) == 1);
+ }
+ },
+
// 初始化返回公共处理
init_result_common_handle() {
var theme_view = app.globalData.get_theme_value_view();