细节优化

master
gongfuxiang 2023-11-29 15:57:35 +08:00
parent bcb0336263
commit cd2757783e
4 changed files with 24 additions and 19 deletions

17
App.vue
View File

@ -1071,7 +1071,7 @@
this.set_theme_value(data.plugins_themestyle_data);
//
this.set_tabbar();
this.set_tabbar(data.plugins_themestyle_data);
//
this.user_auto_login_handle();
@ -1986,7 +1986,7 @@
//
// is_light false, true
get_theme_color(is_light = false) {
get_theme_color(theme, is_light = false) {
let color_obj = {
//
red: '#ff0036', //
@ -2008,7 +2008,10 @@
brown_light: '#eadcd2', //
purple_light: '#d6cbfb', //
};
var theme = this.get_theme_value();
//
if((theme || null) == null) {
theme = this.get_theme_value();
}
if (is_light) {
theme += '_light';
}
@ -2041,13 +2044,15 @@
},
//
set_tabbar() {
set_tabbar(theme) {
//
var theme = this.get_theme_value();
if((theme || null) == null) {
theme = this.get_theme_value();
}
//
uni.setTabBarStyle({
selectedColor: this.get_theme_color(),
selectedColor: this.get_theme_color(theme),
});
//

View File

@ -1,5 +1,5 @@
{
"name" : "shopxo",
"name" : "ShopXO",
"appid" : "__UNI__50E3C11",
"description" : "ShopXO开源商城、MIT协议、可商用、可二次开发、满足99%电商运营需求",
"versionName" : "1.0.0",

View File

@ -164,7 +164,7 @@
var common_static_url = app.globalData.get_static_url('common');
const theme_color = app.globalData.get_theme_color();
const theme_color_light = app.globalData.get_theme_color(true);
const theme_color_light = app.globalData.get_theme_color(null, true);
export default {
data() {
return {
@ -218,7 +218,7 @@
this.setData({
params: params,
});
},
},
onReady: function () {
uni.setNavigationBarTitle({
@ -235,15 +235,15 @@
this.init();
},
onShow() {
//
uni.$off('refresh');
// 
    uni.$on('refresh', (data) => {
//
        if((data.location_success || false) == true) {
this.user_location_init();
        }
onShow() {
//
uni.$off('refresh');
// 
    uni.$on('refresh', (data) => {
//
        if((data.location_success || false) == true) {
this.user_location_init();
        }
    });
//

View File

@ -57,7 +57,7 @@
import componentNoData from '../../components/no-data/no-data';
import componentBottomLine from '../../components/bottom-line/bottom-line';
const theme_color = app.globalData.get_theme_color();
const theme_color_light = app.globalData.get_theme_color(true);
const theme_color_light = app.globalData.get_theme_color(null, true);
var common_static_url = app.globalData.get_static_url('common');
export default {